/* ==========================================================================
   Bodywork by JC — A.2 REV02 editorial (port of the approved mockup
   design/mockups/variant-a2-editorial-revision-02/index.html page layout).
   Locked brand tokens (ivory/stone/charcoal/olive/gold, Cabinet Grotesk +
   Satoshi). Page sections mirror the approved artifact; section 16 keeps the
   booking modal ("The Consultation Card") byte-equivalent to the ported
   implementation. Prices exist only inside the guided booking flow.
   1. Tokens
   ========================================================================== */

:root {
    /* palette (locked — approved brand) */
    --ivory: #F4F2EE;
    --stone: #EDEAE4;
    --charcoal: #1C1B18;
    --text-secondary: #52504A;
    --dark: #14130F;
    --dark-2: #1B1A15;
    --dark-text: #F4F2EE;
    --dark-text-secondary: rgba(244, 242, 238, 0.72);
    --olive: #5A6B4F;
    --olive-deep: #48563F;
    --gold: #C3A166;
    --flow-card-surface: #262218; /* A.2 guided-flow option-card surface (REV02 modal overrides it) */

    /* type */
    --font-display: 'Cabinet Grotesk', 'Avenir Next', 'Segoe UI', sans-serif;
    --font-body: 'Satoshi', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

    /* radius system: 16 cards/media, 12 controls */
    --radius-card: 16px;
    --radius-control: 12px;

    /* layout */
    --nav-h: 72px;
    --gutter: clamp(20px, 5vw, 48px);
    --container: 1200px;

    /* hairlines */
    --hairline: rgba(28, 27, 24, 0.12);
    --hairline-strong: rgba(28, 27, 24, 0.08);
    --hairline-dark: rgba(244, 242, 238, 0.22);

    /* easing (cinematic) */
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--charcoal);
    background-color: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

:focus-visible {
    outline: 3px solid var(--charcoal);
    outline-offset: 3px;
}

.on-dark :focus-visible {
    outline-color: var(--gold);
}

/* ==========================================================================
   3. Utilities
   ========================================================================== */

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(72px, 9vw, 120px);
}

.section-head {
    margin-bottom: clamp(36px, 5vw, 56px);
    max-width: 720px;
}

.lede {
    color: var(--text-secondary);
    max-width: 56ch;
    margin-top: 14px;
    font-size: 1.05rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--charcoal);
    color: var(--ivory);
    padding: 12px 20px;
    border-radius: 0 0 var(--radius-control) 0;
}

.skip-link:focus {
    left: 0;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--olive);
    margin-bottom: 14px;
}

.eyebrow-light {
    color: var(--gold);
}

.section-title {
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
    max-width: 22ch;
}

/* buttons (REV02) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    padding: 16px 28px;
    border: none;
    border-radius: var(--radius-control);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.btn-primary {
    background: var(--charcoal);
    color: var(--ivory);
}

.btn-primary:hover {
    background: var(--olive-deep);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-small {
    padding: 11px 20px;
    font-size: 0.92rem;
}

.link-quiet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
    padding-block: 16px;
}

.link-quiet .rule {
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s var(--ease-out);
}

.link-quiet:hover .rule {
    width: 48px;
}

#nav-sentinel {
    /* out of flow: an in-flow 1px sentinel pushed the whole page down 1px vs the
       approved reference; the IntersectionObserver only needs the element to exist */
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* ==========================================================================
   4. Header/nav (REV02: opaque ivory sticky bar, gold underline via
   aria-current set by the scrollspy in app.js) + mobile menu
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* REV02: opaque ivory sticky bar (sticky on .site-header — its containing block is
   <body>, so the bar stays pinned for the whole page; sticky on the inner .site-nav
   would only span the 72px header box and vanish after scrolling). The is-scrolled
   class (toggled by app.js on .site-nav) adds the hairline border. */
.site-nav {
    background: var(--ivory);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.site-nav.is-scrolled {
    border-bottom-color: var(--hairline);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--nav-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--charcoal);
    color: var(--ivory);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 10px;
    letter-spacing: 0.02em;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.brand-name em {
    font-style: italic;
    font-weight: 500;
    color: var(--olive);
}

.nav-links {
    display: flex;
    gap: clamp(18px, 3vw, 36px);
    list-style: none;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--charcoal);
    padding: 8px 2px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

/* scrollspy: persistent gold underline on the section currently in view */
.nav-links a[aria-current]::after {
    transform: scaleX(1);
}

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

.menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    padding: 15px 16px;
    cursor: pointer;
}

.menu-btn svg {
    display: block;
}

.mobile-panel {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 32px 64px rgba(28, 27, 24, 0.2);
    padding: 12px var(--gutter) 28px;
    z-index: 99;
}

.mobile-panel.open {
    display: block;
}

.mobile-panel ul {
    list-style: none;
    display: grid;
}

.mobile-panel a {
    display: block;
    padding: 16px 4px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--hairline);
}

.mobile-panel .btn {
    margin-top: 20px;
    width: 100%;
}

/* ==========================================================================
   5. Hero (REV02: ivory editorial, practitioner duet, fact strip,
   copy-first mobile composition)
   ========================================================================== */

