/* ==========================================================================
   Billerica Family Dental — design system
   Implements brand-style-guide.md / design-palette-visual-reference.html
   Hunter green + brick + brass · 4px corners · flat, no shadows, no gradients
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Core palette */
  --hunter: #1F3D2E;
  --hunter-deep: #183024;
  --hunter-tint: #E8EDE8;
  --brick: #7B3B34;
  --brass: #B9853A;
  --brass-bright: #E7B65F; /* brass legible on Hunter ground */
  --brass-bright-deep: #D9A54C;
  --navy: #2E4C6D;

  --ink: #171C18;
  --ink-soft: #4B524C;
  --canvas: #F6F6F3;
  --paper: #FCFCFA;
  --mist: #E3E3DD;
  --mist-strong: #C8C8C0;

  /* On Hunter ground */
  --on-hunter: #F3F6F2;
  --on-hunter-soft: #C3D5C8;
  --on-hunter-faint: #B0C8B8;
  --hunter-hairline: rgba(255, 255, 255, 0.18);

  /* Semantic — functional only, never decorative */
  --success: #3E6B52;
  --error: #A13F3F;

  /* Shape — colonial millwork: crisp, softened, never a pill */
  --radius: 4px;
  --radius-sm: 3px;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(48px, 7vw, 80px);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

h1 em,
h2 em,
.lede em {
  font-style: italic;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--hunter);
}

/* Text links: present, not performative — the underline darkens, nothing jumps */
a:hover {
  color: var(--hunter-deep);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hunter);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

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

.wrap--narrow {
  max-width: 940px;
}

.wrap--mid {
  max-width: 1080px;
}

/* Alternating solid fields: Canvas -> Hunter -> Paper -> Canvas.
   --pane-bg keeps muntin panes readable against whichever field they sit in. */
.section {
  --pane-bg: var(--paper);
  background: var(--canvas);
  padding-block: var(--section-y);
}

.section--paper {
  --pane-bg: var(--canvas);
  background: var(--paper);
}

.section--hunter {
  --pane-bg: transparent;
  background: var(--hunter);
  color: var(--on-hunter);
}

.section--tight {
  padding-block: clamp(36px, 5vw, 56px);
}

.section-head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head--split {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hunter);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 12px;
}

.section-title em {
  color: var(--brick);
}

.lede {
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 17.5px);
  max-width: 62ch;
}

.arrow-link {
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.arrow-link:hover {
  border-bottom-color: currentColor;
}

/* Brass hairline — a highlight rule, used sparingly */
.rule-brass {
  width: 44px;
  height: 2px;
  background: var(--brass);
  border: 0;
  margin: 0 0 18px;
}

/* --------------------------------------------------------------------------
   4. Buttons — 4px, flat, no shadow, no scale
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Primary, on light */
.btn--solid {
  background: var(--hunter);
  color: #fff;
}

.btn--solid:hover {
  background: var(--hunter-deep);
  color: #fff;
}

/* Secondary, on light */
.btn--outline {
  background: transparent;
  color: var(--hunter);
  border-color: var(--hunter);
}

.btn--outline:hover {
  background: var(--hunter-deep);
  border-color: var(--hunter-deep);
  color: #fff;
}

/* Primary, on the Hunter ground */
.btn--brass {
  background: var(--brass-bright);
  color: var(--hunter-deep);
}

.btn--brass:hover {
  background: var(--brass-bright-deep);
  color: var(--hunter-deep);
}

/* Secondary, on the Hunter ground */
.btn--ghost {
  background: transparent;
  color: var(--on-hunter);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  border-color: var(--on-hunter);
  color: var(--on-hunter);
}

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

/* --------------------------------------------------------------------------
   5. Header / nav — flat and minimal
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--mist);
}

.site-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* The brand yields, the actions do not. Both were flex-shrink:0, so the header
   row could not compress and pushed the hamburger past the viewport edge on
   narrow phones — the menu became unreachable without a horizontal swipe. */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

/* Square mark, not a circle — the millwork is rectilinear */
.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--hunter);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--mist-strong);
}

