﻿/* ============================================================
   MOBILE MENU — Full-screen overlay + Accordion Services
   Only activates below 1024px. Desktop menu is untouched.
   ============================================================ */

/* ── Always hidden on desktop — no matter what JS does ── */
.mob-overlay {
    display: none !important;
}

@media (max-width: 1024px) {

    /* ── Re-enable overlay only on mobile ── */
    .mob-overlay {
        display: flex !important;
        position: fixed;
        inset: 0;
        background: #f5f7fa;
        z-index: 10000;
        flex-direction: column;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.18, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

        .mob-overlay.mob-open {
            transform: translateY(0);
        }

    /* ── Hide the default Bootstrap collapse structure ── */
    #navbarNavDropdown {
        display: none !important;
    }

    /* ── Hamburger button cleanup ── */
    .navbar-toggler {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        padding: 4px 8px !important;
/*        z-index: 10001;*/
        position: relative;
    }

        .navbar-toggler i {
            color: #192455 !important;
            font-size: 32px !important;
        }

    /* ── Overlay header row (logo + close button) ── */
    .mob-overlay-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px 14px;
        border-bottom: 1px solid rgba(25, 36, 85, 0.1);
        flex-shrink: 0;
        background: #fff;
    }

        .mob-overlay-header img {
            height: 34px;
            /* keep original logo colors on white bg */
            filter: none;
        }

    .mob-close-btn {
        background: none;
        border: none;
        color: #192455;
        font-size: 36px;
        line-height: 1;
        padding: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

    /* ── Nav list inside overlay ── */
    .mob-nav-list {
        list-style: none;
        margin: 0;
        padding: 8px 0 80px;
        flex: 1;
    }

        .mob-nav-list > li {
            border-bottom: 1px solid rgba(25, 36, 85, 0.07);
        }

            /* Standard nav link */
            .mob-nav-list > li > a.mob-link,
            .mob-nav-list > li > button.mob-link {
                display: flex;
                align-items: center;
                gap: 12px;
                width: 100%;
                padding: 16px 24px;
                color: #192455;
                font-size: 18px;
                font-weight: 500;
                text-decoration: none;
                background: none;
                border: none;
                text-align: left;
                cursor: pointer;
                transition: background 0.2s;
            }

                .mob-nav-list > li > a.mob-link:hover,
                .mob-nav-list > li > button.mob-link:hover {
                    background: rgba(25, 36, 85, 0.05);
                    text-decoration: none;
                    color: #192455;
                }

                /* Icons — keep original colors (blue icons on light bg look great) */
                .mob-nav-list > li > a.mob-link img,
                .mob-nav-list > li > button.mob-link img {
                    width: 22px;
                    height: 22px;
                    object-fit: contain;
                    filter: none;
                    flex-shrink: 0;
                }

    /* Arrow icon for Services toggle */
    .mob-services-arrow {
        margin-left: auto;
        font-size: 20px;
        transition: transform 0.3s ease;
        color: rgba(25, 36, 85, 0.4);
    }

    .mob-services-btn.mob-active .mob-services-arrow {
        transform: rotate(180deg);
        color: #192455;
    }

    /* ── ACCORDION — Services ── */
    .mob-services-accordion {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(25, 36, 85, 0.04);
    }

        .mob-services-accordion.mob-acc-open {
            max-height: 2000px;
        }

    /* Service category row */
    .mob-cat-btn {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 14px 24px 14px 32px;
        background: none;
        border: none;
        border-bottom: 1px solid rgba(25, 36, 85, 0.06);
        color: #192455;
        font-size: 16px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
        transition: background 0.2s;
    }

        .mob-cat-btn:last-child {
            border-bottom: none;
        }

        .mob-cat-btn img {
            width: 20px;
            height: 20px;
            object-fit: contain;
            filter: none;
            flex-shrink: 0;
        }

    .mob-cat-arrow {
        margin-left: auto;
        font-size: 16px;
        color: rgba(25, 36, 85, 0.4);
        transition: transform 0.25s;
    }

    .mob-cat-btn.mob-cat-active {
        background: rgba(25, 36, 85, 0.06);
        color: #5773DD;
    }

        .mob-cat-btn.mob-cat-active .mob-cat-arrow {
            transform: rotate(90deg);
            color: #5773DD;
        }

    /* Sub-services list inside each category */
    .mob-subservice-list {
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        background: #fff;
    }

        .mob-subservice-list.mob-sub-open {
            max-height: 800px;
        }

        .mob-subservice-list li a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 24px 12px 52px;
            color: #192455;
            font-size: 15px;
            font-weight: 400;
            text-decoration: none;
            border-bottom: 1px solid rgba(25, 36, 85, 0.05);
            transition: background 0.15s, color 0.15s;
        }

        .mob-subservice-list li:last-child a {
            border-bottom: none;
        }

        .mob-subservice-list li a:hover {
            background: rgba(87, 115, 221, 0.07);
            color: #5773DD;
            text-decoration: none;
        }

        .mob-subservice-list li a img {
            width: 18px;
            height: 18px;
            object-fit: contain;
            filter: none;
            flex-shrink: 0;
        }

    /* ── Bottom social strip ── */
    .mob-overlay-footer {
        padding: 20px 24px;
        border-top: 1px solid rgba(25, 36, 85, 0.1);
        background: #fff;
        display: flex;
        align-items: center;
        gap: 18px;
        flex-shrink: 0;
    }

        .mob-overlay-footer a {
            color: rgba(25, 36, 85, 0.5);
            font-size: 22px;
            transition: color 0.2s;
        }

            .mob-overlay-footer a:hover {
                color: #192455;
                text-decoration: none;
            }

    /* ── Prevent body scroll when overlay is open ── */
    body.mob-menu-open {
        overflow: hidden;
    }

        /* ── Hide hamburger when overlay is open ── */
        body.mob-menu-open .navbar-toggler {
            visibility: hidden;
            pointer-events: none;
        }

    /* ── Earn With Us badge ── */
    .mob-earn-badge {
        background: #192455;
        color: #fff !important;
        border-radius: 4px;
        padding: 2px 8px;
        font-size: 12px;
        font-weight: 600;
        margin-left: auto;
        white-space: nowrap;
    }
}
