/* ==========================================================
   Manasota Jiu Jitsu
   Palette: deep gulf ink, sea teal, warm sand
   ========================================================== */
:root {
  --ink: #0a141c;
  --ink-2: #111f2a;
  --ink-3: #1a2c3a;
  --line-dark: rgba(255, 255, 255, .1);
  --teal: #34c3b0;
  --teal-deep: #1f9e8d;
  --sand: #f3ede3;
  --sand-2: #e8dfd0;
  --paper: #fbf9f5;
  --text: #15212b;
  --muted: #5b6874;
  --muted-dark: #9fb0bd;
  --white: #ffffff;

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: .01em;
  text-transform: uppercase;
}
h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--teal); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

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

.eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink);
  font: 800 .95rem/1 var(--body);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 24px -8px rgba(52, 195, 176, .6);
}
.btn:hover { background: #4dd6c3; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px var(--white); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .88rem; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { background: rgba(10, 20, 28, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-dark); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 44px; width: auto; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 600;
  font-size: .93rem;
  position: relative;
  padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover, .nav a.is-current { color: var(--white); }
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--white); margin: 5px 0; transition: transform .3s ease, opacity .3s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; transform: scale(1.06); animation: heroDrift 24s ease-in-out infinite alternate; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,20,28,.94) 0%, rgba(10,20,28,.7) 45%, rgba(10,20,28,.3) 100%),
    linear-gradient(0deg, rgba(10,20,28,1) 0%, rgba(10,20,28,0) 35%);
}
@keyframes heroDrift { from { transform: scale(1.06) translateX(0); } to { transform: scale(1.12) translateX(-2%); } }
.hero__content { position: relative; }
.hero .eyebrow { color: var(--teal); }
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 8.2rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .005em;
  margin-bottom: 28px;
}
.hero__lead { max-width: 520px; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: rgba(255,255,255,.82); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.next {
  margin-top: 44px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line-dark);
  font-size: .92rem;
  color: rgba(255,255,255,.9);
}
.next:empty { display: none; }
.next__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(52,195,176,.7); animation: pulse 2s ease-out infinite; flex: none; }
.next strong { color: var(--white); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,195,176,.6); } 100% { box-shadow: 0 0 0 12px rgba(52,195,176,0); } }

/* ---------- Values ---------- */
.values { background: var(--ink); color: var(--white); padding: 0 0 72px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 5vw, 64px); align-items: start; padding-top: clamp(16px, 3vw, 32px); margin-bottom: clamp(40px, 6vw, 64px); }
.intro__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: .95; }
.intro__text { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.7; color: rgba(255,255,255,.82); }
.intro__text a { color: var(--teal); font-weight: 800; text-decoration: none; white-space: nowrap; }
.intro__text a:hover { text-decoration: underline; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.values__grid.wrap { padding: 0; width: calc(100% - 2 * var(--gutter)); }
.value { background: var(--ink-2); padding: 30px 28px; }
.value h3 { margin: 0 0 8px; }
.value p { color: var(--muted-dark); font-size: .95rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .eyebrow { color: var(--teal); }
.section--dark .section__lead { color: var(--muted-dark); }
.section--sand { background: var(--sand); }
.section__head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 { margin-bottom: 16px; }
.section__lead { font-size: 1.08rem; color: var(--muted); margin: 0; }

/* ---------- Programs ---------- */
.programs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.program {
  grid-column: span 2;
  background: var(--white);
  border: 1px solid var(--sand-2);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .3s ease, color .3s ease;
}
/* Teal glow in the corner: hidden on white cards, shown when the card turns dark */
.program::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,195,176,.35), rgba(52,195,176,0) 70%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.program > * { position: relative; }
.program h3 { font-size: 1.35rem; margin-bottom: 10px; }
.program p { color: var(--muted); font-size: .97rem; transition: color .3s ease; }
.program a { color: var(--teal-deep); font-weight: 700; }
.program__when { margin: auto 0 0 !important; padding-top: 16px; border-top: 1px dashed var(--sand-2); font-weight: 700; font-size: .88rem !important; color: var(--text) !important; transition: color .3s ease, border-color .3s ease; }
.program--feature { grid-column: span 3; grid-row: span 1; }
.program--feature h3 { font-size: 1.7rem; }

/* Dark state: on hover, keyboard focus, or after a click/tap */
.program:hover, .program:focus-visible, .program.is-active {
  background: var(--ink); color: var(--white); border-color: var(--ink);
  transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(10,20,28,.55);
}
.program:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.program:hover::before, .program:focus-visible::before, .program.is-active::before { opacity: 1; }
.program:hover p, .program:focus-visible p, .program.is-active p { color: var(--muted-dark); }
.program:hover a, .program:focus-visible a, .program.is-active a { color: var(--teal); }
.program:hover .program__when, .program:focus-visible .program__when, .program.is-active .program__when { color: var(--teal) !important; border-color: var(--line-dark); }
.programs .program:nth-child(2) { grid-column: span 3; }

/* ---------- Schedule ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  border: 1px solid var(--line-dark);
  background: transparent;
  color: rgba(255,255,255,.8);
  font: 700 .86rem/1 var(--body);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: rgba(255,255,255,.35); color: var(--white); }
.chip.is-active { background: var(--white); color: var(--ink); border-color: var(--white); }

.schedule { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 16px 12px; min-width: 0; }
.day.is-today { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.day__name { font-family: var(--display); font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.day__today { font-family: var(--body); font-size: .66rem; font-weight: 800; letter-spacing: .12em; color: var(--teal); }
.slot {
  border-radius: 10px;
  padding: 10px 10px 11px;
  margin-bottom: 8px;
  background: var(--ink-3);
  border-left: 3px solid var(--c, var(--teal));
  transition: opacity .25s ease, transform .25s ease;
}
.slot:last-child { margin-bottom: 0; }
.slot__time { display: block; font-size: .78rem; font-weight: 700; color: var(--muted-dark); }
.slot__name { display: block; font-weight: 800; font-size: .9rem; line-height: 1.25; }
.slot.is-dim { opacity: .18; }
.slot.is-next { background: rgba(52,195,176,.14); }
.slot[data-type="gi"] { --c: #34c3b0; }
.slot[data-type="nogi"] { --c: #f2a541; }
.slot[data-type="fund"] { --c: #8fd3ff; }
.slot[data-type="kids"] { --c: #ff7a8a; }
.slot[data-type="open"] { --c: #c9b6ff; }
.schedule__note { margin: 22px 0 0; color: var(--muted-dark); font-size: .9rem; }

/* ---------- Kids ---------- */
.kids { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.kids__media { position: relative; }
.kids__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 70%; border-radius: calc(var(--radius) + 6px); }
.kids__badge {
  position: absolute; left: -14px; top: 22px;
  background: var(--teal); color: var(--ink);
  font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em;
  padding: 10px 20px; border-radius: 12px; box-shadow: 0 14px 30px -12px rgba(10,20,28,.5);
}
.kids__text h2 { margin-bottom: 20px; }
.kids__text p { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--sand-2); border-left: 3px solid var(--teal); border-radius: 12px; padding: 12px 16px; }
.kids .btn { margin-top: 8px; }

