/* =====================================================================
   Cannington Podiatry – mockup stylesheet
   Implements 03-design/design-system.md exactly.
   Tokens, type scale, colour, motif and components are copy-paste from
   the design system. Square corners everywhere; no glass; no ambient
   animation; motion is user-triggered only and disabled under
   prefers-reduced-motion.
   ===================================================================== */

/* ---------------------------------------------------------------------
   10. Full :root token block
   --------------------------------------------------------------------- */
:root {
  /* ---- Fonts ---- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* ---- Type scale ---- */
  --fs-display: clamp(2.5rem, 1.6rem + 4vw, 4rem);
  --fs-h1:      clamp(2.125rem, 1.5rem + 2.8vw, 3rem);
  --fs-h2:      clamp(1.75rem, 1.35rem + 1.8vw, 2.25rem);
  --fs-h3:      clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
  --fs-h4:      clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --fs-h5:      1.0625rem;
  --fs-h6:      0.9375rem;
  --fs-lead:    clamp(1.0625rem, 1rem + 0.45vw, 1.25rem);
  --fs-body:    1.0625rem;   /* 17px */
  --fs-body-sm: 0.9375rem;   /* 15px */
  --fs-small:   0.875rem;    /* 14px */
  --fs-xs:      0.8125rem;   /* 13px */
  --fs-overline:0.8125rem;

  /* ---- Raw palette ---- */
  --paper:     #F7F3EC;
  --paper-2:   #FBF8F2;
  --sand:      #EFE7D8;
  --pine:      #1E5247;
  --pine-700:  #163E36;
  --pine-300:  #5C8378;
  --clay:      #B65A3C;
  --clay-700:  #964531;
  --clay-100:  #F0DACF;
  --ink-base:  #1B211E;
  --ink-muted: #55615B;
  --line-c:    #D9CFBE;
  --line-strong-c: #C2B6A0;
  --white:     #FFFFFF;

  /* ---- Semantic ---- */
  --bg:            var(--paper);
  --bg-alt:        var(--sand);
  --surface:       var(--paper-2);
  --surface-2:     var(--white);
  --surface-dark:  var(--pine-700);

  --ink:           var(--ink-base);
  --muted:         var(--ink-muted);
  --ink-on-dark:   #F3EEE4;
  --muted-on-dark: var(--pine-300);

  --brand:         var(--pine);
  --brand-strong:  var(--pine-700);
  --accent:        var(--clay);
  --accent-strong: var(--clay-700);
  --accent-tint:   var(--clay-100);

  --line:          var(--line-c);
  --line-strong:   var(--line-strong-c);

  --ok:    #2F7A52;
  --warn:  #9A6A18;
  --error: #9E3328;

  /* ---- Structure ---- */
  --border:        1px solid var(--line);
  --border-strong: 2px solid var(--line-strong);
  --border-brand:  2px solid var(--brand);
  --shadow-1: 0 1px 0 0 var(--line);
  --shadow-2: 0 6px 18px -10px rgba(22,62,54,0.28);
  --radius: 0;

  /* ---- Spacing ---- */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;  --space-6: 2rem;   --space-7: 3rem;     --space-8: 4rem;
  --space-9: 6rem;    --space-10: 8rem;

  /* ---- Layout ---- */
  --container: 1200px;
  --container-narrow: 760px;
  --measure: 68ch;
  --gutter: var(--space-5);
  --gutter-sm: var(--space-4);
  --header-h: 76px;
  --header-h-sm: 60px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 160ms;

  /* selection + scrollbar */
  scrollbar-color: var(--line-strong) var(--paper);
}

/* ---------------------------------------------------------------------
   3.3 Radius – hard constraint, enforced globally
   --------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  border-radius: 0 !important;
}

/* ---------------------------------------------------------------------
   5.1 Global base
   --------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-5));
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.68;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.14; letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; }
h4 { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 700; line-height: 1.3; }
h5 { font-family: var(--font-body); font-size: var(--fs-h5); font-weight: 700; line-height: 1.35; }
h6 { font-family: var(--font-body); font-size: var(--fs-h6); font-weight: 700; line-height: 1.4; letter-spacing: 0.01em; }

p  { max-width: var(--measure); }
p + p { margin-block-start: var(--space-4); }

/* 1.5 Heading variation settings (Fraunces axes) */
.t-display, h1 { font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0; }
h2 { font-variation-settings: "opsz" 72, "SOFT" 25, "WONK" 0; }
h3 { font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 0; }

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

