/* =========================================================
   TKA Martial Arts — Design System
   Palette tuned to the real TKA logo (black background, royal-
   blue dragon, white wordmark) — see /assets/img/logo.png.
   Colors are all CSS custom properties — never hardcode hex
   in markup or components.
   ========================================================= */

:root {
  --color-navy: #0A0A0D;        /* true black, from the logo background */
  --color-navy-light: #17181D;  /* raised dark surface / hover state */
  --color-cobalt: #1959D1;      /* TKA dragon blue — links, icon accents */
  --color-ember: #1959D1;       /* highlight/conversion accent — TKA dragon blue, reserved for booking CTAs */
  --color-ember-dark: #0F3F91;  /* darker blue for hover/active states */
  --color-bg: #F7F8FA;          /* cool near-white, matches the brand's crisp black/blue/white look */
  --color-bg-alt: #EDEFF3;
  --color-text: #101114;
  --color-text-muted: #53565C;
  --color-text-inverse: #FFFFFF;
  --color-gold: #C9A227;        /* star-rating convention only, not a core brand color */
  --color-teal: #0E8F6F;        /* 5th program indicator (Fitness) only, not a core brand color */
  --color-border: #E1E4EA;
  --color-white: #FFFFFF;

  --font-heading: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10, 10, 13, 0.1);
  --shadow-md: 0 8px 24px rgba(10, 10, 13, 0.16);
  --header-height: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* The hidden attribute must always win, even over .btn/.card/etc setting
   their own display value (author rules otherwise beat the browser default). */
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--color-cobalt); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-navy);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
section { padding: 3.5rem 0; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.375rem; }
  section { padding: 5rem 0; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; }
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--color-cobalt);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Ember is reserved ONLY for the primary booking action (§6.2 of plan) */
.btn-primary {
  background: var(--color-ember);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover { background: var(--color-ember-dark); }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary::after { transition: left 0.65s ease; }
  .btn-primary:hover::after { left: 125%; }
}

.btn-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: var(--color-text-inverse); }

.btn-outline-inverse {
  background: transparent;
  border-color: var(--color-text-inverse);
  color: var(--color-text-inverse);
}
.btn-outline-inverse:hover { background: var(--color-text-inverse); color: var(--color-navy); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn-lg { padding: 1.2rem 2.5rem; font-size: 1.15rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-navy);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text-inverse);
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; opacity: 0.9; }
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.main-nav a {
  position: relative;
  color: var(--color-text-inverse);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.92;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-ember);
}
.main-nav a:hover { opacity: 1; text-decoration: none; }
.main-nav a.active::after,
.main-nav a:hover::after { right: 0; }
@media (prefers-reduced-motion: no-preference) {
  .main-nav a::after { transition: right 0.25s cubic-bezier(0.22,1,0.36,1); }
}

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-text-inverse);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.92;
  padding-bottom: 4px;
}
.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-ember);
}
.nav-dropdown-toggle:hover { opacity: 1; text-decoration: none; }
.nav-dropdown-toggle.active::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown.open .nav-dropdown-toggle::after { right: 0; }
@media (prefers-reduced-motion: no-preference) {
  .nav-dropdown-toggle::after { transition: right 0.25s cubic-bezier(0.22,1,0.36,1); }
}
.nav-caret {
  display: inline-block;
  font-size: 0.7em;
  line-height: 1;
  transition: transform 0.2s ease;
}
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 230px;
  margin-top: 0.9rem;
  padding: 0.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 600;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-dropdown-menu a {
  display: block;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  opacity: 1;
}
.nav-dropdown-menu a:hover { background: var(--color-bg-alt); text-decoration: none; color: var(--color-ember); }
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-menu { transition: none; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-members-btn { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text-inverse);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-navy);
  z-index: 480;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav .container { padding-top: 1.5rem; padding-bottom: 2rem; }
