/* Fit Physiotherapy: one stylesheet, the FIT identity.
   Tokens transcribed from the approved brand masters on Mon 14th Sep 2026: the
   leaflet production data and the brand review. Fir, Chalk, Leaf, Pale, Line and
   Ink; EB Garamond for display and Inter for everything else. Every f used as a
   background is the exact flat-back master path, scaled uniformly, never
   redrawn and never reflected. No em dashes anywhere, including comments.
   British English throughout. */

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

:root {
  --fir: #153F35;
  --fir-deep: #0E2F27;
  --chalk: #F5F3EB;
  --leaf: #D2E47B;
  --pale: #E2E8D8;
  --line: #B9C7B8;
  --ink: #1E2B25;

  --bg: var(--chalk);
  --surface: #FBFAF6;
  --text-2: #45524A;
  --border: #D5DBD0;
  /* The visible boundary of a control (ghost button, nav toggle) uses
     --border-strong, which clears the WCAG 1.4.11 3:1 minimum on Chalk. */
  --border-strong: #6B7A71;
  --accent: var(--fir);
  --accent-hover: var(--fir-deep);
  --on-accent: var(--chalk);
  --on-accent-2: rgba(245, 243, 235, 0.86);

  --font-display: "EB Garamond", Garamond, "Times New Roman", Georgia, serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --display-weight: 500;
  --display-tracking: -0.01em;

  --h1: clamp(2.35rem, 5.4vw, 3.6rem);
  --h2: clamp(1.85rem, 3.6vw, 2.6rem);
  /* One step between h2 and h1, for the single pivot heading on a page. */
  --h2-lead: clamp(2.1rem, 4.6vw, 3.2rem);
  --h3: clamp(1.3rem, 2.1vw, 1.55rem);
  --body: clamp(1.0625rem, 1.03rem + 0.16vw, 1.125rem);

  --radius: 2px;
  --radius-lg: 2px;
  --radius-pill: 999px;
  --hairline: 1px;
  --btn-pad: 0.78rem 1.35rem;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --section-y: clamp(52px, 8vw, 104px);
  --wrap: 1180px;
  --media-ratio: 16 / 10;

  --reveal-shift: 12px;

  /* The f master as a background, in three inks: Pale on Chalk, a lifted Fir on
     Fir, and a faint Pale on the Pale pivot section. */
  --f-pale: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 100'%3E%3Cpath d='M0 100V35C0 12 12 0 34 0H48V17H35C23 17 17 23 17 36V38H46V54H17V100Z' fill='%23E2E8D8'/%3E%3C/svg%3E");
  --f-fir: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 100'%3E%3Cpath d='M0 100V35C0 12 12 0 34 0H48V17H35C23 17 17 23 17 36V38H46V54H17V100Z' fill='%231C4A3F'/%3E%3C/svg%3E");
}


/* ------------------------------------------------------------------ base */

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

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

/* The header is sticky, so an in-page jump would otherwise land the target
   underneath it. 72px is .site-header__inner min-height. */
:target { scroll-margin-top: calc(72px + var(--s2)); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.6;
  padding-bottom: 72px; /* clearance for the sticky mobile bar */
}

@media (min-width: 768px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.08;
  color: var(--fir);
  margin: 0 0 var(--s2);
}

h1, h2, h3 { text-wrap: balance; }

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.2; }

p, ul, ol, dl { margin: 0 0 var(--s3); }
p, li { max-width: 68ch; text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a { transition: color 150ms ease-out, background-color 150ms ease-out, border-color 150ms ease-out; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

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

strong { font-weight: 600; }

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s3);
}

.skip-link {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 60;
  background: var(--fir);
  color: var(--chalk);
  padding: var(--s1) var(--s2);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: top 150ms ease-out;
}
.skip-link:focus { top: var(--s2); color: var(--chalk); }

/* No label class above section headings. The one eyebrow on the site is the
   home hero's, set exactly as the approved homepage visual sets it. */

.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--text-2); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(28px, 5vw, 60px); }
.section--surface { background: var(--surface); border-block: var(--hairline) solid var(--border); }
.section--run { padding-top: 0; }

