/* ═══════════════════════════════════════════════════
   MOBILE NAV OVERLAY — Full screen, no drawer
   ═══════════════════════════════════════════════════ */

/* Hide old drawer overlay */
.eq-drawer-overlay { display: none !important; }

@media (max-width: 900px) {

    /* ── Hamburger ── */
    .eq-hamburger {
        display: flex !important;
        order: -1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px;
        margin-right: 10px;
        flex-shrink: 0;
        z-index: 1001;
    }
    .eq-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    .eq-hamburger.eq-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .eq-hamburger.eq-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .eq-hamburger.eq-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ── Brand ── */
    .eq-brand { margin-right: auto; }

    /* ── Hide desktop nav ── */
    .eq-nav-links-wrap {
        display: none !important;
    }

    /* ── Mobile nav overlay ── */
    #eq-mobile-nav-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 9999;
        background: #1C2E6E;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
    }
    #eq-mobile-nav-overlay.eq-mnav-open {
        display: flex;
    }

    /* ── Overlay header ── */
    .eq-mnav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        flex-shrink: 0;
    }
    .eq-mnav-logo {
        height: 34px;
        width: auto;
    }
    .eq-mnav-close {
        background: none;
        border: none;
        color: #fff;
        font-size: 26px;
        cursor: pointer;
        padding: 4px 8px;
        line-height: 1;
        opacity: 0.85;
    }
    .eq-mnav-close:hover { opacity: 1; }

    /* ── Nav list ── */
    .eq-mnav-list {
        list-style: none;
        margin: 0;
        padding: 8px 0 40px;
        flex: 1;
    }

    /* ── Top level item ── */
    .eq-mnav-item {
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .eq-mnav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px 20px;
        color: rgba(255,255,255,0.9);
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0.01em;
        cursor: pointer;
        transition: background 0.15s;
        -webkit-tap-highlight-color: transparent;
    }
    .eq-mnav-link:hover,
    .eq-mnav-link:active {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }
    .eq-mnav-link i.eq-mnav-icon {
        font-size: 18px;
        width: 22px;
        text-align: center;
        opacity: 0.85;
        flex-shrink: 0;
    }
    .eq-mnav-link span {
        flex: 1;
    }
    .eq-mnav-caret {
        font-size: 18px;
        transition: transform 0.25s ease;
        opacity: 0.7;
        flex-shrink: 0;
    }
    .eq-mnav-item.eq-mnav-active > .eq-mnav-link .eq-mnav-caret {
        transform: rotate(180deg);
        opacity: 1;
    }

    /* ── Submenu panel ── */
    .eq-mnav-sub {
        display: none;
        background: rgba(0,0,0,0.2);
        padding: 4px 0 8px;
    }
    .eq-mnav-item.eq-mnav-active > .eq-mnav-sub {
        display: block;
    }

    /* Section label */
    .eq-mnav-section-label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.4);
        padding: 14px 20px 4px 52px;
    }

    /* Sub links */
    .eq-mnav-sub-link {
        display: block;
        padding: 10px 20px 10px 52px;
        color: rgba(255,255,255,0.78);
        text-decoration: none;
        font-size: 14px;
        transition: background 0.15s, color 0.15s;
        -webkit-tap-highlight-color: transparent;
    }
    .eq-mnav-sub-link:hover,
    .eq-mnav-sub-link:active {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }

    /* Group title inside sub */
    .eq-mnav-group-title {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.4);
        padding: 12px 20px 4px 52px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .eq-mnav-group-title i {
        font-size: 13px;
    }

    /* ── Body lock when open ── */
    body.eq-mnav-lock {
        overflow: hidden !important;
    }

    /* ── Hide right side elements on mobile ── */
    .eq-nav-search,
    .eq-nav-notifications,
    .eq-nav-settings {
        display: none !important;
    }
}

/* Desktop: hide the overlay always */
@media (min-width: 901px) {
    #eq-mobile-nav-overlay { display: none !important; }
    .eq-hamburger { display: none !important; }
}
