/* =====================================================
   BEANFLOW HOME
===================================================== */

:root {

    --espresso: #2B1B14;
    --roast: #5A3B2E;
    --cocoa: #8B6A55;
    --latte: #C9B19C;
    --cream: #F3E7D6;
    --white: #FFFFFF;
}


/* =====================================================
   RESET
===================================================== */

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {

    width: 100%;
    min-height: 100%;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        var(--espresso);

    color:
        var(--cream);

    overflow-x: hidden;
}


a {

    text-decoration: none;
}


button {

    font-family: inherit;
}


/* =====================================================
   HEADER
===================================================== */

.main-header {

    position: fixed;

    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;
    height: 82px;

    background:
        rgba(
            43,
            27,
            20,
            0.97
        );

    border-bottom:
        1px solid
        rgba(
            243,
            231,
            214,
            0.12
        );

    backdrop-filter:
        blur(10px);
}


.nav-container {

    width:
        min(
            1800px,
            95%
        );

    height: 100%;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 30px;
}


/* =====================================================
   BRAND
===================================================== */

.brand {

    display: flex;

    align-items: center;

    gap: 13px;

    flex-shrink: 0;
}


.brand-logo {

    width: 55px;
    height: 55px;

    object-fit: contain;
}


.brand-text {

    display: flex;

    flex-direction: column;
}


.brand-name {

    color:
        var(--cream);

    font-size: 26px;

    font-weight: 900;

    letter-spacing: 1px;
}


.brand-small {

    margin-top: 3px;

    color:
        var(--latte);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 4px;
}


/* =====================================================
   NAVIGATION
===================================================== */

.main-nav {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 43px;
}


.main-nav a {

    position: relative;

    padding:
        29px 0;

    color:
        var(--cream);

    font-size: 14px;

    font-weight: 800;

    transition:
        0.2s;
}


.main-nav a:hover {

    color:
        var(--latte);
}


.main-nav a.active::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 16px;

    height: 3px;

    border-radius: 10px;

    background:
        var(--latte);
}


/* =====================================================
   ACCOUNT
===================================================== */

.nav-right {

    display: flex;

    align-items: center;

    gap: 14px;

    flex-shrink: 0;
}


.nav-user {

    max-width: 170px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color:
        var(--latte);

    font-size: 11px;

    font-weight: 900;
}


.nav-login,
.nav-register,
.nav-logout {

    min-width: 110px;

    height: 46px;

    padding:
        0 19px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    font-size: 11px;

    font-weight: 900;

    transition:
        0.2s;
}


.nav-login {

    background:
        var(--cream);

    color:
        var(--espresso);
}


.nav-register,
.nav-logout {

    border:
        1px solid
        rgba(
            243,
            231,
            214,
            0.55
        );

    color:
        var(--cream);
}


.nav-login:hover,
.nav-register:hover,
.nav-logout:hover {

    background:
        var(--cocoa);

    border-color:
        var(--cocoa);

    color:
        var(--white);
}


/* =====================================================
   HERO
===================================================== */

.hero {

    position: relative;

    width: 100%;

    min-height: 100vh;

    padding-top: 82px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:

        linear-gradient(
            90deg,
            rgba(43,27,20,0.97) 0%,
            rgba(43,27,20,0.90) 35%,
            rgba(43,27,20,0.61) 65%,
            rgba(43,27,20,0.22) 100%
        ),

        url("../images/beanflow-background.png");

    background-size: cover;

    background-position: center;
}


.hero::before {

    content: "";

    position: absolute;

    inset: 0;

    background:

        radial-gradient(
            circle at 76% 45%,
            rgba(201,177,156,0.12),
            transparent 38%
        );

    pointer-events: none;
}


/* =====================================================
   HERO LAYOUT
===================================================== */

.hero-container {

    position: relative;

    z-index: 5;

    width:
        min(
            1800px,
            94%
        );

    margin: auto;

    display: grid;

    grid-template-columns:
        0.92fr
        1.08fr;

    align-items: center;

    gap: 60px;
}


/* =====================================================
   LEFT
===================================================== */

.hero-left {

    max-width: 720px;
}


.hero-eyebrow {

    margin-bottom: 24px;

    color:
        var(--latte);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 7px;
}


.hero-title {

    color:
        var(--white);

    font-size:
        clamp(
            64px,
            6vw,
            100px
        );

    line-height: 0.97;

    letter-spacing: -5px;

    text-shadow:
        0 7px 28px
        rgba(0,0,0,0.30);
}


.hero-title span {

    display: block;

    color:
        var(--cream);
}


