/* ========================================================
   JENNIFER GORI — HEADER
   ======================================================== */

.site-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 500;

    padding: 14px 5%;

    background: rgba(248,245,239,0);

    transition:
        padding .4s ease,
        background .4s ease,
        box-shadow .4s ease,
        backdrop-filter .4s ease;
}


/* ========================================================
   HEADER — SCROLLED
   ======================================================== */

.site-header.scrolled {
    padding-top: 11px;
    padding-bottom: 11px;

    background: rgba(248,245,239,.94);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 1px 0 rgba(60,55,48,.08);
}


/* ========================================================
   INNER
   ======================================================== */

.header-inner {
    width: 100%;

    max-width: 1450px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 26px;
}


/* ========================================================
   BRAND
   ======================================================== */

.brand {
    display: flex;
    align-items: center;

    flex-shrink: 0;

    position: relative;

    z-index: 502;
}


/* New horizontal Jennifer Gori logo */

.brand-logo {
    width: clamp(300px,26vw,410px);
}

.brand-logo-image {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}


/* ========================================================
   NAVIGATION + CONTACT GROUP
   ======================================================== */

.header-main-group {
    display: flex;

    align-items: center;

    gap: 24px;

    margin-left: auto;

    position: relative;

    z-index: 502;
}


/* ========================================================
   MAIN NAVIGATION
   ======================================================== */

.main-nav {
    display: flex;

    align-items: center;

    gap: clamp(17px,2vw,31px);
}

.main-nav a {
    position: relative;

    font-size: 12px;

    font-weight: 500;

    white-space: nowrap;
}


/* Elegant underline */

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 100%;
    height: 1px;

    background:
        var(--champagne);

    transform:
        scaleX(0);

    transform-origin:
        right;

    transition:
        transform .38s
        cubic-bezier(.77,0,.18,1);
}

.main-nav a:hover::after {
    transform:
        scaleX(1);

    transform-origin:
        left;
}


/* ========================================================
   CONTACT BUTTON
   ======================================================== */

.nav-contact {
    position: relative;

    z-index: 1;

    flex-shrink: 0;

    padding: 11px 17px;

    border:
        1px solid
        rgba(46,48,43,.65);

    overflow: hidden;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .3px;

    white-space: nowrap;

    transition:
        color .35s ease,
        border-color .35s ease;
}

.nav-contact::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    background:
        var(--ink);

    transform:
        translateY(102%);

    transition:
        transform .38s
        cubic-bezier(.77,0,.18,1);
}

.nav-contact:hover {
    color: white;

    border-color:
        var(--ink);
}

.nav-contact:hover::before {
    transform:
        translateY(0);
}


/* ========================================================
   HEADER ACTIONS
   ======================================================== */

.header-actions {
    display: flex;

    align-items: center;

    gap: 14px;

    position: relative;

    z-index: 502;

    flex-shrink: 0;
}


/* ========================================================
   LANGUAGE SWITCHER
   ======================================================== */

.language-switcher {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1px;

    white-space: nowrap;
}

.language-switcher span {
    display: block;

    width: 17px;
    height: 1px;

    background:
        #b8b0a4;
}

.language-switcher a {
    opacity: .4;

    transition:
        opacity .25s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
    opacity: 1;
}


/* ========================================================
   MOBILE MENU BUTTON
   ======================================================== */

.menu-toggle {
    display: none;

    position: relative;

    width: 36px;
    height: 36px;

    border: 0;

    background: transparent;

    cursor: pointer;

    z-index: 503;
}

.menu-toggle span {
    position: absolute;

    left: 6px;

    width: 24px;
    height: 1px;

    background:
        var(--ink);

    transition:
        transform .35s ease,
        top .35s ease;
}

.menu-toggle span:first-child {
    top: 13px;
}

.menu-toggle span:last-child {
    top: 21px;
}

.menu-toggle.active span:first-child {
    top: 17px;

    transform:
        rotate(45deg);
}

.menu-toggle.active span:last-child {
    top: 17px;

    transform:
        rotate(-45deg);
}

/* ========================================================
   MOBILE MENU BRAND — HIDDEN ON DESKTOP
   ======================================================== */

.mobile-menu-brand,
.mobile-menu-contact {
    display: none;
}

/* ========================================================
   TABLET / MOBILE NAVIGATION
   ======================================================== */

