/* ═══════════════════════════════════════════════════════════════════════
 * Unified burger menu — identical on EVERY page (Figma Frame 1618873398).
 *
 * Closed : white header, dark "slingshot" logo, dark 2-line burger (=) icon.
 * Open   : full-screen WHITE overlay — logo top-left + ✕ top-right, vertical
 *          menu list with thin dividers, dark "Let's talk →" pill at bottom.
 *
 * Loaded globally + LAST (footer.php). Selectors use the two header IDs
 * (#homeSiteHeader #homeMenuToggle / #homeMobileMenu → specificity 2,0,0) so
 * they beat every per-page header rule (which use at most one ID) that
 * otherwise gave the toggle inconsistent sizes (48 / 40 / 32px). No markup
 * change: bars are the button's ::before/::after, flipping to ✕ via the
 * toggle's aria-expanded state (set by burger-menu.js).
 * ═══════════════════════════════════════════════════════════════════════ */

/* ── Toggle button: 2-bar burger → ✕ ─────────────────────────────────── */
#homeSiteHeader #homeMenuToggle.home-site-menu-toggle {
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #171727;
    cursor: pointer;
    flex: 0 0 auto;
    z-index: 1210;                  /* clickable above the overlay */
    -webkit-appearance: none;
    appearance: none;
}
#homeSiteHeader #homeMenuToggle.home-site-menu-toggle > span { /* hide "Menu" text */
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}
#homeSiteHeader #homeMenuToggle.home-site-menu-toggle::before,
#homeSiteHeader #homeMenuToggle.home-site-menu-toggle::after {
    content: '' !important;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease, background .2s ease;
}
#homeSiteHeader #homeMenuToggle.home-site-menu-toggle::before { transform: translate(-50%, -5px); }
#homeSiteHeader #homeMenuToggle.home-site-menu-toggle::after  { transform: translate(-50%,  5px); }
/* open → rotate the two bars into an ✕ (dark, on the white overlay) */
#homeSiteHeader #homeMenuToggle.home-site-menu-toggle[aria-expanded="true"] { color: #171727; }
#homeSiteHeader #homeMenuToggle.home-site-menu-toggle[aria-expanded="true"]::before { transform: translate(-50%, 0) rotate(45deg); }
#homeSiteHeader #homeMenuToggle.home-site-menu-toggle[aria-expanded="true"]::after  { transform: translate(-50%, 0) rotate(-45deg); }

/* ── Header while the menu is open: white base + logo/toggle stay on top ── */
#homeSiteHeader.home-site-header.is-menu-open {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* The overlay is a DOM child of the header; keep the logo above it so it
 * shows top-left (it's already dark on the white mobile header). */
#homeSiteHeader .home-site-logo {
    position: relative;
    z-index: 1210;
}

/* ── Full-screen overlay panel ───────────────────────────────────────── */
#homeSiteHeader #homeMobileMenu.home-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1150;                  /* below the logo/toggle (1210) */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 65px 0 0;              /* top clears the fixed header; sides on children */
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
#homeSiteHeader #homeMobileMenu.home-mobile-menu.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}
/* Light-grey rounded panel behind the secondary group (Work…Contact) + CTA.
 * --sl-menu-grey-top is set by burger-menu.js to the top of the 5th item so
 * the panel always begins exactly under "Product"; 58% is the pre-JS fallback. */
#homeSiteHeader #homeMobileMenu.home-mobile-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: var(--sl-menu-grey-top, 58%);
    background: #F3F2F8;
    border-radius: 0;               /* flat full-width band — NO rounded corners */
    z-index: 0;
    pointer-events: none;
}

/* ── Menu list with dividers ─────────────────────────────────────────── */
#homeSiteHeader #homeMobileMenu .home-mobile-menu-list {
    position: relative;             /* sit above the grey panel */
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}
#homeSiteHeader #homeMobileMenu .home-mobile-menu-list ul { display: none !important; }
#homeSiteHeader #homeMobileMenu .home-mobile-menu-list > li {
    margin: 0 24px;                 /* dividers + text inset from the edges */
    border-bottom: 1px solid #E4E1EE;
}
/* Kill stray pseudo-element dividers/spacers other menu CSS adds (they gave
 * one item ~11px extra height) — the only divider is the li border-bottom. */
#homeSiteHeader #homeMobileMenu .home-mobile-menu-list > li::before,
#homeSiteHeader #homeMobileMenu .home-mobile-menu-list > li::after,
#homeSiteHeader #homeMobileMenu .home-mobile-menu-list > li > a::before,
#homeSiteHeader #homeMobileMenu .home-mobile-menu-list > li > a::after {
    content: none !important;
    display: none !important;
}
#homeSiteHeader #homeMobileMenu .home-mobile-menu-list > li > a {
    display: block;
    width: 100%;
    padding: 19px 0;
    color: #171727 !important;
    font-family: var(--hp-font, 'Onest'), -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.01em;
    text-decoration: none;
    border-bottom: 0 !important;
}
#homeSiteHeader #homeMobileMenu .home-mobile-menu-list > li > a:hover { opacity: .65; }

/* ── "Let's talk" pill — bottom of the grey panel ────────────────────── */
#homeSiteHeader #homeMobileMenu .home-mobile-menu-cta {
    position: relative;             /* above the grey panel */
    z-index: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: auto 24px 24px !important;  /* push to bottom, 24px side+bottom insets */
    min-height: 56px;
    padding: 16px 24px !important;
    background: #171727 !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-family: var(--hp-font, 'Onest'), sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}
#homeSiteHeader #homeMobileMenu .home-mobile-menu-cta .home-button-label { color: #fff !important; }
#homeSiteHeader #homeMobileMenu .home-mobile-menu-cta svg,
#homeSiteHeader #homeMobileMenu .home-mobile-menu-cta svg * { stroke: #fff; fill: none; color: #fff; }

/* Lock background scroll while the menu is open */
body.sl-menu-open { overflow: hidden !important; }

/* Desktop safety: toggle stays hidden (per-page media queries) + overlay off */
@media (min-width: 1101px) {
    #homeSiteHeader #homeMobileMenu.home-mobile-menu { display: none !important; }
}