.hero {
    padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 110px);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.7rem, 1.6rem + 4.6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero h1 .line {
    display: block;
    overflow: hidden;
}

.hero h1 .line-inner {
    display: block;
}

.hero-sub {
    color: var(--text-secondary);
    max-width: 52ch;
    margin-top: 22px;
    font-size: 1.08rem;
}

/* mobile-only hero variants — short sub + quiet in-home comfort cue (desktop unchanged) */
.hero-sub-mobile {
    display: none;
}

.hero-comfort {
    display: none;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-media {
    position: relative;
}

.hero-duet {
    display: grid;
    grid-template-columns: 1.12fr 0.95fr;
    gap: 14px;
    align-items: start;
}

.hero-media-frame {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 32px 64px rgba(28, 27, 24, 0.18);
}

.hero-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-frame-jasmine {
    aspect-ratio: 4 / 4.6;
    margin-top: 48px;
}

.hero-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: rgba(244, 242, 238, 0.92);
    backdrop-filter: blur(6px);
    color: var(--charcoal);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    padding: 6px 12px;
    border-radius: var(--radius-control);
}

.accent-rule {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 64px;
    height: 64px;
    border-top: 3px solid var(--gold);
    border-right: 3px solid var(--gold);
    border-radius: 0 var(--radius-card) 0 0;
}

.hero-fact {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    flex-wrap: wrap;
}

.hero-fact div strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-fact div span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (prefers-reduced-motion: no-preference) {
    .hero h1 .line-inner {
        animation: lineUp 1s var(--ease-out) both;
    }

    .hero h1 .line:nth-child(2) .line-inner {
        animation-delay: 0.12s;
    }

    .hero h1 .line:nth-child(3) .line-inner {
        animation-delay: 0.24s;
    }

    .hero-copy .eyebrow {
        animation: fadeUp 0.8s var(--ease-out) both;
    }

    .hero-sub {
        animation: fadeUp 0.9s var(--ease-out) 0.3s both;
    }

    .hero-actions {
        animation: fadeUp 0.9s var(--ease-out) 0.42s both;
    }

    .hero-comfort {
        animation: fadeUp 0.9s var(--ease-out) 0.48s both;
    }

    .hero-fact {
        animation: fadeUp 0.9s var(--ease-out) 0.54s both;
    }

    .hero-media {
        animation: fadeUp 1s var(--ease-out) 0.2s both;
    }
}

@keyframes lineUp {
    from { transform: translateY(110%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeUp {
    from { transform: translateY(22px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* tablet: tighten the duet so both frames end at/above the fold */
@media (max-width: 1024px) {
    .hero {
        padding-block: 48px clamp(64px, 8vw, 110px);
        min-height: calc(100dvh - var(--nav-h));
        display: flex;
        align-items: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero .container {
        width: 100%;
    }

    .hero-media {
        max-width: 400px;
    }

    .hero-sub {
        margin-top: 16px;
    }

    .hero-actions {
        margin-top: 24px;
    }

    .hero-fact {
        margin-top: 28px;
        padding-top: 16px;
    }

    .hero-media-frame {
        aspect-ratio: 4 / 4.6;
    }

    .hero-frame-jasmine {
        margin-top: 32px;
    }
}

@media (max-width: 400px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-fact {
        gap: 18px;
    }
}

/* mobile hero rebalance — copy-first: eyebrow → h1 → short sub → CTA → comfort cue → facts, portraits below */
@media (max-width: 640px) {
    .hero {
        min-height: 0;
        padding-block: 24px 28px;
    }

    .hero h1 {
        font-size: clamp(2rem, 1.55rem + 2.4vw, 2.2rem);
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .hero-copy .eyebrow {
        margin-bottom: 10px;
    }

    .hero-sub {
        display: none;
    }

    .hero-sub-mobile {
        display: block;
        font-size: 0.95rem;
        line-height: 1.45;
        margin-top: 8px;
    }

    .hero-actions {
        margin-top: 14px;
        gap: 10px;
    }

    .hero-actions .btn-primary {
        width: 100%;
    }

    .hero-comfort {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        font-size: 0.82rem;
        line-height: 1.4;
        color: var(--text-secondary);
        background: rgba(28, 27, 24, 0.04);
        border: 1px solid var(--hairline);
        border-radius: 999px;
        padding: 9px 14px;
        max-width: 100%;
    }

    .hero-fact {
        margin-top: 14px;
        padding-top: 12px;
        gap: 8px 16px;
    }

    .hero-fact strong {
        font-size: 1.05rem;
    }

    /* compact centered duet below the copy */
    .hero-media {
        max-width: 240px;
        margin-inline: auto;
    }

    .hero-duet {
        gap: 8px;
    }

    .hero-frame-jasmine {
        margin-top: 10px;
    }

    .hero-media-frame {
        aspect-ratio: 3 / 3.2;
    }
}

/* ==========================================================================
   6. Services — editorial index rows (REV02)
   ========================================================================== */

.services {
    background: var(--stone);
    --text-secondary: #4A4841;
}

.index-list {
    border-top: 1px solid var(--hairline);
}

.index-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.6fr) 56px;
    gap: clamp(14px, 2.5vw, 32px);
    align-items: center;
    padding: clamp(22px, 3vw, 34px) 0;
    border-bottom: 1px solid var(--hairline);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s var(--ease-out);
}

.index-row:hover {
    background: rgba(244, 242, 238, 0.7);
}

.index-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.06em;
}

.index-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
    letter-spacing: -0.02em;
}

.index-desc {
    color: var(--text-secondary);
    font-size: 0.97rem;
    max-width: 52ch;
}

.index-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    transition: transform 0.3s var(--ease-out), background-color 0.3s, color 0.3s;
}

.index-row:hover .index-arrow {
    background: var(--charcoal);
    color: var(--ivory);
    border-color: var(--charcoal);
    transform: translateX(4px);
}

/* quiet in-home "good to know" strip under the index */
.goodtoknow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    list-style: none;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--hairline);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.goodtoknow li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.goodtoknow li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

@media (max-width: 1024px) {
    .index-row {
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-areas: "num name" "num desc";
    }

    .index-num { grid-area: num; }
    .index-name { grid-area: name; }
    .index-desc { grid-area: desc; }
    .index-arrow { display: none; }
}

@media (max-width: 400px) {
    .index-row {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
        padding-inline: 0;
    }
}

/* ==========================================================================
   7. Practitioners — REV02 horizontal split cards + "Book with ..." intent
   ========================================================================== */

.pract-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: stretch;
}

.pract-card {
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    background: var(--ivory);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(28, 27, 24, 0.1);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.pract-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 56px rgba(28, 27, 24, 0.14);
}

.pract-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.pract-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.pract-card:hover .pract-media img {
    transform: scale(1.02);
}

/* Carlos sits high in his source photo — bias his practitioner-card crop toward the top
   so head + shoulders frame with headroom (hero duet keeps default center) */
.pract-media img.img-carlos {
    object-position: 50% 18%;
}

/* desktop split card only — release the fixed 4/5 aspect so the portrait fills the card
   height edge-to-edge with the body column (no blank band) */
@media (min-width: 1025px) {
    .pract-media {
        height: 100%;
        aspect-ratio: auto;
    }
}

.pract-body {
    padding: clamp(24px, 3vw, 36px);
}

.pract-body h3 {
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
}

.pract-role {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--olive);
    margin: 8px 0 14px;
}