.site-nav a[aria-current="page"] {
  color: var(--hunter);
  border-bottom-color: var(--hunter);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 11px 20px;
  font-size: 15px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--mist-strong);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle__bars {
  width: 18px;
  display: grid;
  gap: 4px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--canvas);
  border-top: 1px solid var(--mist);
  padding: 6px var(--gutter) 16px;
}

.mobile-nav[data-open="true"] {
  display: flex;
}

.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mist);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav a[aria-current="page"] {
  color: var(--hunter);
}

/* --------------------------------------------------------------------------
   6. Hero — one colored full-bleed slice
   -------------------------------------------------------------------------- */

.hero {
  background: var(--hunter);
  color: var(--on-hunter);
  padding-block: clamp(48px, 7vw, 88px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-hunter-faint);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  color: #FBFDFA;
  margin-bottom: 20px;
}

/* Non-italic: the emphasis carries a claim, not a flourish. Brass is the
   accent that reads on the Hunter ground — Hunter itself would vanish. */
.hero h1 em {
  color: var(--brass-bright);
  font-style: normal;
}

.hero__lede {
  font-size: clamp(16.5px, 1.5vw, 18px);
  color: var(--on-hunter-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}

/* Opens the hero where the eyebrow used to sit. Brass rather than Hunter,
   because a Hunter rule on the Hunter ground is invisible. */
.rule-hunter {
  width: 44px;
  height: 3px;
  background: var(--brass-bright);
  border: 0;
  margin: 0 0 18px;
}

.frame--hero {
  aspect-ratio: 4 / 3;
  border-color: var(--hunter-hairline);
}

/* Page header band for inner pages — every page gets one full-bleed Hunter field */
.page-header {
  background: var(--hunter);
  color: var(--on-hunter);
  padding-block: clamp(40px, 5.5vw, 64px);
}

.page-header__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-hunter-faint);
  margin-bottom: 14px;
}

.page-header h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  color: #FBFDFA;
  margin-bottom: 14px;
  max-width: 20ch;
}

.page-header h1 em {
  color: var(--brass-bright);
  font-style: normal;
}

.page-header h1 + p {
  color: var(--on-hunter-soft);
  font-size: clamp(16px, 1.4vw, 17.5px);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   7. The muntin rule — divided-light framing
   -------------------------------------------------------------------------- */

/* Panes: hairline Mist rules divide content the way muntins divide a window */
/* The hairlines are drawn by the panes themselves rather than by a Mist backing
   showing through the gaps. Same muntin grid, but a row that isn't completely
   full (5 panes in 3 columns) no longer leaves a grey block where a pane would
   have been — the empty cells simply read as background. */
.panes {
  display: grid;
  gap: 1px;
  background: var(--pane-bg);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
}

.panes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pane {
  background: var(--pane-bg);
  /* draws into the 1px gap on every side; neighbours overlap into one hairline */
  outline: 1px solid var(--mist);
  padding: clamp(20px, 2.4vw, 28px);
}

.pane__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 8px;
}

.pane p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.pane__icon {
  color: var(--hunter);
  margin-bottom: 14px;
}

.pane__icon svg {
  display: block;
}

/* Photo frame — contained in a defined rectangle, never bled off the viewport.
   Placeholder state draws the divided-light grid itself. */
.frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--mist-strong);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--placeholder {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--mist-strong);
  background:
    linear-gradient(var(--mist) 1px, transparent 1px) 0 0 / 100% 33.333%,
    linear-gradient(90deg, var(--mist) 1px, transparent 1px) 0 0 / 33.333% 100%,
    var(--hunter-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

/* Same frame, sitting on the Hunter ground. 4/3 to match the facade's native
   landscape — a portrait crop would cut the porch columns and brick wings off. */
.frame--on-hunter {
  aspect-ratio: 4 / 3;
  border-color: var(--hunter-hairline);
}

.frame--placeholder.frame--on-hunter {
  color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px) 0 0 / 100% 33.333%,
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px) 0 0 / 33.333% 100%,
    rgba(255, 255, 255, 0.04);
}

