/* ==========================================================================
   Dr Ella Seccombe – site stylesheet
   One file, organised as: fonts → tokens → base → layout → components
   → page-specific blocks → utilities. Components use BEM-style names
   (.block, .block__element, .block--modifier). Keep selectors to a single
   class where possible so specificity never fights.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/geist-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --c-bg: #F6F1EC;
  --c-surface: #FBF8F5;
  --c-surface-tint: #F0E4DA;
  --c-placeholder: #EADFD5;
  --c-skin: #F0D6C4;
  --c-ink: #231E1B;
  --c-ink-hover: #4A3A31;
  --c-ink-soft: #2E2420;
  --c-ink-deep: #3A2A22;
  --c-text: #4F4640;
  --c-text-soft: #5E544D;
  --c-muted: #6E645D;
  --c-accent: #7A5644;
  --c-accent-soft: #B88A72;
  --c-link-hover: #6B4A3A;
  --c-line: #E4DAD1;
  --c-line-2: #E0D5CB;
  --c-line-3: #DDD1C6;
  --c-control: #CDBFB3;
  --c-input-border: #D9CCC0;
  --c-input-bg: #FFFDFB;
  --c-error: #9A3B2E;

  /* Dark surfaces */
  --c-dark: #231E1B;
  --c-dark-2: #2E2723;
  --c-dark-3: #3A312C;
  --c-dark-line: #4A3F38;
  --c-dark-border: #6A5D54;
  --c-dark-text: #CFC4BB;
  --c-footer: #1C1816;
  --c-footer-text: #E8DED6;
  --c-footer-muted: #B9ADA4;
  --c-footer-faint: #9C9088;
  --c-footer-line: #3A322D;

  /* Type */
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max-width: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-height: 76px;

  /* Radii */
  --r-pill: 999px;
  --r-arch: 999px 999px 24px 24px;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 24px;
}

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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
p { text-wrap: pretty; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--c-ink); text-decoration: none; }
a:hover { color: var(--c-link-hover); }

input, textarea, button, select { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: #E7C3AC; }

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

[id] { scroll-margin-top: calc(var(--header-height) + 16px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 1100px; }
.container--prose { max-width: 900px; }

.section { padding-block: clamp(64px, 8vw, 112px); }
.section--lg { padding-block: clamp(72px, 10vw, 140px); }
.section--hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 6vw, 80px); overflow-x: clip; }
.section--page-head { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.section--page { padding-block: clamp(48px, 7vw, 96px); }
.section--flush-top { padding-top: 0; }
.section--tail { padding-bottom: clamp(80px, 10vw, 120px); }

.section--dark { background: var(--c-dark); color: var(--c-bg); }
.section--skin { background: var(--c-skin); }
.section--surface {
  background: var(--c-surface);
  border-block: 1px solid var(--c-line);
}

/* Responsive two-up layout. Columns collapse when narrower than --split-min. */
.split {
  --split-min: 420px;
  --split-gap: clamp(32px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--split-min)), 1fr));
  gap: var(--split-gap);
  align-items: center;
}
.split--380 { --split-min: 380px; }
.split--340 { --split-min: 340px; }
.split--wide-gap { --split-gap: clamp(40px, 6vw, 96px); }
.split--end { align-items: end; }
.split--start { align-items: start; }
.split--stretch { align-items: stretch; }

/* Text beside an image. Stacked (below 860px) it always reads heading → image
   → body, so every section on a phone follows the same pattern. Markup order is
   __head, __media, __body. Side by side, the text is centred against the image. */
.media-split {
  --media-split-gap: clamp(32px, 5vw, 80px);
  display: grid;
  grid-template-areas: "head" "media" "body";
  gap: 24px;
}
.media-split__head { grid-area: head; }
.media-split__media { grid-area: media; width: 100%; }
.media-split__body { grid-area: body; }
.media-split--wide-gap { --media-split-gap: clamp(40px, 6vw, 96px); }

@media (min-width: 860px) {
  .media-split {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". media" "head media" "body media" ". media";
    column-gap: var(--media-split-gap);
  }
  .media-split--reverse { grid-template-areas: "media ." "media head" "media body" "media ."; }
  .media-split__media { align-self: center; }
}