.pract-body p:not(.pract-role) {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.badge {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.badge-live {
    background: rgba(90, 107, 79, 0.12);
    color: var(--olive-deep);
    box-shadow: inset 0 0 0 1px rgba(90, 107, 79, 0.35);
}

.pract-book {
    margin-top: 8px;
}

@media (max-width: 1024px) {
    .pract-grid {
        grid-template-columns: 1fr;
    }

    .pract-card {
        grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    }
}

@media (max-width: 640px) {
    /* split cards: media capped on top, body below */
    .pract-card {
        grid-template-columns: 1fr;
    }

    .pract-media {
        aspect-ratio: 4 / 3;
        max-height: 260px;
    }
}

/* ==========================================================================
   8. Quote band (olive)
   ========================================================================== */

.quote-band {
    background: var(--olive);
    color: var(--ivory);
    text-align: center;
}

.quote-band blockquote {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 26ch;
    margin-inline: auto;
}

.quote-band figcaption {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ivory);
}

/* ==========================================================================
   9. Method (stone ground, gold numerals)
   ========================================================================== */

.method {
    background: var(--stone);
    --text-secondary: #4A4841;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 48px);
}

.method-step {
    border-top: 2px solid var(--charcoal);
    padding-top: 22px;
}

.method-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem);
    color: var(--gold);
    line-height: 1;
}

.method-step h3 {
    font-size: 1.35rem;
    margin: 14px 0 10px;
}

.method-step p {
    color: var(--text-secondary);
    font-size: 0.97rem;
}

@media (max-width: 1024px) {
    .method-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   10. FAQ (REV02: sticky side heading on ivory, hairline list, circular chev)
   ========================================================================== */

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.faq-side {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

.faq-list {
    border-top: 1px solid var(--hairline);
}

.faq-item {
    border-bottom: 1px solid var(--hairline);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    list-style: none;
    cursor: pointer;
    padding: 22px 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--olive-deep);
}

.faq-chev {
    flex: none;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    transition: transform 0.3s var(--ease-out), background-color 0.3s, color 0.3s;
}

.faq-item[open] .faq-chev {
    transform: rotate(45deg);
    background: var(--charcoal);
    color: var(--ivory);
    border-color: var(--charcoal);
}

.faq-body {
    padding: 0 44px 24px 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
}

@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-side {
        position: static;
    }
}

/* ==========================================================================
   13. Booking (dark, embedded Tymeslot widget)
   ========================================================================== */

.booking {
    background: var(--dark);
    color: var(--dark-text);
    color-scheme: dark;
}

.booking .section-title {
    color: var(--dark-text);
    margin-bottom: 16px;
}

.booking-sub {
    color: var(--dark-text-secondary);
    max-width: 60ch;
    margin-bottom: clamp(36px, 5vw, 52px);
}

.booking-widget {
    max-width: 880px;
}

/* practitioner picker tabs */
.booking-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
}