.hero-description {

    max-width: 620px;

    margin-top: 30px;

    color:
        rgba(
            243,
            231,
            214,
            0.94
        );

    font-size: 17px;

    line-height: 1.8;
}


/* =====================================================
   HERO BUTTONS
===================================================== */

.hero-buttons {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 36px;
}


.order-button,
.menu-button {

    min-width: 180px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 31px;

    font-size: 14px;

    font-weight: 900;

    transition:
        0.25s;
}


.order-button {

    background:
        var(--cream);

    color:
        var(--espresso);

    box-shadow:
        0 10px 30px
        rgba(0,0,0,0.20);
}


.order-button:hover {

    background:
        var(--latte);

    transform:
        translateY(-3px);
}


.menu-button {

    border:
        1px solid
        rgba(
            243,
            231,
            214,
            0.85
        );

    color:
        var(--cream);

    background:
        rgba(
            43,
            27,
            20,
            0.28
        );
}


.menu-button:hover {

    background:
        var(--cream);

    color:
        var(--espresso);

    transform:
        translateY(-3px);
}


/* =====================================================
   SLIDER
===================================================== */

.promo-slider {

    position: relative;

    width: 100%;

    height: 540px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.slider-window {

    position: relative;

    width:
        min(
            700px,
            100%
        );

    height: 470px;

    overflow: hidden;

    border:
        1px solid
        rgba(
            243,
            231,
            214,
            0.28
        );

    border-radius: 30px;

    background:
        rgba(
            43,
            27,
            20,
            0.55
        );

    box-shadow:
        0 30px 60px
        rgba(0,0,0,0.32);

    backdrop-filter:
        blur(7px);
}


/* =====================================================
   SLIDES
===================================================== */

.promo-slide {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    visibility: hidden;

    transform:
        translateX(80px)
        scale(0.94);

    transition:

        opacity 0.65s ease,

        transform 0.65s ease,

        visibility 0.65s;
}


.promo-slide.active {

    opacity: 1;

    visibility: visible;

    transform:
        translateX(0)
        scale(1);

    z-index: 5;
}


/* =====================================================
   SLIDE BACKGROUND
===================================================== */

.slide-background {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.18;

    filter:
        blur(1px);
}


.slide-shade {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            90deg,
            rgba(43,27,20,0.97) 0%,
            rgba(43,27,20,0.85) 48%,
            rgba(43,27,20,0.35) 100%
        );
}


/* =====================================================
   CONTENT
===================================================== */

.promo-content {

    position: relative;

    z-index: 10;

    width: 100%;
    height: 100%;

    display: grid;

    grid-template-columns:
        0.95fr
        1.05fr;

    align-items: center;

    padding:
        38px
        25px
        38px
        38px;
}


/* =====================================================
   SLIDE TEXT
===================================================== */

.promo-info {

    position: relative;

    z-index: 12;
}


.promo-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 17px;

    padding:
        9px 14px;

    border:
        1px solid
        rgba(
            243,
            231,
            214,
            0.35
        );

    border-radius: 25px;

    background:
        rgba(
            139,
            106,
            85,
            0.35
        );

    color:
        var(--cream);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;
}


.promo-title-small {

    margin-bottom: 7px;

    color:
        var(--latte);

    font-size: 15px;

    font-style: italic;
}