/* --drop-media: leave the image out when stacked, so phones don't get
   several photos in a row. Its img should be loading="lazy" so it's never fetched. */
@media (max-width: 859px) {
  .media-split--drop-media { grid-template-areas: "head" "body"; }
  .media-split--drop-media .media-split__media { display: none; }
}

/* Vertical rhythm */
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--xs { gap: 6px; }
.stack--sm { gap: 14px; }
.stack--md { gap: 20px; }
.stack--lg { gap: 28px; }
.stack--center { align-items: center; text-align: center; }

.measure { max-width: 560px; }
.measure-lg { max-width: 600px; }
.measure-xl { max-width: 1000px; }

/* ---------- Typography components ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.eyebrow--skin { color: var(--c-skin); }
.eyebrow--deep { color: var(--c-ink-deep); }
.eyebrow--rule {
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow--rule::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--c-ink);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--c-accent); }
.display--xxl { font-size: clamp(56px, 8vw, 120px); line-height: 0.92; letter-spacing: -0.03em; }
.display--xl { font-size: clamp(52px, 7.4vw, 108px); line-height: 0.96; letter-spacing: -0.025em; }
.display--feature { font-size: clamp(42px, 5.4vw, 80px); line-height: 0.98; }
.display--l { font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.display--m { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; }
.display--s { font-size: clamp(36px, 4vw, 56px); line-height: 1.02; }
.display--card { font-size: 30px; line-height: 1.05; letter-spacing: -0.01em; }

.lede { font-size: 18px; color: var(--c-text); max-width: 460px; }
.text-lg { font-size: 19px; color: var(--c-ink-soft); }
.text-md { font-size: 17px; color: var(--c-text); }
.text-body { color: var(--c-text); }
.text-sm { font-size: 15px; color: var(--c-muted); }

.statement {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.25;
  text-wrap: balance;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--md { padding: 14px 24px; font-size: 14px; }
.btn--block { width: 100%; padding: 17px; }

.btn--primary { background: var(--c-ink); color: var(--c-bg); }
.btn--primary:hover { background: var(--c-ink-hover); color: var(--c-bg); }

.btn--outline { border-color: var(--c-ink); color: var(--c-ink); }
.btn--outline:hover { background: var(--c-ink); color: var(--c-bg); }

.btn--outline-light { border-color: var(--c-dark-border); color: var(--c-bg); }
.btn--outline-light:hover { background: var(--c-bg); color: var(--c-ink); }
.btn--outline-light:focus-visible { outline-color: var(--c-skin); }

.text-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--c-ink);
  font-weight: 500;
}
.text-link:hover { color: var(--c-accent); border-color: var(--c-accent); }
.text-link--sm { font-size: 14px; padding-bottom: 3px; }
.text-link--center { align-self: center; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-bg);
}
.skip-link:focus { top: 12px; color: var(--c-bg); }

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 236, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-block: 18px;
}

.brand { display: block; flex-shrink: 0; }
.brand__logo { width: auto; height: 38px; }

.nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: inline-block;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  font-size: 14px;
}
.nav__link[aria-current="page"] { border-bottom-color: var(--c-ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--c-ink);
  border-radius: var(--r-pill);
  background: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before,
.nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -5px; }
.nav-toggle__icon::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-5px) rotate(-45deg); }

/* Keep the logo and Menu button on one row down to ~340px wide */
@media (max-width: 480px) {
  .site-header__inner { column-gap: 8px; }
  .brand__logo { height: 32px; }
  .nav-toggle { gap: 8px; padding: 9px 12px; }
}
@media (max-width: 374px) {
  .brand__logo { height: 28px; }
}

/* Collapsed navigation on small screens (only when JS is available) */
@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; width: 100%; }
  .js .nav.is-open { display: block; }
  .js .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 8px 12px;
  }
  .js .nav__link { display: block; padding: 14px 0; font-size: 17px; border-bottom-color: var(--c-line); }
  .js .nav__link[aria-current="page"] { border-bottom-color: var(--c-ink); }
  .js .nav__item--cta { padding-top: 16px; }
  .js .nav__item--cta .btn { width: 100%; padding-block: 15px; font-size: 15px; }
}

