/* ==========================================================================
   Rackline v1.0.0 — Gym & Fitness Landing Template
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   1.  Fonts (bundled woff2, OFL licensed)
   2.  Design tokens: light theme
   3.  Design tokens: dark theme (auto + manual)
   4.  Base and reset
   5.  Utilities and buttons
   6.  Header and navigation
   7.  Hero and "On the floor today"
   8.  Barbell (signature element) + load sequence
   9.  Section shells
   10. Programs
   11. Timetable
   12. Coaches
   13. Membership
   14. Member quotes
   15. FAQ
   16. Visit and map
   17. Free session form
   18. Footer
   19. Responsive breakpoints
   20. Reduced motion and print
   ========================================================================== */

/* 1. FONTS ---------------------------------------------------------------- */
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* 2. TOKENS: LIGHT -------------------------------------------------------
   Change the brand here. The four plate colours are used for program
   colour-coding everywhere (barbell, programs, timetable, chips). */
:root {
  --plate-red:    #C8102E;
  --plate-blue:   #1F4FD1;
  --plate-yellow: #F0B400;
  --plate-green:  #1F7A3E;

  --bg:       #F3F4F6;   /* chalk */
  --paper:    #FFFFFF;   /* raised surfaces */
  --ink:      #1C1F24;   /* text */
  --muted:    #565E69;   /* secondary text */
  --line:     #D3D8DE;   /* borders */
  --tint:     #E8EBEF;   /* subtle fills */
  --action:   var(--plate-blue);
  --action-ink: #FFFFFF;
  --focus:    #F0B400;

  --steel-hi:  #E9ECEF;
  --steel-mid: #A9B0B8;
  --steel-lo:  #6E7782;
  --collar:    #2A2E35;

  --portrait-shirt: #1C1F24;
  --skin-1: #8D5A3B; --skin-2: #C68B62; --skin-3: #E7C1A0; --skin-4: #A86E4A;
  --hair-1: #1E1714; --hair-2: #3A2618; --hair-3: #7A4E2A; --hair-4: #241A14;

  --map-ground: #E4E7EB; --map-road: #FFFFFF; --map-block: #CDD3DA;
  --map-water: #B9CDEB; --map-rail: #565E69;

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Impact, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* type scale (minor third, fluid at the top) */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.44rem;
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 2.8rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem);
  --step-5: clamp(3.1rem, 1.2rem + 5.6vw, 6.6rem);

  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem; --space-6: clamp(4rem, 8vw, 7.5rem);
  --wrap: 1200px;
  --radius-s: 6px;
  --radius-m: 12px;
  --header-h: 68px;
  color-scheme: light;
}

/* 3. TOKENS: DARK ---------------------------------------------------------
   Same values twice: once for "follow the system", once for the manual toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --plate-red: #E8384F; --plate-blue: #3F69E6; --plate-yellow: #F5C02A; --plate-green: #2F9A55;
    --bg: #191C21; --paper: #22262C; --ink: #EEF0F3; --muted: #A7AFB9; --line: #363B43; --tint: #2A2F36;
    --action: #3F69E6; --action-ink: #FFFFFF;
    --steel-hi: #C9CFD6; --steel-mid: #858D97; --steel-lo: #4D545D; --collar: #0F1114;
    --portrait-shirt: #0F1114;
    --map-ground: #22262C; --map-road: #3A4048; --map-block: #2C3138; --map-water: #22375E; --map-rail: #A7AFB9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --plate-red: #E8384F; --plate-blue: #3F69E6; --plate-yellow: #F5C02A; --plate-green: #2F9A55;
  --bg: #191C21; --paper: #22262C; --ink: #EEF0F3; --muted: #A7AFB9; --line: #363B43; --tint: #2A2F36;
  --action: #3F69E6; --action-ink: #FFFFFF;
  --steel-hi: #C9CFD6; --steel-mid: #858D97; --steel-lo: #4D545D; --collar: #0F1114;
  --portrait-shirt: #0F1114;
  --map-ground: #22262C; --map-road: #3A4048; --map-block: #2C3138; --map-water: #22375E; --map-rail: #A7AFB9;
  color-scheme: dark;
}

/* 4. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1; margin: 0; letter-spacing: .005em; }
h3 { font-size: var(--step-2); font-weight: 700; }
p { margin: 0 0 var(--space-2); }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

/* 5. UTILITIES + BUTTONS --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius-s); }
.skip-link:focus { top: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.2rem;
  border: 2px solid transparent; border-radius: var(--radius-s);
  font-weight: 600; font-size: var(--step-0); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--action); color: var(--action-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--action) 86%, var(--ink)); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-lg { min-height: 52px; padding: .8rem 1.5rem; font-size: var(--step-1); }
.btn-block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-moon { fill: currentColor !important; stroke: none !important; }
/* show the icon for the theme you would switch TO */
.icon-moon { display: block; } .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}