.booking-tab {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--hairline-dark);
    background: transparent;
    color: var(--dark-text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.booking-tab:hover {
    color: var(--dark-text);
    border-color: var(--gold);
}

.booking-tab.is-active {
    background: var(--olive);
    border-color: var(--olive);
    color: var(--ivory);
}

.booking-widget iframe {
    width: 100%;
    border: 0;
    border-radius: var(--radius-control);
}

.booking :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.booking-phone {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    /* REV02 .booking-sub a decoration: quiet gold underline, solid gold on hover */
    border-bottom: 1px solid rgba(195, 161, 102, 0.5);
}

.booking-phone:hover {
    text-decoration: none;
    border-bottom-color: var(--gold);
}

/* ==========================================================================
   14. Footer (dark, REV02 layout)
   ========================================================================== */

.site-footer {
    background: var(--dark);
    color: var(--dark-text);
    border-top: 1px solid var(--hairline-dark);
    padding-block: 56px 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    padding-bottom: 36px;
    border-bottom: 1px solid var(--hairline-dark);
}

.footer-note {
    color: var(--dark-text-secondary);
    max-width: 40ch;
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-contact {
    list-style: none;
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.footer-contact a {
    display: inline-block;
    padding-block: 12px;
    color: var(--dark-text-secondary);
    text-decoration: none;
    transition: color 0.25s;
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-links {
    display: grid;
    gap: 12px;
    align-content: start;
}

.footer-links a {
    padding-block: 12px;
    color: var(--dark-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.25s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-copy {
    margin-top: 28px;
    color: var(--dark-text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 820px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   15. Responsive chrome (REV02) — mobile nav, menu visibility
   ========================================================================== */

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}

@media (max-width: 560px) {
    .nav-cta .btn {
        display: none;
    }
}

/* ==========================================================================
   16. Booking — A.2 REV02 "The Consultation Card"
   Guided flow (service -> length -> price -> practitioner) inside a native
   <dialog>, adapted from the approved mockup
   design/mockups/variant-a2-editorial-revision-02/index.html (sections 9b,
   11c/11d/11e + mobile fixes D5/D7). Flow logic and markup mirror the
   artifact; the real Tymeslot embeds render where the mockup showed its
   non-live placeholder. Selectors and cascade order kept identical so the
   computed styles match the approved artifact.
   ========================================================================== */

/* --- 16a. Booking entry panel (#booking) + shared button variants --- */
.booking .booking-sub {
    margin-bottom: 0;
}

.booking-entry {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 12px 28px;
    flex-wrap: wrap;
}

.booking-entry-note {
    color: var(--dark-text-secondary);
    font-size: 0.88rem;
    max-width: 44ch;
}

.btn-gold {
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
}

.btn-gold:hover {
    background: #b08d55;
}

.btn-ghost-dark {
    background: transparent;
    color: var(--dark-text);
    box-shadow: inset 0 0 0 1px var(--hairline-dark);
}

/* --- 16b. Guided flow base (dark A.2 skin; every flow element lives inside
       .booking-modal, where 16d re-skins it to the consultation card) --- */
.flow {
    margin-top: 36px;
    max-width: 760px;
    overflow-anchor: none; /* keep Chrome scroll-anchoring from fighting explicit step positioning */
}

.flow-progress {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.flow-steps {
    display: flex;
    gap: clamp(12px, 3vw, 28px);
    list-style: none;
    flex-wrap: wrap;
}

.flow-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-text-secondary);
}

.flow-steps li .flow-step-num {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--hairline-dark);
    font-size: 0.75rem;
}

.flow-steps li.is-current {
    color: var(--gold);
}

.flow-steps li.is-current .flow-step-num {
    border-color: var(--gold);
    color: var(--gold);
}

.flow-steps li.is-done {
    color: var(--dark-text);
}

.flow-steps li.is-done .flow-step-num {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.flow-bar {
    flex: 1;
    min-width: 120px;
    height: 3px;
    background: rgba(244, 242, 238, 0.14);
    border-radius: 99px;
    overflow: hidden;
}

.flow-bar span {
    display: block;
    height: 100%;
    width: 25%;
    background: var(--gold);
    transition: width 0.4s var(--ease-out);
}

.flow-opts-flow {
    border: none;
    padding: 0;
    margin: 0;
}

.flow-q {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--dark-text);
}

.flow-q:focus {
    outline: none;
}

.flow-opts {
    border: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0 24px;
    padding: 0;
}

.flow-opts.flow-opts-duration {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.flow-opt {
    position: relative;
    display: block;
    cursor: pointer;
}

.flow-opt input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.flow-opt input:focus {
    outline: none;
}

.flow-opt input:focus-visible + .flow-opt-card {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.flow-opt-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    background: var(--flow-card-surface);
    border: 1px solid rgba(244, 242, 238, 0.24);
    border-radius: var(--radius-control);
    padding: 20px 22px;
    transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

.flow-opt:hover .flow-opt-card {
    border-color: rgba(195, 161, 102, 0.6);
}

.flow-opt input:checked + .flow-opt-card {
    border-color: var(--gold);
    background: rgba(195, 161, 102, 0.14);
    box-shadow: inset 0 0 0 1px var(--gold);
}

/* selected marker: gold check disc — shape + glyph cue so selection never rests on color alone */
.flow-opt input:checked + .flow-opt-card::before {
    content: "✓" / "";
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.flow-opt-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    color: var(--dark-text);
}

.flow-opt-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(244, 242, 238, 0.8);
}

.flow-opts-duration .flow-opt-card {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}

.flow-opts-duration .flow-opt-name {
    font-size: 1rem;
}

.flow-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (prefers-reduced-motion: no-preference) {
    .flow-step:not([hidden]) {
        animation: flowIn 0.45s var(--ease-out) both;
    }

    @keyframes flowIn {
        from { opacity: 0; transform: translateY(12px); }
        to { opacity: 1; transform: none; }
    }
}

/* disabled CTA on the dark panel: muted gold outline fill keeps the label ~7:1 while clearly disabled */
.btn[disabled] {
    opacity: 1;
    background: rgba(195, 161, 102, 0.16);
    color: var(--gold);
    box-shadow: inset 0 0 0 1px rgba(195, 161, 102, 0.35);
    cursor: not-allowed;
}

.btn[disabled]:hover,
.btn[disabled]:active {
    transform: none;
    background: rgba(195, 161, 102, 0.16);
    color: var(--gold);
}

.flow-quote {
    background: var(--dark-2);
    border: 1px solid rgba(195, 161, 102, 0.45);
    border-radius: var(--radius-card);
    padding: clamp(20px, 3vw, 32px);
    margin: 20px 0 16px;
    max-width: 520px;
}

.flow-quote-what {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark-text);
}

.flow-quote-rows {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.flow-quote-rows > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--hairline-dark);
    padding-bottom: 10px;
}

.flow-quote-rows dt {
    color: var(--dark-text-secondary);
    font-size: 0.95rem;
}

.flow-quote-rows dd {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1.05rem;
    white-space: nowrap;
}

.flow-quote-rows .flow-total {
    border-bottom: none;
    padding-bottom: 0;
}

.flow-quote-rows .flow-total dt {
    color: var(--dark-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.flow-quote-rows .flow-total dd {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--gold);
}

.flow-note {
    font-size: 0.85rem;
    color: var(--dark-text-secondary);
    max-width: 52ch;
}

/* --- 16c. The dialog — desktop = centered paper overlay, <=820px = full-screen --- */
body.booking-modal-open {
    overflow: hidden;
}

.booking-modal {
    width: min(880px, calc(100% - 48px));
    max-height: min(880px, calc(100dvh - 64px));
    margin: auto;
    padding: 0;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    background: var(--ivory);
    color: var(--charcoal);
    box-shadow: 0 48px 120px rgba(20, 19, 15, 0.45),
                0 6px 24px rgba(20, 19, 15, 0.28),
                inset 0 0 0 1px rgba(28, 27, 24, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

/* flex column so .modal-body (flex:1, min-height:0) is the bounded scroll container —
   without it the dialog itself scrolls and the pinned stepper/action bars never stick */
.booking-modal[open] {
    display: flex;
    flex-direction: column;
}

.booking-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
}

/* REV02 paper grain — static turbulence tile at ~3%, never animated, never blocks clicks */
.booking-modal::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* REV02 gold corner rule — the hero .accent-rule motif carried into the dialog (decorative) */
.modal-corner {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 56px;
    height: 56px;
    pointer-events: none;
    border-top: 3px solid var(--gold);
    border-right: 3px solid var(--gold);
    border-radius: 0 12px 0 0;
}

.booking-modal::backdrop {
    background: rgba(20, 19, 15, 0.66);
}

/* REV02 head = stone band */
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(18px, 3vw, 26px) clamp(20px, 4vw, 36px);
    background: var(--stone);
    border-bottom: 1px solid var(--hairline);
}

.modal-title {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
    line-height: 1.1;
    color: var(--charcoal);
}

.modal-close {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--hairline);
    border-radius: 50%;
    background: transparent;
    color: var(--charcoal);
    cursor: pointer;
    transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.modal-close:hover {
    border-color: rgba(28, 27, 24, 0.45);
    background: rgba(28, 27, 24, 0.05);
    color: var(--charcoal);
}

.modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: clamp(20px, 4vw, 32px) clamp(20px, 4vw, 36px) 0;
}

/* the step actions pin to the modal bottom so the primary action is always reachable;
   sticky (not fixed) on desktop: once a step is fully scrolled the bar rests in flow */
.booking-modal .flow-actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    margin-inline: calc(-1 * clamp(20px, 4vw, 36px));
    padding: 14px clamp(20px, 4vw, 36px);
    background: var(--stone);
    border-top: 1px solid var(--hairline);
}

/* the stepper pins to the top of the modal body so progress stays visible while steps scroll */
.booking-modal .flow-progress {
    position: sticky;
    top: 0;
    z-index: 1;
    margin-bottom: 24px;
    padding-block: 14px;
    background: var(--stone);
    border-bottom: 1px solid var(--hairline);
}

.booking-modal .flow {
    margin-top: 0;
    max-width: none;
}

@media (prefers-reduced-motion: no-preference) {
    .booking-modal[open] {
        animation: modalIn 0.35s var(--ease-out);
    }

    .booking-modal[open]::backdrop {
        animation: backdropIn 0.35s var(--ease-out);
    }

    @keyframes modalIn {
        from { opacity: 0; transform: translateY(14px); }
        to { opacity: 1; transform: none; }
    }

    @keyframes backdropIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* --- 16d. REV02 consultation card — cards, stepper, ticket, light-ground controls --- */
/* ADAPTATION vs artifact: production's global ring is 2px olive; the artifact's
   computed in-modal ring is 3px olive-deep, stated here in full. */
.booking-modal :focus-visible {
    outline: 3px solid var(--olive-deep);
    outline-offset: 3px;
}

.booking-modal .flow-opt input:focus-visible + .flow-opt-card {
    outline-color: var(--olive-deep);
}

/* questions + price ticket */
.booking-modal .flow-q {
    color: var(--charcoal);
}

.booking-modal .flow-quote {
    background: var(--stone);
    border: 1px solid var(--hairline);
    max-width: 520px;
    margin: 20px 0 16px;
    padding: clamp(24px, 3vw, 32px);
    border-radius: var(--radius-card);
}

.booking-modal .flow-quote-what {
    color: var(--charcoal);
}

.booking-modal .flow-quote-rows > div {
    border-bottom-color: var(--hairline);
}

.booking-modal .flow-quote-rows dt {
    color: var(--text-secondary);
}

.booking-modal .flow-quote-rows dd {
    color: var(--charcoal);
}

.booking-modal .flow-quote-rows .flow-total {
    border-bottom: none;
    border-top: 2px solid var(--gold);
    margin-top: 4px;
    padding-top: 14px;
}

.booking-modal .flow-quote-rows .flow-total dt {
    color: var(--charcoal);
}

.booking-modal .flow-quote-rows .flow-total dd {
    font-size: 2.4rem;
    color: var(--charcoal);
}

.booking-modal .flow-note {
    color: var(--text-secondary);
}

/* option cards — ivory index cards; selection is structural: gold ring + left rule + check + numeral chip */
.booking-modal .flow-opt-card {
    background: var(--ivory);
    border-color: var(--hairline);
    padding: 18px 20px;
}

.booking-modal .flow-opt-name {
    color: var(--charcoal);
}

.booking-modal .flow-opt-desc {
    color: #44423C;
}

.booking-modal .flow-opt-num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    line-height: 1;
    color: var(--gold);
}

.booking-modal .flow-opt:hover .flow-opt-card {
    border-color: rgba(28, 27, 24, 0.4);
}

.booking-modal .flow-opt input:checked + .flow-opt-card {
    background: #F6EFDD;
    border-color: var(--gold);
    box-shadow: inset 0 0 0 2px var(--gold);
}

.booking-modal .flow-opt input:checked + .flow-opt-card .flow-opt-num {
    background: var(--gold);
    color: var(--dark);
    padding: 3px 8px;
    border-radius: 6px;
    align-self: flex-start;
}

/* check disc — silent to AT (empty alt), gold disc + dark glyph */
.booking-modal .flow-opt-card::before {
    content: "✓" / "";
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    transform: scale(0.9);
}

.booking-modal .flow-opt input:checked + .flow-opt-card::before {
    opacity: 1;
    transform: scale(1);
}

/* gold left rule on selection */
.booking-modal .flow-opt-card::after {
    content: "";
    position: absolute;
    left: -1px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 2px;
    background: var(--gold);
    opacity: 0;
}

.booking-modal .flow-opt input:checked + .flow-opt-card::after {
    opacity: 1;
}

/* duration cards: big centered label, same selected system */
.booking-modal .flow-opts-duration .flow-opt-name {
    font-size: 1.35rem;
}

/* people step: stacked portrait rows */
.booking-modal #flow-step-5 .flow-opts {
    grid-template-columns: 1fr;
}

.booking-modal #flow-step-5 .flow-opt-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 4px;
    align-items: center;
    padding: 16px 20px;
}

.booking-modal .flow-opt-photo {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
}

.booking-modal .flow-opt-photo.img-carlos {
    object-position: 50% 18%;
}

.booking-modal #flow-step-5 .flow-opt-name,
.booking-modal #flow-step-5 .flow-opt-desc {
    grid-column: 2;
}