/* Adults: same layout as kids, mirrored, on the dark background */
.adults { grid-template-columns: 1fr 1.2fr; }
.adults .kids__media { order: 2; }
.adults .kids__media img { object-position: 50% 60%; }
.adults .kids__badge { left: auto; right: -14px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.7); }
.adults .kids__text p { color: var(--muted-dark); }
.adults__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.adults__actions .btn { margin-top: 0; }


/* ---------- Coaches ---------- */
.coaches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.coach { background: var(--paper); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.coach h3 { font-size: 1.2rem; }
.coach p { color: var(--muted); font-size: .95rem; margin: 0; }
.coach__role { color: var(--teal-deep) !important; font-weight: 700; font-size: .84rem !important; margin: 4px 0 10px !important; }
.coach__avatar {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--teal);
  font-family: var(--display); font-size: 1.3rem; letter-spacing: .04em;
}
.coach--lead { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 28px; background: var(--ink); color: var(--white); padding: 34px; }
.coach--lead p { color: var(--muted-dark); max-width: 640px; font-size: 1.02rem; }
.coach--lead h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.2rem; letter-spacing: .01em; }
.coach--lead .coach__role { color: var(--teal) !important; }
.coach--lead .coach__avatar { width: 96px; height: 96px; font-size: 2rem; background: var(--teal); color: var(--ink); flex: none; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.timeline li { position: relative; padding-top: 22px; border-top: 3px solid var(--teal); }
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: .95rem; }

