/* ══ PREMIUM NAVIGATION & HEADER OVERRIDES ══
   Force horizontal layout, sticky behavior, and premium visuals.
   Using high specificity to resolve vertical stacking.
   ════════════════════════════════════════ */

header.main-header.sticky-header, 
header.header.sticky-header {
    background: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    height: 75px !important;
    display: flex !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    transition: all 0.4s ease !important;
}

header .header-flex, 
header .nav-container,
header .header-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
    height: 100% !important;
}

nav.desktop-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
}

nav.desktop-nav ul {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    gap: 35px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

nav.desktop-nav li {
    display: flex !important;
    align-items: center !important;
}

nav.desktop-nav a {
    color: #1A1A1A !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: 0.3s !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px !important;
}

nav.desktop-nav a:hover {
    color: #0B5D3B !important;
}

/* ══ RESPONSIVE LOGO LOGIC ══ */
.logo-text {
    display: inline-block !important;
}

.logo-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 820px) {
    .logo-text {
        display: none !important;
    }
    .logo-icon {
        display: flex !important;
    }
}


.logo, .logo a {
    flex-shrink: 0 !important;
    min-width: 300px !important;
    display: flex !important;
    align-items: center !important;
}

.header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 20px !important;
    min-width: 300px !important;
    flex-shrink: 0 !important;
}

.header-actions .btn {
    white-space: nowrap !important;
}

@media (max-width: 900px) {
    .nav-cta {
        display: none !important;
    }
}


@media (max-width: 900px) {
    header.main-header.sticky-header,
    header.header.sticky-header {
        height: 64px !important;
        padding: 0 10px !important;
    }
    
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        width: 45px;
        height: 45px;
        align-items: center;
        justify-content: center;
        background: var(--off-white);
        border: none;
        border-radius: 10px;
        color: var(--graphite);
        font-size: 1.4rem;
        cursor: pointer;
        z-index: 10001;
        transition: 0.3s;
    }

    .mobile-menu-toggle:active {
        transform: scale(0.9);
    }

    /* Standardized Mobile Drawer */
    .mobile-nav-tray {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: var(--black-premium, #0B0E14);
        z-index: 10000;
        padding: 120px 40px 60px;
        box-shadow: -20px 0 60px rgba(0,0,0,0.5);
        transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        gap: 32px;
        border-left: 1px solid rgba(255,255,255,0.05);
    }

    .mobile-nav-tray.active {
        right: 0;
    }

    .mobile-nav-link {
        font-size: 1.8rem;
        font-weight: 900;
        color: white;
        text-decoration: none;
        letter-spacing: -1px;
        transition: 0.3s;
    }

    .mobile-nav-link:active {
        color: var(--accent-gold);
    }

    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 9999;
        display: none;
    }

    .mobile-nav-overlay.active {
        display: block;
    }

    /* Hamburger Animation (Optional but premium) */
    .mobile-menu-toggle i {
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-toggle.active i {
        transform: rotate(90deg);
    }
}

.mobile-nav-tray .btn-premium {
    background: var(--authority-green) !important;
    color: white !important;
    font-weight: 800 !important;
    padding: 24px !important;
    border-radius: 16px !important;
    width: 100% !important;
    text-align: center !important;
    text-decoration: none !important;
    margin-top: auto !important;
    font-size: 1.2rem !important;
}