.mobile-nav a {
  display: block;
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255, 0.12);
}
.mobile-nav a:hover { text-decoration: none; color: var(--color-ember); }
.mobile-nav a.btn { text-align: center; border-bottom: none; }
.mobile-nav a.mobile-nav-sub {
  font-size: 1rem;
  font-weight: 600;
  padding-left: 1.1rem;
  opacity: 0.8;
}
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255, 0.12);
  color: var(--color-text-inverse);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 0.9rem 0;
  cursor: pointer;
  text-align: left;
}
.mobile-nav-caret {
  font-size: 0.65em;
  transition: transform 0.2s ease;
}
.mobile-nav-group.open .mobile-nav-caret { transform: rotate(180deg); }
.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
}
.mobile-nav-group.open .mobile-nav-submenu { max-height: 300px; }
@media (prefers-reduced-motion: no-preference) {
  .mobile-nav-submenu { transition: max-height 0.3s ease; }
}
.mobile-nav .btn { margin-top: 1.5rem; }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-members-btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--color-text-inverse);
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,13,0.25) 0%, rgba(10,10,13,0.55) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 6rem 0 3rem;
}
.hero-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}
.hero h1 { color: var(--color-text-inverse); margin-bottom: 0.6em; text-transform: uppercase; }
.hero-sub { font-size: 1.1rem; opacity: 0.92; max-width: 52ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.95;
}
.hero-trust .stars { color: var(--color-gold); letter-spacing: 1px; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-eyebrow, .hero h1, .hero-sub, .hero-actions, .hero-trust {
    opacity: 0;
    animation: hero-fade-up 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
  }
  .hero-eyebrow { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.15s; }
  .hero-sub { animation-delay: 0.28s; }
  .hero-actions { animation-delay: 0.4s; }
  .hero-trust { animation-delay: 0.52s; }
}

/* ---------- Scroll-reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
  }
  .reveal-visible { opacity: 1; transform: translateY(0); }
}

/* Photo hero variant (program pages — faster load, no video) */
.hero-photo {
  min-height: 46vh;
  background: var(--color-navy);
}
.hero-photo .hero-content { padding: 4.5rem 0 2.5rem; }

/* ---------- Placeholder media block ----------
   Stand-in for real photography/video until Isaac supplies assets.
   Clearly marked so it can never be mistaken for finished content. */
.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(135deg, var(--color-bg-alt), var(--color-bg-alt) 10px, var(--color-border) 10px, var(--color-border) 20px);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1rem;
  min-height: 180px;
  width: 100%;
}
.hero-media .media-placeholder {
  min-height: 100%;
  border-radius: 0;
  border: none;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.95rem;
}
.trust-item .stars { color: var(--color-gold); }

/* ---------- Section headers ---------- */
.section-head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-head .eyebrow {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ember);
  margin-bottom: 0.5rem;
}
.section-head p { color: var(--color-text-muted); }

.section-navy { background: var(--color-navy); color: var(--color-text-inverse); }
.section-navy h2, .section-navy h3 { color: var(--color-text-inverse); }
.section-navy p { color: rgba(255,255,255, 0.85); }
.section-alt { background: var(--color-bg-alt); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .card-grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1160px) {
  .card-grid-5 { grid-template-columns: repeat(5, 1fr); }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s cubic-bezier(0.22,1,0.36,1), transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media-portrait { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; }
.video-embed-16x9 { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-md); background: var(--color-navy); }
.video-embed-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Split-image hero (two photos side by side) ---------- */
.split-hero-images { display: flex; flex-direction: column; margin-top: 2rem; }
.split-hero-img { aspect-ratio: 4 / 3; overflow: hidden; }
.split-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 768px) {
  .split-hero-images { flex-direction: row; }
  .split-hero-img { flex: 1; aspect-ratio: 1 / 1; }
}
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; gap: 0.6rem; }
.card-age { font-size: 0.8rem; font-weight: 700; color: var(--color-cobalt); text-transform: uppercase; letter-spacing: 0.04em; }
.card-body p { color: var(--color-text-muted); flex: 1; }

/* Value prop / feature cards */
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.35s cubic-bezier(0.22,1,0.36,1), transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-ember);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-6deg); }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { color: var(--color-text-muted); margin: 0; font-size: 0.95rem; }

