.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--input-bg, rgba(255, 255, 255, 0.04));
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-cta .cta-short {
    display: none;
}

.nav-mobile {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 199;
    padding: calc(var(--header-height, 72px) + 0.5rem) 1rem 1rem;
    background: rgba(5, 5, 8, 0.55);
    backdrop-filter: blur(12px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
}

.nav-mobile:not([hidden]) {
    pointer-events: auto;
}

.nav-mobile-panel {
    max-width: 420px;
    margin: 0 auto;
    padding: 0.5rem;
    border-radius: 20px;
    background: rgba(10, 10, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 0 0 1px rgba(109, 143, 255, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(24px) saturate(1.5);
}

.nav-mobile[hidden] {
    display: none !important;
}

.nav-mobile-inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0 1.5rem;
}

.nav-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0.75rem 0.85rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-mobile-link:hover {
    background: rgba(255, 255, 255, 0.04);
}

.nav-mobile-link[aria-current="page"] {
    color: var(--accent);
    background: rgba(109, 143, 255, 0.1);
    border-color: rgba(109, 143, 255, 0.2);
}

.nav-mobile-link svg {
    opacity: 0.35;
}

.nav-mobile-cta {
    margin-top: 1rem;
    width: 100%;
    min-height: 48px;
}

body.nav-open {
    overflow: hidden;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .container {
        width: min(var(--max), calc(100% - 1.25rem));
        max-width: 100%;
    }

    .site-header {
        width: 100%;
        max-width: 100vw;
        padding: calc(0.65rem + env(safe-area-inset-top, 0)) 0.75rem 0;
        overflow: visible;
    }

    .site-header-bar {
        width: 100%;
        border-radius: 18px;
        padding: 0.45rem 0.5rem 0.45rem 0.85rem;
    }

    .site-header-inner {
        gap: 0.5rem;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .nav-desktop {
        display: none !important;
    }

    .nav-toggle {
        display: flex;
    }

    .header-actions {
        flex-shrink: 0;
        gap: 0.4rem;
        margin-left: auto;
    }

    .header-cta {
        display: none;
    }

    .brand {
        flex-shrink: 0;
        min-width: 0;
        font-size: 1.65rem;
    }

    .page {
        padding: 5.5rem 0 2.5rem;
    }

    .page-head {
        margin-bottom: 1.75rem;
    }

    .page-head h1 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .page-head p {
        font-size: 0.98rem;
    }

    .button {
        min-height: 44px;
    }

    .slot-btn {
        min-height: 44px;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .cal-day {
        min-height: 40px;
        font-size: 0.85rem;
    }

    .site-footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0));
    }

    .site-footer .container {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 0.75rem !important;
    }

    .card {
        padding: 1.15rem;
    }

    .booking-layout,
    .contact-layout {
        gap: 1.15rem;
    }
}

.nav-mobile-group {
    border-bottom: 1px solid var(--line);
}

.nav-mobile-expand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.5rem;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}

.nav-mobile-expand svg {
    transition: transform 0.2s;
}

.nav-mobile-group.is-open .nav-mobile-expand svg {
    transform: rotate(180deg);
}

.nav-mobile-sub {
    display: flex;
    flex-direction: column;
    padding: 0 0 0.5rem 0.75rem;
}

.nav-mobile-sub[hidden] {
    display: none;
}

.nav-mobile-sublink {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0.5rem 0.5rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.nav-mobile-sublink:hover,
.nav-mobile-sublink.active {
    color: var(--accent);
}

@media (max-width: 480px) {
    .brand {
        font-size: 1.55rem;
    }

    .header-actions {
        gap: 0.4rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .nav-toggle {
        width: 36px;
        height: 36px;
    }
}

/* Homepage hero — mobile */
@media (max-width: 768px) {
    .home-hero {
        align-items: center;
        justify-content: center;
        min-height: 100svh;
        padding: calc(var(--header-height) + 0.5rem + env(safe-area-inset-top, 0)) 0 calc(1rem + env(safe-area-inset-bottom, 0));
    }

    .home-hero-spotlight {
        top: 38%;
        width: 120vw;
        height: 50vh;
    }

    .home-hero-layout {
        gap: 1rem;
        max-width: 100%;
    }

    .home-hero-eyebrow {
        margin-inline: auto;
        font-size: 0.68rem;
        max-width: 100%;
    }

    .home-hero-title {
        margin-bottom: 0;
        font-size: clamp(2rem, 8.5vw, 2.6rem);
    }

    .hero-prefix {
        margin-bottom: 0.3rem;
        font-size: 0.78em;
    }

    .hero-scroll {
        width: min(var(--hero-scroll-width, 100%), calc(100vw - 1.5rem));
        margin: 0.2rem auto 0.45rem;
    }

    .hero-scroll-word {
        font-size: 1em;
    }

    .hero-scroll-word:nth-child(4) {
        font-size: clamp(0.52em, 3.5vw, 0.62em);
        line-height: 1.2;
        padding: 0 0.15rem;
    }

    .home-hero-tagline {
        font-size: 0.92rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }

    .home-hero-lead {
        margin: 0 auto 0.85rem;
        max-width: 34ch;
        font-size: 0.94rem;
        line-height: 1.5;
        padding: 0 0.25rem;
    }

    .home-hero-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.55rem;
        padding: 0 0.25rem;
        width: 100%;
        max-width: 100%;
    }

    .home-hero-actions .button {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        min-height: 44px;
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .hero-media-progress {
        bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    }

    html:has(.home-hero) .site-footer {
        padding: 1.25rem 0 1.5rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 400px) {
    .home-hero-title {
        font-size: 1.9rem;
    }

    .hero-scroll {
        max-width: calc(100vw - 1.5rem);
    }

    .hero-scroll-word {
        font-size: 0.98em;
    }

    .hero-scroll-word:nth-child(4) {
        font-size: 0.54em;
    }

    .home-hero-lead {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .home-hero-actions .button {
        font-size: 0.76rem;
        padding: 0.6rem 0.5rem;
    }
}
