/* =========================================================
   responsive.css — breakpoints (load last so it overrides)
   ========================================================= */
@media (max-width: 900px) {
    section { padding: 4.5rem 0; }
    .hero { padding-bottom: 4rem; }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    .container { padding: 0 1.4rem; }
    section > .container > h2, section > h2 { font-size: 2rem; margin-bottom: 2rem; }

    /* keep the last section clear of the floating book bar */
    body { padding-bottom: 6.75rem; }

    /* ----- Hamburger menu · full-screen charcoal editorial panel ----- */
    .hamburger { display: block; }
    /* logo + hamburger sit inside the header's stacking context alongside the
       menu; lift them above it so both stay visible/tappable while it's open */
    .nav-logo, .hamburger { position: relative; z-index: 991; }
    /* while the menu is open the header floats over a dark panel — clear its
       background and flip the logo + burger lines to cream for contrast */
    body.nav-open .main-header { background: transparent; border-bottom-color: transparent; }
    body.nav-open .nav-logo { color: var(--paper); }
    body.nav-open .hamburger .line { background-color: var(--paper); }

    .nav-links {
        counter-reset: nav;
        position: fixed; inset: 0;
        background: var(--charcoal);               /* dramatic dark panel, high contrast */
        display: flex; flex-direction: column; justify-content: center; align-items: stretch;
        gap: 0; padding: 6rem 1.6rem 2rem;         /* top pad clears the fixed header */
        transform: translateX(100%);
        transition: transform .5s cubic-bezier(.16,.84,.3,1);
        z-index: 990;                              /* below header(1000) so logo + X stay visible */
        pointer-events: none;
    }
    .nav-links.nav-active { transform: translateX(0); pointer-events: auto; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: flex; align-items: baseline; gap: 1.1rem;
        width: 100%; padding: 1.15rem 0.2rem;
        border: none; border-bottom: 1px solid rgba(250,247,241,0.14); border-radius: 0;
        background: none; text-align: left;
        font-family: var(--font-heading); font-weight: 700;
        font-size: clamp(1.7rem, 8vw, 2.2rem); letter-spacing: -0.01em;
        color: var(--paper);                       /* cream on charcoal ≈ 14:1 */
        transition: color .25s ease, padding-left .25s ease;
    }
    .nav-links li:last-child a { border-bottom: none; }
    .nav-links a::before {
        content: "0" counter(nav); counter-increment: nav;
        font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
        letter-spacing: 0.12em; color: var(--gold-soft);
        align-self: center; min-width: 1.5rem;
    }
    .nav-links a:hover, .nav-links a:active { color: var(--gold-soft); background: none; padding-left: 0.6rem; }

    /* ----- Services · editorial image-forward card (photo left, text link CTA) ----- */
    .svc-list { border-top: none; max-width: none; }
    .svc-row {
        display: grid;
        grid-template-columns: 118px 1fr;
        grid-template-rows: auto auto 1fr;
        gap: 0; padding: 0; margin-bottom: 0.9rem; min-height: 158px;
        background: var(--paper-2);
        border: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
        border-radius: 14px; overflow: hidden;
        box-shadow: 0 6px 18px rgba(34,29,24,0.05);
        transition: box-shadow .25s ease;
    }
    .svc-row::before { content: none; }              /* drop the desktop hover accent bar */
    .svc-row:active { border-color: var(--gold); box-shadow: 0 10px 24px rgba(34,29,24,0.1); }
    .svc-index, .svc-row .svc-arrow { display: none; }
    .svc-thumb {
        grid-column: 1; grid-row: 1 / -1;
        width: 118px; height: 100%; border-radius: 0;
        filter: grayscale(0.12) contrast(1.03);
    }
    .svc-body {
        grid-column: 2; grid-row: 1;
        display: flex; flex-direction: column-reverse; gap: 0.3rem;   /* meta becomes the eyebrow above the name */
        padding: 1.05rem 1.15rem 0;
    }
    .svc-name { font-size: 1.18rem; line-height: 1.12; }
    .svc-meta { font-size: 0.62rem; }
    .svc-price { grid-column: 2; grid-row: 2; padding: 0.3rem 1.15rem 0; font-size: 1.3rem; }
    .svc-cta {
        grid-column: 2; grid-row: 3; align-self: end; justify-self: start;
        display: inline-flex; align-items: center; gap: 0.45rem; width: auto;
        margin: 0.55rem 1.15rem 1.1rem; padding-bottom: 0.2rem;
        background: none; color: var(--ink);
        border: none; border-bottom: 1.5px solid var(--gold); border-radius: 0;
        font-family: var(--font-body); font-weight: 600;
        font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
        transition: gap .2s ease, color .2s ease;
    }
    .svc-row:active .svc-cta { color: var(--gold); gap: 0.75rem; }
    .svc-browse { border-radius: 12px; border: 1px dashed var(--rule); padding: 1.2rem 1.15rem; margin-top: 0.25rem; }
    .svc-browse .svc-arrow { display: inline; }

    /* ----- Floating booking CTA ----- */
    .mobile-book {
        display: flex; flex-direction: column; gap: 0.4rem; align-items: stretch;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
        padding: 0.7rem 1.1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
        background: rgba(242,237,228,0.92);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--rule);
        transition: transform .3s ease, opacity .3s ease;
    }
    .mobile-book__hint {
        font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
        color: var(--ink-45); font-weight: 600; text-align: center;
    }
    .mobile-book__btn {
        display: flex; align-items: center; justify-content: center; gap: 0.5rem;
        padding: 0.95rem; text-decoration: none;
        background: var(--gold); color: #fff;
        border: 1px solid var(--gold); border-radius: 6px;
        font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.03em;
        box-shadow: 0 10px 26px rgba(177,137,75,0.32);
        transition: background .25s ease;
    }
    .mobile-book__btn:active { background: var(--charcoal); border-color: var(--charcoal); }
    /* tuck the bar away while a full-screen surface is open */
    body.booking-open .mobile-book,
    body.nav-open .mobile-book { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.1rem; }
    :root { --bubble-size: 130px; }
    .booking-overlay { padding: 0; }
    .booking-modal { width: 100vw; max-width: 100vw; height: 100%; max-height: 100vh; border-radius: 0; }
    .time-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-overline { font-size: 0.66rem; letter-spacing: 0.16em; }
}
