/* The Ashcroft Clinic
   ---------------------------------------------------------------------------
   Two surfaces and nothing else: near-black teal and near-white. Everything
   that carries the design is type — a high-contrast serif for anything that
   names something, a quiet grotesque for anything that explains it. The one
   recurring device is a heading whose first word is set in the serif italic
   and the rest in the roman; it does the work that a second colour usually
   does, which is why the palette can stay at two.
   --------------------------------------------------------------------------- */

/* ---- fonts -------------------------------------------------------------- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/hanken-grotesk-normal.woff2') format('woff2');
}

/* Metric-matched fallbacks. font-display:swap gets the real face in front of
   the reader as soon as it lands, and these overrides mean the swap does not
   move a single line while doing it — the fallback already occupies the space
   the webfont will need. This is what keeps CLS at zero on a text-led hero. */
@font-face {
  font-family: 'Fraunces fallback';
  src: local('Times New Roman'), local('Times');
  ascent-override: 88%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 111%;
}
@font-face {
  font-family: 'Hanken fallback';
  src: local('Helvetica Neue'), local('Arial');
  ascent-override: 96%;
  descent-override: 26%;
  line-gap-override: 0%;
  size-adjust: 98%;
}

/* ---- tokens ------------------------------------------------------------- */

:root {
  --ink: #05171d;          /* the dark surface, and text on light */
  --paper: #f3f3f3;        /* the light surface, and text on dark */
  --white: #ffffff;

  /* Secondary text. Both are solid values rather than an opacity knock-back:
     opacity compounds against whatever sits behind it and silently drops
     contrast below 4.5:1 the moment the surface changes. */
  --muted-light: #4c5a5f;  /* on --paper  — 7.4:1 */
  --muted-dark:  #a9bcc2;  /* on --ink    — 8.9:1 */

  --rule-light: #d5d8d9;
  --rule-dark: rgba(243, 243, 243, 0.22);

  --serif: 'Fraunces', 'Fraunces fallback', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Hanken fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --radius: 8px;
  --wrap: 1136px;
  --gutter: 24px;

  /* Type scale, measured off the reference: 61 / 39 / 25 / 20 / 16 / 14.
     Headings run at near-solid leading, which is what gives the serif its
     density; 1.04 rather than a literal 1.0 so descenders never touch. */
  --t-hero: clamp(2.25rem, 1.31rem + 4.2vw, 3.815rem);
  --t-h2:   clamp(1.75rem, 1.36rem + 1.74vw, 2.44rem);
  --t-h3:   clamp(1.3rem, 1.19rem + 0.49vw, 1.5625rem);
  --t-lead: 1.25rem;
  --t-body: 1rem;
  --t-small: 0.875rem;

  --pad-section: clamp(64px, 7vw, 104px);
}

/* ---- reset -------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

address { font-style: normal; }

button { font: inherit; color: inherit; }

/* One focus ring, defined once, visible on both surfaces. */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 16px; }

/* ---- layout ------------------------------------------------------------- */

/* The reading column. Chrome that should reach the edges of the viewport uses
   --wide, which drops the max-width but keeps the gutter — this is why the
   header and footer span the page while the prose stays at a readable measure. */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: none; padding-inline: clamp(24px, 5vw, 152px); }

.panel { padding-block: var(--pad-section); }
.panel--dark { background: var(--ink); color: var(--paper); }
.panel--light { background: var(--paper); color: var(--ink); }
.panel--tight { padding-block: clamp(44px, 4.5vw, 68px); }

/* ---- type helpers ------------------------------------------------------- */

/* The signature: an italic opening word against a roman remainder. It is a
   <i> rather than an <em> because the distinction is typographic, not
   emphatic — a screen reader should not stress the word. */
i.lead-word,
.section-head i {
  font-style: italic;
  font-weight: 300;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin-bottom: clamp(40px, 4vw, 60px);
}
.section-head--start { align-items: flex-start; text-align: left; }
.section-head h2 { font-size: var(--t-h2); }
.section-head p {
  max-width: 62ch;
  color: var(--muted-light);
  margin: 0;
}
.panel--dark .section-head p { color: var(--muted-dark); }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.panel--dark .eyebrow { color: var(--muted-dark); }