/* ---------- Media frames ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--c-placeholder);
}
.media picture { display: block; width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; }
.media img { object-fit: cover; }

.media--arch { aspect-ratio: 4 / 5; border-radius: var(--r-arch); }
.media--portrait { aspect-ratio: 3 / 4; border-radius: var(--r-md); width: 100%; max-width: 480px; }
.media--landscape { aspect-ratio: 3 / 2; border-radius: var(--r-md); }
.media--card { aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: var(--c-dark-3); }

/* Shallower crops on phones and small tablets so images don't fill the screen */
@media (max-width: 859px) {
  .media--landscape { aspect-ratio: 16 / 9; max-height: 280px; }
  .media--card { aspect-ratio: 16 / 9; }
}

/* Two overlapping discs – the brand motif */
.motif { display: flex; align-items: center; }
.motif::before,
.motif::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.motif::before { background: var(--c-skin); }
.motif::after { margin-left: -5px; border: 1.5px solid var(--c-dark-text); }
.motif--lg::before,
.motif--lg::after { width: 18px; height: 18px; }
.motif--lg::after { margin-left: -7px; border-color: var(--c-accent); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--c-ink);
  border-radius: var(--r-pill);
  font-size: 14px;
}
.chip--soft { background: var(--c-surface); border-color: var(--c-line-2); }
a.chip--soft:hover { border-color: var(--c-ink); color: var(--c-ink); }

/* ---------- Hero ---------- */
/* Text first when stacked, so the booking buttons stay near the top on phones.
   The photo is capped at 300px wide until there's room for two columns. */
.hero {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero__content { display: flex; flex-direction: column; gap: 28px; padding-bottom: 12px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__media { position: relative; width: min(100%, 300px); }
@media (min-width: 1060px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero__media { width: auto; }
}
.hero__media::before {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 62%;
  height: 62%;
  border-radius: var(--r-arch);
  background: var(--c-skin);
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line-2);
  font-size: 13px;
  color: var(--c-text);
}
.credentials__item { display: flex; flex-direction: column; }
.credentials__term { font-family: var(--font-display); font-size: 26px; line-height: 1.1; color: var(--c-ink); }

/* ---------- Insurer band ---------- */
.band { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.insurers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px clamp(18px, 3vw, 40px);
  padding-block: 22px;
}
.insurers__label { letter-spacing: 0.14em; }
.insurers__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(16px, 2.6vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 22px;
  color: #3A322D;
}

/* ---------- Section heading row ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head__text { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }

/* ---------- Treatment cards (home) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.treatment-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 14px 14px 24px;
  border-radius: var(--r-md);
  background: var(--c-dark-2);
  color: var(--c-bg);
  transition: background-color 0.25s;
}
.treatment-card:hover { background: var(--c-dark-3); color: var(--c-bg); }
.treatment-card:focus-visible { outline-color: var(--c-skin); }
.treatment-card__body { display: flex; flex-direction: column; gap: 10px; padding-inline: 8px; }
.treatment-card__text { font-size: 15px; color: var(--c-dark-text); }

/* ---------- Testimonial carousel ---------- */
.carousel { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.carousel__slides { margin: 0; padding: 0; list-style: none; display: grid; gap: 48px; width: 100%; }
.carousel__figure { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.carousel__controls { display: flex; align-items: center; gap: 20px; }
.carousel__dots { display: flex; gap: 8px; }

/* With JS, slides stack in one grid cell so the tallest sets the height (no jumping). */
.js .carousel__slides { gap: 0; }
.js .carousel__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.js .carousel__slide.is-active { opacity: 1; visibility: visible; }

.quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 0.4;
  height: 48px;
  color: var(--c-accent-soft);
}
.quote-mark--md { font-size: 90px; line-height: 0.5; height: 34px; color: var(--c-ink); }
.quote-mark--sm { font-size: 72px; line-height: 0.5; height: 28px; }

.quote {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.attribution { font-size: 14px; color: var(--c-muted); }

.icon-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-control);
  border-radius: 50%;
  background: none;
  color: var(--c-ink);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }

.dot {
  width: 6px;
  height: 26px;
  padding: 10px 0;
  border: 0;
  border-radius: 6px;
  background: var(--c-control);
  background-clip: content-box;
  transition: width 0.3s, background-color 0.3s;
}
.dot[aria-current="true"] { width: 28px; background-color: var(--c-ink); }

/* ---------- Clinic cards & maps ---------- */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clinic-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-surface);
}
.clinic-card__body {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
}
.clinic-card__town { letter-spacing: 0.14em; }
.clinic-card__note { font-size: 13px; color: var(--c-accent); }
.clinic-card__address { font-style: normal; font-size: 15px; color: var(--c-text); }