/* stepper discs on stone */
.booking-modal .flow-steps li {
    color: #4A4841;
}

.booking-modal .flow-steps li .flow-step-num {
    width: 30px;
    height: 30px;
    border-color: var(--hairline);
    background: transparent;
    color: var(--text-secondary);
}

.booking-modal .flow-steps li.is-current {
    color: var(--charcoal);
}

.booking-modal .flow-steps li.is-current .flow-step-num {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--ivory);
}

.booking-modal .flow-steps li.is-done {
    color: var(--text-secondary);
}

.booking-modal .flow-steps li.is-done .flow-step-num {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.booking-modal .flow-bar {
    height: 2px;
    background: rgba(28, 27, 24, 0.12);
}

/* light-ground action buttons */
.booking-modal .btn-ghost-dark {
    background: rgba(28, 27, 24, 0.06);
    color: var(--charcoal);
    box-shadow: inset 0 0 0 1px var(--hairline);
}

.booking-modal .btn-ghost-dark:hover {
    background: rgba(28, 27, 24, 0.1);
    color: var(--charcoal);
    transform: none;
}

.booking-modal .btn[disabled] {
    background: rgba(28, 27, 24, 0.05);
    color: var(--text-secondary);
    box-shadow: inset 0 0 0 1px var(--hairline);
}

.booking-modal .btn[disabled]:hover,
.booking-modal .btn[disabled]:active {
    background: rgba(28, 27, 24, 0.05);
    color: var(--text-secondary);
    transform: none;
}

/* practitioner tabs + real Tymeslot panes render only inside the modal; light-ground
   adaptation of the production tabs — same ids, ARIA behavior and embed attributes */
.booking-modal .booking-tabs {
    display: inline-flex;
    gap: 8px;
    margin: 0 0 24px;
    padding: 6px;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: var(--stone);
}

.booking-modal .booking-tab {
    font-size: 0.98rem;
    padding: 12px 24px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
}

.booking-modal .booking-tab:hover {
    color: var(--charcoal);
}

.booking-modal .booking-tab.is-active {
    background: var(--gold);
    color: var(--dark);
    font-weight: 700;
}

.booking-modal .booking-widget {
    max-width: none;
    margin: 0;
    background: var(--stone);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    padding: clamp(16px, 3vw, 28px);
}

.booking-modal .booking-widget iframe {
    width: 100%;
    border: 0;
    border-radius: var(--radius-control);
}

/* state transitions — gated by reduced-motion; hover lift additionally gated to fine pointers */
@media (prefers-reduced-motion: no-preference) {
    .booking-modal .flow-opt-card {
        transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
                    background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    }

    .booking-modal .flow-opt-card::before {
        transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
    }

    .booking-modal .flow-opt-card::after {
        transition: opacity 0.2s var(--ease-out);
    }

    .booking-modal .flow-opt-num {
        transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .booking-modal .flow-opt:hover .flow-opt-card {
        transform: translateY(-2px);
    }
}

/* --- 16e. REV02 desktop margin rail (>=1025px) — ghost numeral, step label, trail.
   The two-column grid sits on .modal-body (not .flow) so flow-progress/flow-actions
   keep their sticky ranges inside #flow; the rail fills column 1 from inside #flow and
   the revealed #booking-schedule aligns under the content column via grid-column:2. */
.flow-rail {
    display: none;
}

@media (min-width: 1025px) {
    .booking-modal .modal-body {
        display: grid;
        grid-template-columns: 200px minmax(0, 1fr);
        column-gap: clamp(24px, 3vw, 40px);
    }

    .booking-modal #booking-schedule {
        grid-column: 2;
    }

    .booking-modal #flow {
        position: relative;
        grid-column: 2;
    }

    .booking-modal .flow-actions {
        margin-inline: 0;
    }

    .flow-rail {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(-200px - clamp(24px, 3vw, 40px));
        width: 200px;
        padding-right: 20px;
        border-right: 1px solid var(--hairline);
    }

    .flow-rail-num {
        display: block;
        font-family: var(--font-display);
        font-weight: 800;
        font-size: clamp(120px, 10vw, 168px);
        line-height: 1;
        letter-spacing: -0.03em;
        color: rgba(28, 27, 24, 0.05);
    }

    .flow-rail-label {
        display: block;
        margin-top: 10px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: #4A4841;
    }

    .flow-rail-trail {
        margin-top: 24px;
        padding-top: 18px;
        border-top: 1px solid var(--hairline);
        display: grid;
        gap: 10px;
    }

    .flow-rail-trail:empty {
        visibility: hidden;
    }

    .flow-rail-item {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        color: var(--charcoal);
    }

    .flow-rail-item::before {
        content: "";
        flex: none;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--gold);
    }
}