/* 1.6 Links in prose */
.prose a,
.rich-text a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease), text-decoration-thickness var(--dur-fast) var(--ease);
}
.prose a:hover,
.rich-text a:hover {
  color: var(--accent);
  text-decoration-thickness: 3px;
}

::selection { background: var(--accent-tint); color: var(--ink); }

/* ---------------------------------------------------------------------
   3.2 Layout container
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: var(--container-narrow); }
@media (max-width: 768px) { .container { padding-inline: var(--gutter-sm); } }

/* Section vertical rhythm */
.section { padding-block: var(--space-9); }
.section-sm { padding-block: var(--space-7); }
@media (max-width: 768px) { .section { padding-block: var(--space-7); } }
@media (max-width: 480px) { .section { padding-block: var(--space-6); } }

.bg-alt { background: var(--bg-alt); }
.bg-surface { background: var(--surface); }

.surface-dark {
  background: var(--surface-dark);
  color: var(--ink-on-dark);
}
.surface-dark h1, .surface-dark h2, .surface-dark h3 { color: var(--ink-on-dark); }

/* utility flow */
.flow > * + * { margin-block-start: var(--space-4); }
.measure { max-width: var(--measure); }

/* skip-link must be reachable but visually offset until focused */
.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;
}

/* ---------------------------------------------------------------------
   5.2 Skip-link + focus + reduced motion
   --------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: var(--space-4); top: -100%;
  background: var(--brand-strong); color: var(--ink-on-dark);
  padding: var(--space-3) var(--space-5);
  font-weight: 700; z-index: 1000; text-decoration: none;
  transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: var(--space-3); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------
   4. Motif – the step-rule + the 6px square marker
   --------------------------------------------------------------------- */
.step-rule {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 14px;
  margin-block: var(--space-3) var(--space-5);
}
.step-rule::before,
.step-rule::after,
.step-rule i {
  content: "";
  display: block;
  background: var(--accent);
  width: 22px;
}
.step-rule::before { height: 4px;  width: 16px; }
.step-rule i       { height: 8px;  width: 20px; }
.step-rule::after  { height: 14px; width: 26px; }
.surface-dark .step-rule::before,
.surface-dark .step-rule i,
.surface-dark .step-rule::after { background: var(--accent-tint); }

/* 4.2 list marker */
.list-clean { list-style: none; padding-inline-start: 1.5em; }
.list-clean li { position: relative; margin-block: var(--space-2); max-width: var(--measure); }
.list-clean li::before {
  content: ""; position: absolute; left: -1.5em; top: 0.62em;
  width: 6px; height: 6px; background: var(--accent);
}
.surface-dark .list-clean li::before { background: var(--accent-tint); }

/* prose lists inside rich text reuse the square marker */
.rich-text ul { list-style: none; padding-inline-start: 1.5em; }
.rich-text ul li { position: relative; margin-block: var(--space-2); max-width: var(--measure); }
.rich-text ul li::before {
  content: ""; position: absolute; left: -1.5em; top: 0.62em;
  width: 6px; height: 6px; background: var(--accent);
}

/* ---------------------------------------------------------------------
   5.7 Dividers
   --------------------------------------------------------------------- */
hr.rule { border: 0; border-top: 1px solid var(--line); margin-block: var(--space-7); }
hr.rule-strong { border: 0; border-top: 2px solid var(--line-strong); margin-block: var(--space-7); }

/* ---------------------------------------------------------------------
   5.8 Section heading block
   --------------------------------------------------------------------- */
.section-head { margin-bottom: var(--space-6); max-width: 60ch; }
.section-head .eyebrow,
.eyebrow {
  display: block;
  font-size: var(--fs-overline); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-strong);
}
.surface-dark .eyebrow { color: var(--accent-tint); }
.section-head h2 { margin-top: var(--space-2); }
.section-head .intro { margin-top: var(--space-4); font-size: var(--fs-lead); color: var(--muted); }
.surface-dark .section-head .intro { color: var(--muted-on-dark); }

