/* ============================================================
   FORGE ATHLETICS — demo site by Cox Technologies
   Chalk-white brutalist athletics
   Palette: chalk #FAFAFA / ink #111114 / ultramarine #2B3BE8
   Fonts: Anybody (display, wide) + Manrope (body)
   ============================================================ */

:root {
  --chalk: #FAFAFA;
  --ink: #111114;
  --blue: #2B3BE8;
  --mist: #EFEFF2;
  --rule: #C9C9CE;
  --muted: #55555E;
  --error: #B3261E;
  --font-display: 'Anybody', 'Arial Black', sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 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(--chalk);
  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; }
ul[role="list"], .site-nav ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue);
  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(--blue); color: #fff;
  padding: .6rem 1rem; font-weight: 600; 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.15;
  letter-spacing: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 8vw, 6rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }

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

.label {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; 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-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line-white { border-color: #fff; color: #fff; }
.btn-line-white:hover { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--chalk);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .8rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  font-size: 1.15rem; 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(--chalk); border-bottom: 2px solid var(--ink);
  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(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); }

@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;
    border-bottom: 3px solid transparent;
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
  .nav-cta { padding: .65rem 1.25rem; font-size: .78rem; }
}

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

.band-blue { background: var(--blue); color: #fff; }
.band-blue .lede { color: #DDE0FB; }
.band-blue :focus-visible { outline-color: #fff; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: #fff;
  padding-block: clamp(5.5rem, 14vw, 10rem);
  border-bottom: 2px solid var(--ink);
}
.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(17, 17, 20, .74), rgba(17, 17, 20, .58));
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.25rem; max-width: 12ch; }
.hero .lede { color: #E8E8EC; }
.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: #E8E8EC;
  text-transform: uppercase; letter-spacing: .14em;
}
.hero-meta span { border-left: 3px solid #fff; padding-left: .7rem; }
.hero :focus-visible { outline-color: #fff; }

/* ---------- Statement (numbers folded into a sentence) ---------- */
.statement {
  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;
}
.statement strong { color: var(--blue); font-weight: 800; }

/* ---------- Program index (ultramarine band) ---------- */
.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head .lede { margin-top: 1rem; }

.program-index { border-top: 2px solid #fff; }
.program-index a {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .25rem 1.5rem; padding: 1.3rem .5rem;
  border-bottom: 2px solid #fff; text-decoration: none; color: #fff;
  transition: background .15s ease, color .15s ease;
}
.pi-name {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(1.5rem, 4.5vw, 2.8rem); line-height: 1.15;
  text-transform: uppercase;
}
.pi-meta {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: #DDE0FB;
}
.program-index a:hover { background: #fff; color: var(--blue); }
.program-index a:hover .pi-meta { color: var(--blue); }
.index-foot { margin-top: 2rem; }

/* ---------- Photo band ---------- */
.photo-band { padding: 0; border-block: 2px solid var(--ink); }
.photo-band img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
@media (min-width: 640px) { .photo-band img { aspect-ratio: 21 / 9; } }

/* ---------- Testimonial ---------- */
.pull-quote {
  font-family: var(--font-display); font-weight: 700; font-stretch: 125%;
  font-size: clamp(1.45rem, 3.6vw, 2.7rem); line-height: 1.3;
  max-width: 32ch; text-wrap: balance;
}
.pull-quote .accent { color: var(--blue); }
.quote-attr { margin-top: 1.75rem; }
.quote-attr::before { content: ""; display: block; width: 2.5rem; height: 4px; background: var(--blue); margin-bottom: 0.9rem; }
.quote-attr strong { display: block; }
.quote-attr span { color: var(--muted); font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta-band h2 { max-width: 14ch; }
.cta-band p { max-width: 55ch; margin-top: 1.25rem; font-weight: 600; }
.cta-band .btn { margin-top: 2rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { border-bottom: 2px solid var(--ink); }
.page-hero h1 { max-width: 14ch; }
.page-hero .lede { margin-top: 1.5rem; }

/* ---------- Programs ---------- */
.program { border-bottom: 2px solid var(--ink); }
.program:last-of-type { border-bottom: 0; }
.program-head h2 { max-width: 16ch; }
.program-tag {
  display: inline-block; margin-top: .9rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue);
  border: 2px solid var(--blue); padding: .35rem .75rem;
}
.program-body { display: grid; gap: 2rem; margin-top: 2.25rem; }
.program-body > div > p { color: var(--muted); }
.who-for {
  margin-top: 1.5rem; background: var(--mist);
  padding: 1.2rem 1.4rem;
}
.who-for h3 { font-size: 1rem; margin-bottom: .5rem; }
.who-for p { color: var(--muted); font-size: .95rem; }
@media (min-width: 1000px) { .program-body { grid-template-columns: 1fr 1.1fr; gap: 3rem; } }

/* ---------- Schedule table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.schedule { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .92rem; }
.schedule caption {
  text-align: left; font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  padding-bottom: .8rem;
}
.schedule th, .schedule td {
  padding: .7rem .9rem; text-align: left;
  border: 1px solid var(--rule);
}
.schedule thead th {
  background: var(--blue); color: #fff; border-color: var(--blue);
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
}
.schedule tbody th {
  background: var(--mist);
  font-family: var(--font-display); font-weight: 700; font-stretch: 125%;
  text-transform: uppercase; font-size: .85rem; white-space: nowrap;
}
.schedule td { color: #3F3F46; white-space: nowrap; }
.schedule td.off { color: #6B6B74; }

/* ---------- Coaches ---------- */
.coach-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .coach-grid { grid-template-columns: repeat(2, 1fr); } }
.coach-card {
  border: 2px solid var(--ink);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  display: flex; flex-direction: column; gap: .9rem;
}
.coach-role {
  font-size: .76rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue);
}
.coach-card h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.coach-certs { border-top: 2px solid var(--ink); }
.coach-certs li {
  border-bottom: 1px solid var(--rule);
  padding: .45rem 0; font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.coach-spec { font-size: .9rem; font-weight: 600; }
.coach-spec span { color: var(--muted); font-weight: 400; }
.coach-card > p:last-child { color: var(--muted); font-size: .95rem; }

/* ---------- Pricing ---------- */
.tier-grid { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 1000px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier {
  border: 2px solid var(--ink);
  padding: 2.2rem 1.8rem; display: flex; flex-direction: column; gap: 1.1rem;
  position: relative;
}
.tier-price {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  font-size: 3.1rem; line-height: 1;
}
.tier-price small { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--muted); }
.tier ul { padding: 0; list-style: none; display: grid; gap: .55rem; }
.tier li { color: var(--muted); font-size: .93rem; padding-left: 1.3rem; position: relative; }
.tier li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: .6rem; height: .6rem; background: var(--blue);
}
.tier .btn { margin-top: auto; }
.tier-featured { background: var(--blue); border-color: var(--blue); color: #fff; }
.tier-featured li { color: #fff; }
.tier-featured li::before { background: #fff; }
.tier-featured .tier-price small { color: #DDE0FB; }
.tier-featured :focus-visible { outline-color: #fff; }
.tier-flag {
  position: absolute; top: 0; right: 0;
  background: var(--ink); color: #fff;
  font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding: .45rem .85rem;
}
.tier-note { margin-top: 1.75rem; color: var(--muted); font-size: .9rem; max-width: 70ch; }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1.2rem 3rem 1.2rem 0;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--blue);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding: 0 0 1.4rem; max-width: 70ch; }
.faq a { color: var(--blue); font-weight: 600; }

/* ---------- Form ---------- */
.signup-panel { border: 2px solid var(--ink); padding: clamp(1.6rem, 4vw, 3rem); }
.signup-panel .lede { margin-top: 1.25rem; }
.form-grid { display: grid; gap: 1.2rem; margin-top: 1.75rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .span-2 { grid-column: span 2; }
}
.field label {
  display: block; font-size: .76rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: .45rem;
}
.field input, .field select {
  width: 100%; padding: .8rem .9rem;
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 0;
  font: 400 1rem/1.4 var(--font-body);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 49%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 51%);
  background-position: calc(100% - 1.3rem) 50%, calc(100% - .95rem) 50%;
  background-size: .38rem .38rem; background-repeat: no-repeat; padding-right: 2.5rem;
}
.field input:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 59, 232, .25);
}
.field input[aria-invalid="true"], .field select[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-fine { font-size: .85rem; color: var(--muted); }
.form-alt { margin-top: 1.25rem; font-weight: 600; }
.form-alt a { color: var(--blue); }

.form-notice { margin-top: 1.5rem; background: var(--blue); color: #fff; padding: 1.5rem 1.75rem; }
.form-notice strong { display: block; margin-bottom: .4rem; }
.form-notice a { color: #fff; font-weight: 600; }
.form-notice :focus-visible { outline-color: #fff; }

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

/* ---------- 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; }