/* Instructor card */
.instructor-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.instructor-photo { aspect-ratio: 1 / 1; overflow: hidden; }
.instructor-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.instructor-body { padding: 1.5rem; }
.instructor-rank {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.testimonial-card .stars { color: var(--color-gold); font-size: 1rem; }
.testimonial-quote { font-style: italic; color: var(--color-text); margin: 0; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-navy); color: var(--color-text-inverse);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex: none;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; color: var(--color-navy); }
.testimonial-role { font-size: 0.8rem; color: var(--color-text-muted); }

/* ---------- Reviews marquee (floating, auto-scrolling rows) ---------- */
.reviews-marquee { display: flex; flex-direction: column; gap: 1.25rem; }
.marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 64px, black calc(100% - 64px), transparent);
  mask-image: linear-gradient(to right, transparent, black 64px, black calc(100% - 64px), transparent);
}
.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}
.testimonial-card-float {
  flex: 0 0 300px;
  width: 300px;
}
.testimonial-card-float .testimonial-quote {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee-left 70s linear infinite; }
  .marquee-row.reverse .marquee-track { animation-name: marquee-right; }
  .marquee-row:hover .marquee-track,
  .marquee-row:focus-within .marquee-track { animation-play-state: paused; }
  @keyframes marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-row [aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) {
  .testimonial-card-float { flex-basis: 250px; width: 250px; }
}

/* ---------- Pricing/offer band & badges ---------- */
.offer-band {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.offer-band h3 { color: var(--color-text-inverse); margin-bottom: 0.25rem; }
.offer-price { font-family: var(--font-heading); font-weight: 800; color: var(--color-gold); font-size: 1.1rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.badge-urgency {
  background: rgba(25, 89, 209, 0.1);
  color: var(--color-ember-dark);
  border: 1px solid rgba(25, 89, 209, 0.35);
}

.pricing-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pricing-card.featured { border-color: var(--color-ember); box-shadow: var(--shadow-md); position: relative; }
.pricing-card.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--color-ember); color: var(--color-white);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 0.25rem 0.9rem; border-radius: 999px;
}
.pricing-tier-name { font-family: var(--font-heading); font-weight: 800; color: var(--color-navy); font-size: 1.1rem; }
.pricing-amount { font-family: var(--font-heading); font-weight: 800; font-size: 2.25rem; color: var(--color-navy); }
.pricing-amount span { font-size: 1rem; font-weight: 600; color: var(--color-text-muted); }
.pricing-features { text-align: left; list-style: none; padding: 0; margin: 0; }
.pricing-features li { padding: 0.4rem 0; padding-left: 1.5rem; position: relative; color: var(--color-text-muted); font-size: 0.9rem; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--color-cobalt); font-weight: 800; }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
  cursor: pointer;
}
.faq-question .icon { flex: none; font-size: 1.25rem; color: var(--color-ember); transition: transform 0.2s ease; }
.faq-question[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--color-text-muted);
}
.faq-answer p { padding-bottom: 1.25rem; margin: 0; }
.faq-item.open .faq-answer { max-height: 8000px; }
.faq-answer h4 { margin: 1.25rem 0 0.5rem; color: var(--color-navy); }
.faq-answer h4:first-child { margin-top: 0; }
.faq-answer ol { padding-left: 1rem; list-style-position: inside; }
.faq-answer ol li { margin-bottom: 0.75rem; }

/* ---------- Urgency countdown bar ---------- */
.urgency-bar {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  text-align: center;
  padding: 0.75rem 1rem;
}
.urgency-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.countdown { display: flex; gap: 0.5rem; }
.countdown-unit {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.6rem;
  min-width: 2.75rem;
  text-align: center;
  font-family: var(--font-heading);
}
.countdown-unit strong { display: block; font-size: 1rem; }
.countdown-unit span { display: block; font-size: 0.6rem; opacity: 0.75; text-transform: uppercase; }

/* ---------- Key facts row (hero) ---------- */
.key-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.key-fact { font-size: 0.9rem; }
.key-fact span { display: block; opacity: 0.75; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.04em; }
.key-fact strong { display: block; font-family: var(--font-heading); color: var(--color-text-inverse); }

