/* ============================================
   NAV.CSS - Header & Navigation
   ============================================ */

/* ---------- HEADER & NAVIGATION ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.site-header.sticky {
    background: rgba(10, 25, 41, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo a {
    display: block;
    text-decoration: none;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--white-pure);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.logo-text .gold {
    color: var(--gold-primary);
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray-400);
    display: block;
}

/* ---------- DESKTOP NAVIGATION ---------- */
.desktop-nav {
    display: block;
}

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

.desktop-nav > ul {
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-nav > ul > li {
    list-style: none;
}

.desktop-nav > ul > li > a {
    color: var(--white-pure);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
}

.desktop-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.desktop-nav > ul > li > a:hover::after,
.desktop-nav > ul > li.active > a::after {
    width: 100%;
}

.desktop-nav > ul > li > a i {
    font-size: 0.8rem;
    margin-left: 4px;
    color: var(--gold-primary);
}

/* Dropdown - Desktop */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--white-pure);
    border-radius: 12px;
    padding: 16px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.dropdown li {
    list-style: none;
}

.dropdown li a {
    display: block;
    padding: 10px 24px;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown li a:hover {
    background: var(--gray-100);
    color: var(--gold-primary);
    padding-left: 28px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ---------- MOBILE TOGGLE ---------- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--white-pure);
    transition: 0.3s ease;
    display: block;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--navy-deep);
    z-index: 100000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 30px 25px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}

.mobile-menu-wrapper.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-logo .logo-text {
    font-size: 1.4rem;
    color: var(--white-pure);
    text-decoration: none;
}

.mobile-close {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-pure);
    font-size: 1.4rem;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
}

.mobile-close:hover {
    background: var(--gold-primary);
    color: var(--navy-deep);
}

.mobile-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav ul li {
    margin-bottom: 16px;
    list-style: none;
}

.mobile-nav ul li a {
    display: block;
    padding: 12px 0;
    color: var(--white-pure);
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
}

.mobile-nav ul li.active > a {
    color: var(--gold-primary);
}

.has-submenu {
    position: relative;
}

.has-submenu .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.has-submenu .submenu-toggle i {
    transition: transform 0.3s ease;
}

.has-submenu .submenu {
    display: none;
    padding-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.has-submenu .submenu li {
    margin-bottom: 10px;
}

.has-submenu .submenu li a {
    font-size: 0.95rem;
    color: var(--gray-300);
    border-bottom: none;
    padding: 8px 0;
}

.mobile-menu-cta {
    margin-top: 30px;
}

.mobile-menu-cta .btn {
    width: 100%;
    text-align: center;
    display: block;
    text-decoration: none;
}

.mobile-menu-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.mobile-social {
    display: flex;
    gap: 20px;
}

.mobile-social a {
    color: var(--gray-400);
    font-size: 1.2rem;
    transition: 0.3s ease;
    text-decoration: none;
}

.mobile-social a:hover {
    color: var(--gold-primary);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 99990;
    display: none;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.mobile-overlay.active {
    display: block;
    pointer-events: auto;
}

/* ---------- CRITICAL MOBILE CLICK FIXES ---------- */
/* These ensure that clicks work properly inside the mobile menu */
.mobile-menu-wrapper,
.mobile-nav,
.mobile-nav ul,
.mobile-nav li,
.mobile-nav a,
.submenu-toggle,
.submenu,
.submenu li,
.submenu a {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.mobile-nav a,
.submenu-toggle,
.submenu a {
    display: block;
    position: relative;
    z-index: 100002;
}

.submenu {
    position: relative;
    z-index: 100001;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-deep);
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999;
    border: none;
    box-shadow: 0 5px 20px rgba(230,184,0,0.3);
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--white-pure);
    transform: translateY(-6px);
}

/* ---------- UTILITY CLASSES ---------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-gold {
    background: var(--gold-primary);
    color: var(--navy-deep);
    border: none;
    font-weight: 700;
}

.btn-gold:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230,184,0,0.3);
}

.btn-outline {
    background: transparent;
    border-color: var(--white-pure);
    color: var(--white-pure);
}

.btn-outline:hover {
    background: var(--white-pure);
    color: var(--navy-deep);
}

/* ---------- FIX FOR IOS ---------- */
.mobile-menu-wrapper,
.mobile-nav,
.submenu {
    -webkit-overflow-scrolling: touch;
}

/* ---------- ENSURE PROPER BOX SIZING ---------- */
* {
    box-sizing: border-box;
}