.map {
  position: relative;
  height: 240px;
  background-color: var(--c-placeholder);
  background-image:
    linear-gradient(var(--c-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 32px 32px;
}
/* A static capture of the Google embed (pin centred) stands in until the
   visitor asks for the live map. The iframe is appended last, so it covers it. */
.map__preview { position: absolute; inset: 0; }
.map__preview img,
.map__frame {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) sepia(0.25) contrast(0.95);
}
.map__preview img { object-fit: cover; }
.map__frame { position: relative; }
.map__actions {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 14px 26px;
}
.map__link {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.map__link:hover { border-color: var(--c-ink); color: var(--c-ink); }
.map__credit {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 1px 6px;
  background: rgba(251, 248, 245, 0.8);
  font-size: 10px;
  color: var(--c-text);
}
.map.is-loaded .map__actions { display: none; }

/* ---------- About: badge ---------- */
.badge {
  align-self: flex-start;
  padding: 12px 18px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: #FFFFFF;
}
.badge img { width: auto; height: 64px; }

.media--about { max-width: 520px; width: 100%; justify-self: end; }
@media (max-width: 859px) {
  .media--about { max-width: 300px; justify-self: start; }
}

/* ---------- Timeline ---------- */
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding-block: 22px;
  border-top: 1px solid var(--c-line-2);
}
.timeline__year { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--c-accent); }
.timeline__title { font-size: 17px; font-weight: 500; }
.timeline__org { font-size: 14px; color: var(--c-muted); }
.timeline__desc { font-size: 14px; color: var(--c-text); }

/* ---------- Pull quote ---------- */
.pull-quote {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--r-lg);
  background: var(--c-skin);
}
.pull-quote__text {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.2;
  text-wrap: balance;
}
.pull-quote__caption { font-size: 14px; color: var(--c-ink-deep); }

/* ---------- Publications & memberships ---------- */
.pub-list { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.pub-list__item { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--c-dark-line); }
.pub-list__title { font-family: var(--font-display); font-size: 24px; font-style: normal; line-height: 1.2; }
.pub-list__meta { font-size: 14px; color: var(--c-dark-text); }

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.member-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  height: 100%;
  min-height: 112px;
  padding: 16px;
  border-radius: 14px;
  background: var(--c-dark-2);
  font-size: 14px;
  line-height: 1.35;
  color: var(--c-footer-text);
}
.member-card__logo { height: 72px; padding: 8px; border-radius: 8px; background: #FFFFFF; }
.member-card__logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Treatments page ---------- */
/* Each .feature is also a .media-split, which handles the layout */
.feature-list { display: flex; flex-direction: column; }
.feature {
  --media-split-gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--c-line-2);
}
.feature__head { display: flex; flex-direction: column; gap: 18px; }
.feature__body { max-width: 520px; }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  /* Capped column width, so a lone card doesn't stretch its prices away from their names */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 720px));
  gap: 20px;
  align-items: start;
}
.price-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}
.price-card--tint { background: var(--c-surface-tint); }
.price-card__title { margin-bottom: 4px; font-size: 36px; line-height: 1.05; }
.price-card__note { margin-bottom: 12px; font-size: 14px; color: var(--c-text-soft); }
.price-list { margin: 0; }
.price-list__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block: 14px;
  border-top: 1px solid var(--c-line-3);
}
.price-list__name { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 15px; font-weight: 500; }
.price-list__sub { font-size: 13px; font-weight: 400; color: var(--c-muted); }
.price-list__price { font-family: var(--font-display); font-size: 26px; line-height: 1; white-space: nowrap; }