.frame--portrait {
  aspect-ratio: 1 / 1;
}

/* --------------------------------------------------------------------------
   8. Stat row — big numbers, divided by muntins
   -------------------------------------------------------------------------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--mist-strong);
  border-bottom: 1px solid var(--mist-strong);
}

.stat {
  padding: clamp(22px, 2.6vw, 30px) clamp(16px, 2vw, 26px);
  border-right: 1px solid var(--mist);
}

.stat:last-child {
  border-right: 0;
}

.stat__value {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 27px);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

/* Three grounded colors: brick = the facade, brass = the oak trim, navy = the sign */
.stat__value--brick { color: var(--brick); }
.stat__value--brass { color: var(--brass); }
.stat__value--navy  { color: var(--navy); }
.stat__value--hunter { color: var(--hunter); }

.stat__label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.stat__label a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stat__label a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   9. Editorial split — text block + photo block, alternating
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.split--text-first {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.split__body > * + * {
  margin-top: 16px;
}

.split__body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   10. Team
   -------------------------------------------------------------------------- */

/* Dr. Tran is the only member with a headshot on file, so he leads with a
   portrait and the rest of the team is a muntin-ruled roster. A row of framed
   photos where four frames are empty reads as broken, not as pending. */
.team-lead {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.team-lead__body p + p {
  margin-top: 12px;
}

.team-lead__body .team__role {
  margin-bottom: 16px;
}

.team-lead__body p:not(.team__name):not(.team__role) {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}

.roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--mist-strong);
  border-bottom: 1px solid var(--mist-strong);
}

.roster__member {
  padding: clamp(18px, 2.2vw, 24px) clamp(14px, 1.8vw, 22px);
  border-right: 1px solid var(--mist);
}

.roster__member:last-child {
  border-right: 0;
}

.team__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 2px;
}

.team__role {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   11. Steps — a genuine sequence, so it gets numbers
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--mist);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  background: var(--pane-bg);
  padding: clamp(20px, 2.4vw, 28px);
}

.step__num {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--hunter);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
}

.step h3 + p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   12. Service catalog
   -------------------------------------------------------------------------- */

.service-group + .service-group {
  margin-top: clamp(36px, 4.5vw, 56px);
}

.service-group__title {
  font-size: clamp(22px, 2.4vw, 26px);
  margin-bottom: 6px;
}

.service-group__rule {
  width: 100%;
  height: 1px;
  background: var(--mist-strong);
  border: 0;
  margin: 0 0 24px;
}

/* --------------------------------------------------------------------------
   13. Insurance
   -------------------------------------------------------------------------- */

.field-label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.plan-grid {
  display: grid;
  gap: 1px;
  background: var(--mist);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
}

.plan-grid--primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-grid--secondary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Two columns because 14 plans divide exactly into it — a 3- or 4-up grid
   leaves empty cells that read as missing rows in a bordered table. */
.plan-grid--plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 599px) {
  .plan-grid--plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

.plan {
  background: var(--pane-bg);
  padding: 16px 20px;
  font-size: 15px;
}

/* A plain list beats a bordered grid here: a reader is scanning for one name,
   and a single column reads top to bottom without anything hiding in a far
   column. Two columns on wide screens purely to halve the height. */
.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
  max-width: 640px;
}

.plan-list li {
  position: relative;
  padding: 7px 0 7px 18px;
  font-size: 15.5px;
  break-inside: avoid;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mist-strong);
}

/* In-network is a real difference in what the patient pays, so it is labelled
   rather than implied by bold weight, and it sits after the plan name so the
   list still reads as a plain alphabetical column. */
.plan__badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hunter);
  border: 1px solid var(--hunter);
  border-radius: 2px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: 1px;
  white-space: nowrap;
}

@media (max-width: 599px) {
  .plan-list {
    columns: 1;
  }
}

/* Not a footnote: this paragraph carries the claim-filing and pre-estimate
   promise, which is the part patients actually need. Body size, Ink, not Mist. */
