/* V12 Athletics — site styles */

:root {
  /* Brand purple, taken from the live site. The logo's pink and silver are
     used as accents rather than as the page's primary colour. */
  --brand: #800080;
  --brand-dark: #5e005e;
  --brand-light: #9d259d;
  --pink: #ec6a9c;
  --silver: #b4b8bf;
  /* Used by .eyebrow and .stripe. It had no definition, which made both
     declarations invalid: eyebrows fell back to the body colour and the stripe
     rendered as nothing at all. */
  --brand-soft: #9d259d;

  --paper: #ffffff;
  --paper-2: #f5f5f6;
  --ink: #232323;
  --ink-soft: #4f4f4f;
  --rule: #e0e0e2;

  /* Dark surfaces, kept for the broadcast composer at /mail. */
  --ink-2: #1b1b1f;
  --ink-3: #26262c;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ececf0;
  --text-dim: #a5a5b0;
  --text-dark: #232323;
  --text-dark-dim: #5c5c66;

  --radius: 10px;
  --shell: min(1180px, 100% - 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Lato", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* An explicit `display` on a component would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-family: var(--display);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1.1em; }

.shell { width: var(--shell); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin-bottom: 1rem;
}

.lede { font-size: 1.15rem; color: var(--text-dim); max-width: 62ch; }

.stripe {
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft) 55%, var(--silver));
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-head__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--ink);
}

/* Sized for a wide mark: height is fixed, width follows the artwork. */
.brand__mark { height: 124px; width: auto; max-width: 460px; flex: none; }

