/* ==========================================================================
   MASTER HEADER CSS
   Consolidated styles for Disclaimer Bar and Navigation Menu
   ========================================================================== */

/* ===== DISCLAIMER BAR ===== */
.disclaimer-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: rgba(26, 26, 26, 0.95);
    color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
}

@media (max-width: 480px) {
    .disclaimer-bar {
        font-size: 10px;
        line-height: 1.2;
    }
}

/* ===== MAIN NAVBAR ===== */
.navbar {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(0,0,0,0.95);
    border-bottom: 1px solid rgba(204,255,0,0.1);
    z-index: 99999;
}

.nav-container {
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    max-width: 1400px !important;
    height: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* ===== DESKTOP NAVIGATION ===== */
.desktop-nav-container {
    display: flex;
}

#nav-menu {
    display: flex !important;
    flex-direction: row !important;
    visibility: visible !important;
    opacity: 1 !important;
    list-style: none !important;
    margin: 0 0 0 20px !important;
    padding: 0 !important;
    position: static !important;
    gap: 10px !important;
}

#nav-menu li a {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 0 10px !important;
    display: inline-block !important;
    transition: color 0.3s ease !important;
    white-space: nowrap !important;
    font-size: 14px !important;
}

#nav-menu li a:hover,
#nav-menu li a.active {
    color: #ccff00 !important;
}

/* Hamburger toggle hidden on desktop */
#wefi-isolated-btn,
.mobile-menu-btn {
    display: none !important;
}

/* ===== MOBILE & TABLET NAVIGATION OVERRIDE ===== */
@media (max-width: 1280px) {
    /* Hide Desktop Container */
    .desktop-nav-container {
        display: none !important;
    }

    /* Show Mobile Menu Button */
    #wefi-isolated-btn,
    .mobile-menu-btn {
        display: flex !important;
    }

    /* Restyle Mobile Container */
    .mobile-nav-container {
        display: none; /* hidden until toggled by JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 20px 0;
        margin: 0;
        list-style: none;
        z-index: 99998;
        border-bottom: 2px solid var(--lime-green);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }

    .navbar {
        overflow: visible !important;
    }

    .mobile-nav-container.active {
        display: flex !important;
    }

    .mobile-nav-container li {
        text-align: center;
        padding: 12px 0;
    }

    .mobile-nav-container li a.mobile-nav-link {
        color: #ffffff;
        font-weight: 600;
        text-decoration: none;
        font-size: 16px;
        letter-spacing: 0.5px;
    }

    .mobile-nav-container li a.mobile-nav-link:hover,
    .mobile-nav-container li a.mobile-nav-link.active {
        color: var(--lime-green);
    }

    /* Global Mobile Overflow Fix */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ===== MOBILE LAYOUT HARDENING ===== */
/* Width Jiggle Fix — prevents horizontal overflow on all elements */
@media (max-width: 1023px) {
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Straitjacket Fix — force full-width layout containers */
    .hero,
    .ito-hero,
    .page-hero,
    .section,
    .trust-section,
    .founder-spotlight-section,
    .mini-faq,
    .footer {
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .container,
    .ito-hero-container,
    .section-container,
    .trust-container,
    .founder-spotlight-container,
    .footer-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Ghost Border Nuke — remove phantom borders on nav/header elements */
    nav,
    .navbar,
    .navbar *,
    header,
    header *,
    #menu-toggle,
    .mobile-nav-container {
        border-right: none !important;
        border-left: none !important;
        outline: none !important;
    }
}