/* ---------- Gallery ---------- */
/* Infinite photo carousel: scrolls on its own, pauses on hover, click to enlarge */
.gallery { background: var(--ink); padding: 0; overflow: hidden; }
.marquee { --h: clamp(220px, 30vw, 380px); overflow: hidden; }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee var(--dur, 40s) linear infinite; will-change: transform; }
.marquee:hover .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--shift, 50%))); } }
.marquee__item { flex: none; height: var(--h); padding: 0; border: 0; background: var(--ink-2); cursor: zoom-in; overflow: hidden; position: relative; }
.marquee__item img { height: 100%; width: auto; display: block; transition: transform .5s ease, filter .4s ease; }
.marquee__item:hover img, .marquee__item:focus-visible img { transform: scale(1.05); }
.marquee:hover .marquee__item:not(:hover) img { filter: brightness(.7); }
.marquee__item:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(5, 10, 14, .94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100svh - 120px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); transform: scale(.96); transition: transform .3s ease; }
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__count { color: var(--muted-dark); font-size: .85rem; font-weight: 700; letter-spacing: .1em; }
.lightbox__close, .lightbox__nav { border: 0; background: rgba(255,255,255,.08); color: var(--white); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--teal); color: var(--ink); }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lightbox__nav { width: 48px; height: 48px; border-radius: 50%; font-size: 2.2rem; line-height: 1; justify-self: center; padding-bottom: 4px; }
body.no-scroll { overflow: hidden; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact h2 { margin-bottom: 16px; }
.contact__list { list-style: none; padding: 0; margin: 34px 0; display: grid; gap: 20px; }
.contact__list li { display: grid; gap: 2px; }
.contact__label { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); }
.contact__list a, .contact__list span:not(.contact__label) { font-size: 1.12rem; font-weight: 700; text-decoration: none; color: var(--white); }
.contact__list a:hover { color: var(--teal); }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); transition: background-color .2s, border-color .2s; }
.socials a:hover { background: var(--teal); border-color: var(--teal); }
.socials a:hover svg { stroke: var(--ink); }
.socials a:hover svg .fill { fill: var(--ink); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linejoin: round; }
.socials svg .fill { fill: var(--white); stroke: none; }

.form { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: calc(var(--radius) + 6px); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.85); }
.optional { color: var(--muted-dark); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 500 1rem/1.4 var(--body);
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted-dark) 50%), linear-gradient(135deg, var(--muted-dark) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(52,195,176,.2); }
.field.is-invalid input { border-color: #ff7a8a; }
.form__hint { margin: 0; font-size: .84rem; color: var(--muted-dark); text-align: center; }
.form__hint.is-error { color: #ff9aa6; }

.map { margin-top: clamp(48px, 7vw, 80px); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: var(--radius); }
.map__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { background: #060d12; color: var(--muted-dark); padding: 40px 0 96px; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer p { margin: 0; }
.footer a { color: var(--white); text-decoration: none; }
.footer img { height: 40px; width: auto; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }

/* ---------- Floating call button (mobile) ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: none; align-items: center; gap: 8px;
  height: 52px; padding: 0 20px; border-radius: 999px;
  background: var(--teal); color: var(--ink); text-decoration: none; font-weight: 800;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
}
.fab svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
/* Hero animates with CSS only, so it never waits on JavaScript */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; }
.hero .reveal:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fab { transition: transform .3s ease, opacity .3s ease; }
body.at-contact .fab { transform: translateY(90px); opacity: 0; pointer-events: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .schedule { grid-template-columns: repeat(4, 1fr); }
  .coaches { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,20,28,.98);
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 18px; min-height: 52px; }
  .header.menu-open { background: rgba(10,20,28,.98); }
  .burger { display: block; }

  .values__grid { grid-template-columns: 1fr; }
  .programs { grid-template-columns: 1fr 1fr; }
  .program, .programs .program:nth-child(2) { grid-column: span 1; }
  .program--feature { grid-column: span 2; }
  .kids, .contact { grid-template-columns: 1fr; }
  .kids__media img { aspect-ratio: 4 / 3; }
  .kids__badge { left: 14px; }
  .adults .kids__media { order: 0; }
  .adults .kids__badge { left: 14px; right: auto; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .lightbox { grid-template-columns: 1fr; padding: 70px 12px; }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .lightbox__img { max-height: calc(100svh - 180px); }
  .fab { display: inline-flex; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .programs { grid-template-columns: 1fr; }
  .program--feature { grid-column: span 1; }
  .coaches { grid-template-columns: 1fr; }
  .coach--lead { flex-direction: column; align-items: flex-start; padding: 26px; }
  .coach--lead .coach__avatar { width: 72px; height: 72px; font-size: 1.6rem; }
  .coach--lead h3 { font-size: 1.9rem; }
  .timeline { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .next { border-radius: 14px; align-items: flex-start; }
  .next__dot { margin-top: 6px; }

  /* Schedule becomes a day picker on phones */
  .schedule { display: block; }
  .schedule .day { display: none; }
  .schedule .day.is-shown { display: block; }
  .daytabs { display: flex !important; }
  .map iframe { height: 260px; }
}

.daytabs { display: none; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.daytabs::-webkit-scrollbar { display: none; }
.daytab { flex: 1 1 0; min-width: 0; border: 1px solid var(--line-dark); background: transparent; color: rgba(255,255,255,.8); font: 800 .82rem/1 var(--body); text-transform: uppercase; letter-spacing: .04em; padding: 12px 0; border-radius: 10px; cursor: pointer; }
.daytab.is-active { background: var(--teal); border-color: var(--teal); color: var(--ink); }

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