.brand__sub {
  display: block;
  font-family: var(--body);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
  font-weight: 700;
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav__link:hover { color: var(--brand); }
.nav__link[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

.nav__toggle {
  display: none;
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin-inline: auto;
  content: "";
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-2px) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 4px;
  border: 2px solid transparent;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }

.btn--ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--ghost:hover { background: var(--brand); color: #fff; }

.btn--dark { background: #fff; color: var(--brand); }
.btn--dark:hover { background: var(--paper-2); }

/* On a purple band, an outline button needs white edges. */
.btn--on-brand { border-color: #fff; color: #fff; }
.btn--on-brand:hover { background: #fff; color: var(--brand); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: clamp(420px, 62vh, 620px);
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--ink-2);
}

.hero__media { position: absolute; inset: 0; }

.hero__img { width: 100%; height: 100%; object-fit: cover; }

/* The overlay keeps white type legible over any photograph. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20, 12, 20, 0.45), rgba(20, 12, 20, 0.6));
}

.hero__inner { position: relative; max-width: 60rem; }

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  margin-bottom: 1rem;
}

.hero .lede {
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 54rem;
  margin-inline: auto;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.hero__actions--center { justify-content: center; }

/* ---------- stats ---------- */

.stats {
  background: var(--brand);
  padding: 2.5rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat__num {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: #fff;
}

.stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- sections ---------- */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--light { background: var(--paper-2); }

/* A full-bleed purple band, as used for the services block. */
.section--brand { background: var(--brand); color: #fff; }
.section--brand h2,
.section--brand h3 { color: #fff; }
.section--brand .lede,
.section--brand p { color: rgba(255, 255, 255, 0.92); }
.section--brand .eyebrow { color: rgba(255, 255, 255, 0.75); }

.section__head { max-width: 60rem; margin: 0 auto 3rem; text-align: center; }
.section__head h2 { color: var(--brand); }
.section--brand .section__head h2 { color: #fff; }
.section__head .lede { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }

.grid { display: grid; gap: 1.75rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -26px rgba(35, 35, 35, 0.6); }
.card h3 { color: var(--brand); }
.card p { color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }

.section--brand .card { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }
.section--brand .card h3 { color: #fff; }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(128, 0, 128, 0.1);
  color: var(--brand);
  margin-bottom: 1.1rem;
}

.section--brand .card__icon { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ---------- program cards ---------- */

.program {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.program__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.program__img { width: 100%; height: 100%; object-fit: cover; }

.program__top { padding: 1.5rem 1.8rem; background: var(--brand); color: #fff; }
.program__name { font-size: 1.8rem; margin: 0.35rem 0 0; color: #fff; }

.program__tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.program__price { margin: 0.35rem 0 0; font-size: 0.95rem; font-weight: 700; color: #fff; }

.program__body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.program__body p { color: var(--ink-soft); }

.program__meta { list-style: none; margin: 0 0 1.6rem; padding: 0; font-size: 0.96rem; color: var(--ink-soft); }
.program__meta--flush { margin-bottom: 0; }
.program__meta--spaced { margin-top: 2rem; }

.program__meta li { padding-left: 1.5rem; position: relative; margin-bottom: 0.55rem; }

.program__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
}

.section--brand .program__meta li::before { background: #fff; }
.program__body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- coaches ---------- */

.coach { text-align: center; }

.coach__photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-2);
  border: 3px solid var(--brand);
}

.coach__img { width: 100%; height: 100%; object-fit: cover; }
.coach h3 { margin-bottom: 0.2rem; }

.coach__role {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* ---------- steps ---------- */

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps--narrow { max-width: 70ch; }

.steps li { counter-increment: step; position: relative; padding-left: 4rem; margin-bottom: 2rem; }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.15rem;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand);
}

.section--brand .steps li::before { color: #fff; }
.steps h3 { margin-bottom: 0.3rem; }

/* ---------- testimonials ---------- */

.tcard {
  background: var(--brand);
  color: #fff;
  border-radius: 22px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.tcard__quote {
  font-style: italic;
  font-size: 1.06rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  text-align: left;
  color: #fff;
}

.tcard__avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  margin: auto auto 0.7rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: var(--brand-dark);
}

.tcard__name { font-weight: 700; color: #fff; }

.quote { border-left: 3px solid var(--brand); padding-left: 1.6rem; font-style: italic; color: var(--ink); }
.quote--spaced { margin-top: 2rem; }

.quote cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rule { border: 0; border-top: 1px solid var(--ink); max-width: 1180px; margin: 0 auto 3rem; }

/* ---------- faq ---------- */

.faq details { border-bottom: 1px solid var(--rule); padding: 1.2rem 0; }

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0.9rem 0 0; color: var(--ink-soft); }

/* ---------- forms ---------- */

.form {
  background: var(--paper-2);
  border: 1px solid #e3e6ec;
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--text-dark);
}

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--text-dark);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid #d7dbe3;
  border-radius: 10px;
  font: inherit;
  font-size: 0.98rem;
  background: #fbfcfd;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 77, 23, 0.15);
}

.field textarea { min-height: 140px; resize: vertical; }

.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }

.field__error {
  display: none;
  color: #c62f13;
  font-size: 0.82rem;
  margin-top: 0.35rem;
  font-weight: 600;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #c62f13; }

.field.is-invalid .field__error { display: block; }

.form__note { font-size: 0.85rem; color: var(--text-dark-dim); }

.form__status {
  display: none;
  margin: 1.2rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
}

.form__status.is-visible { display: block; }
.form__status--ok { background: #eaf7ee; border: 1px solid #b7e2c4; color: #17663a; }
.form__status--err { background: #fdecea; border: 1px solid #f3bcb2; color: #a12a12; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.contact-list li:first-child { padding-top: 0; }

.contact-list span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-list a { text-decoration: none; color: var(--ink); }
.contact-list a:hover { text-decoration: underline; }

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.gallery__tile {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e3e6ec;
  background: var(--ink-3);
  transition: transform 0.25s var(--ease);
}

.gallery__img { width: 100%; height: 100%; object-fit: cover; }

.gallery__tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(11, 14, 20, 0.85));
}

.gallery__tile:hover { transform: scale(1.02); }

/* ---------- cta ---------- */

.cta { background: var(--brand); color: #fff; padding: clamp(3rem, 7vw, 4.5rem) 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 55ch; margin-inline: auto; color: rgba(255, 255, 255, 0.9); }

/* ---------- footer ---------- */

.site-foot {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2rem;
  font-size: 0.94rem;
}

.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot__blurb { margin-top: 1rem; max-width: 34ch; }

.foot h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.55rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .brand { color: #fff; }
.site-foot .brand__sub { color: rgba(255, 255, 255, 0.7); }

.foot__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.page-hero--tall { padding-bottom: 5rem; }
.page-hero h1 { color: var(--brand); }
.page-hero .lede { margin-inline: auto; }

.crumbs { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 1rem; }
.crumbs a { text-decoration: none; color: var(--brand); }

/* ---------- reveal ---------- */

/* Hidden only when JS is present to un-hide it; no-JS visitors see everything. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 100;
}

.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero__grid, .contact-grid { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .foot__grid { grid-template-columns: 1fr 1fr; }

  .nav__toggle { display: block; }

  .nav { display: none; width: 100%; margin: 0; }
  .nav.is-open { display: block; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0 0.5rem; }
  .nav__list li { border-bottom: 1px solid var(--rule); }
  .nav__link { display: block; padding: 0.9rem 0; text-align: center; }
  .nav__list .btn { margin-top: 1rem; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4, .field--row, .gallery { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Components added for CMS-managed media, live forms, and Stripe payments
   ========================================================================== */

/* ---------- hero photography ---------- */

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  mask-image: linear-gradient(100deg, transparent 12%, #000 55%);
  -webkit-mask-image: linear-gradient(100deg, transparent 12%, #000 55%);
}

.hero__note { font-size: 0.85rem; color: var(--text-dim); margin: 1.2rem 0 0; }

.hero__actions--center { justify-content: center; }

.btn--on-brand { border-color: rgba(22, 17, 10, 0.35); color: #1a1013; }
.btn--on-brand:hover { border-color: rgba(22, 17, 10, 0.6); }

/* ---------- figures ---------- */

.figure { margin: 0 0 1.5rem; }

.figure__img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e3e6ec;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.note--dim { color: var(--text-dim); margin-top: 1.5rem; }
.foot__blurb { margin-top: 1rem; max-width: 34ch; }
.steps--narrow { max-width: 70ch; }
.page-hero--tall { padding-bottom: 5rem; }
.quote--spaced { margin-top: 2rem; }
.program__meta--flush { margin-bottom: 0; }
.program__meta--spaced { margin-top: 2rem; }
.link-brand { color: var(--brand); font-weight: 700; }

/* ---------- program cards with photography ---------- */

.program__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.program__img { width: 100%; height: 100%; object-fit: cover; }
.program__name { font-size: 1.9rem; margin: 0.4rem 0 0; }

.program__price {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--silver);
}

/* ---------- form extras ---------- */

.field--half { min-width: 0; }

.field__help {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dark-dim);
  margin-top: 0.4rem;
}

/* Honeypot: hidden from people, tempting to bots. */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/*
 * Turnstile renders into a fixed-size iframe. In interaction-only mode it is
 * usually zero-height, so the margin has to collapse with it rather than leave
 * a gap above the button on the common path.
 */
.cf-turnstile {
  margin: 1.25rem 0 0;
}
.cf-turnstile iframe {
  max-width: 100%;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.25rem;
  border: 1px solid #d7dbe3;
  border-radius: 12px;
  background: #fbfcfd;
}

.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--brand);
  cursor: pointer;
}

.consent label { cursor: pointer; }
.consent b { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }

.consent span {
  display: block;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-dark-dim);
}

.consent.is-invalid { border-color: #c62f13; }

/* ---------- payment summary ---------- */

.pay-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 23, 0.35);
  background: linear-gradient(120deg, rgba(255, 77, 23, 0.08), rgba(245, 196, 81, 0.08));
}

.pay-summary__label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-dark-dim);
  align-self: center;
}

.pay-summary__amount {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.pay-summary__note {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dark-dim);
}

/* ---------- banners ---------- */

.banner {
  margin: 2rem 0 0;
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  font-size: 0.95rem;
  border: 1px solid;
}

.banner b { display: block; margin-bottom: 0.2rem; }
.banner--paid { background: rgba(23, 102, 58, 0.14); border-color: rgba(84, 214, 141, 0.5); color: #a9e9c2; }
.banner--cancel { background: rgba(161, 42, 18, 0.14); border-color: rgba(243, 188, 178, 0.4); color: #f3bcb2; }

/* ---------- long-form prose (privacy) ---------- */

.prose { max-width: 72ch; }

/* Body copy that spans the page rather than sitting in a narrow column. */
.prose--wide { max-width: 68rem; margin-inline: auto; }
.prose--wide p { font-size: 1.08rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.prose p { color: var(--text-dark-dim); }

.notice {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid #f0d9a8;
  background: #fdf6e6;
  color: #7a5a12;
  font-size: 0.92rem;
}

/* ---------- busy state ---------- */

button[data-submit][aria-busy="true"] { opacity: 0.7; pointer-events: none; }

@media (max-width: 620px) {
  .consent { padding: 0.9rem 1rem; }
  .pay-summary { grid-template-columns: 1fr; }
}

/* ---------- alternating image / text rows ---------- */

.altrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.altrow:last-child { margin-bottom: 0; }

/* Every second row puts the picture on the right. Scoped to the wrapper so the
   section heading is not counted as the first child, which would invert them. */
.altrows .altrow:nth-child(even) .altrow__media { order: 2; }

.altrow__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
}

.altrow__body h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 0.7rem; }
.altrow__body p { font-size: 1.06rem; margin: 0; }

@media (max-width: 820px) {
  .altrow { grid-template-columns: 1fr; }
  .altrows .altrow:nth-child(even) .altrow__media { order: 0; }
}

/* ---------- gallery strip ---------- */

.photostrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.photostrip__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
}

@media (max-width: 900px) { .photostrip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .photostrip { grid-template-columns: 1fr; } }

/* ---------- light hero (inner pages) ---------- */

.hero--light { background: var(--paper); }
.hero--light .hero__img { object-fit: contain; opacity: 0.9; }
.hero--light .hero__media::after { background: rgba(255, 255, 255, 0.55); }
.hero--light h1 { color: var(--ink); text-shadow: none; }
.hero--light .lede { color: var(--ink); text-shadow: none; }

/* ---------- coaching team ---------- */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.staff { margin: 0; text-align: center; }

.staff__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 0.7rem;
}

.staff__name { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 0.5rem; }

.staff__role {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}

@media (max-width: 1100px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- footer: centred logo over a single nav row ---------- */

.site-foot {
  background: var(--paper-2);
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.foot__brand { display: inline-block; margin-bottom: 1.2rem; }
.foot__brand .brand__mark { height: 112px; max-width: 420px; }

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.6rem;
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
}

.foot__nav a {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.foot__nav a:hover { color: var(--brand); }

.foot__meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
}

.foot__meta a { color: var(--ink-soft); }

/* ---------- left-aligned purple headings (inner pages) ---------- */

.heading-brand { color: var(--brand); }

.numbered { margin: 0 0 1.2em; padding-left: 1.4rem; }
.numbered li { margin-bottom: 0.6rem; color: var(--ink-soft); }
.numbered b { color: var(--ink); }

.figure--wide { max-width: none; margin-top: 2rem; }
.figure--wide .figure__img { aspect-ratio: 21 / 9; border-radius: 2px; }

/* A row of call-to-action buttons, matching the ones on the other pages. */
.inline-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }

/* The registration form sits in a card so it reads as an action, not prose. */
.form-wrap { max-width: 46rem; margin: 2.5rem auto 0; }

/* ---------- grouped form sections ---------- */

.form-section {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0 0 1.5rem;
  padding: 1.6rem 0 0;
}

.form-section:first-of-type { border-top: 0; padding-top: 0; }

.form-section legend {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 0;
  margin-bottom: 1.2rem;
}

/* ---------- left-aligned hero (Programs) ---------- */

.hero--left { text-align: left; }
.hero--left .hero__inner { max-width: none; width: var(--shell); }
.hero--left .lede { margin-inline: 0; }
.hero--left .hero__actions { justify-content: flex-start; }

/* ---------- contact: map beside the details ---------- */

.contact-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-map iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 4px;
}

.contact-points { list-style: none; margin: 0; padding: 0; }

.contact-points li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
  font-size: 1.15rem;
}

.contact-points li:last-child { margin-bottom: 0; }
.contact-points__icon { color: var(--ink); }
.contact-points a { color: var(--ink); text-decoration: none; }
.contact-points a:hover { color: var(--brand); text-decoration: underline; }

.bullets { margin: 0 0 1.2em; padding-left: 1.2rem; }
.bullets li { margin-bottom: 1rem; color: var(--ink-soft); }

@media (max-width: 820px) { .contact-split { grid-template-columns: 1fr; } }

/* ---------- text on the purple bands ---------- */

/*
 * .prose p, .numbered li and .bullets li each set a dark colour and are
 * declared after .section--brand p, so at equal specificity they won and the
 * copy rendered grey on purple — legible only when selected. Scoping these to
 * the band raises the specificity so white wins.
 */
.section--brand .prose p,
.section--brand .prose--wide p,
.section--brand .numbered li,
.section--brand .bullets li,
.section--brand .card p,
.section--brand .program__meta,
.section--brand .form__note,
.section--brand .lede { color: rgba(255, 255, 255, 0.94); }

.section--brand .numbered b,
.section--brand .prose b,
.section--brand .prose strong { color: #fff; }

.section--brand a { color: #fff; }
