/* Ravenswood Physiotherapy — concept "after".
   Fonts: Barlow + Barlow Condensed (SIL OFL 1.1), self-hosted Latin.
   Palette: ink #16222C, ground #F3F5F2, sage #E3EAE5, figure #E8ECE6, band yellow #F7C61B. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/redesigns/ravenswood-physio/fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/redesigns/ravenswood-physio/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/redesigns/ravenswood-physio/fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/redesigns/ravenswood-physio/fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #16222c;
  --ink-2: #485762;
  --ground: #f3f5f2;
  --sage: #e3eae5;
  --card: #ffffff;
  --line: #d3dad5;
  --fig: #e8ece6;
  --band: #f7c61b;
  --band-deep: #e6b50a;
  --band-soft: #fbe58f;
  --green: #1d6b4e;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
img, svg { max-width: 100%; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--band); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 2px solid var(--ink); border-radius: 12px;
  font: 700 1.0625rem/1.15 var(--body);
  text-align: center; text-decoration: none; color: var(--ink);
  cursor: pointer; background: transparent;
}
.btn--band { background: var(--band); }
.btn--band:hover { background: var(--band-deep); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 1rem; white-space: nowrap; gap: 0.3em; }
.btn--block { display: flex; width: 100%; }

/* ---------- header ---------- */
.site { background: var(--ground); border-bottom: 1px solid var(--line); }
.site__in {
  display: flex; align-items: center; gap: 24px;
  max-width: 1360px; margin: 0 auto; padding: 12px clamp(16px, 4vw, 40px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; flex: none; fill: var(--band); stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.brand__name { font: 800 1.95rem/0.9 var(--display); letter-spacing: 0.005em; }
.brand__name small { display: block; margin-top: 3px; font: 700 0.68rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.site__nav { display: flex; gap: 22px; }
.site__nav a { white-space: nowrap; font-weight: 500; font-size: 1.0625rem; text-decoration: none; padding: 10px 0; }
.site__nav a:hover { text-decoration: underline; text-decoration-color: var(--band); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- hero + body map ---------- */
.hero {
  max-width: 1360px; margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px);
  display: grid; gap: 22px 36px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "text" "figs" "panel";
}
.hero__text { grid-area: text; }
.figwrap { grid-area: figs; align-self: start; min-width: 0; }
.picker { margin-top: 18px; }
.panel { grid-area: panel; }

.eyebrow { font: 700 0.8rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
h1 {
  font: 800 clamp(4.3rem, 4.9vw, 4.8rem)/0.88 var(--display);
  letter-spacing: 0.002em;
  max-width: 7em;
}

.hero__lede { margin-top: 18px; font-size: 1.25rem; line-height: 1.5; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__cta .btn { padding: 0 18px; }
.hero__fact { margin-top: 18px; color: var(--ink-2); font-size: 1rem; }
.hero__fact strong { color: var(--ink); }
[data-open].is-open::before, [data-open-line].is-open::before {
  content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.45em;
  border-radius: 50%; background: var(--green); vertical-align: 0.02em;
}

/* the figures sit on a posture-assessment grid, the kind physios photograph people against */
.figs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin: 0 auto; width: 100%; max-width: 340px;
  padding: 14px 14px 10px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 20px 20px,
    var(--card);
  background-position: -1px -1px;
  border: 1.5px solid var(--ink); border-radius: 18px;
}
.fig { position: relative; }
.fig__svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig figcaption { margin-top: 4px; text-align: center; font: 700 0.7rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

.p { fill: var(--fig); stroke: var(--ink); stroke-width: 2.2; }
.dot { fill: var(--ink); }
.marks path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.45; }
.marks .spine { stroke-width: 3.2; stroke-dasharray: 5 3.5; opacity: 0.5; }
.marks circle { fill: var(--ink); opacity: 0.5; }
.p.is-on { fill: var(--band); }
.p.is-hover:not(.is-on) { fill: var(--band-soft); }
@media (prefers-reduced-motion: no-preference) { .p { transition: fill 0.15s; } }

/* no-JS: the :target section lights up its parts */
.bodymap:has(#r-neck:target) [data-r="neck"],
.bodymap:has(#r-shoulder:target) [data-r="shoulder"],
.bodymap:has(#r-upper-back:target) [data-r="upper-back"],
.bodymap:has(#r-lower-back:target) [data-r="lower-back"],
.bodymap:has(#r-elbow:target) [data-r="elbow"],
.bodymap:has(#r-hip:target) [data-r="hip"],
.bodymap:has(#r-thigh:target) [data-r="thigh"],
.bodymap:has(#r-knee:target) [data-r="knee"],
.bodymap:has(#r-calf:target) [data-r="calf"],
.bodymap:has(#r-foot:target) [data-r="foot"],
.bodymap:not(:has(.region:target)):not(.is-live) [data-r="lower-back"] { fill: var(--band); }

.pin {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center; border-radius: 50%; text-decoration: none;
}
.pin::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 2.5px solid #fff; box-shadow: 0 0 0 1.5px var(--ink);
}
.pin.is-on::before { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink); }
.pin:hover::before { transform: scale(1.2); }
.pin::after {
  content: attr(data-label); position: absolute; left: 50%; top: 2px; transform: translate(-50%, -100%);
  padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff;
  font: 700 0.78rem/1.2 var(--body); white-space: nowrap; opacity: 0; pointer-events: none; z-index: 3;
}
@media (hover: hover) { .pin:hover::after { opacity: 1; } }

/* region picker */
.picker__label { font: 700 0.8rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink);
  font: 500 1.0625rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.chip:hover { background: var(--band-soft); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* the answer panel */
.panel {
  background: var(--card); border: 1.5px solid var(--ink); border-top: 8px solid var(--band);
  border-radius: 18px; padding: clamp(20px, 3vw, 30px);
  align-self: start; min-width: 0;
}
.region { display: none; }
.region:target { display: block; }
.panel:not(:has(.region:target)) .region[data-default] { display: block; }
.is-live .region:not(.is-active) { display: none; }
.is-live .region.is-active { display: block; }
.region { scroll-margin-top: 12px; }
.region__title { font: 800 clamp(2.6rem, 4vw, 3.4rem)/0.9 var(--display); }
.region .region__lead { margin-top: 10px; font-size: 1.1875rem; font-weight: 500; line-height: 1.4; }
.region p, .region__list { font-size: 1.0625rem; line-height: 1.45; }
.region h3 { margin: 22px 0 6px; font: 700 0.78rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.region__list li { position: relative; padding-left: 22px; margin: 5px 0; }
.region__list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 3px; border-radius: 2px; background: var(--ink); }
.region .btn { margin-top: 26px; }

/* ---------- sections ---------- */
.sec { padding: clamp(52px, 8vw, 100px) 0; }
.sec--sage { background: var(--sage); }
.sec__head { max-width: 40em; margin-bottom: 36px; }
.sec__head p { margin-top: 10px; font-size: 1.125rem; }
h2 { font: 800 clamp(2.5rem, 5vw, 3.7rem)/0.92 var(--display); letter-spacing: 0.002em; }
h3 { font: 700 1.1875rem/1.25 var(--body); }
.wrap--split { display: grid; gap: 36px 64px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.wrap--split > div > p { margin-top: 14px; max-width: 34em; }

/* first hour: widths follow the minutes */
.hour { display: grid; gap: 28px; }
.hour__step { border-left: 8px solid var(--ink); padding-left: 16px; }
.hour__step--treat { border-color: var(--band); }
.hour__time { display: block; margin-bottom: 4px; font: 700 0.8rem/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.hour__step h3 { font: 800 1.9rem/0.95 var(--display); margin-bottom: 8px; }
.hour__step p { font-size: 1.0625rem; }
.hour__note { margin-top: 36px; max-width: 46em; }

/* prices */
.prices { margin-top: 26px; }
.prices div { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1.5px solid var(--ink); }
.prices div:first-child { border-top: 1.5px solid var(--ink); }
.prices dt { order: 1; font-weight: 700; font-size: 1.1875rem; }
.prices dt small { display: block; font-weight: 400; font-size: 0.95rem; color: var(--ink-2); }
.prices div::after { content: ""; order: 2; flex: 1; align-self: flex-end; margin-bottom: 0.55em; border-bottom: 3px dotted var(--ink-2); }
.prices dd { order: 3; font: 800 2.9rem/1 var(--display); }
.prices__note { margin-top: 12px; color: var(--ink-2); }
.qa h3 { margin: 26px 0 6px; }
.qa h3:first-child { margin-top: 0; }
.qa p { max-width: 36em; }

/* hours */
.hours__status { font-weight: 700; font-size: 1.25rem; margin: 14px 0 12px; }
.hours { margin-bottom: 18px; max-width: 26rem; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); border-left: 6px solid transparent; }
.hours dt { font-weight: 500; }
.hours dd { font-variant-numeric: tabular-nums; }
.hours .is-today { background: var(--card); border-left-color: var(--band); font-weight: 700; }
.hours .is-today dt { font-weight: 700; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--line); }
.photo figcaption { margin-top: 10px; font-size: 0.95rem; color: var(--ink-2); max-width: 40em; }

/* booking form */
.form { background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; padding: 0; }
.field label span { font-weight: 400; color: var(--ink-2); }
.field input:not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid var(--ink-2); border-radius: 10px; background: #fff;
  font: 400 1rem/1.4 var(--body); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field--radios label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.field--radios input { width: 22px; height: 22px; accent-color: var(--ink); margin: 0; }
.form__note { display: none; padding: 14px 16px; border-left: 8px solid var(--band); background: #fff4c7; font-weight: 700; }
.form__note:target, .form__note.is-shown { display: block; }

/* footer */
.foot { background: var(--ink); color: #e9eeea; padding: 40px 0 44px; font-size: 1rem; }
.foot a { color: inherit; }
.foot :focus-visible { outline-color: #fff; }
.foot__in { display: grid; gap: 20px 48px; }
.foot strong { font: 800 1.7rem/1 var(--display); letter-spacing: 0.01em; }
.foot p:last-child { color: #b9c4bd; max-width: 34em; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* ---------- breakpoints ---------- */
@media (min-width: 520px) {
  .figs { max-width: 380px; }
}
@media (min-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); grid-template-areas: "text figs" "panel panel"; }
  .figs { max-width: none; }
  .hour { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .wrap--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wrap--hours { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
@media (min-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 0.78fr) clamp(300px, 27vw, 390px) minmax(0, 1.15fr);
    grid-template-areas: "text figs panel";
  }
  .hour { display: flex; gap: 12px; }
  .hour__step { flex: var(--min) 1 0; min-width: 0; padding-left: 14px; }
}
@media (max-width: 899px) {
  .site__nav { display: none; }
  .hide-sm { display: none; }
  .brand__name { font-size: 1.7rem; }
}
@media (max-width: 400px) {
  .brand__name small { font-size: 0.6rem; letter-spacing: 0.06em; }
  .btn--sm { padding: 0 12px; }
}

.pl-credits ul { list-style: disc; }

@media (min-width: 1040px) {
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .hero__cta .btn { width: 260px; }
}
@media (max-width: 519px) {
  .hero__cta .btn { width: 100%; }
}

@media (min-width: 860px) {
  .wrap--split > div:first-child { position: sticky; top: 24px; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .form .field--radios, .form .field--wide, .form .btn, .form__note { grid-column: 1 / -1; }
  .foot__in { grid-template-columns: repeat(3, auto); justify-content: space-between; }
}