/* The page's turn: more room and the Pale ground, once per page. */
.section--open {
  padding-block: clamp(72px, 10vw, 128px);
  background: var(--pale);
}
.section--open + .section--run { border-top: 0; }

.section__head { max-width: 62ch; margin-bottom: var(--s5); }
.section__head--tight { margin-bottom: var(--s3); }

.section--open .section__head .lede {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: var(--display-tracking);
  color: var(--fir);
  max-width: 32ch;
  margin-top: var(--s3);
  margin-bottom: 0;
  text-wrap: balance;
}

@media (min-width: 900px) {
  .section--open .section__head:has(.lede) {
    max-width: none;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: var(--s6);
    align-items: start;
  }
  .section--open .section__head:has(.lede) > * { margin-bottom: 0; }
  .section--open .section__head:has(.lede) .lede { margin-top: 0; max-width: 40ch; }
}

.section__close {
  margin-top: var(--s4);
  max-width: 52ch;
  color: var(--text-2);
}

.section--prose h2 {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: var(--hairline) solid var(--border);
  max-width: none;
}
.section--prose > .wrap > h2:first-of-type { margin-top: var(--s5); }
.section--prose p { max-width: 66ch; }
.section--prose h2 + p { font-size: clamp(1.0625rem, 1.6vw, 1.15rem); color: var(--text-2); }

/* Photographs inside a text column. Square corners, as the identity sets them. */
.media { width: 100%; border-radius: 0; }

.h2--lead { font-size: var(--h2-lead); }

/* --------------------------------------------------------- confirm token */

.confirm {
  background: #FFE9B8;
  color: #6B4B00;
  border: 1px solid rgba(107, 75, 0, 0.35);
  padding: 0 0.35em;
  border-radius: 4px;
  font-weight: 600;
  overflow-wrap: break-word;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 48px;
  padding: var(--btn-pad);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.btn:hover { text-decoration: none; }

/* The arrow in the approved visual's buttons: it points out, because both
   actions leave the page for the phone or WhatsApp. */
.btn__arrow { flex: none; width: 14px; height: 14px; margin-left: var(--s3); }

.btn--primary { background: var(--fir); color: var(--chalk); border-color: var(--fir); }
.btn--primary:hover { background: var(--fir-deep); border-color: var(--fir-deep); color: var(--chalk); }

.btn--ghost { background: transparent; color: var(--fir); border-color: var(--fir); }
.btn--ghost:hover { background: rgba(21, 63, 53, 0.07); color: var(--fir); }

/* Written as .band .btn so it outranks the .band a colour rule below. */
.btn--on-accent,
.band .btn--on-accent { background: var(--chalk); color: var(--fir); border-color: var(--chalk); }
.btn--on-accent:hover,
.band .btn--on-accent:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--fir-deep); }

.btn--on-accent-line,
.band .btn--on-accent-line { background: transparent; color: var(--chalk); border-color: rgba(245, 243, 235, 0.72); }
.btn--on-accent-line:hover,
.band .btn--on-accent-line:hover { background: rgba(245, 243, 235, 0.1); border-color: var(--chalk); color: var(--chalk); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--chalk);
  border-bottom: var(--hairline) solid var(--line);
  transition: box-shadow 200ms ease-out;
}

html.scrolled .site-header { box-shadow: 0 6px 18px rgba(21, 63, 53, 0.1); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 72px;
}

.lockup {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  color: var(--fir);
  text-decoration: none;
  margin-right: auto;
}
.lockup:hover { color: var(--fir); }
.lockup__mark { flex: none; display: block; }
.lockup__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.005em;
  color: currentColor;
  padding-bottom: 2px;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-left: var(--s3);
  border-left: var(--hairline) solid var(--line);
  color: var(--fir);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__phone:hover { color: var(--fir-deep); text-decoration: underline; }
.site-header__phone svg { flex: none; }

.site-header__call { display: none; min-height: 44px; padding: 0 var(--s2); }

