/* ============================================================
   HEADER
   Premium executive navigation
============================================================ */

.siteHeader {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    height: var(--header-height);
    border-bottom: 1px solid rgba(90, 31, 31, 0.10);
    background: rgba(251, 250, 247, 0.82);
    backdrop-filter: blur(18px);
    transition:
        background 350ms ease,
        box-shadow 350ms ease,
        border-color 350ms ease,
        height 350ms ease;
}

.siteHeader.isScrolled {
    height: 80px;
    border-color: rgba(90, 31, 31, 0.14);
    background: rgba(251, 250, 247, 0.96);
    box-shadow:
        0 14px 40px rgba(43, 13, 13, 0.08);
}


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

.headerInner {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}


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

.brand {
    position: relative;
    z-index: 1003;
    display: inline-flex;
    align-items: center;
}

.brand::after {
    position: absolute;
    right: -26px;
    width: 1px;
    height: 34px;
    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(150, 112, 68, 0.38),
            transparent
        );
    content: "";
}

.brandLogo {
    width: auto;
    height: 68px;
    object-fit: contain;
    transition:
        height 350ms ease,
        transform 350ms ease;
}

.siteHeader.isScrolled .brandLogo {
    height: 58px;
}

.brand:hover .brandLogo {
    transform: translateY(-1px);
}


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

.headerActions {
    display: flex;
    align-items: center;
    gap: 26px;
}


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

.mainNav {
    display: flex;
    align-items: center;
    gap: clamp(17px, 1.8vw, 30px);
}

.mainNav a {
    position: relative;
    padding: 11px 0;
    color: var(--charcoal-700);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    transition:
        color 250ms ease;
}

.mainNav a:not(.navCta)::before {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 1px;
    background: var(--bronze-600);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition:
        transform 350ms cubic-bezier(.2, .65, .3, 1);
}

.mainNav a:not(.navCta)::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--wine-800);
    content: "";
    opacity: 0;
    transform: translateX(-50%) scale(0);
    transition:
        opacity 250ms ease,
        transform 250ms ease;
}

.mainNav a:hover,
.mainNav a.isActive {
    color: var(--wine-900);
}

.mainNav a:hover::before,
.mainNav a.isActive::before {
    transform: scaleX(1);
    transform-origin: left;
}

.mainNav a.isActive::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}


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

.navCta {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    gap: 13px;
    padding: 11px 16px !important;
    border: 1px solid rgba(90, 31, 31, 0.30);
    background: transparent;
    color: var(--wine-900) !important;
    transition:
        background 300ms ease,
        border-color 300ms ease,
        color 300ms ease,
        transform 300ms ease !important;
}

.navCta i {
    font-size: 0.95rem;
    font-style: normal;
    transition: transform 300ms ease;
}

.navCta:hover {
    border-color: var(--wine-900);
    background: var(--wine-900);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.navCta:hover i {
    transform: translate(2px, -2px);
}


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

.languageSwitcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 2px;
    color: rgba(90, 31, 31, 0.34);
    font-size: 0.61rem;
    font-weight: 600;
    letter-spacing: 0.11em;
}

.languageSwitcher a {
    color: rgba(43, 43, 43, 0.48);
    transition:
        color 250ms ease;
}

.languageSwitcher a:hover {
    color: var(--bronze-700);
}

.languageSwitcher a.active {
    color: var(--wine-900);
}


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

.menuToggle {
    position: relative;
    z-index: 1003;
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(90, 31, 31, 0.17);
    background: rgba(255, 255, 255, 0.30);
    cursor: pointer;
    transition:
        background 300ms ease,
        border-color 300ms ease;
}

.menuToggle:hover {
    border-color: rgba(90, 31, 31, 0.35);
    background: rgba(255, 255, 255, 0.65);
}

.menuToggle span {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 1px;
    background: var(--wine-900);
    transition:
        top 300ms ease,
        transform 300ms ease;
}

.menuToggle span:first-child {
    top: 18px;
}

.menuToggle span:last-child {
    top: 27px;
}

.menuToggle.isActive span:first-child {
    top: 22px;
    transform: rotate(45deg);
}

.menuToggle.isActive span:last-child {
    top: 22px;
    transform: rotate(-45deg);
}


/* ============================================================
   PAGE PROGRESS
============================================================ */

.headerProgress {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    overflow: hidden;
    background: transparent;
}

.headerProgress i {
    display: block;
    width: var(--page-scroll-progress, 0%);
    height: 100%;
    background:
        linear-gradient(
            90deg,
            var(--wine-700),
            var(--gold-400)
        );
    box-shadow:
        0 0 10px rgba(201, 166, 107, 0.28);
}


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

@media (max-width: 1080px) {

    .menuToggle {
        display: block;
    }

    .brand::after {
        display: none;
    }

    .mainNav {
        position: fixed;
        z-index: 1002;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 19px;
        padding: 120px 38px 70px;
        background:
            linear-gradient(
                135deg,
                rgba(251, 250, 247, 0.99),
                rgba(244, 241, 236, 0.99)
            );
        opacity: 0;
        pointer-events: none;
        transform: translateY(-14px);
        transition:
            opacity 350ms ease,
            transform 450ms cubic-bezier(.2, .65, .3, 1);
    }

    .mainNav::before {
        position: absolute;
        right: -190px;
        bottom: -180px;
        width: 650px;
        height: 520px;
        background-image: url("../img/blueprint-floorplan.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        content: "";
        opacity: 0.035;
        transform: rotate(-8deg);
    }

    .mainNav.isOpen {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mainNav a {
        font-family: var(--font-display);
        font-size: clamp(2.3rem, 7vw, 4rem);
        font-weight: 600;
        letter-spacing: -0.025em;
        text-transform: none;
    }

    .mainNav a:not(.navCta)::before,
    .mainNav a:not(.navCta)::after {
        display: none;
    }

    .navCta {
        min-height: 50px;
        margin-top: 12px;
        padding: 13px 20px !important;
        font-family: var(--font-body) !important;
        font-size: 0.69rem !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
    }

    .languageSwitcher {
        position: relative;
        z-index: 1003;
    }

}


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

@media (max-width: 620px) {

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

    .siteHeader.isScrolled {
        height: 72px;
    }

    .brandLogo {
        height: 54px;
    }

    .siteHeader.isScrolled .brandLogo {
        height: 49px;
    }

    .headerActions {
        gap: 13px;
    }

    .languageSwitcher {
        display: none;
    }

    .mainNav {
        padding-right: 27px;
        padding-left: 27px;
    }

}