.ornament { color: currentColor; opacity: 0.9; }

/* Prose links are underlined — colour alone would not distinguish them here,
   because there is no second colour. */
.prose a,
p a:not(.btn):not(.link-arrow) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { text-decoration-thickness: 2px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-body);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  width: fit-content;
}
.link-arrow span { transition: transform 0.2s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 30px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.panel--light .btn:hover, .btn--on-light:hover { background: var(--ink); color: var(--paper); }

.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- header ------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-light);
}

.header-top .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 130px;
}

.header-tel, .header-book {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--t-lead);
  text-decoration: none;
  min-height: 44px;
}
.header-tel { justify-self: start; }
.header-book { justify-self: end; }
.header-tel:hover, .header-book:hover { text-decoration: underline; text-underline-offset: 4px; }

/* The wordmark. Three stacked lines with hairline rules flanking the first and
   last — set in the live webfont rather than shipped as an image, so it stays
   sharp at any density and inherits colour from whatever surface it sits on. */
.brand {
  display: grid;
  justify-items: center;
  gap: 2px;
  font-family: var(--serif);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand__the, .brand__sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
}
.brand__the::before, .brand__the::after,
.brand__sub::before, .brand__sub::after {
  content: '';
  height: 1px;
  width: 34px;
  background: currentColor;
  opacity: 0.55;
}
.brand__name {
  font-size: 2.125rem;
  letter-spacing: 0.13em;
  text-indent: 0.13em;
  text-transform: uppercase;
  padding-block: 3px;
}
.brand--footer .brand__name { font-size: 1.6rem; }
.brand--footer .brand__the::before, .brand--footer .brand__the::after,
.brand--footer .brand__sub::before, .brand--footer .brand__sub::after { width: 22px; }

.header-nav { border-top: 1px solid var(--rule-light); }
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
  min-height: 58px;
}
.site-nav a,
.site-nav__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 2px;
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease;
}
.site-nav a:hover,
.site-nav__more:hover { border-bottom-color: currentColor; }
.site-nav a[aria-current='page'],
.site-nav__more[data-current='true'] { border-bottom-color: currentColor; font-weight: 500; }
.site-nav__more svg { transition: transform 0.2s ease; }
.site-nav__more[aria-expanded='true'] { border-bottom-color: currentColor; }
.site-nav__more[aria-expanded='true'] svg { transform: rotate(180deg); }

/* ---- mega panels -------------------------------------------------------- */

/* The panel is inside the header rather than floating below it, so opening one
   pushes nothing and the whole assembly can invert to the dark surface in a
   single state change on <header>. */
.site-header.is-open {
  background: var(--ink);
  color: var(--paper);
}
.site-header.is-open .header-nav,
.site-header.is-open .nav-toggle { border-color: var(--rule-dark); }
.site-header.is-open { border-bottom-color: var(--rule-dark); }

.mega[hidden] { display: none; }
.mega {
  padding-block: 34px 46px;
  border-top: 1px solid var(--rule-dark);
}
.mega__label {
  font-family: var(--serif);
  font-size: var(--t-body);
  color: var(--muted-dark);
  margin-bottom: 18px;
}
.mega__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
}
.mega__cols li + li { margin-top: 2px; }
.mega__cols a {
  display: block;
  padding: 6px 0;
  font-weight: 500;
  text-decoration: none;
}
.mega__cols a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .site-nav__more svg { transition: none; }
}

/* ---- breadcrumb --------------------------------------------------------- */

