/* Rachel Hearle Therapy
   Built from the Therapy Builder's "grove" skin (forest accent, Fraunces +
   DM Sans). Class and token names deliberately match css/section-library.css
   in the builder so each change can be carried back. BUILDER-NOTES.md lists
   every difference. */

@font-face{font-family:"Fraunces";src:url(/assets/fonts/fraunces-latin-wght-normal.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:"Fraunces";src:url(/assets/fonts/fraunces-latin-wght-italic.woff2) format("woff2");font-weight:100 900;font-style:italic;font-display:swap}
@font-face{font-family:"DM Sans";src:url(/assets/fonts/dm-sans-latin-wght-normal.woff2) format("woff2");font-weight:100 1000;font-style:normal;font-display:swap}

/* ── Tokens ───────────────────────────────────────────────────────── */
:root{
  /* Surfaces: two sage tones became one, off-white warmed to cream. */
  --surface-cream:#F7F4EC;
  --surface-sage:#DAE3D7;
  --surface-dark:#1F2E26;
  --surface-card:#FFFFFF;

  --text:#22302A;
  --text-soft:#46554C;          /* was #5A6A61: 4.35:1 on sage, fails AA. Now 6:1. */
  --text-invert:#F0F3ED;
  --text-invert-soft:#C9D3CB;

  --accent:#2F5F4A;             /* forest: buttons, headings */
  --on-accent:#FFFFFF;
  --warm:#954A31;               /* new: terracotta from the armchair photo. Links, eyebrows, icons. AA on cream and sage. */
  --warm-on-dark:#E2A07E;
  --rule:rgba(47,95,74,.18);

  --display:"Fraunces",Georgia,serif;
  --body:"DM Sans",Arial,sans-serif;
  --display-weight:500;

  --radius:8px;                 /* buttons, inputs */
  --radius-card:16px;
  --radius-img:24px;            /* one image radius site-wide */

  --t-hero:clamp(2.1rem,4.1vw,3.35rem);
  --t-page:clamp(2.5rem,5vw,3.75rem);
  --t-h2:clamp(1.85rem,3vw,2.4rem);
  --t-h3:clamp(1.15rem,1.7vw,1.35rem);
  --t-lead:clamp(1.1rem,1.6vw,1.3rem);
  --t-body:clamp(1rem,.95rem + .22vw,1.125rem);
  --t-small:.9rem;
  --t-eyebrow:.75rem;

  --band:clamp(4rem,8vw,6.5rem);
  --gutter:clamp(1.25rem,5vw,3rem);
  --edge:clamp(1.25rem,2.6vw,2.5rem);
  --gap:clamp(1.5rem,3vw,2.5rem);
  --wide:1240px;
  --measure:65ch;
}

/* ── Base ─────────────────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:6rem}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
body{font-family:var(--body);font-size:var(--t-body);line-height:1.7;color:var(--text);background:var(--surface-cream);-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit}
p a,dd a,.foot a{color:var(--warm);text-decoration-thickness:1px;text-underline-offset:3px}
p a:hover,dd a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}
.band--dark :focus-visible{outline-color:var(--text-invert)}
ul,ol{list-style:none}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:1rem;top:-4rem;z-index:100;background:var(--accent);color:var(--on-accent);padding:.6rem 1rem;border-radius:var(--radius)}
.skip:focus{top:1rem}

/* ── Type ─────────────────────────────────────────────────────────── */
.h-hero,.h-page,.h2,.h3,.wordmark,.pullquote p{font-family:var(--display);font-weight:var(--display-weight);font-optical-sizing:auto;color:var(--accent);letter-spacing:-.01em}
.h-hero{font-size:var(--t-hero);line-height:1.12;max-width:20ch;text-wrap:balance}
.h-page{font-size:var(--t-page);line-height:1.05}
.h2{font-size:var(--t-h2);line-height:1.15;text-wrap:balance}
.h3{font-size:var(--t-h3);line-height:1.3;color:var(--text)}
.lead{font-size:var(--t-lead);line-height:1.6;color:var(--text-soft)}
.eyebrow{font-size:var(--t-eyebrow);letter-spacing:.16em;text-transform:uppercase;font-weight:600;color:var(--warm);margin-bottom:1rem}
.stack > * + *{margin-top:1.1em}
.measure{max-width:var(--measure)}
.measure--centre,.inner.measure--centre{max-width:52ch;margin-inline:auto;text-align:center}

/* ── Bands ────────────────────────────────────────────────────────── */
.band{padding-block:var(--band);padding-inline:var(--gutter)}
.band--cream{background:var(--surface-cream)}
.band--sage{background:var(--surface-sage)}
.band--dark{background:var(--surface-dark);color:var(--text-invert)}
.band--dark .h2{color:var(--text-invert)}
.inner{max-width:var(--wide);margin-inline:auto;width:100%}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;background:var(--accent);color:var(--on-accent);border:1px solid var(--accent);font:600 var(--t-small)/1.2 var(--body);letter-spacing:.06em;text-transform:uppercase;padding:.85rem 1.6rem;border-radius:var(--radius);text-decoration:none;cursor:pointer;transition:background .18s,color .18s,transform .18s}
.btn:hover{background:#244A39;transform:translateY(-1px)}
.btn--ghost{background:transparent;color:var(--accent)}
.btn--ghost:hover{background:var(--accent);color:var(--on-accent)}
.btn--light{background:var(--surface-cream);color:var(--accent);border-color:var(--surface-cream)}
.btn--light:hover{background:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:2rem}

/* ── Nav (full-bleed, like Clay) ──────────────────────────────────── */
.nav{position:sticky;top:0;z-index:50;background:var(--surface-cream);border-bottom:1px solid var(--rule);padding:.9rem var(--edge)}
.nav-in{display:flex;align-items:center;gap:var(--gap)}
.wordmark{font-size:1.35rem;line-height:1.15;text-decoration:none;margin-right:auto}
.nav-links{display:flex;gap:1.75rem}
.nav-links a{font-size:var(--t-small);text-decoration:none;color:var(--text-soft);padding-block:.4rem;border-bottom:2px solid transparent}
.nav-links a:hover{color:var(--text)}
.nav-links a[aria-current="page"]{color:var(--text);border-bottom-color:var(--warm)}
.nav-toggle{display:none}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(2rem,6vw,5.5rem);align-items:center}
.hero-meta{margin-top:1.5rem;color:var(--text-soft)}
@media (min-width:621px){.hero-meta span{white-space:nowrap}}
.hero-text{min-width:0}
.portrait{aspect-ratio:1/1;width:min(100%,66vh);justify-self:end;border-radius:var(--radius-img);overflow:hidden;background:var(--surface-sage)}
.portrait img,.portrait picture{width:100%;height:100%;object-fit:cover;object-position:50% 30%}

