/* ==========================================================================
   Continuum Performance — styles.css
   Single stylesheet. No framework. Custom properties for color + spacing.
   Change the brand color in ONE place: --color-accent / --color-accent-bright.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* ---- Continuum brand palette: deep olive / cream / gold ----------------
     Sampled from the Continuum Performance wordmark. Contrast ratios noted
     against the surface each color is actually used on; all clear WCAG AA.

     NOTE ON THE GOLD: the brand gold #C4A880 is only 2.1:1 on cream, so it
     cannot carry text on a light background. It is used at full strength on
     dark surfaces and as a button FILL (with olive text on it). For gold
     text and rules on cream, --color-accent is the same hue darkened to a
     bronze that reads at 5.8:1.
     --------------------------------------------------------------------- */

  /* Base surfaces — deep olive */
  --color-ink: #26311f;          /* wordmark olive */
  --color-ink-soft: #2f3b27;
  --color-ink-line: #46543a;

  /* Paper — cream */
  --color-paper: #fbf8ef;
  --color-paper-raised: #ffffff;
  --color-paper-sunk: #efeadb;

  /* Text */
  --color-text: #222c1b;                /* 13.7:1 on --color-paper */
  --color-text-muted: #59634c;          /* 6.0:1 on --color-paper */
  --color-text-invert: #f5f1e4;         /* 12.1:1 on --color-ink */
  --color-text-invert-muted: #c3c9b6;   /* 8.0:1 on --color-ink */

  /* Accent — brand gold family */
  --color-accent: #7a5c36;         /* bronze: text + rules on cream — 5.8:1 */
  --color-accent-strong: #5e4629;  /* hover */
  --color-accent-bright: #c4a880;  /* true brand gold: on olive — 6.0:1 */
  --color-accent-wash: #f1e9d8;
  --color-accent-line: #decdac;

  /* Buttons: gold fill with olive text — 6.0:1 */
  --color-btn-bg: #c4a880;
  --color-btn-bg-hover: #d2bb99;
  --color-btn-text: #26311f;

  /* Utility */
  --color-border: #dfd8c4;
  --color-success: #3c5a2e;
  --color-focus: #7a5c36;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --section-y: clamp(4.5rem, 10vw, 8.5rem);

  /* ---- Type ------------------------------------------------------------
     Editorial pairing: Instrument Serif for headlines only, Archivo for
     everything else — body copy AND all interface chrome (nav, buttons,
     labels, tables). Keeping the serif off the UI is what makes it read
     sleek rather than busy.

     NOTE: Instrument Serif ships in a SINGLE weight (400). Headings must
     stay at font-weight 400 — asking for 600 makes the browser synthesise
     a fake bold, which looks smeared. Hierarchy comes from size and space.
     --------------------------------------------------------------------- */
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.97rem + 0.18vw, 1.06rem);
  --step-1: clamp(1.1rem, 1.04rem + 0.3vw, 1.28rem);
  --step-2: clamp(1.5rem, 1.34rem + 0.7vw, 1.95rem);
  --step-3: clamp(2rem, 1.65rem + 1.5vw, 3rem);
  --step-4: clamp(2.7rem, 2.0rem + 3.2vw, 4.5rem);

  /* Shape */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(38, 49, 31, 0.04);
  --shadow-md: 0 4px 12px rgba(38, 49, 31, 0.09), 0 12px 32px rgba(38, 49, 31, 0.08);

  --container: 1120px;
  --container-narrow: 760px;
  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background-color: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Serif headlines. Weight stays 400 — see the type note above. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.014em;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); line-height: 1.03; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.14; }

/* h4 is a UI-level heading, so it stays in the sans */
h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

p { margin: 0 0 var(--space-sm); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--color-accent-strong); }

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

ul, ol { margin: 0 0 var(--space-sm); padding-left: 1.25rem; }
li { margin-bottom: var(--space-3xs); }
li:last-child { margin-bottom: 0; }

strong { font-weight: 650; }

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-xl) 0;
}

/* Visible focus everywhere. Never remove. */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.on-dark :focus-visible,
.site-footer :focus-visible,
.site-header :focus-visible {
  outline-color: var(--color-accent-bright);
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2rem);
}

.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section--sunk { background-color: var(--color-paper-sunk); }
.section--raised { background-color: var(--color-paper-raised); }

.section--dark {
  background-color: var(--color-ink);
  color: var(--color-text-invert);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--color-text-invert); }