.primary-nav__list {
  display: flex;
  gap: var(--s3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav__list > li > a,
.navdrop__trigger {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}
.primary-nav__list > li > a:hover,
.navdrop__trigger:hover { color: var(--fir); border-bottom-color: var(--leaf); }

.primary-nav__contact { display: none; }

/* ------------------------------------------------------- nav dropdown  */

/* One dropdown, on Conditions. Opened by click or key, never by hover. */
.navdrop { position: relative; }

.navdrop__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  line-height: inherit;
  padding-inline: 0;
  cursor: pointer;
}
.navdrop__chevron { flex: none; transition: transform 180ms ease-out; }
.navdrop[data-open="true"] .navdrop__chevron { transform: rotate(180deg); }
.navdrop[data-open="true"] > .navdrop__trigger { color: var(--fir); border-bottom-color: var(--leaf); }

.navdrop__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 40;
  width: min(560px, 92vw);
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(21, 63, 53, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97) translateY(-6px);
  transform-origin: top left;
  transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 0s linear 180ms;
}
.navdrop[data-open="true"] .navdrop__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 0s;
}

/* Anchored to the nav rather than to the list item, so the 560px panel can
   never run past the right edge of a 1024px viewport. */
@media (min-width: 900px) {
  .primary-nav { position: relative; }
  .navdrop { position: static; }
  .navdrop__panel { left: 0; right: auto; transform-origin: top left; }
}

.navdrop__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
@media (min-width: 900px) { .navdrop__grid { grid-template-columns: 1fr 1fr; column-gap: var(--s2); } }

.navdrop__grid a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border-bottom: 0;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.navdrop__grid a:hover,
.navdrop__grid a:focus-visible { background: rgba(21, 63, 53, 0.08); color: var(--ink); }

.navdrop__name { font-weight: 600; font-size: 0.9375rem; color: var(--fir); }
.navdrop__note { font-size: 0.8125rem; line-height: 1.35; color: var(--text-2); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 11px 10px;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--fir);
  border-radius: 2px;
  margin-block: 4px;
}

/* Mobile: the Call button stays in the header, and the menu is a slide-in
   panel with the Conditions group expanding inline and the two contact
   actions at its foot. */
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-header__call { display: inline-flex; }
  .lockup { margin-right: auto; }
  .site-header__inner { position: relative; gap: var(--s2); }
  .primary-nav {
    position: fixed;
    top: 73px; /* header min-height plus its hairline */
    right: 0;
    bottom: 0;
    z-index: 40;
    width: min(360px, 88vw);
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    background: var(--surface);
    border-left: var(--hairline) solid var(--line);
    box-shadow: 0 18px 50px rgba(21, 63, 53, 0.22);
    padding: var(--s3);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 200ms ease-out, visibility 0s linear 200ms;
  }
  .primary-nav[data-open="true"] {
    transform: none;
    visibility: visible;
    transition: transform 200ms ease-out, visibility 0s;
  }
  .primary-nav__list { flex-direction: column; gap: var(--s2); }
  .site-header__phone { display: none; }
  .primary-nav__contact { display: grid; gap: var(--s2); margin-top: auto; }
  .primary-nav__contact p { margin: 0; font-size: 0.9375rem; color: var(--text-2); }

  .navdrop__panel {
    position: static;
    width: auto;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    box-shadow: none;
    margin-top: var(--s1);
    padding: var(--s2);
  }
  .navdrop[data-open="true"] .navdrop__panel { display: block; }
  .navdrop__trigger { width: 100%; justify-content: space-between; }
}

body.nav-open { overflow: hidden; }
@media (min-width: 900px) { body.nav-open { overflow: visible; } }

@media (min-width: 900px) {
  .primary-nav { display: flex; align-items: center; gap: var(--s4); }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .primary-nav__list { gap: var(--s2); }
  .primary-nav { gap: var(--s3); }
  .site-header__phone { font-size: 1rem; padding-left: var(--s2); }
}

/* A button and a link sit on different baselines, so the desktop row is
   centred to line the Conditions trigger up with the links beside it. Desktop
   only: in the phone menu the list is a column, where centring would move
   every link to the middle of the panel. */
@media (min-width: 900px) { .primary-nav__list { align-items: center; } }

/* ----------------------------------------------------------- breadcrumbs */

.breadcrumbs { border-bottom: var(--hairline) solid var(--border); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  list-style: none;
  margin: 0;
  padding-inline: 0;
  padding-block: var(--s2);
  font-size: 0.9375rem;
  color: var(--text-2);
}
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s1); color: var(--border-strong); }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--fir); }

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