.plan-note {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-top: 20px;
  max-width: 68ch;
}

.note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--mist-strong);
}

.faq__item {
  border-bottom: 1px solid var(--mist);
  padding: 22px 0;
}

.faq__item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 8px;
}

.faq__item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   15. Contact details
   -------------------------------------------------------------------------- */

.detail + .detail {
  margin-top: 28px;
}

.detail__label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.detail__value {
  font-size: 17px;
  line-height: 1.65;
}

.detail__value--phone {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 28px);
  font-weight: 500;
  text-decoration: none;
  color: var(--hunter);
}

.detail__value--phone:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hours {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 24px;
  font-size: 16px;
}

.hours dt {
  color: var(--ink-soft);
}

.hours dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* Qualifier on an irregular day — reads as a footnote, not as hours */
.hours__note {
  color: var(--ink-soft);
  font-size: 14px;
  font-variant-numeric: normal;
  white-space: nowrap;
}

/* Rating — the stars are data, coloured brass */
.rating {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 15px;
}

.rating__stars {
  color: var(--brass);
  letter-spacing: 2px;
  font-size: 15px;
}

.rating__score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.rating__count {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   16. Closing CTA
   -------------------------------------------------------------------------- */

.cta {
  background: var(--paper);
  border-top: 1px solid var(--mist);
  padding-block: clamp(44px, 6vw, 68px);
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 8px;
}

.cta p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--hunter-deep);
  color: var(--on-hunter-soft);
  padding-block: clamp(44px, 5.5vw, 60px) 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 3.5vw, 44px);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: #FBFDFA;
  margin-bottom: 12px;
}

.site-footer__blurb {
  font-size: 14px;
  line-height: 1.65;
  max-width: 34ch;
}

.site-footer__label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 14px;
}

.site-footer__list {
  font-size: 14px;
  line-height: 1.85;
  font-variant-numeric: tabular-nums;
}

