/* ============================================================
   WOD FOUNDRY — a Cox Technologies product (wodfoundry.com)
   Dark box aesthetic
   Palette: bg #0b0e11 / panel #141a20 / ink #f2f5f7 / orange #ff7a1a
   Fonts: Archivo (display, wide) + system stack (body)
   ============================================================ */

:root {
  --bg: #0b0e11;
  --panel: #141a20;
  --ink: #f2f5f7;
  --muted: #8a97a4;
  --line: #232c34;
  --orange: #ff7a1a;
  --teal: #26c6da;
  --prep: #a78bfa;
  --done: #4ade80;
  --error: #ff8a80;
  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 72rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.site-nav ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  z-index: 10000; background: var(--orange); color: #111;
  padding: .6rem 1rem; font-weight: 700; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 8vw, 6rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); }

.lede { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.accent { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; border-radius: 0;
  padding: .95rem 1.8rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-orange { background: var(--orange); color: #111; }
.btn-orange:hover { background: var(--ink); color: #111; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #111; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo { width: 3rem; height: 3rem; flex: none; border-radius: 8px; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  font-size: 1.05rem; line-height: 1.15; text-transform: uppercase;
}
.brand-word small {
  display: block; font-family: var(--font-body); font-size: .55rem;
  font-weight: 600; letter-spacing: .4em; color: var(--muted);
}

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; padding: .6rem;
  background: none; border: 2px solid var(--ink); border-radius: 0;
}
.nav-toggle .bar {
  display: block; height: 2px; width: 100%; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.5rem;
}
body.nav-open .site-nav { display: block; }
.site-nav ul { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1rem; }
.site-nav a:not(.btn) {
  display: block; padding: .65rem .5rem;
  font-weight: 600; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.site-nav a:not(.btn):hover { color: var(--orange); }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; align-items: center; gap: 1.75rem;
    position: static; background: none; border: 0; padding: 0;
  }
  .site-nav ul { flex-direction: row; gap: 1.6rem; margin: 0; }
  .site-nav a:not(.btn) { padding: .35rem 0; font-size: .82rem; }
  .nav-cta { padding: .65rem 1.25rem; font-size: .78rem; }
}

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head .lede { margin-top: 1rem; }

.band-panel { background: var(--panel); border-block: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  padding-block: clamp(5.5rem, 14vw, 10rem);
  border-bottom: 1px solid var(--line);
}
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(11, 14, 17, .82), rgba(11, 14, 17, .62));
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.25rem; max-width: 13ch; }
.hero h1 .accent { color: var(--orange); }
.hero .lede { color: #d7dde2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; margin-top: 2.5rem;
  font-size: .8rem; font-weight: 600; color: #d7dde2;
  text-transform: uppercase; letter-spacing: .14em;
}
.hero-meta span { border-left: 3px solid var(--orange); padding-left: .7rem; }

/* ---------- Statement ---------- */
.statement-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .statement-grid { grid-template-columns: 1.4fr 1fr; } }
.statement-video {
  width: min(340px, 80vw); height: auto; justify-self: center;
  border: 1px solid var(--line); border-radius: 16px;
}
.statement {
  font-family: var(--font-display); font-weight: 700; font-stretch: 125%;
  font-size: clamp(1.45rem, 3.6vw, 2.5rem); line-height: 1.3;
  max-width: 34ch; text-wrap: balance; text-transform: none;
}
.statement strong { color: var(--orange); font-weight: 800; }

/* ---------- Programs (ruled rows) ---------- */
.program-list { border-top: 1px solid var(--line); }
.program-row {
  display: grid; gap: .4rem 2rem; padding: 1.6rem .25rem;
  border-bottom: 1px solid var(--line);
}
.program-row h3 { font-size: clamp(1.4rem, 4vw, 2.2rem); }
.program-row p { color: var(--muted); max-width: 58ch; }
.program-when {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal);
}
@media (min-width: 800px) {
  .program-row { grid-template-columns: 1fr 1.4fr auto; align-items: baseline; }
  .program-when { text-align: right; white-space: nowrap; }
}

/* ---------- Timer feature band ---------- */
.timer-band { background: var(--panel); border-block: 1px solid var(--line); }
.timer-band-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .timer-band-grid { grid-template-columns: 1.15fr 1fr; } }
.timer-copy h2 { max-width: 16ch; }
.timer-copy .lede { margin-top: 1.25rem; }
.timer-points { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: .9rem; }
.timer-points li { padding-left: 1.4rem; position: relative; color: var(--ink); }
.timer-points li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .6rem; height: .6rem; background: var(--orange);
}
.timer-points li span { color: var(--muted); }
.timer-band .btn { margin-top: 2rem; }

/* static ring mock */
.timer-mock {
  justify-self: center;
  width: min(340px, 80vw); aspect-ratio: 1;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.timer-mock svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-mock .mock-center { text-align: center; }
.mock-phase {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 800; color: var(--orange);
}
.mock-time {
  font-size: clamp(3.4rem, 9vw, 4.6rem); line-height: 1.05; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.mock-round { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- Coaches ---------- */
.founders-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .founders-grid { grid-template-columns: 1.15fr 1fr 1fr; } }
.founders-photo { margin: 0; }
.founders-photo img { border-radius: 16px; border: 1px solid var(--line); }
.founder h3 { margin-bottom: .6rem; }
.founder-cred {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .9rem;
}
.founder p { color: var(--muted); max-width: 52ch; }
.coach-roster { margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); padding-top: 2rem; }
.coach-roster h3 { margin-bottom: 1rem; }
.roster-note { color: var(--muted); max-width: 62ch; margin-bottom: 1.25rem; }
.roster-names {
  font-family: var(--font-display); font-weight: 700; font-stretch: 125%;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem); text-transform: uppercase;
  line-height: 1.7;
}
.roster-names span { color: var(--line); padding-inline: .5rem; }