/* Inner-page hero (build.py hero_html): copy left, the f master cropped off
   the right edge in Pale behind it. Decorative only: the text sits on Chalk or
   Pale, and Fir on Pale still measures above 9:1. */
.hero { padding-block: clamp(44px, 6.5vw, 96px); }

.hero--page {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero--page::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 14%;
  right: max(-40px, calc((100vw - var(--wrap)) / 2 - 120px));
  width: clamp(150px, 20vw, 290px);
  height: 125%;
  background: var(--f-pale) no-repeat left top / 100% auto;
  pointer-events: none;
}
@media (max-width: 699px) { .hero--page::after { display: none; } }

.hero__grid { display: grid; gap: var(--s5); align-items: center; }

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--s6); }
}

.hero h1 { margin-bottom: var(--s3); }
.hero__sub { font-size: clamp(1.0625rem, 1.7vw, 1.25rem); color: var(--text-2); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s4);
}
.hero__actions p, .hero__actions a { max-width: none; }

.hero__media img,
.hero__media svg {
  width: 100%;
  aspect-ratio: var(--media-ratio);
  object-fit: cover;
}

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

   The approved homepage visual: copy left on Chalk, the photograph right over
   an oversized crop of the f master in Pale that bleeds off the page edge.
   Deborah's photograph is shown as taken: square-cornered, never cut out, and
   no text over it except the name caption, which sits on its own Fir chip so
   its contrast never depends on the photograph beneath. */

.brandhero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(28px, 5.5vw, 72px);
}
.brandhero__grid { display: grid; gap: var(--s5); }
@media (min-width: 1024px) {
  .brandhero__grid { grid-template-columns: 6fr 5fr; gap: var(--s6); align-items: end; }
}

.brandhero__copy { position: relative; z-index: 1; padding-bottom: clamp(0px, 4vw, 64px); }

.brandhero h1 {
  font-size: clamp(3rem, 7.6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
  margin-bottom: var(--s3);
}
.brandhero__kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fir);
  margin-bottom: var(--s3);
  max-width: 36ch;
}
.brandhero__rule { width: 72px; height: 5px; background: var(--leaf); margin: 0 0 var(--s4); }
.brandhero__campaign {
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  line-height: 1.35;
  color: var(--fir);
  margin-bottom: var(--s3);
}
.brandhero__body { max-width: 42ch; }
.brandhero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0 var(--s2); }
.brandhero__actions .btn { min-width: 11rem; justify-content: space-between; }
.brandhero__contact { font-size: 0.9375rem; margin-bottom: var(--s3); }
.brandhero__contact a { color: var(--fir); font-weight: 500; }
.brandhero__price {
  padding-top: var(--s2);
  border-top: var(--hairline) solid var(--line);
  font-size: 0.9375rem;
  color: var(--text-2);
  max-width: 46ch;
  margin-bottom: 0;
}
.brandhero__price strong { color: var(--fir); font-weight: 600; }

.brandhero__media { position: relative; align-self: end; }
.brandhero__f {
  position: absolute;
  z-index: 0;
  top: -9%;
  right: -34%;
  height: 112%;
  width: auto;
  fill: var(--pale);
}
@media (max-width: 1023px) {
  .brandhero__media { max-width: 560px; }
  .brandhero__f { right: -38%; top: -4%; }
}
.brandhero__figure { position: relative; z-index: 1; margin: 0; }
.brandhero__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.brandhero__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--fir);
  color: var(--chalk);
  padding: 10px 16px 11px;
  font-size: 1rem;
  line-height: 1.3;
  text-align: right;
}
.brandhero__caption span { display: block; font-size: 0.8125rem; color: var(--on-accent-2); }