/* ---------- Check / bring lists ---------- */
.check-list, .bring-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li, .bring-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--color-text-muted);
}
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-cobalt); font-weight: 800; }
.bring-list li::before { content: "•"; position: absolute; left: 0.4rem; color: var(--color-ember); font-weight: 800; }

/* ---------- Activity grid ---------- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .activity-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .activity-grid { grid-template-columns: repeat(4, 1fr); } }
.activity-tile {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
}
.activity-tile .activity-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.activity-tile h4 { font-size: 0.95rem; margin: 0 0 0.4rem; }
.activity-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-cobalt);
  background: rgba(25,89,209,0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* ---------- Daily schedule table ---------- */
.schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}
.schedule-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-dot.training { background: var(--color-cobalt); }
.legend-dot.activity { background: var(--color-gold); }
.legend-dot.break { background: var(--color-text-muted); }
.schedule-table-wrap { overflow-x: auto; }
.schedule-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.schedule-table th, .schedule-table td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
  vertical-align: top;
}
.schedule-table th { background: var(--color-navy); color: var(--color-text-inverse); font-family: var(--font-heading); }
.schedule-table td[data-type="training"] { border-left: 4px solid var(--color-cobalt); font-weight: 700; }
.schedule-table td[data-type="activity"] { border-left: 4px solid var(--color-gold); font-weight: 700; }
.schedule-table td[data-type="break"] { color: var(--color-text-muted); }

/* ---------- Pricing best-value badge ---------- */
.pricing-card.best-value { border-color: var(--color-gold); box-shadow: var(--shadow-md); position: relative; }
.pricing-card.best-value::before {
  content: "BEST VALUE";
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--color-gold); color: var(--color-navy);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em;
  padding: 0.25rem 0.9rem; border-radius: 999px;
}
.pricing-strike { text-decoration: line-through; color: var(--color-text-muted); font-size: 1.1rem; margin-right: 0.5rem; }

/* ---------- Timeline (e.g. party structure) ---------- */
.timeline {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
}
.timeline-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.timeline-step:last-child { border-bottom: none; }
.timeline-time {
  flex: none;
  width: 110px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-cobalt);
  font-size: 0.85rem;
}
.timeline-step h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.timeline-step p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- Add-on list (e.g. party bonus options) ---------- */
.addon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.addon-item strong { color: var(--color-navy); font-weight: 800; font-size: 1rem; white-space: nowrap; }

/* ---------- Member events calendar ---------- */
.calendar-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.calendar-header h3 { margin: 0; font-size: 1.15rem; }
.calendar-nav {
  background: var(--color-bg-alt);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
}
.calendar-nav:hover { background: var(--color-ember); color: var(--color-white); }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.calendar-weekday {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  padding-bottom: 0.4rem;
}
.calendar-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-text);
}
.calendar-day.empty { visibility: hidden; }
.calendar-day.has-event { background: var(--color-bg-alt); font-weight: 700; }
.calendar-day .event-dot {
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-ember);
}
.calendar-event-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.calendar-event-item:last-child { border-bottom: none; }
.calendar-event-date { font-weight: 700; color: var(--color-cobalt); flex: none; width: 70px; }