.section--dark p { color: var(--color-text-invert-muted); }
.section--dark a { color: var(--color-accent-bright); }
.section--dark a:hover { color: #dcc8a4; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-ink);
  color: var(--color-text-invert);
  padding: var(--space-xs) var(--space-md);
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: var(--color-text-invert);
}

.stack > * + * { margin-top: var(--space-sm); }

.mt-sm { margin-top: var(--space-sm); }
.pt-0 { padding-top: 0; }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* --------------------------------------------------------------------------
   4. Typographic components
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2xs);
}
.section--dark .eyebrow { color: var(--color-accent-bright); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--color-text-muted);
}
.section--dark .lede { color: var(--color-text-invert-muted); }

.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-2xl);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.muted { color: var(--color-text-muted); }
.small { font-size: var(--step--1); }

.rule-accent {
  width: 56px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: var(--space-md);
}
.section--dark .rule-accent { background: var(--color-accent-bright); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  line-height: 1.2;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  border-color: var(--color-btn-bg);
}
.btn-primary:hover {
  background-color: var(--color-btn-bg-hover);
  border-color: var(--color-btn-bg-hover);
  color: var(--color-btn-text);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-strong);
  background-color: var(--color-accent-wash);
}

/* Secondary buttons sitting on any dark surface */
.section--dark .btn-secondary,
.site-footer .btn-secondary,
.hero .btn-secondary,
.page-header .btn-secondary,
.cta-band .btn-secondary,
.site-header .btn-secondary {
  color: var(--color-text-invert);
  border-color: #57654a;
}
.section--dark .btn-secondary:hover,
.site-footer .btn-secondary:hover,
.hero .btn-secondary:hover,
.page-header .btn-secondary:hover,
.cta-band .btn-secondary:hover,
.site-header .btn-secondary:hover {
  color: var(--color-ink);
  background-color: var(--color-accent-bright);
  border-color: var(--color-accent-bright);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
}

/* --------------------------------------------------------------------------
   6. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(38, 49, 31, 0.96);
  color: var(--color-text-invert);
  border-bottom: 1px solid var(--color-ink-line);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background-color: rgba(38, 49, 31, 0.88); backdrop-filter: blur(12px); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-text-invert);
  padding-block: 0.4rem;
}
.brand-mark { display: block; flex: none; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
  font-weight: 600;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }

.site-nav a:not(.btn) {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-invert);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:not(.btn):hover {
  color: var(--color-accent-bright);
  background-color: rgba(255, 255, 255, 0.06);
}
.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--color-accent-bright);
  box-shadow: inset 0 -2px 0 var(--color-accent-bright);
  border-radius: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--color-ink-line);
  border-radius: var(--radius-sm);
  color: var(--color-text-invert);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}
.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: var(--color-ink);
    border-bottom: 1px solid var(--color-ink-line);
    padding: var(--space-2xs) clamp(1.15rem, 4vw, 2rem) var(--space-md);
    display: none;
  }
  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav a:not(.btn) {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--color-ink-line);
    border-radius: 0;
    font-size: 1.05rem;
  }
  .site-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 3px 0 0 var(--color-accent-bright); padding-left: 0.75rem; }
  .site-nav .btn { margin-top: var(--space-sm); width: 100%; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  background-color: var(--color-ink);
  color: var(--color-text-invert);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% 55%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(196, 168, 128, 0.18), transparent 72%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero h1 { color: var(--color-text-invert); }
.hero .lede { color: var(--color-text-invert-muted); max-width: 54ch; }

.hero-note {
  margin-top: var(--space-md);
  font-size: var(--step--1);
  color: var(--color-text-invert-muted);
}

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-ink-line);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background-color: var(--color-ink-soft);
}
.hero-figure figcaption {
  margin-top: var(--space-2xs);
  font-size: 0.8125rem;
  color: var(--color-text-invert-muted);
}

/* Page header for interior pages */
.page-header {
  background-color: var(--color-ink);
  color: var(--color-text-invert);
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
}
.page-header h1 { color: var(--color-text-invert); margin-bottom: var(--space-xs); }
.page-header .lede { color: var(--color-text-invert-muted); max-width: 65ch; }

/* --------------------------------------------------------------------------
   8. Grids + cards
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 620px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background-color: var(--color-paper-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: none;
}
.card h3 { margin-bottom: var(--space-2xs); }
.card > :last-child { margin-bottom: 0; }

.section--dark .card {
  background-color: var(--color-ink-soft);
  border-color: var(--color-ink-line);
  color: var(--color-text-invert);
  box-shadow: none;
}

.card-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-2xs);
}

/* Pillar cards (Strength / Speed / Plyometrics) */
.pillar {
  border-top: 4px solid var(--color-accent);
}

