/* ==========================================================================
   Bodywork by JC — premium editorial wellness-performance
   Palette kept (ivory/olive/charcoal/gold) but elevated into a
   "quiet cinematic" feel with layered scroll motion.
   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;

    /* 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;
}

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

.hero :focus-visible,
.booking :focus-visible,
.site-nav:not(.is-scrolled) :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, 128px);
}

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

.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: 24ch;
}

/* buttons */
.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;
}

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

.btn-primary:hover {
    background: var(--olive-deep);
}

.btn-small {
    padding: 10px 18px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 18px 32px;
    font-size: 1.05rem;
}

.link-quiet {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-text);
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(244, 242, 238, 0.4);
}

.link-quiet:hover {
    text-decoration-color: var(--gold);
}

/* grain texture: fixed, above bg, below nav */
.grain {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}

#nav-sentinel {
    display: block;
    height: 1px;
}

/* ==========================================================================
   4. Nav (sticky, transparent over dark hero, ivory once scrolled)
   ========================================================================== */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: calc(-1 * var(--nav-h));
    color: var(--dark-text);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
    color: var(--charcoal);
    background: rgba(244, 242, 238, 0.95);
    border-bottom-color: var(--hairline);
}

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

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

.brand-mark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.brand-name {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

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

.nav-links {
    display: none;
    list-style: none;
    align-items: center;
    gap: clamp(20px, 2.5vw, 36px);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-links a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
    }
}

/* ==========================================================================
   5. Hero (dark cinematic, min-height 100dvh)
   ========================================================================== */

.hero {
    position: relative;
    background: var(--dark);
    color: var(--dark-text);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: calc(var(--nav-h) + clamp(28px, 5vh, 56px)) var(--gutter) clamp(32px, 6vh, 56px);
    overflow: hidden;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 75% 40%, rgba(195, 161, 102, 0.12), transparent 55%),
                radial-gradient(ellipse at 20% 90%, rgba(90, 107, 79, 0.18), transparent 50%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: clamp(28px, 4vh, 44px);
}

.hero-title {
    font-size: clamp(2.75rem, 1.5rem + 5.2vw, 5.25rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: inline-block;
    will-change: transform;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--dark-text-secondary);
    max-width: 44ch;
    margin-bottom: 32px;
}

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

.hero-media {
    position: relative;
    height: clamp(200px, 32vh, 320px);
    margin-inline: calc(-1 * var(--gutter));
}

.hero-media-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--stone);
}

.hero-media-frame img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: 50% 20%;
    transform: translateY(-8%);
    will-change: transform;
}

.accent-rule {
    display: none;
}

@media (min-width: 769px) {
    .hero {
        padding-right: 0;
    }

    .hero-inner {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
        gap: clamp(40px, 6vw, 88px);
    }

    .hero-media {
        height: clamp(420px, 68vh, 700px);
        margin-inline: 0;
    }

    .accent-rule {
        display: block;
        position: absolute;
        top: -18px;
        bottom: 44px;
        left: -18px;
        width: 1px;
        background: linear-gradient(to bottom, transparent, var(--gold), transparent);
        transform-origin: top;
    }
}

/* ==========================================================================
   6. Photography: grayscale + olive duotone (multiply overlay)
   ========================================================================== */

.media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--stone);
}

.media-img-parallax {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.media img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    object-position: 50% 20%;
    transform: translateY(-10%);
    will-change: transform;
    filter: grayscale(1);
}

.media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--olive);
    mix-blend-mode: multiply;
    opacity: 0.34;
    pointer-events: none;
    z-index: 1;
}

.media-43 { aspect-ratio: 4 / 3; }
.media-45 { aspect-ratio: 4 / 5; }
.media-169 { aspect-ratio: 16 / 9; }

.hero-media-frame img {
    filter: grayscale(1);
    position: relative;
    z-index: 0;
}

.hero-media-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--olive);
    mix-blend-mode: multiply;
    opacity: 0.34;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   7. Services (light, asymmetric 12-col editorial grid)
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.service-card {
    background: var(--ivory);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.service-body {
    padding: 24px 26px 28px;
}

.service-body h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.45rem);
    margin-bottom: 10px;
}

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

@media (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: clamp(24px, 3vw, 36px);
        align-items: start;
    }

    .service-card:nth-child(1) { grid-column: 1 / span 7; }
    .service-card:nth-child(2) { grid-column: 8 / span 5; margin-top: 56px; }
    .service-card:nth-child(3) { grid-column: 1 / span 5; }
    .service-card:nth-child(4) { grid-column: 6 / span 7; margin-top: 56px; }
}

/* ==========================================================================
   8. Practitioners (stone, two portrait cards)
   ========================================================================== */

.practitioners {
    background: var(--stone);
}

.practitioner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.practitioner-card {
    background: var(--ivory);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.practitioner-body {
    padding: 26px 26px 30px;
}

.practitioner-body h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.practitioner-role {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--olive);
    margin-bottom: 14px;
}

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

.badge {
    display: inline-block;
    margin-top: 18px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
}

