/* ========================================
   UNIVERSAL HEADER FIX - FORCE HOMEPAGE STYLE
   ======================================== */

/* HIDE all old navigation structures */
body nav.main-nav:not(.global-header .main-nav) {
    display: none !important;
}

body .nav-container {
    display: none !important;
}

body .nav-menu {
    display: none !important;
}

/* Force header to be horizontal flex layout */
body header.global-header,
body .global-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: linear-gradient(180deg, rgba(6, 30, 18, 0.98) 0%, rgba(8, 40, 24, 0.96) 100%) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 217, 61, 0.12) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
}

/* Header must have flex container */
body header.global-header > *:first-child,
body .global-header > *:first-child {
    display: flex !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 22px 50px !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 40px !important;
    flex-wrap: nowrap !important;
}

/* If header doesn't have header-container, force it */
body header.global-header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

body header.global-header > a.logo-link {
    position: absolute !important;
    left: 50px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Header container proper structure */
.header-container {
    display: flex !important;
    max-width: 1600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 22px 50px !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 40px !important;
}

/* Logo section */
.header-logo,
.header-logo a,
.logo-link {
    display: inline-flex !important;
    align-items: center !important;
    height: 85px !important;
}

.header-logo img,
.logo-link img,
img.header-logo,
.logo img {
    height: 85px !important;
    width: auto !important;
    filter: brightness(1.15) contrast(1.05) !important;
}

/* Main navigation - MUST BE HORIZONTAL */
.global-header .main-nav,
.header-container .main-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 32px !important;
    flex: 1 !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Navigation links */
.global-header .main-nav a,
.global-header .main-nav .nav-link,
.header-container .main-nav a {
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
    padding: 12px 4px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

/* Mega menu container */
.nav-item-mega {
    display: inline-flex !important;
    position: relative !important;
}

.mega-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Contact button */
.header-cta {
    padding: 13px 32px !important;
    background: linear-gradient(135deg, #ffd93d 0%, #ffeb3b 100%) !important;
    color: #082818 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    border-radius: 50px !important;
    white-space: nowrap !important;
    box-shadow: 0 6px 20px rgba(255, 217, 61, 0.35) !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    display: inline-block !important;
}

/* Body padding for fixed header */
body {
    padding-top: 130px !important;
}

/* Mobile toggle */
.mobile-toggle {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block !important;
    }
    
    .main-nav {
        display: none !important;
    }
}