/* Credentials strip */
.cred-strip {
  background-color: var(--color-ink-soft);
  color: var(--color-text-invert);
  padding-block: var(--space-md);
}
.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
  justify-content: center;
  align-items: center;
}
.cred-list li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-invert);
}
.cred-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-bright);
  flex: none;
}

/* ---- No-photo mode -------------------------------------------------------
   Until real photography exists, the hero and feature rows run as single
   centered columns instead of leaving an empty grid track. Delete the
   --solo classes in the HTML when you restore the <img> blocks.
   ------------------------------------------------------------------------ */
.hero-grid--solo { max-width: 62ch; }

@media (min-width: 860px) {
  .hero-grid--solo { grid-template-columns: 1fr; }
  .feature-row--solo { grid-template-columns: 1fr; max-width: 68ch; }
}

/* Feature row: text + image */
.feature-row {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row--reverse .feature-media { order: -1; }
}
.feature-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background-color: var(--color-paper-sunk);
  border: 1px solid var(--color-border);
}

.media-band img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background-color: var(--color-paper-sunk);
  border: 1px solid var(--color-border);
}
@media (max-width: 620px) {
  .media-band img { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   9. Program cards
   -------------------------------------------------------------------------- */
.program-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}

.program {
  display: flex;
  flex-direction: column;
  background-color: var(--color-paper-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.program-head {
  padding: clamp(1.25rem, 3vw, 1.6rem);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-accent-wash), var(--color-paper-raised));
}
.program-head h2,
.program-head h3 {
  font-size: var(--step-2);
  margin-bottom: var(--space-2xs);
}
.program-body {
  padding: clamp(1.25rem, 3vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-2xs) var(--space-sm);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-xs);
}
.spec-list div { margin: 0; }
.spec-list dt,
.spec-key {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-family: var(--font-body);
}
.spec-list dd,
.spec-val {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

.objectives h3,
.objectives h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xs);
}
.objectives ul {
  margin: 0;
  padding-left: 1.1rem;
}
.objectives li { font-size: var(--step--1); }

/* --------------------------------------------------------------------------
   10. Checklists, steps, notes
   -------------------------------------------------------------------------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}
.checklist li {
  position: relative;
  padding-left: 2.25rem;
  margin: 0;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: var(--color-accent-wash);
  border: 1px solid var(--color-accent-line);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 0.45em;
  width: 0.42rem;
  height: 0.78rem;
  border-right: 2.5px solid var(--color-accent);
  border-bottom: 2.5px solid var(--color-accent);
  transform: rotate(42deg);
}
.checklist strong { display: block; font-family: var(--font-body); font-weight: 600; }

/* --------------------------------------------------------------------------
   Disclosure toggles — keep reference detail on the page without putting it
   all on screen at once. Native <details>, no JavaScript.
   -------------------------------------------------------------------------- */
.disclosure {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-xs);
}
.disclosure > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding-block: 0.2rem;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.disclosure[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.disclosure > summary:hover { color: var(--color-accent-strong); }
.disclosure-body { padding-top: var(--space-xs); }
.disclosure-body ul { margin: 0; padding-left: 1.1rem; }
.disclosure-body li { font-size: var(--step--1); color: var(--color-text-muted); }

.section--dark .checklist li::before {
  background-color: rgba(196, 168, 128, 0.14);
  border-color: rgba(196, 168, 128, 0.42);
}
.section--dark .checklist li::after {
  border-color: var(--color-accent-bright);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.steps li {
  counter-increment: step;
  margin: 0;
  padding-top: var(--space-md);
  border-top: 3px solid var(--color-accent);
}
.steps li h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-3xs);
}
.steps li::before {
  content: "Step " counter(step);
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2xs);
}
.steps li p { font-size: var(--step--1); color: var(--color-text-muted); }