.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------------------------
   5.4 Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  line-height: 1; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 140ms var(--ease), color 140ms var(--ease),
              border-color 140ms var(--ease), transform 80ms var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-primary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

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

.surface-dark .btn-secondary { color: var(--ink-on-dark); border-color: var(--ink-on-dark); }
.surface-dark .btn-secondary:hover { background: var(--ink-on-dark); color: var(--brand-strong); }

.btn-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; color: var(--accent); font-weight: 700;
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn-link:hover { color: var(--accent-strong); border-bottom-color: var(--accent-strong); }
.surface-dark .btn-link { color: var(--accent-tint); }
.surface-dark .btn-link:hover { color: #fff; border-bottom-color: var(--accent-tint); }
.btn-link .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn-link:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn-link:hover .arrow { transform: none; } }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------------------------------------------------------------------
   5.3 Header
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface-dark);
  border-bottom: 2px solid var(--brand-strong);
  transition: min-height var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header .container {
  display: flex; align-items: center; gap: var(--space-5);
  min-height: var(--header-h);
  transition: min-height var(--dur) var(--ease);
}
/* condensed-on-scroll state (toggled by JS) */
.site-header.is-condensed { box-shadow: var(--shadow-2); }
.site-header.is-condensed .container { min-height: 60px; }

.brand-logo {
  display: inline-flex; align-items: center; gap: var(--space-3);
  text-decoration: none; color: var(--ink-on-dark);
}
.brand-logo svg { height: 40px; width: auto; transition: height var(--dur) var(--ease); }
.site-header.is-condensed .brand-logo svg { height: 34px; }
.brand-logo .wordmark {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.25rem; color: var(--ink-on-dark); line-height: 1.05;
  display: flex; flex-direction: column;
}
.brand-logo .wordmark small {
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-on-dark);
}

.primary-nav { margin-inline-start: auto; }
.primary-nav ul { display: flex; gap: var(--space-1); list-style: none; }
.primary-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 var(--space-3);
  color: var(--ink-on-dark); text-decoration: none;
  font-size: 0.9375rem; font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: #fff; border-bottom-color: var(--accent);
}