/* ---------- Timetable ---------- */
.timetable-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.filter-chip {
  border: 2px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.filter-chip.active { border-color: var(--color-ember); background: var(--color-ember); color: var(--color-white); }

.timetable-grid {
  display: none;
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.timetable-grid th, .timetable-grid td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  font-size: 0.85rem;
  text-align: center;
  vertical-align: top;
}
.timetable-grid th { background: var(--color-navy); color: var(--color-text-inverse); font-family: var(--font-heading); }
.slot {
  display: block;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  border: 1px solid var(--color-border);
}
.slot:hover { border-color: var(--color-ember); text-decoration: none; }
.slot small { display: block; font-weight: 500; color: var(--color-text-muted); }
.slot[data-program="mini-masters"] { border-left: 4px solid var(--color-gold); }
.slot[data-program="kids"] { border-left: 4px solid var(--color-cobalt); }
.slot[data-program="adults"] { border-left: 4px solid var(--color-navy); }
.slot[data-program="muay-thai"] { border-left: 4px solid var(--color-ember); }
.slot[data-program="fitness"] { border-left: 4px solid var(--color-teal); }
.slot.hidden { display: none; }
span.slot { cursor: default; opacity: 0.65; }
span.slot:hover { border-color: var(--color-border); }

.timetable-accordion { display: block; }
.day-group {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.day-header {
  width: 100%;
  text-align: left;
  background: var(--color-bg-alt);
  border: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.day-slots { padding: 0 1.25rem; display: none; }
.day-group.open .day-slots { display: block; padding: 1rem 1.25rem; }

@media (min-width: 900px) {
  .timetable-grid { display: table; }
  .timetable-accordion { display: none; }
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--color-navy); margin-bottom: 0.4rem; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
}
input:focus, select:focus, textarea:focus { border-color: var(--color-cobalt); outline: none; }
.form-error { color: var(--color-ember-dark); font-size: 0.85rem; margin-top: 0.3rem; display: none; }
.form-group.invalid input, .form-group.invalid select, .form-group.invalid textarea { border-color: var(--color-ember); }
.form-group.invalid .form-error { display: block; }
.form-note { font-size: 0.85rem; color: var(--color-text-muted); }
.form-success {
  display: none;
  background: rgba(30, 86, 224, 0.08);
  border: 1px solid var(--color-cobalt);
  color: var(--color-navy);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-weight: 600;
}
.form-success.show { display: block; }

/* ---------- Booking modal ---------- */
.booking-modal-backdrop {
  display: flex;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 13, 0.7);
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.booking-modal-backdrop.open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.booking-modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.booking-modal-backdrop.open .booking-modal { transform: scale(1) translateY(0); }
.booking-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  color: var(--color-text-muted);
}
.booking-modal iframe { width: 100%; min-height: 480px; border: none; border-radius: var(--radius-sm); }
.booking-step-label { font-weight: 700; color: var(--color-navy); margin: 1rem 0 0.75rem; }
.booking-choice-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.booking-step-back {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0;
  margin-bottom: 0.5rem;
}
.booking-step-back:hover { color: var(--color-ember); }

/* ---------- Exit intent modal (desktop only) ---------- */
.exit-modal-backdrop {
  display: flex;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 13, 0.75);
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.exit-modal-backdrop.open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s ease;
}
.exit-modal {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.exit-modal-backdrop.open .exit-modal { transform: scale(1) translateY(0); }
.exit-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-text-muted);
}
.exit-modal-media { margin: -2.5rem -2rem 1.5rem; }
.exit-modal-media .media-placeholder {
  height: 160px;
  border-width: 0 0 2px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.exit-modal-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .booking-modal, .exit-modal { transform: none; transition: none; }
  .booking-modal-backdrop, .exit-modal-backdrop { transition: opacity 0.01s linear, visibility 0.01s linear; }
}