.crumbs {
  margin-top: 18px;
  font-size: var(--t-small);
  color: var(--muted-dark);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { padding-inline: 6px; }

.nav-toggle {
  display: none;
  justify-self: end;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: none;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 22px; }
.nav-toggle__bars span { height: 1.5px; background: currentColor; }

/* ---- full-screen menu --------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 24px clamp(24px, 5vw, 60px) 48px;
}
.menu__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: none;
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
}
.menu__col h2 {
  font-size: var(--t-body);
  margin-bottom: 6px;
  border-bottom: 1px solid var(--rule-dark);
}
.menu__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.menu__toggle svg { flex: 0 0 auto; transition: transform 0.2s ease; }
.menu__toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
.menu__col ul[hidden] { display: none; }
.menu__col ul { padding-block: 6px 14px; }

@media (prefers-reduced-motion: reduce) {
  .menu__toggle svg { transition: none; }
}
.menu__col li + li { margin-top: 2px; }
.menu__col a {
  display: block;
  padding: 9px 0;
  font-size: 1.0625rem;
  text-decoration: none;
}
.menu__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--rule-dark);
}
.menu__place h3 { font-size: var(--t-body); margin-bottom: 4px; }
.menu__place a { font-size: var(--t-lead); text-decoration: none; }
.menu__place a:hover { text-decoration: underline; text-underline-offset: 4px; }

body.menu-open { overflow: hidden; }

/* ---- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 512px;
  padding-block: clamp(56px, 6vw, 76px);
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Text sits across the full width of the hero, so there is nowhere to hide a
   light patch. Rather than crank a flat scrim up until the photograph turns to
   mud, the *-hero.jpg assets are graded down and up in contrast before they
   ship; the scrim then only has to do the last part of the job, and the room
   behind the type stays readable as a room. Two layers: an even wash for the
   contrast floor, and a left-weighted gradient under the headline. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 23, 29, 0.42) 0%, rgba(5, 23, 29, 0.20) 55%, rgba(5, 23, 29, 0.16) 100%),
    rgba(5, 23, 29, 0.6);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: 100%;
}
.hero h1 { font-size: var(--t-hero); margin-bottom: 26px; }
.hero__aside p { color: var(--paper); }
.hero__note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-dark);
  font-size: var(--t-small);
}

/* Interior pages get the same frame at a shorter height and no photograph —
   the dark band alone is enough to separate the page title from the nav. */
.hero--page { min-height: 340px; }
.hero--page .hero__grid { align-items: end; }
.hero .eyebrow { color: var(--muted-dark); display: block; margin-bottom: 14px; }

/* A closing call to action, used at the foot of every interior page. */
.cta { text-align: center; }
.cta h2 { font-size: var(--t-h2); margin-bottom: 16px; }
.cta p { max-width: 60ch; margin-inline: auto; color: var(--muted-dark); }
.panel--light .cta p { color: var(--muted-light); }
.cta .btn-row { justify-content: center; margin-top: 28px; }

/* ---- two-column intro band --------------------------------------------- */

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(40px, 5vw, 80px);
}
.duo__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.duo__item h2 { font-size: var(--t-h3); }
.duo__item p { color: var(--muted-dark); max-width: 54ch; }
.panel--light .duo__item p { color: var(--muted-light); }

/* ---- assurance strip ---------------------------------------------------- */

/* Where the reference runs a row of accreditation logos. Third-party marks are
   somebody else's trademark and a fictional practice cannot hold them, so this
   carries the same visual weight in type and claims only things about itself. */
.assurance {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--rule-dark);
  padding-block: 30px;
}
.assurance ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px clamp(24px, 4vw, 56px);
}
.assurance li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: var(--t-small);
  letter-spacing: 0.04em;
  color: var(--muted-dark);
}
.assurance b {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--paper);
}

/* ---- media ------------------------------------------------------------- */

.figure {
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d2229;
}
.figure img { width: 100%; }

/* The image that straddles the boundary between a light panel and the dark one
   below it. The gradient is on the section, so the seam lands at a fixed 55%
   of the picture at every width instead of drifting with the aspect ratio. */
.overlap {
  background: linear-gradient(to bottom, var(--paper) 0 55%, var(--ink) 55% 100%);
  padding-top: clamp(40px, 4vw, 64px);
}
.overlap .figure { box-shadow: 0 24px 60px rgba(5, 23, 29, 0.22); }

/* ---- cards -------------------------------------------------------------- */

/* Three columns, declared rather than auto-fit. auto-fit lets a wide viewport
   slip to four, which changes the whole rhythm of the page — the card copy has
   been written to a three-up measure. */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 30px;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  background: var(--white);
}
.panel--dark .card { border-color: var(--rule-dark); background: transparent; }
.card__icon { margin-bottom: 12px; color: var(--ink); }
.panel--dark .card__icon { color: var(--paper); }
.card h3 { font-size: var(--t-h3); }
.card .eyebrow { text-transform: none; letter-spacing: 0; font-weight: 400; }
.card p { color: var(--muted-light); margin: 0; }
.panel--dark .card p { color: var(--muted-dark); }
.card .link-arrow { margin-top: auto; padding-top: 6px; }