/* 6. HEADER ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: var(--space-3); margin-left: auto; }
.site-nav ul { display: flex; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-weight: 600; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { border-bottom-color: var(--plate-red); }
.header-tools { display: flex; gap: .5rem; }
.menu-btn { display: none; }
.menu-bars { display: grid; gap: 4px; }
.menu-bars span { width: 18px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 7. HERO ------------------------------------------------------------------ */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-4); align-items: end; }
.hero h1 { font-size: var(--step-5); font-weight: 900; line-height: .9; }
.hero h1 span { display: block; }
.hero-lede { font-size: var(--step-1); max-width: 34rem; margin-top: var(--space-3); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-3); }

.today { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--space-3); }
.today-head h2 { font-size: var(--step-2); }
.open-status { display: flex; align-items: center; gap: .5rem; font-size: var(--step--1); color: var(--muted); margin: .4rem 0 0; }
.open-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.open-status.is-open .dot { background: var(--plate-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--plate-green) 22%, transparent); }
.open-status.is-closed .dot { background: var(--plate-red); }
.today-list { list-style: none; margin: var(--space-2) 0; padding: 0; }
.today-list li { display: grid; grid-template-columns: 5.2rem 1fr; gap: .5rem; padding: .55rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.today-time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--step--1); }
.today-name { display: flex; align-items: center; gap: .5rem; }
.today-name i { width: 10px; height: 10px; border-radius: 2px; background: var(--plate, var(--muted)); flex: none; }
.today-list .today-empty { display: block; color: var(--muted); }
.today-link { font-weight: 600; font-size: var(--step--1); }

/* 8. BARBELL ---------------------------------------------------------------
   Load sequence: plates slide on from the right one at a time, the collar
   clamps, and the bar settles. Only transform + opacity are animated. */