.promo-info h2 {

    max-width: 300px;

    color:
        var(--white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 43px;

    line-height: 1;

    letter-spacing: -1px;
}


.promo-description {

    max-width: 260px;

    margin-top: 14px;

    color:
        rgba(
            243,
            231,
            214,
            0.88
        );

    font-size: 12px;

    line-height: 1.6;
}


.promo-price {

    margin-top: 20px;

    color:
        var(--cream);

    font-size: 24px;

    font-weight: 900;
}


.promo-order {

    min-width: 130px;

    height: 40px;

    margin-top: 15px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 22px;

    background:
        var(--cream);

    color:
        var(--espresso);

    font-size: 10px;

    font-weight: 900;

    transition:
        0.2s;
}


.promo-order:hover {

    background:
        var(--latte);
}


/* =====================================================
   PRODUCT IMAGE
===================================================== */

.promo-product {

    position: relative;

    z-index: 11;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;
}


.product-circle {

    position: absolute;

    width: 305px;
    height: 305px;

    border-radius: 50%;

    background:

        radial-gradient(
            circle,
            rgba(243,231,214,0.24),
            rgba(201,177,156,0.09) 50%,
            transparent 70%
        );
}


.promo-product img {

    position: relative;

    z-index: 5;

    width: 100%;

    max-width: 310px;

    height: 365px;

    object-fit: contain;

    filter:

        drop-shadow(
            0 25px 18px
            rgba(0,0,0,0.42)
        );

    animation:
        coffeeFloat
        4s
        ease-in-out
        infinite;
}


@keyframes coffeeFloat {

    0%,
    100% {

        transform:
            translateY(0);
    }


    50% {

        transform:
            translateY(-12px);
    }

}


/* =====================================================
   SLIDE NUMBER
===================================================== */

.slide-number {

    position: absolute;

    top: 20px;
    right: 22px;

    z-index: 20;

    color:
        rgba(
            243,
            231,
            214,
            0.65
        );

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 2px;
}


/* =====================================================
   ARROWS
===================================================== */

.slider-arrow {

    position: absolute;

    top: 50%;

    z-index: 50;

    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(
            243,
            231,
            214,
            0.40
        );

    border-radius: 50%;

    background:
        rgba(
            43,
            27,
            20,
            0.78
        );

    color:
        var(--cream);

    cursor: pointer;

    font-size: 30px;

    transform:
        translateY(-50%);

    transition:
        0.2s;

    backdrop-filter:
        blur(7px);
}


.slider-arrow:hover {

    background:
        var(--cream);

    color:
        var(--espresso);
}


.slider-arrow.prev {

    left: -27px;
}


.slider-arrow.next {

    right: -27px;
}


/* =====================================================
   DOTS
===================================================== */

.slider-dots {

    position: absolute;

    left: 50%;
    bottom: 3px;

    z-index: 60;

    display: flex;

    gap: 10px;

    transform:
        translateX(-50%);
}


.slider-dot {

    width: 10px;
    height: 10px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background:
        rgba(
            243,
            231,
            214,
            0.40
        );

    cursor: pointer;

    transition:
        0.25s;
}


.slider-dot.active {

    width: 27px;

    border-radius: 8px;

    background:
        var(--cream);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media
(max-width: 1200px) {

    .main-nav {

        gap: 24px;
    }


    .hero-container {

        gap: 30px;
    }


    .hero-title {

        font-size: 65px;
    }


    .promo-info h2 {

        font-size: 36px;
    }


    .promo-product img {

        height: 325px;
    }

}


@media
(max-width: 950px) {

    .main-nav {

        display: none;
    }


    .hero {

        min-height: auto;

        padding:
            120px 0
            70px;
    }


    .hero-container {

        grid-template-columns:
            1fr;

        gap: 55px;
    }


    .hero-left {

        margin: auto;

        text-align: center;
    }


    .hero-description {

        margin-left: auto;

        margin-right: auto;
    }


    .hero-buttons {

        justify-content: center;
    }


    .promo-slider {

        width:
            min(
                720px,
                90%
            );

        margin: auto;
    }

}


@media
(max-width: 650px) {

    .main-header {

        height: 70px;
    }


    .brand-logo {

        width: 43px;
        height: 43px;
    }


    .brand-name {

        font-size: 18px;
    }


    .brand-small {

        font-size: 6px;
    }


    .nav-user {

        display: none;
    }


    .nav-register {

        display: none;
    }


    .nav-login,
    .nav-logout {

        min-width: 80px;

        height: 36px;

        padding:
            0 10px;

        font-size: 9px;
    }


    .hero {

        padding-top: 110px;
    }


    .hero-eyebrow {

        font-size: 9px;

        letter-spacing: 4px;
    }


    .hero-title {

        font-size: 50px;

        letter-spacing: -3px;
    }


    .hero-description {

        font-size: 14px;
    }


    .hero-buttons {

        flex-direction: column;
    }


    .order-button,
    .menu-button {

        width: 220px;
    }


    .promo-slider {

        height: 590px;
    }


    .slider-window {

        height: 550px;
    }


    .promo-content {

        grid-template-columns:
            1fr;

        padding: 25px;

        text-align: center;
    }


    .promo-info {

        padding-top: 20px;
    }


    .promo-info h2,
    .promo-description {

        margin-left: auto;

        margin-right: auto;
    }


    .promo-info h2 {

        font-size: 31px;
    }


    .promo-product {

        height: 225px;
    }


    .promo-product img {

        height: 220px;
    }


    .product-circle {

        width: 190px;
        height: 190px;
    }


    .promo-price {

        margin-top: 10px;
    }


    .promo-order {

        margin-top: 10px;
    }


    .slider-arrow {

        width: 42px;
        height: 42px;
    }


    .slider-arrow.prev {

        left: -12px;
    }


    .slider-arrow.next {

        right: -12px;
    }

}