/*
  Site layer on top of Web Awesome.
  Everything uses Web Awesome design tokens (--wa-*), so changing the theme
  or brand color in the <html> class flows through the whole site.
*/

/* ---------- Brand: forest green ----------
   Overrides Web Awesome's brand tokens, so every brand-variant component
   (buttons, badges, callouts, focus rings) picks up the same green.
   Change these hexes to re-color the whole site. */
:root,
.wa-light {
  --wa-color-brand-fill-loud: #2e6b3f;
  --wa-color-brand-on-loud: #ffffff;
  --wa-color-brand-fill-normal: #cfe5d4;
  --wa-color-brand-on-normal: #1e4a2b;
  --wa-color-brand-fill-quiet: #e8f3ea;
  --wa-color-brand-on-quiet: #2e6b3f;
  --wa-color-brand-border-loud: #2e6b3f;
  --wa-color-brand-border-normal: #9cc8a6;
  --wa-color-brand-border-quiet: #cfe5d4;
  --hb-accent-on-dark: #6fbf73; /* lighter green for text on black */
}
.wa-dark {
  --wa-color-brand-fill-loud: #2e6b3f;
  --wa-color-brand-on-loud: #ffffff;
  --wa-color-brand-fill-normal: #24543a;
  --wa-color-brand-on-normal: #dcefe0;
  --wa-color-brand-fill-quiet: #16301e;
  --wa-color-brand-on-quiet: #8fd19a;
  --wa-color-brand-border-loud: #6fbf73;
  --wa-color-brand-border-normal: #2e6b3f;
  --wa-color-brand-border-quiet: #1e4a2b;
}

:root {
  --container: 72rem;
  --section-pad: clamp(3rem, 8vw, 6rem);
  --hb-black: #111;
}

body {
  background: var(--wa-color-surface-default);
  color: var(--wa-color-text-normal);
}

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

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: var(--wa-space-s) var(--wa-space-m);
  background: var(--wa-color-surface-raised);
  border-radius: var(--wa-border-radius-m);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--wa-color-surface-default) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--wa-border-width-s) solid var(--wa-color-surface-border);
  padding-block: var(--wa-space-s);
}

.brand {
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  height: 44px;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
}
.brand-name {
  font-family: var(--wa-font-family-heading);
  font-weight: var(--wa-font-weight-bold);
  font-size: var(--wa-font-size-l);
  line-height: 1.1;
}
.brand-tag {
  font-size: var(--wa-font-size-2xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wa-color-text-quiet);
}

.nav-link {
  padding: var(--wa-space-xs) var(--wa-space-s);
  border-radius: var(--wa-border-radius-m);
  color: var(--wa-color-text-normal);
  text-decoration: none;
  font-weight: var(--wa-font-weight-semibold);
  font-size: var(--wa-font-size-s);
}
.nav-link:hover {
  background: var(--wa-color-neutral-fill-quiet);
}
.nav-link[aria-current="page"] {
  background: var(--wa-color-brand-fill-quiet);
  color: var(--wa-color-brand-on-quiet);
}

.nav-toggle { display: none; }

.drawer-link {
  padding: var(--wa-space-s) var(--wa-space-m);
  border-radius: var(--wa-border-radius-m);
  text-decoration: none;
  color: var(--wa-color-text-normal);
  font-weight: var(--wa-font-weight-semibold);
}
.drawer-link[aria-current="page"] {
  background: var(--wa-color-brand-fill-quiet);
  color: var(--wa-color-brand-on-quiet);
}

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

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--wa-color-surface-lowered); }

.eyebrow {
  font-size: var(--wa-font-size-xs);
  font-weight: var(--wa-font-weight-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wa-color-brand-on-quiet);
}

.lede {
  font-size: var(--wa-font-size-l);
  color: var(--wa-color-text-quiet);
  max-width: 60ch;
}

.rounded-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--wa-border-radius-l);
  box-shadow: var(--wa-shadow-l);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 46rem);
  display: grid;
  align-items: end;
  padding-block: var(--section-pad);
  color: #fff;
  background: var(--hb-black);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0.1) 70%);
}
.hero h1 {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}
.hero h1 .accent { color: var(--hb-accent-on-dark); }
.hero .lede { color: rgb(255 255 255 / 0.85); }

.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--hb-black);
  color: #fff;
}
.page-hero h1 {
  color: #fff;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  text-transform: uppercase;
}
.page-hero .lede { color: rgb(255 255 255 / 0.8); }
.page-hero .eyebrow { color: var(--hb-accent-on-dark); }