/* The Fir strip under the hero: registration and the practice facts. */
.firstrip { background: var(--fir); color: var(--chalk); }
.firstrip__row {
  list-style: none;
  margin: 0 auto;
  padding-block: var(--s3);
  display: grid;
  gap: var(--s2) var(--s4);
  font-size: 0.9375rem;
}
@media (min-width: 700px) { .firstrip__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .firstrip__row { grid-template-columns: repeat(4, auto); justify-content: space-between; } }
.firstrip__row li { position: relative; padding-left: 20px; max-width: none; }
.firstrip__row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--leaf);
}
.firstrip a { color: var(--chalk); }
.firstrip a:hover { color: #FFFFFF; }
.firstrip :focus-visible { outline-color: var(--leaf); }

/* "You don't need to be sporty": a heading left, the reasons people come as a
   ruled list of links right. */
.needs { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .needs { grid-template-columns: 5fr 6fr; gap: var(--s7); align-items: start; } }
.needs__tag { font-size: 1.125rem; color: var(--fir); }
.needs__list { list-style: none; margin: 0; padding: 0; border-top: var(--hairline) solid var(--line); }
.needs__list li { max-width: none; border-bottom: var(--hairline) solid var(--line); }
.needs__list a { display: block; padding: var(--s3) 0; text-decoration: none; color: var(--ink); }
.needs__list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  line-height: 1.15;
  color: var(--fir);
  margin-bottom: 4px;
}
.needs__list span { font-size: 0.9375rem; color: var(--text-2); }
.needs__list a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* ------------------------------------------------------------- sections  */

/* Full-bleed Fir band, with the f master cropped off its right edge. */
.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--fir);
  color: var(--on-accent);
  padding-block: var(--section-y);
}
.band::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -12%;
  right: max(-60px, calc((100vw - var(--wrap)) / 2 - 150px));
  width: clamp(160px, 26vw, 380px);
  height: 140%;
  background: var(--f-fir) no-repeat left top / 100% auto;
  pointer-events: none;
}
.band h2, .band h3, .band a { color: var(--on-accent); }
.band p { color: var(--on-accent-2); }
.band :focus-visible { outline-color: var(--leaf); }

.band__grid { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .band__grid { grid-template-columns: 3fr 2fr; gap: var(--s6); } }

.band__number { flex-basis: 100%; font-size: 0.9375rem; color: var(--on-accent-2); }

/* "Start with Deborah": the three steps to getting in touch, on Fir. */
.startband { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .startband { grid-template-columns: 5fr 6fr; gap: var(--s7); align-items: start; } }
.startband h2 { font-size: var(--h2-lead); }
.startsteps { list-style: none; margin: 0; padding: 0; counter-reset: start; border-top: var(--hairline) solid rgba(245, 243, 235, 0.2); }
.startsteps > li {
  counter-increment: start;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: var(--s2);
  padding-block: var(--s3);
  border-bottom: var(--hairline) solid rgba(245, 243, 235, 0.2);
  max-width: none;
}
.startsteps > li::before {
  content: counter(start, decimal-leading-zero);
  color: var(--leaf);
  font-size: 0.9375rem;
  font-weight: 500;
  padding-top: 0.3em;
}
.startsteps h3 { font-size: clamp(1.3rem, 2vw, 1.5rem); margin-bottom: 4px; }
.startsteps p { margin: 0; font-size: 0.9375rem; }

.split { display: grid; gap: var(--s5); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: start; }
  .split--flip { grid-template-columns: 7fr 5fr; }
}

.offset { display: grid; gap: var(--s4); }
@media (min-width: 1024px) {
  .offset { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--s7); }
  .offset__media { margin-block: calc(var(--s5) * -1); }
  .offset--right .offset__media { order: 2; }
}
.offset__media img {
  width: 100%;
  aspect-ratio: var(--media-ratio);
  object-fit: cover;
}

.trio { display: grid; gap: var(--s3); }
@media (min-width: 860px) {
  .trio { grid-template-columns: repeat(5, 1fr); gap: var(--s4); }
  .trio > :nth-child(1) { grid-column: span 3; }
  .trio > :nth-child(2) { grid-column: span 2; }
  .trio > :nth-child(3) { grid-column: span 5; display: grid; grid-template-columns: 1fr 2fr; gap: var(--s4); align-items: center; }
}

.card {
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
}
.card h3 { margin-bottom: var(--s1); }
.card p:last-child { margin-bottom: 0; }

.card--lead { padding: var(--s5); border-top: 4px solid var(--leaf); }
.card--lead h3 { font-size: var(--h2); }
.card--quiet { background: transparent; border-style: dashed; }
.card--flat { background: transparent; border: 0; border-top: 2px solid var(--fir); border-radius: 0; padding: var(--s3) 0 0; }