@media (max-width: 1180px) {

    .header-main-group {
        margin-left: auto;
    }

    .main-nav {
        display: none;
    }

    .header-main-group .nav-contact {
        display: none;
    }

    .menu-toggle {
        display: block;
    }


    /* Open menu */

    .main-nav.active {
        display: flex;

        position: fixed;

        inset: 0;

        z-index: 450;

        padding:
            105px 8%
            48px;

        background:
            rgba(248,245,239,.985);

        backdrop-filter:
            blur(18px);

        -webkit-backdrop-filter:
            blur(18px);

        flex-direction: column;

        align-items: flex-start;

        justify-content: flex-start;

        gap: 20px;

        overflow-y: auto;
    }


    /* Mobile menu logo */

.mobile-menu-brand {
    display: block;

    width: 100%;

    margin-top: -12px;
    margin-bottom: 0;
}

.mobile-menu-logo {
    display: block;

    width: 180px;
    height: auto;
}


    /* Menu links */

    .main-nav.active > a:not(.mobile-menu-contact) {
        width: 100%;

        padding:
            8px 0
            11px;

        border-bottom:
            1px solid rgba(145,123,94,.20);

        font-family:
            var(--serif);

        font-size: 30px;

        font-weight: 500;

        line-height: 1.15;

        white-space: normal;
    }


    /* Contact CTA */

    .mobile-menu-contact {
        margin-top: 12px;

        padding:
            14px 18px;

        display: inline-flex;

        align-items: center;

        gap: 16px;

        border:
            1px solid rgba(46,48,43,.55);

        font-family:
            var(--sans);

        font-size: 10px;

        font-weight: 600;

        letter-spacing: .8px;

        text-transform: uppercase;
    }

    .mobile-menu-contact span {
        font-size: 18px;

        transition:
            transform .3s ease;
    }

    .mobile-menu-contact:hover span {
        transform:
            translateX(4px);
    }


    /* No desktop underline inside full-screen menu */

    .main-nav.active a::after {
        display: none;
    }

    .main-nav.active .mobile-menu-contact {
    width: auto;

    margin-top: 4px;

    padding: 12px 16px;

    display: inline-flex;

    align-items: center;

    gap: 14px;

    border:
        1px solid rgba(46,48,43,.45);

    font-family:
        var(--sans);

    font-size: 9px;

    font-weight: 600;

    line-height: 1;

    letter-spacing: 1.1px;

    text-transform: uppercase;

    white-space: nowrap;
}

.main-nav.active .mobile-menu-contact span {
    font-size: 16px;

    line-height: 1;
}

}


/* ========================================================
   TABLET
   ======================================================== */

@media (max-width: 900px) {

    .site-header {
        padding:
            18px 6%;
    }

    .site-header.scrolled {
        padding-top: 12px;
        padding-bottom: 12px;
    }

}


/* ========================================================
   MOBILE
   ======================================================== */

@media (max-width: 600px) {

    /* ====================================================
       HEADER
       ==================================================== */

    .site-header {
        padding:
            17px 6%;
    }

    .site-header.scrolled {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .header-inner {
        gap: 15px;
    }


    /* ====================================================
       BRAND
       ==================================================== */

    .brand {
        min-width: 0;

        flex: 1;
    }

    .brand-logo {
        width:
            min(58vw,235px);
    }

    .brand-logo-image {
        width: 100%;
        height: auto;
    }


    /* ====================================================
       HEADER MAIN GROUP
       ==================================================== */

    .header-main-group {
        margin-left: auto;
    }


    /* ====================================================
       HEADER ACTIONS
       ==================================================== */

    .header-actions {
        gap: 10px;
    }


    /* ====================================================
       LANGUAGE SWITCHER
       ==================================================== */

    .language-switcher {
        gap: 5px;

        font-size: 8px;
    }

    .language-switcher span {
        width: 12px;
    }


    /* ====================================================
       MENU TOGGLE
       ==================================================== */

    .menu-toggle {
        width: 34px;
        height: 34px;
    }

    .menu-toggle span {
        width: 22px;
    }


    /* ====================================================
       FULL-SCREEN MOBILE MENU
       ==================================================== */

    .main-nav.active {
        display: flex;

        position: fixed;

        inset: 0;

        width: 100%;
        height: 100dvh;

        z-index: 450;

        padding:
            92px 7%
            32px;

        background:
            rgba(248,245,239,.985);

        backdrop-filter:
            blur(18px);

        -webkit-backdrop-filter:
            blur(18px);

        flex-direction: column;

        align-items: flex-start;

        justify-content: flex-start;

        gap: 15px;

        overflow-y: auto;
        overflow-x: hidden;

        overscroll-behavior: contain;

        -webkit-overflow-scrolling: touch;
    }


    /* ====================================================
       MOBILE MENU LINKS
       ==================================================== */

    .main-nav.active a {
        width: 100%;

        padding:
            7px 0
            10px;

        border-bottom:
            1px solid
            rgba(145,123,94,.22);

        font-family:
            var(--serif);

        font-size:
            clamp(
                23px,
                6.6vw,
                28px
            );

        font-weight: 500;

        line-height: 1.08;

        white-space: normal;
    }


    /* Remove desktop underline animation */

    .main-nav.active a::after {
        display: none;
    }

}


/* ========================================================
   REDUCED MOTION
   ======================================================== */

@media (prefers-reduced-motion: reduce) {

    .site-header,
    .main-nav a::after,
    .nav-contact,
    .nav-contact::before,
    .menu-toggle span {
        transition:
            none !important;
    }

}