/* ==========================================================================
   LOVE UGANDA LUXURY & RESPONSIVE NAVIGATION SYSTEM 2026
   - Premium Glassmorphic Header
   - Zero-Overlap Desktop & Tablet Flow
   - High-Performance Mobile Slide-in Drawer with Concierge Actions
   - Full Accessibility (ARIA & Keyboard Support)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MAIN HEADER CONTAINER
   -------------------------------------------------------------------------- */
header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    min-height: 72px;
    background: linear-gradient(135deg, rgba(1, 35, 28, 0.96) 0%, rgba(0, 56, 46, 0.94) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 184, 44, 0.22);
    box-shadow: 0 4px 24px rgba(0, 20, 15, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem clamp(1rem, 3.5vw, 3rem);
    gap: 1rem;
    box-sizing: border-box;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Scrolled state subtle elevation */
header.header-scrolled {
    background: linear-gradient(135deg, rgba(1, 28, 22, 0.98) 0%, rgba(0, 45, 37, 0.98) 100%);
    box-shadow: 0 8px 32px rgba(0, 15, 11, 0.4);
    border-bottom: 1px solid rgba(229, 184, 44, 0.3);
}

/* --------------------------------------------------------------------------
   2. BRAND LOGO & BADGE
   -------------------------------------------------------------------------- */
header .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
}

header .logo img,
header .logo .site-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--secondary-color, #e5b82c);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

header .logo:hover img,
header .logo:hover .site-logo {
    transform: scale(1.06) rotate(3deg);
    border-color: #ffd54f;
}

header .logo .site-title,
header .logo h1 {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    white-space: nowrap;
}

header .logo .site-title::after {
    content: "LUXURY SAFARIS";
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--secondary-color, #e5b82c);
    margin-top: 2px;
    font-family: var(--font-sans, sans-serif);
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   3. DESKTOP NAVIGATION BAR (>= 1025px)
   -------------------------------------------------------------------------- */
header nav {
    display: flex;
    align-items: center;
    margin: 0 auto;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: clamp(0.2rem, 0.8vw, 0.6rem);
    align-items: center;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: list-item !important;
    position: relative;
}

header nav ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-sans, sans-serif);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.48rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

header nav ul li a:hover {
    color: #ffffff;
    background-color: rgba(229, 184, 44, 0.16);
    transform: translateY(-1px);
}

/* Active Link State */
header nav ul li.active a,
header nav ul li a.active {
    background: linear-gradient(135deg, rgba(229, 184, 44, 0.24) 0%, rgba(229, 184, 44, 0.12) 100%);
    color: var(--secondary-color, #e5b82c);
    font-weight: 700;
    border: 1px solid rgba(229, 184, 44, 0.4);
    box-shadow: 0 2px 10px rgba(229, 184, 44, 0.15);
}

/* Hide legacy 'More' toggle completely on desktop */
.more-toggle {
    display: none !important;
}

.more-item {
    display: list-item !important;
}

/* --------------------------------------------------------------------------
   4. HEADER ACTIONS & CALL-TO-ACTION (CTA)
   -------------------------------------------------------------------------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Luxury Primary CTA Button */
header .cta,
.header-actions .cta {
    background: linear-gradient(135deg, #e5b82c 0%, #d4af37 50%, #f59e0b 100%);
    color: #012b23 !important;
    padding: 0.58rem 1.35rem;
    border-radius: 999px;
    font-family: var(--font-sans, sans-serif);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(229, 184, 44, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

header .cta:hover,
header .cta:focus-visible,
.header-actions .cta:hover {
    background: linear-gradient(135deg, #ffd54f 0%, #f59e0b 100%);
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 184, 44, 0.48);
}

/* Header Back Button (Blog Pages / Detail Views) */
header .back-button,
.header-actions .back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.95rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

header .back-button:hover,
.header-actions .back-button:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(229, 184, 44, 0.4);
    transform: translateX(-2px);
}

/* --------------------------------------------------------------------------
   5. LUXURY HAMBURGER BUTTON (MOBILE / TABLET <= 1024px)
   -------------------------------------------------------------------------- */
.luxury-mobile-toggle,
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(229, 184, 44, 0.35);
    border-radius: 12px;
    color: #e5b82c;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1005;
}

.luxury-mobile-toggle:hover,
.luxury-mobile-toggle:focus-visible,
.hamburger:hover {
    background: rgba(229, 184, 44, 0.18);
    border-color: #ffd54f;
    outline: none;
}

/* Three-bar Animated Hamburger Icon */
.luxury-hamburger-bars {
    width: 22px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.luxury-hamburger-bars span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* Hamburger Morph into Close 'X' State */
.luxury-mobile-toggle.is-open .luxury-hamburger-bars span:nth-child(1),
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: #e5b82c;
}

.luxury-mobile-toggle.is-open .luxury-hamburger-bars span:nth-child(2),
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.luxury-mobile-toggle.is-open .luxury-hamburger-bars span:nth-child(3),
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: #e5b82c;
}

/* --------------------------------------------------------------------------
   6. LUXURY MOBILE NAVIGATION DRAWER & BACKDROP
   -------------------------------------------------------------------------- */
.luxury-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 15, 11, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.luxury-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.luxury-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #012b23 0%, #001f19 50%, #001410 100%);
    border-left: 1px solid rgba(229, 184, 44, 0.25);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0;
}