/* ---------- Cards & lists ---------- */
.program-card::part(media) { aspect-ratio: 3 / 2; }
.program-card img { width: 100%; height: 100%; object-fit: cover; }
.program-card { height: 100%; }

.coach-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.value-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--wa-space-m);
  align-items: start;
}
.value-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--wa-border-radius-circle);
  background: var(--wa-color-brand-fill-quiet);
  color: var(--wa-color-brand-on-quiet);
}

.stat {
  font-family: var(--wa-font-family-heading);
  font-size: var(--wa-font-size-3xl);
  font-weight: var(--wa-font-weight-bold);
  line-height: 1;
}

/* ---------- Callout band ---------- */
.band {
  background: var(--wa-color-brand-fill-loud);
  color: var(--wa-color-brand-on-loud);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.band h2 { color: inherit; margin: 0; }

/* ---------- WOD ---------- */
.wod-body h2, .wod-body h3 {
  font-size: var(--wa-font-size-l);
  margin-block: var(--wa-space-l) var(--wa-space-xs);
}
.wod-body h2:first-child, .wod-body h3:first-child { margin-top: 0; }
.wod-body p { white-space: pre-line; margin-block: 0 var(--wa-space-m); }
.wod-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--wa-space-m);
}
.wod-level {
  padding: var(--wa-space-m);
  border: var(--wa-border-width-s) solid var(--wa-color-surface-border);
  border-radius: var(--wa-border-radius-m);
  background: var(--wa-color-surface-raised);
}
.wod-level h4 {
  margin: 0 0 var(--wa-space-xs);
  font-size: var(--wa-font-size-s);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wa-color-brand-on-quiet);
}
.wod-level p { margin: 0; white-space: pre-line; }

/* ---------- Schedule ---------- */
.class-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--wa-space-m);
  padding-block: var(--wa-space-s);
  border-bottom: var(--wa-border-width-s) solid var(--wa-color-surface-border);
}
.class-row:last-child { border-bottom: 0; }
.class-time { font-weight: var(--wa-font-weight-bold); font-variant-numeric: tabular-nums; }

/* ---------- Pricing ---------- */
.price {
  font-family: var(--wa-font-family-heading);
  font-size: var(--wa-font-size-3xl);
  font-weight: var(--wa-font-weight-bold);
}
.plan-featured { --border-color: var(--wa-color-brand-border-loud); --border-width: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hb-black);
  color: var(--wa-color-text-normal);
  padding-block: var(--wa-space-3xl) var(--wa-space-l);
}
.site-footer a {
  color: var(--wa-color-text-normal);
  text-decoration: none;
}
.site-footer a:hover { color: var(--hb-accent-on-dark); }
.site-footer p { color: var(--wa-color-text-quiet); margin: 0; }

/* ---------- Wodify embeds ---------- */
.wodify-embed {
  width: 100%;
  min-height: 32rem;
  border-radius: var(--wa-border-radius-l);
  overflow: hidden;
}
.wodify-embed iframe {
  width: 100%;
  min-height: 48rem;
  border: 0;
}

/* ---------- Events ---------- */
.event-card { scroll-margin-top: 6rem; }
.event-card::part(media) { aspect-ratio: 16 / 7; }
.event-card img[slot="media"] { width: 100%; height: 100%; object-fit: cover; }
.event-card:target { --border-color: var(--wa-color-brand-border-loud); --border-width: 2px; }

/* ---------- Free trial bar + form ---------- */
.trial-bar {
  background: #0b0b0b;
  color: var(--wa-color-text-normal);
  padding-block: var(--wa-space-xs);
  font-size: var(--wa-font-size-s);
}
.trial-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--wa-space-xs) var(--wa-space-m);
}
.trial-bar-text {
  display: flex;
  align-items: center;
  gap: var(--wa-space-xs);
  margin: 0;
}
.trial-bar-text wa-icon { color: var(--hb-accent-on-dark); }
@media (max-width: 640px) {
  .trial-bar-extra { display: none; }
  .trial-bar-inner { justify-content: center; text-align: center; }
}
.trial-dialog { --width: 34rem; }
.trial-intro { margin: 0; color: var(--wa-color-text-quiet); }
.trial-alt { font-size: var(--wa-font-size-s); color: var(--wa-color-text-quiet); }
.trial-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Schedule grid ---------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--wa-space-l);
}
.day-card { height: 100%; }
.class-list { list-style: none; margin: 0; padding: 0; }
.class-list .class-row { grid-template-columns: 5.5rem 1fr; }
.childcare-badge { align-self: flex-start; }