/* --- 16f. Mobile modal (<=820px) — full-screen booking view.
   D5: stepper band un-pinned (static) on mobile — the sticky band occluded card 01 and
   orphaned fragments below its edge at 375x812 end-of-scroll. >=821px keeps the sticky band.
   D7 (supersedes D4/D6): the scroller ENDS at the bar's top edge — .modal-body reserves the
   bar strip as an opaque border-bottom (--bb-actions-h) so the scrollport clips exactly at
   the bar line (no content paints beneath/through/around the bar in ANY scroll state) —
   while the active step's .flow-actions is position:fixed to the viewport floor (the
   full-screen dialog at <=820px). flowIn's fill:both would leave an identity transform on
   .flow-step, silently making the step the fixed containing block — so mobile step entry
   fades opacity-only (flowInFade). Safe-area insets ride inside --bb-actions-h. */
@media (max-width: 820px) {
    .booking-modal {
        width: 100vw;
        max-width: none;
        height: 100dvh;
        max-height: none;
        margin: 0;
        border: none;
        border-radius: 0;
    }

    .modal-head {
        padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 10px;
        padding-top: max(14px, env(safe-area-inset-top, 0px));
    }

    .modal-body {
        padding: 12px 20px 0;
    }

    .booking-modal .flow-progress {
        position: static;
        padding-block: 10px;
        margin-bottom: 16px;
    }

    .flow-opts {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 14px 0 16px;
    }

    .booking-modal .flow-opt-card {
        padding: 14px 16px;
    }

    .booking-modal .modal-body {
        display: flex;
        flex-direction: column;
    }

    .booking-modal {
        --bb-actions-h: max(75px, calc(75px + env(safe-area-inset-bottom, 0px)));
    }

    .booking-modal .modal-body {
        border-bottom: var(--bb-actions-h) solid transparent;
    }

    .booking-modal .flow {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .flow-step:not([hidden]) {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    /* pinned action bar: fixed to the viewport (= the full-screen dialog) — flush floor,
       zero overlay; safe-area inset inside the shared height variable */
    .booking-modal .flow-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        height: var(--bb-actions-h);
        margin: 0;
        padding: 12px 20px;
        align-items: center;
        padding-bottom: max(14px, calc(14px + env(safe-area-inset-bottom, 0px)));
    }

    .booking-modal .booking-tabs {
        display: flex;
        width: 100%;
    }

    .booking-modal .booking-tab {
        flex: 1;
        padding: 12px 10px;
    }
}

@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
    /* D7: mobile step entry animates opacity only (see 16f) — the 12px slide stays desktop */
    .booking-modal .flow-step:not([hidden]) {
        animation-name: flowInFade;
    }

    @keyframes flowInFade {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/* --- 16g. Stepper arrangement (correction 1) — deliberate at every width ---
   Five uppercase labels: one row where it truly fits (≥641px flex), a balanced
   2-column matrix on small screens (≤640px: 2+2 with the fifth item full-width),
   and a 3+2 grid inside the ≥1025px desktop modal whose content column is fixed
   ≈568px (one row would be razor-thin and wrap unpredictably). Same type size,
   disc size and paper styling throughout; DOM order preserved. */
@media (max-width: 640px) {
    .booking-modal .flow-steps {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, max-content));
        justify-content: start;
        gap: 10px 28px;
    }

    /* the fifth step takes the full row: deliberate, never an orphan beside nothing */
    .booking-modal .flow-steps li:last-child {
        grid-column: 1 / -1;
    }
}