.luxury-mobile-drawer.is-open {
    transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(229, 184, 44, 0.15);
    background: rgba(0, 30, 24, 0.5);
}

.drawer-header .drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.drawer-header .drawer-brand img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color, #e5b82c);
}

.drawer-header .drawer-brand span {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e5b82c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-close-btn:hover {
    background: rgba(229, 184, 44, 0.2);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Drawer Navigation Links List */
.drawer-nav-list {
    list-style: none;
    padding: 1.25rem 1rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-grow: 1;
}

.drawer-nav-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-sans, sans-serif);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s ease;
    border: 1px solid transparent;
}

.drawer-nav-item a .nav-link-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.drawer-nav-item a .nav-icon {
    width: 22px;
    text-align: center;
    color: var(--secondary-color, #e5b82c);
    font-size: 1rem;
}

.drawer-nav-item a .nav-arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, color 0.2s ease;
}

.drawer-nav-item a:hover {
    background: rgba(229, 184, 44, 0.12);
    color: #ffffff;
    border-color: rgba(229, 184, 44, 0.2);
    transform: translateX(4px);
}

.drawer-nav-item a:hover .nav-arrow {
    transform: translateX(3px);
    color: #e5b82c;
}

/* Active Drawer Item */
.drawer-nav-item.active a,
.drawer-nav-item a.active {
    background: linear-gradient(135deg, rgba(229, 184, 44, 0.2) 0%, rgba(0, 77, 64, 0.3) 100%);
    color: var(--secondary-color, #e5b82c);
    font-weight: 700;
    border: 1px solid rgba(229, 184, 44, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.drawer-nav-item.active a .nav-arrow,
.drawer-nav-item a.active .nav-arrow {
    color: #e5b82c;
}

/* Drawer Footer & Concierge Strip */
.drawer-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(229, 184, 44, 0.15);
    background: rgba(0, 20, 16, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.drawer-concierge-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--secondary-color, #e5b82c);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.drawer-contact-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.drawer-contact-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.drawer-contact-chip.chip-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.35);
    color: #25d366;
}

.drawer-contact-chip:hover {
    background: rgba(229, 184, 44, 0.2);
    border-color: #e5b82c;
    color: #ffffff;
    transform: translateY(-1px);
}

.drawer-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #e5b82c 0%, #f59e0b 100%);
    color: #012b23 !important;
    border-radius: 12px;
    font-family: var(--font-sans, sans-serif);
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(229, 184, 44, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.25s ease;
}

.drawer-cta-btn:hover {
    background: linear-gradient(135deg, #ffd54f 0%, #d97706 100%);
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229, 184, 44, 0.5);
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE BREAKPOINTS (NO OVERLAPPING AT ANY WIDTH)
   -------------------------------------------------------------------------- */

/* Standard Desktop / Narrow Laptops (1025px to 1240px) */
@media (min-width: 1025px) and (max-width: 1240px) {
    header {
        padding: 0.7rem 1.5rem;
        gap: 0.6rem;
    }

    header nav ul {
        gap: 0.25rem;
    }

    header nav ul li a {
        font-size: 0.86rem;
        padding: 0.4rem 0.65rem;
    }

    header .cta,
    .header-actions .cta {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    header .logo .site-title,
    header .logo h1 {
        font-size: 1.25rem;
    }
}

/* Tablet & Mobile Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
    header {
        padding: 0.65rem 1.25rem;
        min-height: 64px;
        flex-wrap: nowrap !important;
    }

    /* Hide standard inline navigation bar */
    header nav {
        display: none !important;
    }

    /* Show the luxury hamburger toggle */
    .luxury-mobile-toggle,
    .hamburger {
        display: flex !important;
    }

    /* Adjust CTA for space optimization */
    header .cta,
    .header-actions .cta {
        padding: 0.48rem 1rem;
        font-size: 0.82rem;
    }

    header .logo img,
    header .logo .site-logo {
        width: 40px;
        height: 40px;
    }

    header .logo .site-title,
    header .logo h1 {
        font-size: 1.2rem;
    }

    header .logo .site-title::after {
        font-size: 0.52rem;
    }
}

/* Small Smartphone Screen (<= 480px) */
@media (max-width: 480px) {
    header {
        padding: 0.55rem 0.9rem;
        min-height: 60px;
        gap: 0.5rem;
    }

    header .logo {
        gap: 0.5rem;
    }

    header .logo img,
    header .logo .site-logo {
        width: 36px;
        height: 36px;
    }

    header .logo .site-title,
    header .logo h1 {
        font-size: 1.08rem;
    }

    header .logo .site-title::after {
        font-size: 0.48rem;
        letter-spacing: 0.14em;
    }

    /* Compact CTA on narrow phones */
    header .cta,
    .header-actions .cta {
        padding: 0.42rem 0.75rem;
        font-size: 0.78rem;
    }

    header .cta span.cta-text-full,
    .header-actions .cta span.cta-text-full {
        display: inline;
    }

    .header-actions .back-button {
        padding: 0.38rem 0.65rem;
        font-size: 0.78rem;
    }

    .luxury-mobile-toggle,
    .hamburger {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .luxury-hamburger-bars {
        width: 18px;
        height: 14px;
    }
}

/* Lock page scroll when mobile drawer is open */
body.nav-drawer-open {
    overflow: hidden !important;
    touch-action: none;
}