.header-tools { display: inline-flex; align-items: center; gap: var(--space-2); }
.header-phone {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  color: var(--ink-on-dark); font-weight: 700; text-decoration: none;
  padding-inline: var(--space-3);
  transition: color var(--dur-fast) var(--ease);
}
.header-phone:hover { color: #fff; }
.header-phone svg { width: 1.1em; height: 1.1em; }
.header-cta { min-height: 44px; }

/* menu toggle */
.menu-toggle {
  display: none;
  min-width: 44px; min-height: 44px;
  background: transparent; border: 2px solid var(--accent);
  color: var(--ink-on-dark); font-weight: 700;
  align-items: center; gap: var(--space-2); padding: 0 var(--space-3);
  cursor: pointer; font-family: var(--font-body); font-size: 0.9375rem;
}
.menu-toggle:hover { background: var(--accent); color: #fff; }
.mobile-drawer { display: none; }

@media (max-width: 880px) {
  .site-header .container { min-height: var(--header-h-sm); }
  .brand-logo svg { height: 32px; }
  .primary-nav, .header-cta, .header-phone.desktop-only { display: none; }
  .header-tools .menu-toggle { display: inline-flex; margin-inline-start: auto; }
  .header-tools { margin-inline-start: auto; }

  .mobile-drawer {
    display: block; position: fixed;
    inset: var(--header-h-sm) 0 0 0; z-index: 90;
    background: var(--surface-dark);
    padding: var(--space-5) var(--gutter-sm) var(--space-8);
    overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s linear 160ms;
  }
  .mobile-drawer[data-open="true"] {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: opacity 160ms var(--ease), transform 160ms var(--ease);
  }
  .mobile-drawer ul { list-style: none; }
  .mobile-drawer a {
    display: flex; align-items: center; min-height: 52px;
    color: var(--ink-on-dark); text-decoration: none;
    font-size: 1.0625rem; font-weight: 600;
    border-bottom: 1px solid rgba(243,238,228,0.15);
  }
  .mobile-drawer a[aria-current="page"] { color: #fff; }
  .mobile-drawer a[aria-current="page"]::before {
    content: ""; width: 6px; height: 18px; background: var(--accent);
    margin-inline-end: var(--space-3); flex: none;
  }
  .mobile-drawer .drawer-phone {
    margin-top: var(--space-5); font-weight: 700; font-size: 1.0625rem;
    border-bottom: 0; gap: var(--space-2);
  }
  .mobile-drawer .btn { width: 100%; margin-top: var(--space-5); }
}
@media (prefers-reduced-motion: reduce) { .mobile-drawer { transition: none; } }

/* ---------------------------------------------------------------------
   5.5 Hero
   --------------------------------------------------------------------- */
.hero { background: var(--bg); padding-block: var(--space-9) var(--space-8); }
.hero .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-8); align-items: center;
}
.hero-eyebrow {
  font-size: var(--fs-overline); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-strong);
}
.hero h1 { font-size: var(--fs-display); margin-block: var(--space-3) var(--space-4); }
.hero-sub { font-size: var(--fs-lead); color: var(--muted); max-width: 52ch; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-note { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--muted); max-width: 52ch; }
.hero-media { border: var(--border-strong); background: var(--surface-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-media { order: 2; }
  .hero-copy { order: 1; }
}
@media (max-width: 480px) {
  .hero { padding-block: var(--space-7) var(--space-6); }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* page hero (interior pages) – copy only, no media */
.page-hero { background: var(--bg); padding-block: var(--space-8) var(--space-6); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--fs-h1); margin-block: var(--space-2) var(--space-4); }
.page-hero .intro { font-size: var(--fs-lead); color: var(--muted); max-width: 60ch; line-height: 1.6; }
.page-hero .btn-row { margin-top: var(--space-6); }

/* ---------------------------------------------------------------------
   5.6 Trust band
   --------------------------------------------------------------------- */
.trust-band { background: var(--surface-dark); color: var(--ink-on-dark); }
.trust-band .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5); padding-block: var(--space-5);
}
.trust-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.trust-item .mark { width: 8px; height: 22px; background: var(--accent); flex: none; margin-top: 2px; }
.trust-item p { color: var(--ink-on-dark); font-size: var(--fs-body-sm); font-weight: 600; max-width: none; }
@media (max-width: 768px) { .trust-band .container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-band .container { grid-template-columns: 1fr; gap: var(--space-3); } }

/* ---------------------------------------------------------------------
   5.9 Condition / service cards
   --------------------------------------------------------------------- */