.badge-live {
    background: rgba(90, 107, 79, 0.12);
    color: var(--olive-deep);
}

.badge-soon {
    background: rgba(195, 161, 102, 0.16);
    color: #8a6d3b;
}

/* pull-quote from the practitioners */
.brand-quote {
    margin: clamp(40px, 5vw, 64px) auto 0;
    max-width: 720px;
    text-align: center;
}

.brand-quote blockquote {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.35rem, 1.15rem + 1vw, 1.9rem);
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--charcoal);
    margin-bottom: 14px;
}

.brand-quote figcaption {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--olive);
}

@media (min-width: 769px) {
    .practitioner-grid {
        grid-template-columns: 1fr 1fr;
        gap: clamp(24px, 3vw, 40px);
    }
}

/* ==========================================================================
   9. Approach (light, 3 steps, gold numerals)
   ========================================================================== */

.approach-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.approach-step {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
}

.approach-num {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--gold);
}

.approach-step h3 {
    font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.4rem);
    margin: 12px 0 8px;
}

.approach-step p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    max-width: 40ch;
}

@media (min-width: 769px) {
    .approach-list {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(28px, 4vw, 48px);
    }
}

/* ==========================================================================
   10. Pricing (dark cinematic, 2 elevated cards)
   ========================================================================== */

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

.pricing .section-title {
    color: var(--dark-text);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 769px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(24px, 3vw, 40px);
    }
}

@media (min-width: 1080px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pricing-card {
    background: var(--dark-2);
    border: 1px solid var(--hairline-dark);
    border-radius: var(--radius-card);
    padding: clamp(28px, 3vw, 40px);
    display: flex;
    flex-direction: column;
}

.pricing-card h3 {
    font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.35rem);
    color: var(--dark-text);
}

/* tier rows: duration left, price right */
.price-tiers {
    list-style: none;
    margin: 18px 0 28px;
}

.price-tiers li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--hairline-dark);
}

.price-tiers li:first-child {
    border-top: 0;
}

.price-tiers span {
    color: var(--dark-text-secondary);
    font-size: 0.95rem;
}

.price-tiers strong {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--gold);
}

/* fine-print under the grid */
.pricing-notes {
    margin-top: clamp(24px, 3vw, 36px);
    padding-top: 20px;
    border-top: 1px solid var(--hairline-dark);
}

.pricing-notes p {
    color: var(--dark-text-secondary);
    font-size: 0.88rem;
    max-width: 78ch;
}

/* ==========================================================================
   11. Testimonials (light, 3 editorial quotes)
   ========================================================================== */

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.testimonial {
    margin: 0;
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
}

.testimonial blockquote {
    font-family: var(--font-display);
    font-weight:500;
    font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--charcoal);
    margin-bottom: 18px;
}

.testimonial figcaption {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (min-width: 769px) {
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(28px, 3.5vw, 48px);
    }
}

/* ==========================================================================
   12. FAQ (light on stone, native details/summary)
   ========================================================================== */

.faq {
    background: var(--stone);
}

.faq-inner {
    max-width: 780px;
}

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

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

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

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

.faq-item summary::after {
    content: "+";
    flex: none;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-body {
    padding: 0 40px 24px 0;
}

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

/* ==========================================================================
   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: 52ch;
    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;
}

.booking-phone:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ==========================================================================
   14. Footer (dark, echoes hero)
   ========================================================================== */

.site-footer {
    background: var(--dark);
    color: var(--dark-text);
    padding: 56px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.brand-dark {
    color: var(--dark-text);
}

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

.footer-contact {
    list-style: none;
    margin-top: 20px;
    display: grid;
    gap: 8px;
    font-size: 0.92rem;
}

.footer-contact a {
    color: var(--dark-text-secondary);
    text-decoration: none;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 0.92rem;
}

.footer-links a {
    color: var(--dark-text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--dark-text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-copy {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline-dark);
    font-size: 0.85rem;
    color: var(--dark-text-secondary);
}

@media (min-width: 769px) {
    .footer-top {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
}

/* ==========================================================================
   15. Motion (GSAP-driven; base states are visible/static so reduced-motion
       never breaks UX. Everything that moves is gated in app.js.)
   ========================================================================== */

.lift {
    position: relative;
    isolation: isolate;
}

.lift::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    box-shadow: 0 24px 48px -24px rgba(28, 27, 24, 0.35);
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .btn,
    .lift {
        transition: transform 0.35s var(--ease-out);
    }

    .btn:hover {
        transform: translateY(-2px);
    }

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

    .lift:hover {
        transform: translateY(-4px);
    }

    .lift:hover::after {
        opacity: 1;
    }

    .lift::after {
        transition: opacity 0.35s var(--ease-out);
    }

    .faq-item summary::after {
        transition: transform 0.2s ease;
    }

    /* entrance state applied by app.js via .is-reveal; hidden until gsap sets it.
       Elements get opacity:0 only when JS confirms it will animate them. */
    .reveal-pre {
        opacity: 0;
    }
}