/* A whole card that is one link. The anchor covers the card via ::after so the
   heading stays the accessible name and the hit area is the full box. */
.card--link { position: relative; transition: border-color 0.2s ease, transform 0.2s ease; }
.card--link:hover { border-color: var(--ink); transform: translateY(-3px); }
.panel--dark .card--link:hover { border-color: var(--paper); }
.card--link h3 a { text-decoration: none; }
.card--link h3 a::after { content: ''; position: absolute; inset: 0; }
.card--link:focus-within { outline: 2px solid currentColor; outline-offset: 3px; }
.card--link h3 a:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  .card--link:hover { transform: none; }
}

/* ---- team --------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.person { position: relative; border-radius: var(--radius); overflow: hidden; }
.person img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* The caption sits on the photograph, so it carries its own scrim rather than
   trusting the background of an image we cannot control. */
.person__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 46px 20px 18px;
  background: linear-gradient(to top, rgba(5, 23, 29, 0.94) 20%, rgba(5, 23, 29, 0));
  color: var(--paper);
}
.person__caption h3 { font-size: var(--t-h3); }
.person__caption p { margin: 3px 0 0; font-size: var(--t-small); color: #cfdadd; }

/* ---- split ------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.split h2 { font-size: var(--t-h2); }
/* Sibling splits share a panel, so the gap between them is a section break
   rather than two lots of panel padding stacked on each other. */
.split + .split { margin-top: clamp(44px, 4.5vw, 68px); }
.split__body { max-width: 68ch; }
.panel--dark .split__body { color: var(--muted-dark); }
.panel--dark .split__body strong { color: var(--paper); font-weight: 500; }

/* ---- FAQ --------------------------------------------------------------- */

.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); }
.faq h2 { font-size: var(--t-h2); }
.faq__item { border-bottom: 1px solid var(--rule-light); }
.panel--dark .faq__item { border-bottom-color: var(--rule-dark); }
.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: var(--t-h3);
  line-height: 1.15;
}
.faq__sign { flex: 0 0 auto; margin-top: 4px; transition: transform 0.2s ease; }
.faq__q[aria-expanded='true'] .faq__sign { transform: rotate(45deg); }
.faq__a { padding-bottom: 20px; max-width: 68ch; color: var(--muted-light); }
.panel--dark .faq__a { color: var(--muted-dark); }
.faq__a[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .faq__sign { transition: none; }
}

/* ---- location cards ---------------------------------------------------- */

.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.place {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel--light .place { border-color: var(--rule-light); }
.place img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.place__body { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 24px 30px; text-align: center; }
.place__body h3 { font-size: var(--t-h3); }
.place__addr { font-size: var(--t-small); font-weight: 500; letter-spacing: 0.01em; }
.place__tel { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; min-height: 44px; }
.place__tel:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- booking chooser ---------------------------------------------------- */

.book { text-align: center; }
.book__block + .book__block {
  margin-top: clamp(48px, 6vw, 84px);
  padding-top: clamp(48px, 6vw, 84px);
  border-top: 1px solid var(--rule-light);
}
.book h1, .book h2 { font-size: var(--t-h2); margin-bottom: 12px; }
.book__block > p { color: var(--muted-light); max-width: 56ch; margin-inline: auto; }
.book__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.book__choices--single { grid-template-columns: 1fr; }
.book__choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 92px;
  padding: 20px 26px;
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  background: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.book__choice:hover { border-color: var(--ink); }
.book__choice--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.book__choice--solid:hover { background: transparent; color: var(--ink); }
.book__note {
  margin-top: 22px;
  font-size: var(--t-small);
  color: var(--muted-light);
  max-width: 62ch;
  margin-inline: auto;
}
.book__note a { text-decoration: underline; text-underline-offset: 3px; }

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

/* ---- prose pages ------------------------------------------------------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--t-h2); margin-top: 2em; margin-bottom: 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--t-h3); margin-top: 1.6em; margin-bottom: 0.4em; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1.05em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--muted-light); }

/* ---- treatment list ---------------------------------------------------- */

.tlist { display: grid; gap: 0; }
.tlist__row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--rule-light);
}
.panel--dark .tlist__row { border-top-color: var(--rule-dark); }
.tlist__row:last-child { border-bottom: 1px solid var(--rule-light); }
.panel--dark .tlist__row:last-child { border-bottom-color: var(--rule-dark); }
.tlist h3 { font-size: var(--t-h3); }
.tlist p { color: var(--muted-light); margin: 0; }
.panel--dark .tlist p { color: var(--muted-dark); }
.tlist__price { font-family: var(--serif); font-size: var(--t-h3); white-space: nowrap; }

