/* HEADER */

:root {
    --header-height: 90px;
    --header-bg: #f5f2eb;
    --header-text: #1e2724;
    --header-gold: #caa563;
    --header-muted: #626a68;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    background: var(--header-bg);
    border-bottom: 1px solid rgba(30, 39, 36, 0.08);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 1920px;
    height: var(--header-height);

    padding: 5px 100px;
    margin-inline: auto;
}

/* BRAND */

.site-header__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 30px;
}

.site-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
}

.site-header__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-header__divider {
    width: 1px;
    height: 50px;
    background: #d8d2c7;
}

.site-header__address {
    color: #444c49;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
}

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

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex: 1;
    gap: clamp(28px, 3.8vw, 64px);
}

.site-header__links {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3.1vw, 54px);

    list-style: none;
    padding: 0;
    margin: 0;
}

.site-header__link {
    position: relative;
    display: inline-flex;
    align-items: center;

    padding-block: 12px;

    color: var(--header-text);
    text-decoration: none;

    font-size: 16px;
    font-weight: 300;
    white-space: nowrap;

    transition: color 0.25s ease;
}

.site-header__link::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;

    width: 100%;
    height: 1px;

    background: var(--header-gold);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.3s ease;
}

.site-header__link:hover,
.site-header__link.is-active {
    color: #a17d42;
}

.site-header__link:hover::after,
.site-header__link.is-active::after {
    transform: scaleX(1);
}

/* =========================================
   LANGUAGE SWITCH
========================================= */

.site-header__languages {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 21px;

    font-size: 15px;
}

.site-header__languages a {
    color: var(--header-muted);
    text-decoration: none;

    transition: color 0.2s ease;
}

.site-header__languages a:hover,
.site-header__languages a.is-active {
    color: var(--header-text);
}

.site-header__languages span {
    color: #a5a8a3;
}

/* =========================================
   CTA
========================================= */

.site-header__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;

    width: 286px;
    min-height: 50px;
    padding: 0 26px;

    background: #1e2724;
    color: #ffffff;

    font-size: 15px;
    font-weight: 400;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.site-header__cta svg {
    width: 27px;
    height: 20px;
    flex-shrink: 0;

    transition: transform 0.3s ease;
}

.site-header__cta:hover {
    background: #34423b;
}

.site-header__cta:hover svg {
    transform: translateX(5px);
}

/* =========================================
   ACCESSIBILITY
========================================= */

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 2000;

    background: #ffffff;
    padding: 12px 20px;

    color: #111111;
}

.skip-link:focus {
    top: 12px;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 2px solid #b18a49;
    outline-offset: 5px;
}

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

.site-header__toggle {
    display: none;
}


@media (max-width: 1550px) {
    .site-header__links{
        gap: 25px;
    }
    .site-header__cta{
        width: 230px;
    }
    .site-header__cta svg{
        width: 22px;
    }
}

@media (max-width: 1410px) {
    .site-header__divider{
        display: none;
    }
    .site-header__brand{
        flex-direction: column;
        gap: 5px;
    }
    .site-header__logo{
        width: 75px;
    }
    .site-header__address{
        font-size: 10px;
    }
}
@media (max-width: 1220px) {
    .site-header__nav{
        gap: 40px;
    }
    .site-header__inner{
        padding: 5px 50px;
    }
}

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

@media (max-width: 1024px) {

    :root {
        --header-height: 84px;
    }

    .site-header__divider{
        display: block;
    }
    .site-header__brand{
        flex-direction: row;
    }

    .site-header__inner {
        padding-inline: 24px;
    }

    .site-header__brand {
        gap: 22px;
    }

    .site-header__logo {
        width: 90px;
    }

    .site-header__divider {
        height: 36px;
    }

    .site-header__address {
        font-size: 10px;
    }

    /* Menu toggle */

    .site-header__toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;

        width: 44px;
        height: 44px;
        padding: 8px;

        border: none;
        background: transparent;

        cursor: pointer;
        z-index: 2;
    }

    .site-header__toggle span {
        width: 26px;
        height: 1.5px;

        background: var(--header-text);

        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }

    .site-header.is-open
    .site-header__toggle span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .site-header.is-open
    .site-header__toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-open
    .site-header__toggle span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* Fullscreen menu */

    .site-header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 30px;

        height: calc(100dvh - var(--header-height));
        padding: 60px clamp(24px, 6vw, 90px);

        background: var(--header-bg);

        overflow-y: auto;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-12px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }

    .site-header.is-open .site-header__nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-header__links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;

        width: 100%;
    }

    .site-header__link {
        font-size: clamp(28px, 4vw, 42px);
        font-weight: 400;
        line-height: 1.3;
    }

    .site-header__languages {
        gap: 24px;
        margin-top: auto;
        font-size: 16px;
    }

    .site-header__cta {
        width: 100%;
        max-width: 400px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 600px) {

    :root {
        --header-height: 76px;
    }

    .site-header__logo {
        width: 79px;
    }

    .site-header__divider,
    .site-header__address {
        display: none;
    }

    .site-header__nav {
        padding: 36px 24px;
    }

    .site-header__link {
        font-size: 30px;
    }

    .site-header__cta {
        max-width: none;
    }
}

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

    .site-header *,
    .site-header *::before,
    .site-header *::after {
        transition-duration: 0.01ms !important;
    }
}