.barbell-band { margin-top: clamp(1.5rem, 4vw, 3rem); }
.barbell { width: 100%; height: clamp(200px, 21vw, 300px); overflow: visible; }
.plate rect:first-of-type { transition: transform .25s ease, filter .25s; }
.plate { cursor: pointer; outline: none; }
.plate text { font-family: var(--font-display); font-weight: 800; font-size: 38px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.plate-red rect { fill: var(--plate-red); }
.plate-blue rect { fill: var(--plate-blue); }
.plate-yellow rect { fill: var(--plate-yellow); }
.plate-green rect { fill: var(--plate-green); }
.plate-red text, .plate-blue text, .plate-green text { fill: #FFFFFF; }
.plate-yellow text { fill: #1C1F24; }
.plate text { font-size: 34px; }
.plate-green text { font-size: 30px; }
.plate .plate-hub { fill: rgba(0,0,0,.14) !important; }
.plate:hover rect, .plate:focus-visible rect { filter: brightness(1.1); }
.plate:hover, .plate:focus-visible { transform: translateY(-6px); }
.plate:focus-visible rect:first-of-type { stroke: var(--focus); stroke-width: 6; }
.plate, .collar, .barbell { transform-box: fill-box; }
.plate { transition: transform .2s ease; }

.js .plate { animation: plate-on .7s cubic-bezier(.2,.9,.25,1); animation-delay: calc(.25s + var(--i) * .16s); animation-fill-mode: backwards; }
.js .collar { animation: collar-on .45s cubic-bezier(.3,1.4,.5,1) backwards; animation-delay: .98s; }
.js .barbell { animation: bar-settle .35s ease-out 1.38s both; }
@keyframes plate-on { from { transform: translateX(110vw); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes collar-on { from { transform: translateX(240px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bar-settle { 0% { transform: translateY(0); } 40% { transform: translateY(5px); } 100% { transform: translateY(0); } }

/* 9. SECTION SHELLS --------------------------------------------------------- */
.section { padding-block: var(--space-6); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: var(--space-2) var(--space-4); align-items: end; margin-bottom: var(--space-4); }
.section-head h2, .section-title-only { font-size: var(--step-4); }
.section-head p { color: var(--muted); margin: 0; }
.section-title-only { margin-bottom: var(--space-4); }

/* 10. PROGRAMS --------------------------------------------------------------- */
.programs { border-top: 1px solid var(--line); }
.program-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-4); }
.program { position: relative; padding: var(--space-3) 0 var(--space-3) calc(var(--space-3) + 14px); border-top: 1px solid var(--line); }
.program::before { content: ""; position: absolute; left: 0; top: var(--space-3); bottom: var(--space-3); width: 14px; border-radius: 4px; background: var(--plate); }
.program h3 { font-size: var(--step-3); }
.program-who { font-weight: 600; margin: .5rem 0 .75rem; }
.program p { max-width: 36rem; }
.program-facts { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-2) 0 0; }
.program-facts div { display: grid; gap: .1rem; }
.program-facts dt { font-size: var(--step--1); color: var(--muted); }
.program-facts dd { margin: 0; font-weight: 600; min-height: 1.6em; display: flex; align-items: center; }
/* effort meter: four little plates, n of them filled */
.effort { display: inline-block; width: 52px; height: 16px;
  background: linear-gradient(90deg, var(--plate) 0 calc(var(--n) * 25%), var(--line) 0) ;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 14px); mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 14px); border-radius: 2px; }

/* 11. TIMETABLE ---------------------------------------------------------------- */
.schedule { background: var(--paper); border-block: 1px solid var(--line); }
.schedule-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.day-tabs { display: flex; gap: 4px; padding: 4px; background: var(--tint); border-radius: var(--radius-s); overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
.day-tab { flex: 1 0 auto; min-width: 44px; min-height: 44px; padding: .3rem .55rem; border: 0; border-radius: 4px; background: transparent; cursor: pointer; display: grid; line-height: 1.15; text-align: center; }
.day-tab b { font-weight: 700; }
.day-tab small { font-size: .72rem; color: var(--muted); }
.day-tab[aria-selected="true"] { background: var(--paper); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); }
.day-tab[aria-selected="true"] small { color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { min-height: 40px; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 600; font-size: var(--step--1); display: inline-flex; align-items: center; gap: .45rem; }
.chip[data-filter]:not([data-filter="all"])::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--plate); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.day-panel { border-radius: var(--radius-m); }
.class-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.class-row {
  display: grid; grid-template-columns: 7rem minmax(0, 1.4fr) minmax(0, 1fr) 9rem auto;
  gap: var(--space-2); align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--line);
}
.class-row.is-past { opacity: .5; }
.class-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.class-time small { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.class-name { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); line-height: 1.05; }
.class-name i { width: 12px; height: 28px; border-radius: 3px; background: var(--plate); flex: none; }
.class-coach { color: var(--muted); }
.spots { font-size: var(--step--1); }
.spots-bar { display: block; height: 6px; background: var(--tint); border-radius: 3px; margin-top: .3rem; overflow: hidden; }
.spots-bar span { display: block; height: 100%; width: calc(var(--fill) * 100%); background: var(--plate); }
.spots.is-full { color: var(--plate-red); font-weight: 600; }
.reserve { min-height: 40px; padding: .45rem 1rem; font-size: var(--step--1); }
.reserve[disabled] { opacity: .5; cursor: not-allowed; border-color: var(--line); }
.reserve[disabled]:hover { background: transparent; color: var(--ink); }
.empty-day { padding: var(--space-4) 0; color: var(--muted); border-top: 1px solid var(--line); }

/* 12. COACHES ------------------------------------------------------------------ */
.coach-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.portrait { width: 100%; aspect-ratio: 200 / 220; height: auto; border-radius: var(--radius-m); margin-bottom: var(--space-2); }
.coach h3 { font-size: var(--step-2); }
.coach-role { font-weight: 600; margin: .35rem 0 .5rem; font-size: var(--step--1); }
.coach p:last-child { color: var(--muted); font-size: .95rem; }

/* 13. MEMBERSHIP -------------------------------------------------------------- */
.pricing { background: var(--tint); }
.billing-switch { display: inline-flex; border: 0; padding: 4px; margin: 0 0 var(--space-3); background: var(--paper); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.billing-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.billing-switch label { min-height: 40px; display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1.1rem; border-radius: 999px; font-weight: 600; cursor: pointer; }
.billing-switch input:checked + label { background: var(--ink); color: var(--bg); }
.billing-switch input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.save { font-size: .75rem; font-weight: 700; background: var(--plate-yellow); color: #1C1F24; padding: .1rem .45rem; border-radius: 999px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); align-items: start; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--space-3); display: flex; flex-direction: column; gap: .25rem; }
.plan h3 { font-size: var(--step-3); }
.plan-for { color: var(--muted); }
.price { display: flex; align-items: baseline; gap: .3rem; margin: var(--space-1) 0 var(--space-2); }
.amount { font-family: var(--font-display); font-weight: 900; font-size: var(--step-4); line-height: 1; font-variant-numeric: tabular-nums; }
.per { color: var(--muted); }
.plan-list { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: .55rem; }
.plan-list li { padding-left: 1.6rem; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 6px; border-radius: 2px; background: var(--plate-green); }
.plan .btn { margin-top: auto; }
.plan-featured { border: 2px solid var(--ink); transform: translateY(-12px); }
.plan-flag { align-self: flex-start; background: var(--plate-red); color: #fff; font-size: var(--step--1); font-weight: 600; padding: .2rem .6rem; border-radius: 4px; margin-bottom: .5rem; }
.pricing-note { margin-top: var(--space-3); color: var(--muted); }

/* 14. QUOTES -------------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: var(--space-3) var(--space-4); }
.quote { margin: 0; padding-left: var(--space-3); border-left: 6px solid var(--plate); }
.quote blockquote { margin: 0 0 var(--space-2); }
.quote blockquote p { font-size: var(--step-1); line-height: 1.45; }
.quote-lead { grid-row: span 2; }
.quote-lead blockquote p { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.08; }
.quote figcaption { color: var(--muted); font-size: var(--step--1); }
.quote figcaption strong { color: var(--ink); display: block; font-size: var(--step-0); }

/* 15. FAQ ----------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--space-4); }
.faq-grid .section-head { display: block; }
.faq-grid .section-head p { margin-top: var(--space-2); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: var(--space-2) 2.5rem var(--space-2) 0; font-weight: 600; font-size: var(--step-1); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 2.5rem var(--space-2) 0; color: var(--muted); max-width: 40rem; }

/* 16. VISIT -------------------------------------------------------------------- */
.visit { background: var(--paper); border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-4); align-items: center; }
.visit h2 { font-size: var(--step-4); margin-bottom: var(--space-3); }
.visit address { font-style: normal; font-size: var(--step-1); line-height: 1.55; }
.visit .open-status { font-size: var(--step-0); margin: var(--space-3) 0 var(--space-2); }
.hours { border-collapse: collapse; width: 100%; max-width: 26rem; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-top: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; border-radius: var(--radius-m); border: 1px solid var(--line); }
.map-label { font: 600 18px var(--font-body); fill: var(--muted); }
.map-label-inv { fill: var(--paper); font-size: 15px; }
.map figcaption { margin-top: .6rem; color: var(--muted); font-size: var(--step--1); }

/* 17. FORM ---------------------------------------------------------------------- */
.trial { background: var(--ink); color: var(--bg); }
.trial ::selection { background: var(--plate-yellow); color: #1C1F24; }
.trial-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-5); align-items: start; }
.trial h2 { font-size: var(--step-4); margin-bottom: var(--space-3); }
.trial-copy > p { font-size: var(--step-1); opacity: .85; max-width: 30rem; }
.trial-steps { margin: var(--space-4) 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--space-2); }
.trial-steps li { counter-increment: step; position: relative; padding-left: 2.8rem; max-width: 30rem; }
.trial-steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; font-family: var(--font-display); font-weight: 900; font-size: 2rem; line-height: 1; color: var(--plate-yellow); }
.trial-form { background: var(--paper); color: var(--ink); border-radius: var(--radius-m); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: var(--space-2); }
.field { display: grid; gap: .35rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.field > label, .field > legend { font-weight: 600; font-size: .95rem; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--bg); transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--action); }
.field [aria-invalid="true"] { border-color: var(--plate-red); }
.field-error { color: var(--plate-red); font-size: var(--step--1); font-weight: 600; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; font-weight: 400; }
.radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio input, .check input { width: 18px; height: 18px; accent-color: var(--action); margin: 0; }
.check { display: flex; gap: .6rem; align-items: center; font-weight: 400; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form-status.is-ok { color: var(--plate-green); }
.form-status.is-error { color: var(--plate-red); }
.trial-form button[aria-busy="true"] { opacity: .7; cursor: progress; }

/* 18. FOOTER ---------------------------------------------------------------------- */
.site-footer { padding-block: var(--space-5) var(--space-3); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); }
.footer-note { color: var(--muted); margin-top: var(--space-2); max-width: 22rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; align-content: start; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step--1); }