.card-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(3, 1fr);
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface); border: var(--border);
  border-top: 4px solid var(--brand);
  padding: var(--space-6);
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease), transform 120ms var(--ease);
}
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--muted); font-size: var(--fs-body-sm); flex: 1; max-width: none; }
.card .card-link {
  margin-top: var(--space-4); align-self: flex-start;
  color: var(--accent); font-weight: 700; text-decoration: none;
  display: inline-flex; gap: var(--space-2); align-items: center; min-height: 44px;
}
.card .card-link .arrow { transition: transform var(--dur-fast) var(--ease); }
/* stretched-link: whole card is the hit area */
.card .card-link::after { content: ""; position: absolute; inset: 0; }
.card:hover, .card:focus-within {
  border-top-color: var(--accent);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.card:hover .card-link .arrow,
.card:focus-within .card-link .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .card-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   5.10 Category cards
   --------------------------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.cat-card {
  background: var(--paper-2); border: var(--border-strong);
  padding: var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.cat-card h3 { font-size: var(--fs-h3); }
.cat-card p { color: var(--muted); }
.cat-card .btn { margin-top: var(--space-4); align-self: flex-start; }
@media (max-width: 768px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   5.11 Feature rows (equipment)
   --------------------------------------------------------------------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7);
  align-items: center; padding-block: var(--space-7);
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row:nth-of-type(even) .feature-media { order: 2; }
.feature-media { border: var(--border-strong); background: var(--surface-2); }
.feature-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
/* CSS-only media block fallback for rows with no real photo */
.feature-media.media-block {
  background: var(--surface-dark);
  aspect-ratio: 3 / 2;
  display: grid; place-items: center;
  padding: var(--space-6);
}
.feature-media.media-block .glyph { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.feature-media.media-block .glyph span { display: block; width: 26px; background: var(--accent-tint); }
.feature-media.media-block .glyph span:nth-child(1) { height: 20px; }
.feature-media.media-block .glyph span:nth-child(2) { height: 40px; }
.feature-media.media-block .glyph span:nth-child(3) { height: 64px; }
.feature-media.media-block .media-label {
  color: var(--ink-on-dark); font-family: var(--font-display);
  font-size: var(--fs-h3); margin-top: var(--space-4); text-align: center;
}
.feature-body .stat-row { display: flex; gap: var(--space-6); flex-wrap: wrap; margin-top: var(--space-5); }
.feature-body .stat { display: flex; flex-direction: column; }
.feature-body .stat .num {
  font-family: var(--font-display); font-size: var(--fs-h3); color: var(--brand); font-weight: 600;
}
.feature-body .stat .label { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--space-5); }
  .feature-row:nth-of-type(even) .feature-media { order: 0; }
}

/* anchored sections offset for sticky header (already covered by scroll-padding) */
.anchor-section { padding-block: var(--space-8); }
.anchor-section + .anchor-section { border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------------
   5.13 Forms
   --------------------------------------------------------------------- */
.form-card { background: var(--surface); border: var(--border-strong); padding: var(--space-7); }
.form-field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.form-field label { font-weight: 700; font-size: var(--fs-small); color: var(--ink); }
.form-field .req { color: var(--accent-strong); }
.input, .textarea, select {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface-2);
  border: 2px solid var(--line-strong);
  padding: 0 var(--space-4); min-height: 48px; width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.textarea { padding: var(--space-3) var(--space-4); min-height: 140px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.8; }
.input:focus, .textarea:focus, select:focus {
  outline: none; border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand);
}
.input:focus-visible, .textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.form-field.has-error .input { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--fs-small); font-weight: 600; }
.form-help { color: var(--muted); font-size: var(--fs-small); }
.form-card .btn { width: 100%; margin-top: var(--space-2); }

/* ---------------------------------------------------------------------
   5.14 Funding strip
   --------------------------------------------------------------------- */
.funding-strip { background: var(--bg-alt); }
.funding-strip .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5);
  padding-block: var(--space-6);
}
.funding-item { border-top: 3px solid var(--brand); padding-top: var(--space-3); }
.funding-item h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-h5); margin-bottom: var(--space-1); }
.funding-item p { font-size: var(--fs-body-sm); color: var(--muted); max-width: none; }
@media (max-width: 768px) { .funding-strip .container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .funding-strip .container { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   5.15 Breadcrumbs
   --------------------------------------------------------------------- */
.breadcrumb { font-size: var(--fs-xs); color: var(--muted); padding-block: var(--space-4); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.breadcrumb a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; min-height: 36px; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--accent-strong); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: var(--space-2); color: var(--line-strong); }

/* in-page quick links (chips) */
.quick-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.quick-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 var(--space-4); border: 2px solid var(--line-strong);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-body-sm);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.quick-links a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------------
   5.16 FAQ accordion
   --------------------------------------------------------------------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  min-height: 56px; padding-block: var(--space-4); cursor: pointer;
  font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .sign { font-family: var(--font-body); font-weight: 700; color: var(--accent); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary .sign::before { content: "\2013"; } /* en-dash when open */
.faq summary .sign::before { content: "+"; }
.faq .answer { padding-bottom: var(--space-5); color: var(--muted); }
.faq .answer p { color: var(--muted); }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   Detail / info panels (contact)
   --------------------------------------------------------------------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.info-panel { background: var(--surface); border: var(--border); border-top: 4px solid var(--brand); padding: var(--space-6); }
.info-panel h3 { margin-bottom: var(--space-3); }
.info-panel dl { display: grid; gap: var(--space-3); }
.info-panel dt { font-weight: 700; font-size: var(--fs-small); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.info-panel dd { margin: 0; font-size: var(--fs-body); }
.info-panel dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
.info-panel dd a:hover { color: var(--accent); }
@media (max-width: 768px) { .info-grid { grid-template-columns: 1fr; } }

/* hours table */
.hours-table { width: 100%; border-collapse: collapse; max-width: 480px; }
.hours-table th, .hours-table td { text-align: start; padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
.hours-table th { font-weight: 700; color: var(--ink); width: 60%; }
.hours-table td { color: var(--muted); }
.hours-table tr.closed td { color: var(--accent-strong); font-weight: 600; }

/* map */
.map-frame { border: var(--border-strong); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* two-column copy + aside */
.split { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: var(--space-8); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: var(--space-6); } }

/* credential chips */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4); background: var(--paper-2);
  border: 2px solid var(--line-strong); font-size: var(--fs-body-sm); font-weight: 600; color: var(--ink);
}
.chip::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }

/* aside panel */
.aside-panel { background: var(--surface); border: var(--border-strong); padding: var(--space-6); position: sticky; top: calc(var(--header-h) + var(--space-5)); }
.aside-panel h3 { margin-bottom: var(--space-3); }
@media (max-width: 880px) { .aside-panel { position: static; } }

/* ---------------------------------------------------------------------
   CTA band
   --------------------------------------------------------------------- */
.cta-band { background: var(--surface-dark); color: var(--ink-on-dark); }
.cta-band .container { padding-block: var(--space-8); display: grid; gap: var(--space-5); justify-items: start; }
.cta-band h2 { color: var(--ink-on-dark); max-width: 22ch; }
.cta-band p { color: var(--muted-on-dark); font-size: var(--fs-lead); max-width: 52ch; }
.cta-band .btn-row { margin-top: var(--space-2); }

/* section with photo aside */
.media-aside { display: grid; grid-template-columns: 1fr 0.85fr; gap: var(--space-8); align-items: center; }
.media-aside .media { border: var(--border-strong); background: var(--surface-2); }
.media-aside .media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 880px) { .media-aside { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ---------------------------------------------------------------------
   5.17 Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--surface-dark); color: var(--ink-on-dark); padding-block: var(--space-8) var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--space-7); }
.footer-grid h4 {
  font-family: var(--font-body); font-size: var(--fs-h6); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-tint);
  margin-bottom: var(--space-4);
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: var(--space-2); }
.footer-grid a {
  color: var(--ink-on-dark); text-decoration: none; font-size: var(--fs-body-sm);
  display: inline-flex; align-items: center; min-height: 36px; gap: var(--space-2);
  transition: color var(--dur-fast) var(--ease);
}
.footer-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact p { color: var(--muted-on-dark); font-size: var(--fs-body-sm); max-width: 34ch; margin-bottom: var(--space-3); }
.footer-contact a { color: var(--ink-on-dark); text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand { display: inline-flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); text-decoration: none; }
.footer-brand svg { height: 40px; width: auto; }
.footer-brand .wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink-on-dark); }
.footer-base {
  margin-top: var(--space-7); padding-top: var(--space-5);
  border-top: 1px solid rgba(243,238,228,0.18);
  display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center;
  font-size: var(--fs-xs); color: var(--muted-on-dark);
}
.footer-base nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-base a { color: var(--muted-on-dark); min-height: 36px; display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.footer-base a:hover { color: #fff; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-base { flex-direction: column; align-items: flex-start; } }

/* ---------------------------------------------------------------------
   Scroll-reveal (the single allowed entrance animation)
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* if JS is absent, never hide content */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   7. Print
   --------------------------------------------------------------------- */
@media print {
  .site-header, .mobile-drawer, .menu-toggle, .hero-cta, .cta-band, .skip-link, .header-tools { display: none !important; }
  .hero-media, .feature-media, .map-frame { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #333; word-break: break-all; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #000; }
  .site-footer a, .footer-grid h4, .footer-contact p { color: #000; }
  .section, .anchor-section { padding-block: 1rem; }
}