/* ---------- Pricing ---------- */
.tier-grid { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 900px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: var(--panel); border: 1px solid var(--line);
  padding: 2.2rem 1.8rem; display: flex; flex-direction: column; gap: 1rem;
}
.tier h3 { font-size: 1.2rem; }
.tier-price {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  font-size: 3rem; line-height: 1; color: var(--ink);
}
.tier-price small { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--muted); }
.tier-facts { list-style: none; padding: 0; display: grid; gap: .55rem; }
.tier-facts li { color: var(--muted); font-size: .95rem; padding-left: 1.3rem; position: relative; }
.tier-facts li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: .6rem; height: .6rem; background: var(--orange);
}
.tier .btn { margin-top: auto; }
.tier-note { margin-top: 1.75rem; color: var(--muted); font-size: .9rem; max-width: 70ch; }

/* ---------- Testimonials ---------- */
.pull-quote {
  font-family: var(--font-display); font-weight: 700; font-stretch: 125%;
  font-size: clamp(1.45rem, 3.6vw, 2.6rem); line-height: 1.3;
  max-width: 32ch; text-wrap: balance;
}
.pull-quote .accent { color: var(--orange); }
.quote-attr { margin-top: 1.75rem; }
.quote-attr::before { content: ""; display: block; width: 2.5rem; height: 4px; background: var(--orange); margin-bottom: .9rem; }
.quote-attr strong { display: block; }
.quote-attr span { color: var(--muted); font-size: .9rem; }
.quote-minor-grid { display: grid; gap: 2rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 800px) { .quote-minor-grid { grid-template-columns: 1fr 1fr; } }
.quote-minor blockquote p { color: var(--ink); font-size: 1.02rem; }
.quote-minor figcaption { margin-top: .75rem; color: var(--muted); font-size: .9rem; font-weight: 600; }

/* ---------- Member photo band (full-bleed background, hero treatment) ---------- */
.member-band {
  position: relative;
  border-block: 1px solid var(--line);
  padding-block: clamp(4.5rem, 10vw, 8rem);
}
.member-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
}
.member-band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(11, 14, 17, .86), rgba(11, 14, 17, .68));
}
.member-band .container { position: relative; z-index: 2; }
.member-band .quote-attr span,
.member-band .quote-minor figcaption { color: #b8c2cb; }

/* ---------- Visit / form ---------- */
.visit-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1.15fr; } }
.visit-info address { font-style: normal; color: var(--muted); line-height: 1.9; margin-top: 1.25rem; }
.visit-info address strong { color: var(--ink); }
.hours { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .95rem; }
.hours caption {
  text-align: left; font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  padding-bottom: .8rem;
}
.hours th, .hours td { padding: .6rem .25rem; text-align: left; border-bottom: 1px solid var(--line); }
.hours th { color: var(--ink); font-weight: 600; white-space: nowrap; padding-right: 1.5rem; }
.hours td { color: var(--muted); }

.trial-form-panel { background: var(--panel); border: 1px solid var(--line); padding: clamp(1.6rem, 4vw, 2.6rem); }
.trial-form-panel h3 { margin-bottom: .5rem; }
.trial-form-panel > p { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.form-grid { display: grid; gap: 1.2rem; }
.field label {
  display: block; font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: .45rem;
}
.field .optional { color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input, .field select {
  width: 100%; padding: .8rem .9rem;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0;
  font: 400 1rem/1.4 var(--font-body);
}
.field input:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(38, 198, 218, .25);
}
.field input[aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-weight: 600; font-size: .85rem; margin-top: .4rem; }
.err:empty { display: none; }
.form-notice { margin-top: 1.5rem; background: var(--bg); border: 1px solid var(--teal); padding: 1.5rem 1.75rem; }
.form-notice strong { display: block; margin-bottom: .4rem; }
.form-notice a { color: var(--teal); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: #07090b; color: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 7vw, 5rem) 0 7rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 1rem; max-width: 22rem; }
.footer-col h2 {
  font-size: .78rem; font-family: var(--font-body); font-weight: 600; font-stretch: normal;
  letter-spacing: .24em; color: var(--teal); margin-bottom: 1rem; text-transform: uppercase;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: #b8c2cb; text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col address { font-style: normal; color: var(--muted); font-size: .92rem; line-height: 1.8; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
}

/* ---------- Floating trial CTA (bottom-left; Cox badge owns bottom-right) ---------- */
.float-cta {
  position: fixed; left: 16px; bottom: 16px; z-index: 9998;
  background: var(--orange); color: #111;
  font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; padding: .75rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.float-cta:hover { background: var(--ink); }
@media (max-width: 640px) { .float-cta { left: 10px; bottom: 52px; padding: .65rem .95rem; } }

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

/* Guard: height attribute must not win over responsive sizing */
img { height: auto; }