/* 19. RESPONSIVE ---------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .menu-btn { display: inline-grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: var(--space-2);
    padding: var(--space-3) clamp(16px, 4vw, 40px) var(--space-4);
    background: var(--bg); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
  .header-tools { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .today { max-width: 32rem; }
  .coach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 34rem; }
  .plan-featured { transform: none; }
  .class-row { grid-template-columns: 6rem minmax(0, 1fr) auto; grid-template-areas: "time name btn" "time coach btn" "time spots btn"; row-gap: .2rem; }
  .class-time { grid-area: time; align-self: start; }
  .class-name { grid-area: name; }
  .class-coach { grid-area: coach; }
  .spots { grid-area: spots; max-width: 12rem; }
  .class-row .reserve { grid-area: btn; }
  .trial-grid, .visit-grid, .faq-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (max-width: 760px) {
  .barbell { width: 190%; max-width: none; height: auto; margin-left: -72%; }
  .section-head { grid-template-columns: 1fr; }
  .program-list { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .quote-lead { grid-row: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
  .schedule-tools { flex-direction: column; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.3rem; }
  .hero-actions .btn { width: 100%; }
  .class-row { grid-template-columns: 4.6rem minmax(0, 1fr); grid-template-areas: "time name" "time coach" "time spots" "time btn"; }
  .class-row .reserve { justify-self: start; margin-top: .4rem; }
  .coach-grid { gap: var(--space-2); }
  .coach p:last-child { font-size: .9rem; }
  .billing-switch label { padding: .35rem .8rem; }
}
@media (max-width: 360px) {
  .coach-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.15rem; }
  .header-inner { gap: .5rem; }
}

/* 20. REDUCED MOTION + PRINT ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .barbell-band, .trial-form, .map, .schedule-tools, .reserve { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  .trial { background: #fff; color: #000; }
}
