/* =============================================
   Mobile Navigation
   Only active on screens <= 768px
   ============================================= */

/* Hamburger - hidden on desktop */
.mn-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1010;
}
.mn-hamburger svg {
    width: 24px;
    height: 24px;
    stroke: #002e5b;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Overlay */
.mn-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mn-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Drawer */
.mn-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
}
.mn-drawer.open {
    transform: translateX(0);
}

/* Close button */
.mn-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1;
}
.mn-close svg {
    width: 22px;
    height: 22px;
    stroke: #002e5b;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
.mn-close:hover svg { stroke: #104CBA; }

/* Menu items */
.mn-menu {
    padding: 60px 24px 30px;
    list-style: none;
    margin: 0;
}
.mn-menu a {
    display: block;
    padding: 13px 0;
    color: #002e5b;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    text-decoration: none;
    border-bottom: 1px solid #eef2f7;
}
.mn-menu a:hover { color: #104CBA; }

/* Dropdown toggle */
.mn-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 13px 0;
    color: #002e5b;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    background: none;
    border: none;
    border-bottom: 1px solid #eef2f7;
    cursor: pointer;
    text-align: left;
}
.mn-dropdown-btn:hover { color: #104CBA; }
.mn-dropdown-btn svg {
    width: 14px;
    height: 14px;
    stroke: #002e5b;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s;
}
.mn-dropdown-btn.open svg { transform: rotate(180deg); }

/* Sub-menu */
.mn-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 16px;
}
.mn-sub.open { max-height: 300px; }
.mn-sub a {
    font-size: 15px;
    color: #555;
    padding: 10px 0;
}

/* CTA */
.mn-cta {
    display: block;
    margin: 24px 0 0;
    padding: 14px 20px !important;
    background: #188bf6 !important;
    color: #fff !important;
    text-align: center;
    border-radius: 10px;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none !important;
}
.mn-cta:hover { background: #104CBA !important; color: #fff !important; }

/* Homepage mobile header bar */
.mn-home-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    position: relative;
    z-index: 10;
}
.mn-home-bar img {
    width: 140px;
    height: auto;
}
.mn-home-bar .mn-hamburger svg {
    stroke: #fff;
}

/* === Mobile breakpoint === */
@media (max-width: 768px) {
    /* Show hamburger */
    .mn-hamburger { display: block; }

    /* Clean pages: hide desktop nav */
    .site-header .nav-links,
    .site-header .header-cta,
    .clean-header .nav-links,
    .clean-header .header-cta {
        display: none !important;
    }

    /* Builder pages: hide nav + CTA columns */
    .col-de-nTsDs8w,
    .col-8DwneHOmjE {
        display: none !important;
    }

    /* Builder pages: row layout for logo + hamburger */
    #row-9xagUhKtWB > .inner {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    #col-QUTANqrn__ {
        width: auto !important;
        flex: 1 !important;
    }
    /* Builder logo: left-align, match contact-us size */
    #col-QUTANqrn__ .inner {
        width: auto !important;
        padding: 10px 10px 10px 10px !important;
    }
    .cimage-EhTNqsPR-O {
        text-align: left !important;
        padding: 0 !important;
    }
    .image-EhTNqsPR-O .image-container img {
        width: 140px !important;
    }

    /* Hide builder's own mobile nav popup entirely */
    [id^="nav-menu-popup"] {
        display: none !important;
    }

    /* === Homepage specific === */
    /* Show our mobile header bar */
    .mn-home-bar {
        display: flex !important;
    }
    /* Hide all builder nav rows on homepage */
    #row-SdNgBv7AQl,
    #row-TguCnBKueRW,
    .col-cNpB1Tms3c,
    .nav-menu-mobile,
    #nav-menu-03_O_evEWc {
        display: none !important;
    }
}