/* ── Split (image + text) ─────────────────────────────────────────── */
.split{display:grid;grid-template-columns:.85fr 1fr;gap:clamp(2rem,6vw,5.5rem);align-items:center}
.split--flip .split-media{order:2}
.split-media{aspect-ratio:4/5;border-radius:var(--radius-img);overflow:hidden;max-height:min(75vh,600px);width:100%}
.split-media img,.split-media picture{width:100%;height:100%;object-fit:cover}
.split-body .h2{margin-bottom:1.5rem}
.split-body .stack{max-width:var(--measure)}
/* Square photo sized to match the hero portrait, mirrored to the left. */
.split--square{grid-template-columns:.85fr 1.15fr}
.split--square .split-media{aspect-ratio:1/1;width:min(100%,66vh);max-height:none;justify-self:start}
.split--square .split-media img{object-position:50% 30%}

/* Labelled grey box for photos Rachel still needs to supply. */
.img-placeholder{width:100%;height:100%;min-height:280px;display:grid;place-items:center;padding:2rem;text-align:center;background:repeating-linear-gradient(135deg,#CDD3CB 0 12px,#D3D9D1 12px 24px);color:#3A463F;font-size:var(--t-small);border:1px dashed #8A968E;border-radius:inherit}

/* ── Text section ─────────────────────────────────────────────────── */
/* Heading sits left, prose right: left-aligned text without leaving the
   right half of a wide screen empty. */
.text-section{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--gap)}
.text-section .measure{display:grid;grid-template-columns:minmax(12rem,1fr) minmax(0,2fr);column-gap:clamp(2rem,6vw,5.5rem);max-width:none;align-items:start}
.text-section .measure > *{grid-column:2}
.text-section .measure > .eyebrow,.text-section .measure > .h2{grid-column:1}
.text-section .measure > .h2{grid-row:1 / span 3}
.text-section .stack{max-width:var(--measure)}
.chips-intro{color:var(--text-soft);margin-bottom:.9rem}
.chips{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:2rem;max-width:var(--measure)}
.chip{display:inline-block;background:var(--surface-card);border:1px solid var(--rule);color:var(--accent);border-radius:999px;padding:.5rem 1.1rem;font-size:var(--t-small);font-weight:500;text-decoration:none}
a.chip:hover{border-color:var(--accent)}
.text-section--quote{grid-template-columns:minmax(12rem,1fr) minmax(0,2fr);column-gap:clamp(2rem,6vw,5.5rem);align-items:start}
.text-section--quote .measure{display:block;grid-column:2;grid-row:1}
.text-section--quote .pullquote{grid-column:1;grid-row:1}

/* ── Pull-quote ───────────────────────────────────────────────────── */
.pullquote{position:relative;padding-top:2.75rem}
.pullquote::before{content:"\201C";position:absolute;top:-.5rem;left:-.05em;font:400 5rem/1 var(--display);color:var(--warm)}
.pullquote p{font-size:clamp(1.5rem,2.6vw,2rem);line-height:1.3;font-style:italic;font-weight:400;color:var(--accent);text-wrap:balance}
/* Closing mark mirrors the opening one: below the last line, right edge level
   with the last word, the same gap away. Zero width so it never wraps alone. */
.pullquote blockquote{padding-bottom:2.75rem}
.pullquote p::after{content:"\201D";display:inline-block;width:0;height:0;vertical-align:top;font:400 5rem/0 var(--display);font-style:normal;color:var(--warm);position:relative;top:1.18em;left:-.39em}
.pullquote figcaption{margin-top:1.25rem;font-size:var(--t-small);color:var(--text-soft)}
.pullquote figcaption::before{content:"";display:inline-block;width:1.5rem;height:1px;background:var(--warm);vertical-align:middle;margin-right:.6rem}

/* ── Process / timeline ───────────────────────────────────────────── */
.process--quote{display:grid;grid-template-columns:1.2fr .8fr;gap:clamp(2rem,6vw,5.5rem);align-items:center}
.path{margin-top:clamp(2.25rem,4vw,3.25rem);--step-gap:clamp(1.75rem,3.5vw,2.75rem)}
.step{display:grid;grid-template-columns:48px 1fr;gap:clamp(1.1rem,2.5vw,1.75rem);position:relative}
.step + .step{margin-top:var(--step-gap)}
.step:not(:last-child)::after{content:"";position:absolute;left:23.5px;top:52px;width:1px;height:calc(100% - 52px + var(--step-gap));background:var(--warm);opacity:.35}
.step-mark{width:48px;height:48px;border-radius:50%;background:var(--surface-cream);border:1px solid var(--rule);display:grid;place-items:center}
.band--cream .step-mark{background:var(--surface-sage)}
.step-mark svg{width:22px;height:22px;stroke:var(--warm);fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.step-body{padding-top:.6rem;max-width:56ch}
.step-body p{margin-top:.35rem;color:var(--text-soft)}

/* ── Fees cards ───────────────────────────────────────────────────── */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1.25rem;margin-top:clamp(2rem,4vw,3rem)}
.card{background:var(--surface-card);border:1px solid var(--rule);border-radius:var(--radius-card);padding:clamp(1.5rem,2.6vw,2.1rem);display:flex;flex-direction:column;gap:.5rem}
.card .h3{margin-bottom:.35rem}
.card p{color:var(--text-soft)}
.card--highlight{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.card--highlight .h3,.card--highlight p{color:var(--on-accent)}
.card-link{margin-top:auto;padding-top:1rem;color:var(--on-accent);font-weight:600;text-underline-offset:4px}

/* ── List (training and membership) ───────────────────────────────── */
.list-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:clamp(2rem,4vw,3rem)}
.list-card{background:var(--surface-cream);border-radius:var(--radius-card);padding:1.4rem 1.6rem}
.list-label{display:block;font-size:var(--t-eyebrow);letter-spacing:.16em;text-transform:uppercase;font-weight:600;color:var(--warm);margin-bottom:.4rem}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq{border-top:1px solid var(--rule);max-width:var(--measure)}
.faq details{border-bottom:1px solid var(--rule)}
.faq summary{display:flex;justify-content:space-between;align-items:center;gap:1.5rem;min-height:48px;padding-block:1.1rem;cursor:pointer;list-style:none;font-weight:600}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;font:400 1.6rem/1 var(--display);color:var(--warm);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq-answer{padding-bottom:1.25rem;color:var(--text-soft)}
.faq-answer p + p{margin-top:.75rem}

/* ── Page header ──────────────────────────────────────────────────── */
.pagehead{padding-block:clamp(3.5rem,7vw,5.5rem)}
.pagehead .lead{margin-top:1.5rem}
.pagehead--centre .measure{margin-inline:auto;text-align:center}

/* ── CTA band ─────────────────────────────────────────────────────── */
.cta p{margin-top:1.25rem;color:var(--text-invert-soft)}
.cta .btn{margin-top:2.25rem}

/* ── Contact ──────────────────────────────────────────────────────── */
.contact-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:clamp(2rem,6vw,5.5rem);align-items:start}
.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;margin-top:2rem}
.field{display:flex;flex-direction:column;gap:.45rem}
.field--full{grid-column:1/-1}
.field .btn{align-self:flex-start}
.field label{font-size:var(--t-small);font-weight:600;color:var(--text)}
.field input,.field select,.field textarea{font:inherit;color:var(--text);background:var(--surface-card);border:1px solid #9AA79F;border-radius:var(--radius);padding:.8rem 1rem;width:100%;min-height:48px}
.field textarea{min-height:160px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.field-note{font-size:var(--t-small);color:var(--text-soft)}
.contact-details{background:var(--surface-sage);border-radius:var(--radius-card);padding:clamp(1.5rem,3vw,2.25rem)}
.contact-details dl{margin-top:1.25rem}
.contact-details dt{font-size:var(--t-eyebrow);letter-spacing:.16em;text-transform:uppercase;font-weight:600;color:var(--warm)}
.contact-details dd{margin:.3rem 0 1.25rem}
.contact-details dd:last-child{margin-bottom:0}

/* ── Privacy ──────────────────────────────────────────────────────── */
.prose .h3{margin-top:2.25rem;margin-bottom:.6rem;color:var(--accent)}
.prose .h3:first-child{margin-top:0}

/* ── Footer (full-bleed, like Clay) ───────────────────────────────── */
.foot{background:var(--surface-cream);border-top:1px solid var(--rule);padding:clamp(2.5rem,5vw,3.5rem) var(--edge) 1.75rem}
.foot-in{display:flex;flex-wrap:wrap;gap:var(--gap);justify-content:space-between;align-items:flex-end}
.foot-id p{font-size:var(--t-small);color:var(--text-soft);margin-top:.3rem}
.foot-id .wordmark{font-size:1.25rem;color:var(--accent);margin-bottom:.6rem}
.foot-links{display:flex;gap:1.5rem;font-size:var(--t-small)}
.foot-links a{color:var(--text-soft);text-decoration:none}
.foot-links a:hover{color:var(--text);text-decoration:underline}
.foot-legal{width:100%;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.75rem;padding-top:1.5rem;border-top:1px solid var(--rule);font-size:.82rem;color:var(--text-soft)}

/* ── Tablet ───────────────────────────────────────────────────────── */
@media (max-width:960px){
  .hero,.split,.process--quote,.contact-grid{grid-template-columns:1fr}
  .portrait{justify-self:start;width:min(100%,520px)}
  .split--flip .split-media,.split-media{order:-1}
  .split-media{aspect-ratio:3/2;max-height:none}
  .split--square .split-media{aspect-ratio:1/1;width:min(100%,520px)}
  .text-section .measure,.text-section--quote{grid-template-columns:1fr}
  .text-section .measure > *,.text-section .measure > .h2{grid-column:1;grid-row:auto}
  .text-section .measure > .h2{margin-bottom:1.25rem}
  .text-section--quote .measure,.text-section--quote .pullquote{grid-column:1;grid-row:auto}
  .text-section--quote .pullquote{margin-bottom:1rem}
}

/* ── Mobile nav ───────────────────────────────────────────────────── */
@media (max-width:860px){
  .nav-in{flex-wrap:wrap;gap:.5rem}
  .wordmark{font-size:1.1rem;max-width:8.5em}
  .js .nav-toggle{display:inline-grid;place-items:center;width:48px;height:48px;background:none;border:1px solid var(--rule);border-radius:var(--radius);cursor:pointer;order:3;flex:none}
  .nav-toggle-bars,.nav-toggle-bars::before,.nav-toggle-bars::after{display:block;width:20px;height:1.5px;background:var(--text);position:relative;transition:transform .2s}
  .nav-toggle-bars::before,.nav-toggle-bars::after{content:"";position:absolute;left:0}
  .nav-toggle-bars::before{top:-6px}
  .nav-toggle-bars::after{top:6px}
  .nav.is-open .nav-toggle-bars{background:transparent}
  .nav.is-open .nav-toggle-bars::before{transform:translateY(6px) rotate(45deg)}
  .nav.is-open .nav-toggle-bars::after{transform:translateY(-6px) rotate(-45deg)}
  .nav-cta{order:2;padding:.6rem .85rem;min-height:44px;font-size:.75rem;letter-spacing:.04em}
  .nav-links{order:4;width:100%;flex-direction:column;gap:0;padding-top:.5rem}
  .js .nav-links{display:none}
  .js .nav.is-open .nav-links{display:flex}
  .nav-links a{padding:.85rem 0;border-bottom:1px solid var(--rule);font-size:1rem}
  .nav-links a[aria-current="page"]{border-bottom-color:var(--rule);color:var(--warm)}
}
@media (max-width:620px){
  .formgrid,.list-cards{grid-template-columns:1fr}
  .btn-row .btn{flex:1 1 auto}
  .foot-in{flex-direction:column;align-items:flex-start}
}