.note {
  border-left: 4px solid var(--color-accent);
  background-color: var(--color-accent-wash);
  padding: var(--space-md);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note h3 { font-size: 1.55rem; margin-bottom: var(--space-2xs); }
.note > :last-child { margin-bottom: 0; }

.section--dark .note {
  background-color: rgba(196, 168, 128, 0.10);
  border-left-color: var(--color-accent-bright);
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: var(--color-accent-wash);
  color: var(--color-accent-strong);
  border: 1px solid var(--color-accent-line);
}

/* --------------------------------------------------------------------------
   11. Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background-color: var(--color-paper-raised);
  -webkit-overflow-scrolling: touch;
  /* Keep the scrollbar visible so a reader knows wide tables scroll. */
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-paper-sunk);
}
.table-wrap::-webkit-scrollbar { height: 10px; }
.table-wrap::-webkit-scrollbar-track { background: var(--color-paper-sunk); }
.table-wrap::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 999px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}
caption {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--step--1);
  border-bottom: 1px solid var(--color-border);
}
th, td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
thead th {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-invert);
  background-color: var(--color-ink-soft);
  white-space: nowrap;
}
tbody th {
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.95rem;
  min-width: 190px;
}
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background-color: rgba(38, 49, 31, 0.03); }

/* Six-column standards table: shrink so it fits without horizontal scroll on
   desktop, and wrap header text instead of forcing wide columns. */
.table-standards { font-size: 0.8125rem; }
.table-standards th,
.table-standards td { padding: 0.7rem 0.7rem; }
.table-standards thead th {
  white-space: normal;
  font-size: 0.68rem;
  min-width: 132px;
  line-height: 1.35;
}
.table-standards tbody th {
  min-width: 148px;
  font-size: 0.9rem;
}
.table-standards td { min-width: 132px; }

.rate-addon {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
}
.rate-addon h2,
.rate-addon h3 {
  font-size: var(--step-2);
  margin-bottom: var(--space-3xs);
}
.rate-addon > div { flex: 1 1 320px; }
.rate-addon-price {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  white-space: nowrap;
  margin: 0;
}
.rate-addon-price span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.th-note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent-bright);
  text-transform: none;
}
.table-rates td:last-child {
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 1rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}
@media (min-width: 900px) {
  .form-layout { grid-template-columns: 1.35fr 0.65fr; }
}

.form {
  display: grid;
  gap: var(--space-md);
  background-color: var(--color-paper-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow-sm);
}

/* align-content keeps inputs the same height when one field in a row
   carries a hint below it and its neighbour does not */
.field { display: grid; gap: 0.35rem; align-content: start; }
.field-row {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
}
.field-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.req { color: var(--color-accent-strong); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-paper-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%2359634c' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}
textarea { min-height: 9rem; resize: vertical; }

input:hover,
select:hover,
textarea:hover { border-color: #c7bfa5; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(122, 92, 54, 0.22);
  outline: none;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 1px;
}

/* Netlify honeypot — hidden from humans, visible to bots */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-aside {
  display: grid;
  gap: var(--space-md);
}
.contact-item { border-top: 1px solid var(--color-border); padding-top: var(--space-sm); }
.contact-item h2,
.contact-item h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3xs);
}
.contact-item p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--step-1);
}
.contact-item .contact-note {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--color-text-muted);
}
.contact-item a { text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   13. CTA band + footer
   -------------------------------------------------------------------------- */
.cta-band {
  background-color: var(--color-ink);
  color: var(--color-text-invert);
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
}
.cta-band h2 { color: var(--color-text-invert); }
.cta-band p { color: var(--color-text-invert-muted); max-width: 58ch; }
.cta-inner {
  display: grid;
  gap: var(--space-md);
  align-items: center;
}
@media (min-width: 860px) {
  .cta-inner { grid-template-columns: 1.4fr auto; }
}

.site-footer {
  background-color: var(--color-ink-soft);
  color: var(--color-text-invert-muted);
  padding-block: var(--space-xl) var(--space-lg);
  font-size: var(--step--1);
  border-top: 1px solid var(--color-ink-line);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; }
}
.site-footer h2,
.site-footer h3 {
  color: var(--color-text-invert);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-2xs);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-3xs); }
.site-footer a {
  color: var(--color-text-invert-muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--color-accent-bright); text-decoration: underline; }
.footer-brand .brand-name {
  color: var(--color-text-invert);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  display: block;
  margin-bottom: var(--space-2xs);
}

.footer-legal {
  border-top: 1px solid var(--color-ink-line);
  padding-top: var(--space-md);
  display: grid;
  gap: var(--space-2xs);
  font-size: 0.8125rem;
}
.footer-legal p { margin: 0; max-width: 90ch; }

/* --------------------------------------------------------------------------
   14. Scroll reveal (subtle, opt-out safe)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------------
   15. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .cta-band, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  .card, .program, .table-wrap { box-shadow: none; break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
