/* ================================================================
   MOBILE NAV — Full-screen drawer with search, accordion services,
   contact info and social icons
   ================================================================ */

/* ---- Hamburger button ---- */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 7px;
    cursor: pointer;
    padding: 0;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.nav-burger:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.65);
}

.nav-burger:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.burger-bar {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
                opacity 0.2s ease,
                width 0.25s ease;
    transform-origin: center;
}

.nav-burger[aria-expanded="true"] .burger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(2) { opacity: 0; width: 0; }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop: hide burger li */
@media (min-width: 992px) { li.nav-burger-wrapper { display: none; } }

@media (max-width: 991px) {
    .nav-burger { display: flex; }
    /* Hide ALL nav items except the burger button itself */
    .nav-item-wrapper li:not(.nav-burger-wrapper) { display: none !important; }
    .svg-img.burger { display: none !important; }

    /* Align burger li to top of grid cell so it tracks the logo's top edge */
    li.nav-burger-wrapper {
        display: flex;
        align-items: flex-start;
        align-self: flex-start;
    }
}

/* Kill old Webflow mobile menu */
.burger-menu-wrapper { display: none !important; }

/* ---- Hamburger: dark colours after scrolling past hero ---- */
.nav-wrapper.is-scrolled .nav-burger {
    border-color: rgba(0, 61, 130, 0.45);
    color: #003d82;
    background: rgba(255, 255, 255, 0.9);
}

.nav-wrapper.is-scrolled .nav-burger:hover {
    background: rgba(0, 61, 130, 0.08);
    border-color: #003d82;
}

.nav-wrapper.is-scrolled .nav-burger:focus-visible {
    outline-color: #003d82;
}

/* ================================================================
   FULL-SCREEN OVERLAY
   ================================================================ */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 8500;
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav.open {
    visibility: visible;
    pointer-events: auto;
}

/* No separate backdrop — full screen panel IS the overlay */
.mobile-nav-backdrop { display: none; }

/* Full-screen panel slides in from right */
.mobile-nav-inner {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
}

.mobile-nav.open .mobile-nav-inner {
    transform: translateX(0);
}

/* ================================================================
   HEADER — dark, compact
   ================================================================ */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.1rem;
    background: #0b1726;
    flex-shrink: 0;
}

.mobile-nav-logo img {
    height: 24px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.mobile-nav-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.mobile-nav-close:hover { background: rgba(255,255,255,0.15); }
.mobile-nav-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ================================================================
   SEARCH BAR
   ================================================================ */
.mobile-nav-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.1rem;
    background: #f4f6fb;
    border-bottom: 1px solid #e8ecf5;
    flex-shrink: 0;
}

.mobile-nav-search-icon {
    color: #8f9ab7;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.mobile-nav-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #0b1726;
    padding: 0;
}

.mobile-nav-search input::placeholder {
    color: #a0aabe;
}

.mobile-nav-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #a0aabe;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    display: none;
    flex-shrink: 0;
}

.mobile-nav-search-clear.visible { display: block; }

/* No results state */
.mobile-nav-no-results {
    display: none;
    padding: 1.5rem 1.1rem;
    color: #8f9ab7;
    font-size: 0.82rem;
    font-family: 'Red Hat Display', sans-serif;
    text-align: center;
}

.mobile-nav-no-results.visible { display: block; }

/* ================================================================
   SCROLLABLE CONTENT AREA
   ================================================================ */
.mobile-nav-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* ================================================================
   SERVICE CATEGORIES — inline accordion
   ================================================================ */
.mobile-services-section {
    border-bottom: 1px solid #e8ecf5;
}

/* Category row */
.mobile-cat-group { border-bottom: 1px solid #edf0f8; }
.mobile-cat-group:last-child { border-bottom: none; }

.mobile-cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: #0b1726;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
    letter-spacing: 0.01em;
}