.levels {
  list-style: none;
  margin: 0 0 var(--s3);
  padding: 0;
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.levels > li { max-width: none; margin: 0; padding: var(--s3) clamp(var(--s3), 3vw, var(--s4)); }
.levels > li + li { border-top: var(--hairline) solid var(--border); }
.levels > li:first-child { background: var(--pale); font-weight: 600; }

.factlist { border-top: var(--hairline) solid var(--line); margin: 0; }
.factlist > div { padding-block: var(--s3); border-bottom: var(--hairline) solid var(--line); }
@media (min-width: 760px) {
  .factlist > div { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s4); align-items: start; }
}
.factlist dt { font-weight: 600; color: var(--fir); margin-bottom: var(--s1); }
.factlist dd { margin: 0; color: var(--text-2); }
.factlist dd p:last-child { margin-bottom: 0; }
.factlist__big { display: inline-block; font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 500; color: var(--fir); text-decoration: none; margin-bottom: var(--s1); }

/* Numbered steps: a horizontal strip, not a card grid. */
.steps { counter-reset: step; display: grid; gap: var(--s4); padding-inline-start: 0; }
.steps > li { list-style: none; max-width: none; }
.steps > li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--fir);
  line-height: 1;
}
.steps h3 { margin-bottom: var(--s1); }

@media (max-width: 799px) {
  .steps { position: relative; gap: var(--s4); }
  .steps::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--line);
  }
  .steps > li { position: relative; padding-left: calc(var(--s5) + var(--s1)); }
  .steps > li::before {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
    border: 2px solid var(--fir);
    border-radius: var(--radius-pill);
    background: var(--chalk);
  }
}

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
  .steps > li::before {
    display: block;
    font-size: 1rem;
    padding-bottom: var(--s2);
    margin-bottom: var(--s2);
    border-bottom: 4px solid var(--leaf);
    width: 2.75rem;
  }
}

.linklist { display: grid; gap: var(--s2); list-style: none; padding: 0; }
@media (min-width: 700px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .linklist { grid-template-columns: repeat(4, 1fr); } }
.linklist li { max-width: none; }
.linklist a {
  display: block;
  height: 100%;
  padding: var(--s3);
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fir);
  font-weight: 600;
  transition: border-color 150ms ease-out, color 150ms ease-out;
}
.linklist a:hover { border-color: var(--fir); color: var(--fir-deep); }
.linklist small { display: block; font-weight: 400; color: var(--text-2); margin-top: 4px; }

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

.reviews { display: grid; gap: var(--s3); }
@media (min-width: 800px) { .reviews { grid-template-columns: 2fr 3fr; align-items: center; } }

.rating-line { display: flex; align-items: center; gap: var(--s2); font-weight: 600; color: var(--fir); }
.rating-line svg { color: var(--fir); flex: none; }

/* ------------------------------------------------------ closing contact  */

/* "Let's talk": the last section on the home page. */
.talk {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: var(--section-y);
  border-top: var(--hairline) solid var(--line);
}
.talk::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -32%;
  right: max(-80px, calc((100vw - var(--wrap)) / 2 - 170px));
  width: clamp(170px, 24vw, 340px);
  height: 140%;
  background: var(--f-pale) no-repeat left top / 100% auto;
  pointer-events: none;
}
@media (max-width: 699px) { .talk::after { display: none; } }
.talk__grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .talk__grid { grid-template-columns: 7fr 4fr; gap: var(--s6); align-items: center; } }
.talk__h { font-size: var(--h2-lead); }
.talk__label { margin: 0 0 4px; }
.talk__number {
  display: inline-block;
  font-size: clamp(2rem, 4.2vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fir);
  text-decoration: none;
  margin-bottom: var(--s3);
}
.talk__number:hover { text-decoration: underline; text-decoration-thickness: 2px; }

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

.faq { border-top: var(--hairline) solid var(--line); }
.faq details > :not(summary) { max-width: 68ch; }
.faq details { border-bottom: var(--hairline) solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: var(--s3) var(--s4) var(--s3) 0;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--fir);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--fir);
  border-bottom: 2px solid var(--fir);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms ease-out;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > :not(summary) { padding-right: var(--s4); }