/* --- 16h. Rev03 add-on step, couples therapist pair, review-only gate ---
   Reuses the existing flow-opt card system throughout; only the new sub-question
   legends, the duplicate-therapist error, and the review panel need their own rules.
   Scoped to the booking modal — nothing outside booking is touched. */
.booking-modal .flow-subq {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--charcoal);
    padding: 0;
}

.flow-step .flow-opts-flow + .flow-opts-flow,
.flow-step #flow-pract-duo,
.flow-step .flow-opts-flow + #flow-pract-duo {
    margin-top: 22px;
}

.flow-error {
    margin: 12px 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    color: #A03D2D;
}

/* review gate: aligns under the content column in the ≥1025px two-column modal grid
   (same explicit placement as #booking-schedule) */
.booking-modal #booking-review {
    grid-column: 2;
    margin-top: 28px;
}

.booking-modal #booking-review .flow-quote {
    margin-top: 16px;
}

@media (max-width: 820px) {
    .booking-modal #booking-review {
        margin-top: 16px;
    }
}

/* desktop stepper: balanced 3+2 grid (content column is a fixed ≈568px beside the rail,
   so a single row of five labels would wrap unpredictably) */
@media (min-width: 1025px) {
    .booking-modal .flow-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, max-content));
        justify-content: start;
        gap: 10px 28px;
    }
}