.mobile-cat-btn:hover { background: #f3f7ff; color: #003d82; }
.mobile-cat-btn:focus-visible { outline: 2px solid #003d82; outline-offset: -2px; }

/* When group is open, button gets same bg as links — removes visual gap between header and links */
.mobile-cat-group.open .mobile-cat-btn {
    background: #f7f9ff;
    color: #003d82;
}

/* During search: hide groups with zero matching results */
.mobile-cat-group.search-empty {
    display: none;
}

/* + / × icon */
.mobile-cat-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf2ff;
    color: #003d82;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s ease;
}

.mobile-cat-group.open .mobile-cat-icon {
    transform: rotate(45deg);
    background: #003d82;
    color: #fff;
}

/* Links list */
.mobile-cat-links {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
    background: #f7f9ff;
}

.mobile-cat-group.open .mobile-cat-links { max-height: 1200px; }

.mobile-cat-links li { display: block; }

/* Hidden by search filter */
.mobile-cat-links li.search-hidden { display: none; }

.mobile-cat-links li a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.1rem 0.65rem 1.3rem;
    color: #2a3452;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: 'Red Hat Display', sans-serif;
    text-decoration: none;
    border-bottom: 1px solid #edf0f8;
    transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
}

.mobile-cat-links li:last-child a { border-bottom: none; }

.mobile-cat-links li a::before {
    content: '›';
    color: #003d82;
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.mobile-cat-links li a:hover {
    color: #003d82;
    background: #edf2ff;
    padding-left: 1.5rem;
}

.mobile-cat-links li a:hover::before { opacity: 1; }

/* Search highlight */
.mobile-nav-highlight {
    background: #fff3b0;
    border-radius: 2px;
    padding: 0 1px;
}

/* ================================================================
   SECONDARY NAV LINKS
   ================================================================ */
.mobile-secondary-nav {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e8ecf5;
}

.mobile-secondary-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.78rem 1.1rem;
    color: #4a5568;
    text-decoration: none;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    border-bottom: 1px solid #f0f3f9;
    transition: background 0.15s ease, color 0.15s ease;
}

.mobile-secondary-link:last-child { border-bottom: none; }

.mobile-secondary-link::after {
    content: '›';
    color: #c0c8dc;
    font-size: 0.9rem;
}

.mobile-secondary-link:hover { background: #f3f7ff; color: #003d82; }

/* ================================================================
   FOOTER — contact + social + CTA
   ================================================================ */
.mobile-nav-footer {
    flex-shrink: 0;
    background: #fafbfe;
    border-top: 1px solid #e8ecf5;
}

/* Contact strip */
.mobile-nav-contact {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem 1.1rem 0.65rem;
    border-bottom: 1px solid #edf0f8;
}

.mobile-nav-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2a3452;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.mobile-nav-contact a:hover { color: #003d82; }

.mobile-nav-contact a i {
    width: 16px;
    text-align: center;
    color: #003d82;
    flex-shrink: 0;
    font-size: 0.82rem;
}

/* Social icons row */
.mobile-nav-socials {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.1rem 0.75rem;
    border-bottom: 1px solid #edf0f8;
}

.mobile-nav-socials-label {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #8f9ab7;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 0.25rem;
    white-space: nowrap;
}

.mobile-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #edf2ff;
    border: 1px solid #d8e3ff;
    color: #003d82;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.mobile-social-icon:hover {
    background: #003d82;
    color: #fff;
    transform: translateY(-2px);
}

/* CTA button */
.mobile-nav-cta {
    padding: 0.75rem 1.1rem 1rem;
}

.mobile-book-call {
    display: block;
    width: 100%;
    text-align: center;
    background: #003d82;
    color: #fff !important;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Red Hat Display', sans-serif;
    text-decoration: none !important;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 22px rgba(0,61,130,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-book-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,61,130,0.38);
}

/* Body scroll lock */
body.mobile-nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
