/* ─── NAV ─── */
body > nav {
    position: fixed;
    top: 22px;
    left: 50%;
    width: min(1180px, calc(100vw - 56px));
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045)),
        rgba(5, 5, 7, 0.64);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 18px 70px rgba(0, 0, 0, 0.42);
}

.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo img {
    display: block;
    width: auto;
    height: 42px;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-links a {
    position: relative;
    z-index: 2;
    display: block;
    padding: 8px 13px;
    border-radius: 999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.66);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.42s var(--ease-luxe), background 0.42s var(--ease-luxe);
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.055);
}

/* ─── Services dropdown ─── */
.nav-services {
    position: relative;
}

.nav-services-trigger {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

.nav-services-chevron {
    width: 10px;
    height: 10px;
    transition: transform 0.34s var(--ease-luxe);
}

.nav-services:hover .nav-services-chevron,
.nav-services:focus-within .nav-services-chevron {
    transform: rotate(180deg);
}

.nav-services-panel {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    z-index: 50;
    width: min(360px, 82vw);
    padding: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
        rgba(6, 6, 9, 0.92);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 24px 70px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.3s var(--ease-luxe), transform 0.3s var(--ease-luxe), visibility 0s linear 0.3s;
}

@media (hover: hover) and (pointer: fine) {
    .nav-services:hover .nav-services-panel {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
        transition: opacity 0.3s var(--ease-luxe), transform 0.3s var(--ease-luxe), visibility 0s linear 0s;
    }
}

.nav-services:focus-within .nav-services-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity 0.3s var(--ease-luxe), transform 0.3s var(--ease-luxe), visibility 0s linear 0s;
}

.nav-services-item,
a.nav-services-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.28s var(--ease-luxe);
}

a.nav-services-item:hover {
    background: rgba(255, 255, 255, 0.055);
}

.nav-services-item.is-current {
    background: rgba(255, 255, 255, 0.035);
    cursor: default;
}

.nav-services-badge {
    display: block;
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--svc-accent, var(--blue));
    margin-top: 8px;
}

.nav-services-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nav-services-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
}

.nav-services-tag {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(29, 232, 181, 0.34);
    background: rgba(29, 232, 181, 0.06);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(29, 232, 181, 0.85);
}

.nav-services-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.44);
}

.nav-notch {
    position: absolute;
    left: 0;
    bottom: -5px;
    z-index: 1;
    width: 0;
    height: 11px;
    color: var(--pink);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 3px;
    transform: translate3d(0, 0, 0);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.2s ease;
    will-change: transform, width, opacity;
}

.nav-notch svg {
    display: block;
    width: 100%;
    height: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-badge {
    display: none;
    font-size: 9px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
}

.cta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 4px 5px 4px 15px;
    border: 1px solid rgba(192, 64, 230, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: transform 0.52s var(--ease-luxe), background 0.52s var(--ease-luxe), border-color 0.52s var(--ease-luxe);
}

.cta-circle {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, rgba(192, 64, 230, 0.95), rgba(79, 122, 244, 0.92));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.52s var(--ease-luxe);
}

@media (hover: hover) and (pointer: fine) {
    .cta:hover {
        background: rgba(255, 255, 255, 0.105);
        border-color: rgba(192, 64, 230, 0.5);
        transform: translateY(-1px);
    }
    .cta:hover .cta-circle { transform: translateX(2px) scale(1.05) rotate(5deg); }
}

.cta:active .cta-circle { transform: scale(0.9); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV — hamburger + fullscreen menu (≤740px only)
   Injected by scripts/mobile-nav.js. Desktop layout untouched.
═══════════════════════════════════════════════════════════════ */

/* hidden on desktop; the button only exists visually on mobile */
.nav-burger { display: none; }

/* fullscreen overlay is present in the DOM at all sizes but inert
   (hidden) until body.mnav-open is set, which can only happen on mobile
   where the burger is visible */
.mnav {
    position: fixed;
    inset: 0;
    z-index: 9700;
    display: flex;
    flex-direction: column;
    padding:
        calc(env(safe-area-inset-top, 0px) + 98px)
        clamp(24px, 7vw, 46px)
        calc(env(safe-area-inset-bottom, 0px) + 26px);
    background:
        radial-gradient(125% 78% at 100% 0%, rgba(192, 64, 230, 0.16), transparent 58%),
        radial-gradient(120% 80% at 0% 100%, rgba(79, 122, 244, 0.15), transparent 60%),
        rgba(5, 5, 8, 0.94);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.42s var(--ease-luxe), visibility 0s linear 0.42s;
}

body.mnav-open .mnav {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.42s var(--ease-luxe);
}

.mnav-links {
    display: flex;
    flex-direction: column;
}

.mnav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(25px, 7.4vw, 33px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #ffffff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-luxe), transform 0.5s var(--ease-luxe);
}

.mnav-group { display: flex; flex-direction: column; }
.mnav-group .mnav-group-head { border-bottom: none; padding-bottom: 8px; }

.mnav-sub {
    display: flex;
    flex-direction: column;
    padding: 2px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mnav-sub-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 2px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s var(--ease-luxe), transform 0.5s var(--ease-luxe), color 0.28s ease;
}

.mnav-sub-link.is-current { color: rgba(255, 255, 255, 0.42); }

.mnav-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--svc-accent, var(--blue));
}

/* staggered reveal once the menu opens */
body.mnav-open .mnav-link,
body.mnav-open .mnav-sub-link {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 42ms);
}

.mnav-foot {
    margin-top: auto;
    padding-top: 28px;
}

.mnav-cta.cta {
    width: 100%;
    min-height: 58px;
    justify-content: center;
    gap: 14px;
    padding: 6px 20px;
    font-size: 15px;
    border-color: rgba(192, 64, 230, 0.45);
    background: rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-luxe) 0.16s, transform 0.5s var(--ease-luxe) 0.16s;
}
body.mnav-open .mnav-cta.cta { opacity: 1; transform: none; }
.mnav-cta.cta .cta-circle { width: 38px; height: 38px; }

@media (max-width: 740px) {
    body > nav { padding-right: 7px; }

    /* the inline links + bar CTA move into the fullscreen menu.
       (kept here in nav.css so it applies on every page, incl. the
       service/legal pages that don't load sections-a.css) */
    .nav-links { display: none; }
    .nav-right { display: none; }

    .nav-burger {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        margin-left: auto;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.3s ease, border-color 0.3s ease;
    }

    .nav-burger span {
        display: block;
        width: 17px;
        height: 2px;
        border-radius: 2px;
        background: #ffffff;
        transition: transform 0.34s var(--ease-luxe), opacity 0.2s ease;
    }

    body.mnav-open .nav-burger {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.24);
    }
    body.mnav-open .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
    body.mnav-open .nav-burger span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

    /* keep the bar (and its burger/X) above the overlay */
    body.mnav-open > nav { z-index: 9750; }

    /* lock the page behind the menu */
    body.mnav-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .mnav,
    .mnav-link,
    .mnav-sub-link,
    .mnav-cta.cta,
    .nav-burger span { transition-duration: 0.001ms; }
    body.mnav-open .mnav-link,
    body.mnav-open .mnav-sub-link { transition-delay: 0ms; }
}