/* -------------------------------------------------------------- pricing  */

.pricing-table { width: 100%; border-collapse: collapse; text-align: left; }
.pricing-table th, .pricing-table td {
  padding: var(--s3) var(--s2);
  border-bottom: var(--hairline) solid var(--line);
  vertical-align: top;
}
.pricing-table thead th { font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.pricing-table tbody th { font-weight: 600; color: var(--fir); }

@media (max-width: 700px) {
  .pricing-table, .pricing-table tbody, .pricing-table tr, .pricing-table td, .pricing-table th { display: block; }
  .pricing-table thead { display: none; }
  .pricing-table tr { border-bottom: 2px solid var(--line); padding-block: var(--s2); }
  .pricing-table td, .pricing-table th { border: 0; padding: 4px 0; }
  .pricing-table td::before { content: attr(data-label) ": "; font-weight: 600; }
}

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

.site-footer {
  background: var(--fir);
  color: var(--chalk);
  padding-top: var(--section-y);
  font-size: 1rem;
}
.site-footer a { color: var(--chalk); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer :focus-visible { outline-color: var(--leaf); }

.site-footer__grid { display: grid; gap: var(--s5); }
@media (min-width: 780px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }

.lockup--footer { margin: 0 0 var(--s3); color: var(--chalk); }
.lockup--footer:hover { color: var(--chalk); }

.site-footer__h {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--leaf);
  margin-bottom: var(--s2);
}
.site-footer address { font-style: normal; margin-bottom: var(--s2); }
.site-footer__blurb { max-width: 34ch; color: var(--on-accent-2); }
.site-footer__nap { line-height: 1.7; }
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer__nav a { text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }

.site-footer__creds { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); color: var(--on-accent-2); }

.hours { display: grid; gap: 4px; margin: 0 0 var(--s3); }
.hours div { display: flex; justify-content: space-between; gap: var(--s2); max-width: 22rem; }
.hours dt { color: var(--text-2); }
.hours dd { margin: 0; font-weight: 600; }
.site-footer .hours dt { color: var(--on-accent-2); }

.site-footer__base {
  border-top: var(--hairline) solid rgba(245, 243, 235, 0.2);
  margin-top: var(--section-y);
  padding-block: var(--s3);
  color: var(--on-accent-2);
  font-size: 0.9375rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  align-items: baseline;
  justify-content: space-between;
}
.site-footer__base p { margin: 0; }
.site-footer__line { font-family: var(--font-display); font-size: 1.35rem; color: var(--chalk); }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s3); }

/* --------------------------------------------------------- sticky mobile */

.mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: var(--hairline) solid var(--line);
}
.mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 56px;
  background: var(--chalk);
  color: var(--fir);
  font-weight: 500;
  text-decoration: none;
}
.mobile-bar__btn--primary { background: var(--fir); color: var(--chalk); }
.mobile-bar__btn:hover { color: var(--fir); }
.mobile-bar__btn--primary:hover { color: var(--chalk); background: var(--fir-deep); }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* --------------------------------------------------------------- motion  */

/* One motion system: a section reveals once as it enters the viewport,
   repeated children stagger, the header gains a shadow once scrolled, and
   controls transition on interaction. The heroes do not animate. A reveal
   enhances an already-visible default: main.js arms only what is below the
   fold when it runs. */
.reveal[data-reveal="armed"] { opacity: 0; transform: translateY(var(--reveal-shift)); }
.reveal.in-view {
  opacity: 1;
  transform: none;
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

@media print {
  .reveal[data-reveal="armed"] { opacity: 1; transform: none; }
  .mobile-bar, .site-header__call, .nav-toggle { display: none; }
}

/* ------------------------------------------------------------------- 404 */

.page-404 { padding-block: clamp(56px, 12vw, 140px); }
.page-404 .display-404 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(4.5rem, 18vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--fir);
  margin: 0 0 var(--s3);
}
.page-404 ul { list-style: none; padding: 0; }
.page-404 li { margin-bottom: var(--s1); }

/* ------------------------------------------------------- reduced motion  */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal[data-reveal="armed"] { opacity: 1; transform: none; }
}
