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

:root {
    --forest: #243228;
    --bone: #f6f3ec;
    --ink: #20241f;
    --gold: #a97d3d;
}

/* Active menu */

.desktop-nav a.active,
.mobile-nav a.active {
    color: var(--gold);
}

.desktop-nav a.active::after {
    width: 100%;
}

.site-header {
    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 9999;

    background: transparent;

    border-bottom: none;

    backdrop-filter: none;

    -webkit-backdrop-filter: none;

    transition: all 0.35s ease;
}

.site-header.scrolled {
    background: rgba(246, 243, 236, 0.88);

    backdrop-filter: blur(16px);

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

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);

    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1240px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 92px;

    padding: 0 28px;
}

.logo {
    position: relative;

    width: 58px;

    height: 56px;

    display: block;
}

.logo img {
    position: absolute;

    top: 0;

    left: 0;

    height: 56px;

    transition: 0.35s;
}

/* ==============================
LOGO SWITCHING
============================== */

/* Desktop */

.logo-dark {
    opacity: 1;
}

.logo-white {
    opacity: 0;
}

/* Mobile */

@media (max-width: 992px) {
    .logo-dark {
        opacity: 0;
    }

    .logo-white {
        opacity: 1;
    }

    .site-header.scrolled .logo-dark {
        opacity: 1;
    }

    .site-header.scrolled .logo-white {
        opacity: 0;
    }
}

.desktop-nav {
    display: flex;

    align-items: center;

    gap: 42px;
    margin-left: 150px;
}

.desktop-nav a {
    text-decoration: none;

    color: var(--ink);

    text-transform: uppercase;

    font-size: 0.8rem;

    letter-spacing: 0.18em;

    font-weight: 500;

    position: relative;

    transition: 0.3s;
}

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

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 1px;

    background: var(--gold);

    transition: 0.3s;
}

.desktop-nav a:hover {
    color: var(--gold);
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* ==============================
RIGHT
============================== */

.header-right {
    display: flex;

    align-items: center;

    gap: 18px;
}

/* CTA */

.request-btn {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 14px 28px;

    border-radius: 999px;

    background: var(--forest);

    color: #fff;

    text-decoration: none;

    text-transform: uppercase;

    font-size: 12px;

    letter-spacing: 0.16em;

    font-weight: 500;

    transition: 0.35s;

    opacity: 0;

    visibility: hidden;

    transform: translateX(20px);
}

.request-btn.show {
    opacity: 1;

    visibility: visible;

    transform: translateX(0);
}

.request-btn:hover {
    transform: translateY(-2px);

    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.request-btn span {
    transition: 0.3s;
}

.request-btn:hover span {
    transform: translateX(4px);
}

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

.menu-toggle {
    width: 46px;
    height: 46px;
    transition: 0.35s;
    display: none;

    position: relative;

    border: none;

    background: none;

    cursor: pointer;

    padding: 0;

    color: #222;
}

.menu-toggle span {
    position: absolute;

    left: 10px;

    width: 26px;

    height: 1px;

    background: currentColor;

    transition: all 0.35s ease;
}

.menu-toggle span:nth-child(1) {
    top: 14px;
}

.menu-toggle span:nth-child(2) {
    top: 22px;
}

.menu-toggle span:nth-child(3) {
    top: 30px;
}

.menu-toggle.active span:nth-child(1) {
    top: 22px;

    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    top: 22px;

    transform: rotate(-45deg);
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        color: #fff;
    }

    .site-header.scrolled .menu-toggle {
        color: #222;
    }
}

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

.mobile-menu {
    position: fixed;

    top: 82px;
    /* same as mobile header height */

    left: 0;

    width: 100%;

    height: calc(100vh - 82px);

    background: #f6f3ec;

    z-index: 9998;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition: opacity 0.35s ease;

    overflow-y: auto;
}

.mobile-menu.open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}

.mobile-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 28px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-logo {
    height: 52px;
}

.close-menu {
    border: none;

    background: none;

    font-size: 36px;

    cursor: pointer;

    color: #222;
}

.mobile-nav {
    display: flex;

    flex-direction: column;

    padding: 10px 28px;
}

.mobile-nav a {
    text-decoration: none;

    color: #222;

    padding: 15px 0;

    border-bottom: 1px solid rgba(0, 0, 0, 0.08);

    text-transform: uppercase;

    letter-spacing: 0.18em;

    font-size: 14px;
}

.mobile-bottom {
    padding: 36px 28px;
}

.mobile-btn {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    height: 58px;

    border-radius: 999px;

    background: var(--forest);

    color: #fff;

    text-decoration: none;

    text-transform: uppercase;

    letter-spacing: 0.16em;

    font-size: 12px;
}

/* ==============================
RESPONSIVE
============================== */

@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .request-btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-container {
        height: 82px;

        padding: 0 22px;
    }

    .logo img {
        height: 48px;
    }
}

@media (min-width: 993px) {
    .mobile-menu {
        display: none;
    }
}

/* ==========================================
   MOBILE MENU OPEN HEADER
========================================== */

@media (max-width: 992px) {
    body.menu-open .site-header {
        background: rgba(246, 243, 236, 0.92) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    }

    body.menu-open .logo-white {
        opacity: 0 !important;
    }

    body.menu-open .logo-dark {
        opacity: 1 !important;
    }

    body.menu-open .menu-toggle {
        color: #222 !important;
    }
}

/* ====================================
   MOBILE MENU ARROWS
==================================== */

.mobile-nav a {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.menu-arrow {
    color: #b48a3c;

    font-size: 15px;

    font-weight: 400;

    transition: transform 0.25s ease, color 0.25s ease;
}

.mobile-nav a:hover .menu-arrow {
    transform: translateX(4px);

    color: #c99b48;
}