/* correction 1 — couples therapist pair: a therapist owned by the opposite group is
   disabled and carries a visible "Assigned to first/second table" label. Correction 2:
   the card keeps its dashed/muted distinct look WITHOUT opacity dimming (the label
   must stay readable), and the label sits in the text column beside name/role —
   never under the portrait. */
.booking-modal .flow-opt input:disabled {
    cursor: not-allowed;
}

.booking-modal .flow-opt.is-taken {
    cursor: not-allowed;
}

.booking-modal .flow-opt.is-taken .flow-opt-card {
    background: #EFECE3;
    border-style: dashed;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .booking-modal .flow-opt.is-taken:hover .flow-opt-card {
        transform: none;
        border-color: var(--hairline);
    }
}

.flow-taken {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
    color: #44423C;
}

/* duo cards are a 96px-portrait | text grid: the assignment label belongs in the
   text column (row 3), beside name and role — not under the photo */
.booking-modal #flow-step-5 .flow-taken {
    grid-column: 2;
}

/* obvious way to un-choose a therapist (no swap feature) */
.flow-clear {
    margin-top: 10px;
    padding: 2px 0;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--hairline);
    color: var(--text-secondary);
    cursor: pointer;
}

.flow-clear:hover {
    color: var(--charcoal);
}

/* review gate call actions — verified tel: numbers, call only; numbers stay intact */
.flow-callrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 12px 0 14px;
    max-width: 520px;
}

.flow-callrow .btn {
    white-space: nowrap;
}

@media (max-width: 500px) {
    .flow-callrow {
        flex-direction: column;
        align-items: stretch;
    }

    .flow-callrow .btn {
        text-align: center;
    }
}

/* correction 2 — explicit visit state ahead of the call actions */
.flow-status {
    margin: 14px 0 0;
    max-width: 52ch;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--charcoal);
}