/* ---- forms ------------------------------------------------------------- */

.form { display: grid; gap: 20px; max-width: 620px; }
.field { display: grid; gap: 7px; }
.field label { font-size: var(--t-small); font-weight: 500; }
.field .hint { font-size: var(--t-small); color: var(--muted-light); }
.panel--dark .field .hint { color: var(--muted-dark); }
/* Controls set their own colour rather than inheriting. The form sits on the
   dark panel, so `color: inherit` gave near-white text inside a white field —
   invisible the moment anyone typed. */
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid #9aa4a7;   /* 3:1 against --paper, the minimum for a control */
  border-radius: var(--radius);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field.invalid input, .field.invalid textarea { border-color: #a0202b; }
.field .error { font-size: var(--t-small); color: #8c1b25; }
/* On the dark panel the error red has to lighten, not darken, to clear 4.5:1. */
.panel--dark .field .error { color: #f2a7ad; }
.field:not(.invalid) .error { display: none; }
.field--hp { position: absolute; left: -9999px; }

.form-note { font-size: var(--t-small); color: var(--muted-light); max-width: 62ch; }
.panel--dark .form-note { color: var(--muted-dark); }
.split h2 + .form-note { margin-top: 16px; }

/* ---- footer ------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(56px, 6vw, 80px) 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px);
  padding-bottom: 40px;
}
.footer-col h2 { font-size: var(--t-body); margin-bottom: 20px; }
.footer-col li + li { margin-top: 3px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-col address { margin-bottom: 18px; }
.footer-tel { display: inline-block; font-weight: 500; margin-bottom: 14px; text-decoration: none; }
.footer-tel:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-brand { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.socials { display: flex; gap: 6px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
}
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.socials a:hover { background: rgba(243, 243, 243, 0.12); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
  font-size: var(--t-small);
  color: var(--muted-dark);
}
.footer-legal p { margin: 0; }
.footer-legal__links { display: flex; gap: 22px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- scroll reveal ----------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---- responsive -------------------------------------------------------- */

/* Ten nav items need roughly 1180px before they start wrapping into a second
   line and doubling the header height. Below that the bar is replaced by the
   full-screen menu rather than being allowed to reflow. */
@media (max-width: 1180px) {
  .header-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-book { display: none; }
  .header-top .wrap { min-height: 108px; }
}

@media (max-width: 1000px) {
  .cards, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .split, .faq { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .tlist__row { grid-template-columns: 1fr; gap: 8px; }
  .tlist__price { margin-top: 4px; }
}

@media (max-width: 640px) {
  .cards, .team-grid, .places { grid-template-columns: 1fr; }
}

/* Below this the three header items cannot share one row without the phone
   number wrapping mid-digits. The reference stacks its mobile header too, so
   the fix and the fidelity point the same way: contact and menu on top, the
   wordmark centred underneath. The number stays visible at full size — on a
   clinic site it is the highest-value element on the page. */
@media (max-width: 760px) {
  .header-top .wrap {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'tel   toggle'
      'brand brand';
    row-gap: 14px;
    min-height: 0;
    padding-block: 16px;
  }
  .header-tel { grid-area: tel; white-space: nowrap; }
  .nav-toggle { grid-area: toggle; }
  .brand { grid-area: brand; }
}

@media (max-width: 620px) {
  .header-tel { font-size: 0.9375rem; gap: 6px; }
  .brand__name { font-size: 1.6rem; }
  .brand__the::before, .brand__the::after,
  .brand__sub::before, .brand__sub::after { width: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}