.site-footer a {
  color: var(--on-hunter-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer a:hover {
  color: #FBFDFA;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.site-footer__base {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  margin-top: clamp(32px, 4vw, 44px);
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   18. Treatment pages — the long-form service pages generated from
   scripts/service_pages.py. Everything here supports running prose and links
   sitting on the Hunter ground; no new visual language is introduced.
   -------------------------------------------------------------------------- */

/* The hand-built pages never stack loose paragraphs, so the base `p { margin: 0 }`
   has nothing to undo. These pages run several paragraphs to a section. */
.prose p {
  max-width: 66ch;
}

.prose p + p {
  margin-top: 16px;
}

/* Links on the Hunter ground. The base link colour IS Hunter, so an inline link
   inside a hero or a callout renders invisible — brass-bright is the palette's
   designated on-dark accent (§3, §8). */
.page-header a,
.section--hunter a {
  color: var(--brass-bright);
  text-underline-offset: 3px;
}

.page-header a:hover,
.section--hunter a:hover {
  color: #FBFDFA;
}

.section--hunter .section-title {
  color: #FBFDFA;
}

.section--hunter p {
  color: var(--on-hunter-soft);
}

/* A pane title that links to its own page keeps the pane's typography — the
   underline is a hover affordance, not a default state (§8: "underline appears
   or darkens on hover"). Without this the linked panes in a grid read as a
   different component from their unlinked neighbours. */
.pane__title a {
  color: inherit;
  text-decoration: none;
}

.pane__title a:hover {
  color: var(--hunter);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   19. Appointment form — the only place on the site that collects anything
   -------------------------------------------------------------------------- */

.form-card {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}

.form-card__intro {
  margin-bottom: 28px;
  max-width: 58ch;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 7px;
}

/* A <legend> carries its own inline padding, which pushes the radio group's
   label 2px right of every other label in the form. */
legend.field__label {
  padding-inline: 0;
}

.field__optional {
  font-weight: 400;
  color: var(--ink-soft);
}

.field__hint {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 7px;
}

.field__input {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px; /* 16px minimum — anything smaller makes iOS zoom on focus */
  line-height: 1.4;
  color: var(--ink);
  background: var(--canvas);
  border: 1.5px solid var(--mist-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field__input::placeholder {
  color: var(--ink-soft);
  opacity: 0.7;
}

.field__input:hover {
  border-color: var(--ink-soft);
}

.field__input:focus-visible {
  outline: 2px solid var(--hunter);
  outline-offset: 1px;
  border-color: var(--hunter);
  background: var(--paper);
}

textarea.field__input {
  min-height: 110px;
  resize: vertical;
}

/* Validation — only ever shown after a submit attempt, never while typing */
.field--invalid .field__input {
  border-color: var(--error);
}

.field__error {
  display: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--error);
  margin-top: 7px;
}

.field--invalid .field__error {
  display: block;
}

/* Radio pair — new vs current patient */
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  padding: 12px 20px;
  border: 1.5px solid var(--mist-strong);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.choice input:hover + span {
  border-color: var(--ink-soft);
}

.choice input:checked + span {
  background: var(--hunter);
  border-color: var(--hunter);
  color: #fff;
  font-weight: 600;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--hunter);
  outline-offset: 1px;
}

/* The honeypot. Hidden from people, reachable by bots that fill everything in.
   Not display:none — some bots skip those. Off-canvas and out of the tab order. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  border-left: 2px solid var(--brass);
  padding-left: 16px;
  margin: 26px 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 62ch;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.form-actions .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Status region. Always in the DOM so screen readers announce into it. */
.form-status {
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.6;
}

.form-status:empty {
  display: none;
}

.form-status--error {
  border-left: 3px solid var(--error);
  background: rgba(161, 63, 63, 0.06);
  color: var(--ink);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.form-status--sent {
  border: 1px solid var(--success);
  background: var(--hunter-tint);
  padding: clamp(24px, 4vw, 36px);
}

.form-status--sent h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  color: var(--hunter);
}

.form-status--sent p {
  margin: 0 0 8px;
  max-width: 56ch;
}

.form-status--sent p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   20. Responsive — mobile <700, tablet 700–999, desktop >=1000
   -------------------------------------------------------------------------- */

@media (max-width: 1099px) {
  .site-nav {
    gap: 20px;
    font-size: 14.5px;
  }
}

@media (max-width: 919px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 999px) {
  .panes--4,
  .steps,
  .plan-grid--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panes--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--mist);
  }

  .roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roster__member:nth-child(2) {
    border-right: 0;
  }

  .roster__member:nth-child(-n + 2) {
    border-bottom: 1px solid var(--mist);
  }
}

@media (max-width: 699px) {
  .hero__grid,
  .split,
  .split--text-first,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Full-width tap target beats a button sitting next to a phone link */
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }

  /* Photo follows the text it belongs to on small screens */
  .split--photo-first .split__media {
    order: -1;
  }

  .panes--2,
  .panes--3,
  .panes--4,
  .steps,
  .plan-grid--primary {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-grid--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--mist);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .team-lead {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .team-lead .frame {
    width: 200px;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 700px) and (max-width: 999px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Below 700px the phone number stands down so the practice name keeps one
   line: the number becomes "Call us" (still tel:, so it dials either way).
   The old breakpoint was 420px, which left the full number rendering on every
   common phone width from 420 to 700 — the header ran tight. */
@media (max-width: 699px) {
  .site-header__inner {
    gap: 12px;
  }

  .header-actions .btn__full {
    display: none;
  }
}

@media (min-width: 700px) {
  .header-actions .btn__short {
    display: none;
  }
}

@media (max-width: 419px) {
  .brand__name {
    font-size: 16px;
  }
}

/* At 320px everything gives a little so the name lands on two lines rather
   than four: tighter gutter, a smaller mark, and less padding on the button.
   The name is never truncated — a half-shown practice name is worse than a
   wrapped one. */
@media (max-width: 460px) {
  .site-header__inner {
    padding-inline: 14px;
    gap: 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn {
    padding: 10px 14px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 359px) {
  .brand__name {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  .cta {
    display: none;
  }
}