/* ---------- Testimonials page ---------- */
.rating { font-size: 14px; color: var(--c-text); }
.rating__stars { margin-right: 6px; font-size: 15px; letter-spacing: 0.3em; color: var(--c-accent); }

.stories { columns: 3 340px; column-gap: 20px; }
.story {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  break-inside: avoid;
}
.story--tint { background: var(--c-surface-tint); }
.story__title { font-size: 28px; line-height: 1.1; letter-spacing: -0.01em; }
.story p { font-size: 15px; color: var(--c-text); }
.story__footer { padding-top: 12px; border-top: 1px solid var(--c-line-3); font-size: 13px; color: var(--c-muted); }

/* ---------- Contact ---------- */
.contact-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c-line-2); }
.contact-list__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--c-line-2);
}
.contact-list__row--top { align-items: flex-start; }
.contact-list__label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }
.contact-list__value {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.contact-list__value--plain { font-family: var(--font-body); font-size: 16px; text-align: right; }

.panel {
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--c-line);
  border-radius: 28px;
  background: var(--c-surface);
}

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 22px; }
.form__title { font-size: 36px; line-height: 1; }

.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; font-size: 13px; color: var(--c-text); }
.field__legend { margin-bottom: 10px; padding: 0; }

.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-input-border);
  border-radius: var(--r-sm);
  background: var(--c-input-bg);
  color: var(--c-ink);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { border-color: var(--c-ink); outline: none; box-shadow: 0 0 0 3px rgba(35, 30, 27, 0.12); }
.input--textarea { resize: vertical; min-height: 128px; }

.segmented { display: flex; gap: 8px; }
.segmented__option { position: relative; flex: 1; }
.segmented__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented__label {
  display: block;
  padding: 12px;
  border: 1px solid var(--c-ink);
  border-radius: var(--r-pill);
  font-size: 15px;
  text-align: center;
  color: var(--c-ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.segmented__input:checked + .segmented__label { background: var(--c-ink); color: var(--c-bg); }
.segmented__input:focus-visible + .segmented__label { outline: 2px solid var(--c-ink); outline-offset: 3px; }

.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13px; color: var(--c-muted); }
.form__note a { text-decoration: underline; text-underline-offset: 2px; }
.form__error { font-size: 14px; color: var(--c-error); }
.form__error:empty { display: none; }
.form .btn--block { margin-top: 6px; }
.form [aria-busy="true"] { opacity: 0.6; pointer-events: none; }

.success {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  min-height: 420px;
}
.success__tick {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-skin);
  font-size: 22px;
}
.success__title { font-size: 44px; line-height: 1; }
.success__link { padding: 0 0 3px; border: 0; border-bottom: 1px solid var(--c-ink); background: none; font-size: 14px; font-weight: 500; }

/* ---------- Call-to-action band ---------- */
.cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px;
  align-items: end;
  padding: clamp(40px, 6vw, 88px);
  border-radius: 32px;
  background: var(--c-skin);
}
.cta__title { font-size: clamp(40px, 5vw, 72px); line-height: 0.98; }
.cta__body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* ---------- Plain content pages (policies, 404) ---------- */
.prose { max-width: 720px; color: var(--c-text); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.1; color: var(--c-ink); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 0.5em; }
.prose strong { font-weight: 500; color: var(--c-ink); }
.prose code { font-size: 0.9em; overflow-wrap: anywhere; }
.prose__meta { font-size: 14px; color: var(--c-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-footer); color: var(--c-footer-text); }
.site-footer a { color: var(--c-footer-text); }
.site-footer a:hover { color: var(--c-skin); }
.site-footer :focus-visible { outline-color: var(--c-skin); }
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-block: clamp(56px, 7vw, 88px) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px;
}
.footer-brand { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--c-bg); }
.footer-about { max-width: 340px; font-size: 14px; color: var(--c-footer-muted); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col__heading { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-skin); }
.footer-col__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col__address { font-style: normal; display: contents; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--c-footer-line);
  font-size: 13px;
  color: var(--c-footer-faint);
}
.footer-bottom__links { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-footer .footer-bottom a { color: var(--c-footer-faint); }
.site-footer .footer-bottom a:hover { color: var(--c-skin); }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] { display: none !important; }