/* ---------- Sticky mobile CTA bar ---------- */
.mobile-cta-bar {
  display: flex;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 0.6rem 0.9rem;
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(10,10,13,0.1);
  gap: 0.6rem;
}
.mobile-cta-bar a.btn-primary { flex: 1; }
.mobile-cta-bar a.btn-call {
  flex: none;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  font-size: 1.2rem;
}
body { padding-bottom: 72px; }
@media (min-width: 1024px) {
  .mobile-cta-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Final CTA band ---------- */
.final-cta { text-align: center; }
.final-cta h2 { color: var(--color-text-inverse); }
.final-cta p { color: rgba(255,255,255,0.85); max-width: 50ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-col h4 {
  color: var(--color-text-inverse);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.footer-col a:hover { color: var(--color-text-inverse); }
.footer-brand { color: var(--color-text-inverse); font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; margin-bottom: 0.75rem; }
.footer-map { border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,255,255,0.15); }
.footer-map iframe { width: 100%; height: 180px; border: none; display: block; }
.social-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-inverse);
  font-size: 0.95rem;
}
.social-row a:hover { background: var(--color-ember); border-color: var(--color-ember); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.stack { display: flex; flex-direction: column; gap: 1rem; }
.center-col { max-width: 760px; margin: 0 auto; }

/* Program page anchor offset (sticky header) */
[id] { scroll-margin-top: calc(var(--header-height) + 12px); }

/* Breadcrumb-style page intro on interior pages */
.page-intro { padding: 3rem 0 1rem; text-align: center; }
.page-intro .eyebrow { color: var(--color-ember); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }

/* ---------- Class finder tool (personalised schedule + print/PDF) ---------- */
.finder-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.quiz-chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Program accordion (programs.html) ---------- */
/* Styled like the FAQ list (flat rows, one shared border), but with a real
   smooth slide animation since program content runs much longer than a
   FAQ answer, so a fixed max-height cap like .faq-answer won't work here. */
.program-accordion {
  max-width: 860px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.program-item { border-bottom: 1px solid var(--color-border); }
.program-item:last-child { border-bottom: none; }
.program-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
}
.program-header:hover { background: var(--color-bg-alt); }
.program-header-text { flex: 1; min-width: 0; }
.program-header-text h2 { margin: 0.2rem 0; font-size: 1.25rem; }
.program-header-text p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }
.program-header-icon {
  flex: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-ember);
  transition: transform 0.25s ease;
}
.program-item.open .program-header-icon { transform: rotate(45deg); }
.program-body-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.program-body {
  padding: 0 1.5rem 2rem;
  border-top: 1px solid var(--color-border);
}
@media (max-width: 560px) {
  .program-header { gap: 0.75rem; padding: 1.1rem; }
  .program-header-text h2 { font-size: 1.05rem; }
  .program-header-text p { display: none; }
  .program-body { padding: 0 1rem 1.5rem; }
  .program-body .hero-photo { margin-left: -1rem; margin-right: -1rem; border-radius: 0 !important; width: calc(100% + 2rem); }
}
/* Person cards (one per family member, generated after the count step) */
.finder-person {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.finder-person-header { margin-bottom: 0.9rem; }
.finder-person-index {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-navy);
  white-space: nowrap;
}
.finder-person-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .finder-person-fields { grid-template-columns: 1fr; } }
.finder-person-fields .form-group { margin-bottom: 0; }

.finder-results {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.finder-table-wrap { overflow-x: auto; margin-bottom: 1.25rem; }
.finder-results .timetable-grid .slot,
.finder-results .day-slots .slot { cursor: default; }
.finder-results .slot:hover { border-color: var(--color-border); }
.finder-empty { color: var(--color-text-muted); }
.finder-results-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Locked step-by-step progress bar (kids-trial-induction.html) ---------- */
.induction-progress {
  position: sticky;
  top: var(--header-height);
  z-index: 490;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0.85rem 0;
}
.induction-progress-track { display: flex; align-items: center; justify-content: center; gap: 0.5rem; max-width: 420px; margin: 0 auto; }
.induction-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}
.induction-progress-dot.active { background: var(--color-cobalt); color: var(--color-text-inverse); }
.induction-progress-dot.complete { background: var(--color-navy); color: var(--color-text-inverse); }
.induction-progress-line { flex: 1; height: 3px; background: var(--color-border); border-radius: 2px; transition: background 0.25s ease; }
.induction-progress-line.complete { background: var(--color-navy); }
.induction-progress-label { text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); margin: 0.5rem 0 0; }

.induction-step-locked { text-align: center; padding: 2.5rem 1rem; color: var(--color-text-muted); border: 2px dashed var(--color-border); border-radius: var(--radius-md); }
.induction-step-locked .lock-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }

/* ---------- Induction preview list (kids-trial-induction.html "what happens next" cards) ---------- */
.induction-preview-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.induction-preview-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.induction-preview-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-cobalt);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
}
.induction-preview-text { flex: 1; }
.induction-preview-text h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.induction-preview-text p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }
.induction-preview-arrow { flex-shrink: 0; font-size: 1.3rem; color: var(--color-text-muted); }

.induction-reassurance-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
}
