/* ============================================================
   OCEAN COUNTY BJJ — site stylesheet
   Extends brand.css (the design system). Site-specific
   components: nav, hero, pillars, programs, schedule, stats,
   CTA, footer, forms. Hybrid dark / bone / navy panels.
   ============================================================ */

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; font-family: var(--f-display);
  text-transform: uppercase; letter-spacing: .06em;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ---------- Photo treatment — color, moody grade, warm skin ---------- */
.photo { filter: contrast(1.05) brightness(.97) saturate(1.02); }
.frame {
  position: relative; border: 1px solid var(--line-strong);
  border-radius: var(--radius); overflow: hidden; background: var(--carbon);
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* tactical corner ticks */
.ticks::before, .ticks::after {
  content: ""; position: absolute; width: 14px; height: 14px; z-index: 2;
  border-color: var(--accent); border-style: solid;
}
.ticks::before { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.ticks::after { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

/* ---------- Offer bar ---------- */
/* A slim fixed bar above the nav: Google rating left, the current offer right. Pages without
   it (404) keep --bar-h at 0, so the nav and hero sit flush to the top as before. */
:root { --bar-h: 0px; }
body:has(> .offer-bar) { --bar-h: 40px; padding-top: var(--bar-h); }
.offer-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 7100; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad); background: var(--matblack); border-bottom: 1px solid var(--line);
  font-family: var(--f-body); font-size: 14px; color: var(--text); white-space: nowrap;
}
.ob-rating, .ob-offer { display: inline-flex; align-items: center; gap: 8px; }
.ob-rating strong { font-weight: 700; }
.ob-muted { color: var(--text-mute); }
.ob-deal { color: var(--periwinkle); font-weight: 600; }
.ob-cta { margin-left: 10px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-semi); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--periwinkle); }
.ob-cta::after { content: "\2192"; transition: transform .2s; }
.ob-offer:hover .ob-cta::after, .ob-offer:focus-visible .ob-cta::after { transform: translateX(4px); }
@media (max-width: 640px) {
  body:has(> .offer-bar) { --bar-h: 36px; }
  .offer-bar { font-size: 13px; gap: 10px; }
  .ob-muted, .ob-label, .ob-stars-more { display: none; }
  .ob-cta { margin-left: 4px; }
}
@media (max-width: 359px) { .ob-rating { display: none; } .offer-bar { justify-content: center; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: var(--bar-h) 0 auto 0; z-index: 7000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px var(--pad);
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, padding .25s;
}
.nav.scrolled { background: color-mix(in srgb, var(--ink) 92%, transparent); border-bottom-color: var(--line); }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 30px; height: 25px; object-fit: contain; flex: 0 0 auto; }
.nav-brand .wordmark {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; font-size: 19px; line-height: .9;
}
.nav-brand .wordmark span { display: block; font-size: 9px; letter-spacing: .26em;
  color: var(--text-mute); font-family: var(--f-stencil); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--f-semi); text-transform: uppercase; font-size: 13px;
  letter-spacing: .12em; font-weight: 600; color: var(--text-dim);
  transition: color .2s; position: relative; padding: 4px 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-family: var(--f-semi); font-weight: 600; font-size: 14px;
  letter-spacing: .04em; color: var(--text-dim); white-space: nowrap; }
.nav-phone:hover { color: var(--text); }

.hamburger { display: none; width: 42px; height: 42px; flex-direction: column;
  justify-content: center; gap: 5px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.hamburger span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--text); transition: transform .25s, opacity .2s; }
.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 6900; background: var(--ink);
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    padding: var(--pad); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
    visibility: hidden;
  }
  .nav-open .mobile-menu { transform: none; visibility: visible; }
  .mobile-menu a.m-link {
    font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
    font-size: clamp(34px, 9vw, 54px); line-height: 1.05; color: var(--text-dim);
    border-bottom: 1px solid var(--line); padding: 14px 0; letter-spacing: -.01em;
  }
  .mobile-menu a.m-link[aria-current="page"] { color: var(--accent); }
  .mobile-menu .m-meta { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }
}
@media (min-width: 941px) { .mobile-menu { display: none; } }

/* Mobile header polish — keep the shield crisp and the lockup tidy */
.nav-brand { min-width: 0; }
.nav-brand img { flex-shrink: 0; }
.nav-cta .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .nav { gap: 10px; padding: 12px var(--pad); }
  .nav-brand .wordmark { font-size: 16px; }
  .nav-brand .wordmark span { display: none; }      /* hide subtitle on small screens to declutter */
  .nav-cta .btn--solid { padding: 11px 15px; font-size: 13px; letter-spacing: .04em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - var(--bar-h)); display: flex; flex-direction: column;
  justify-content: center; padding: 130px var(--pad) 60px; overflow: hidden;
  background: var(--ink);
}
.hero-photo {
  position: absolute; inset: 0; z-index: 0; opacity: .65;
  background-size: cover; background-position: center 35%;
  filter: contrast(1.05) brightness(.6) saturate(.95);
}
.hero-video {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; opacity: .92; pointer-events: none;
  filter: contrast(1.06) brightness(.72) saturate(1);
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
/* Darken mainly behind the centered headline; let the footage show at the edges */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(92% 80% at 50% 49%, rgba(10,10,11,.66) 0%, rgba(10,10,11,.3) 55%, transparent 82%),
    linear-gradient(180deg, rgba(10,10,11,.5) 0%, rgba(10,10,11,.12) 36%, rgba(10,10,11,.52) 100%);
}
.hero-inner { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; width: 100%; text-align: center; }
.hero-emblem { width: clamp(64px, 9vw, 104px); margin: 0 auto 22px; opacity: .95; }
.hero-corners { display: flex; justify-content: space-between; position: absolute;
  top: 96px; left: var(--pad); right: var(--pad); z-index: 3; }
.hero-corners .mono-label { font-size: 11px; }
.hero h1 {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  line-height: .82; letter-spacing: 0; color: var(--text);
  font-size: clamp(56px, 13.5vw, 176px); margin: 0;
}
.hero h1 .line-sm { display: block; font-size: .52em; letter-spacing: .02em; margin-top: .05em; color: #D7D9F2; }
.hero-sub {
  margin: 26px auto 0; max-width: 60ch; color: var(--text-dim);
  font-size: clamp(16px, 1.7vw, 20px); line-height: 1.6;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* Left-aligned layouts keep their buttons under the copy (centered only in the home hero + CTA bands). */
.page-hero .hero-actions, .split .hero-actions { justify-content: flex-start; }

/* ---------- Hazard divider ---------- */
.hazard-bar { height: 10px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { padding: clamp(22px, 2.4vw, 34px); border-right: 1px solid var(--line); background: var(--surface); transition: background .25s; }
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--surface-2); }
.pillar .p-id { font-family: var(--f-stencil); font-size: 12px; letter-spacing: .14em; color: var(--text-mute); }
.pillar h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 30px); margin: 10px 0 8px; }
.pillar p { color: var(--text-dim); font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } .pillar:nth-child(2n){border-right:none;} .pillar { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillar { border-right: none; } }

/* ---------- Split feature (story) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev { grid-template-columns: .95fr 1.05fr; }
.split .frame { aspect-ratio: 4/5; min-height: 360px; }
.split h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .92;
  font-size: clamp(32px, 5vw, 60px); letter-spacing: -.01em; margin: 14px 0 18px; }
.split p { color: var(--text-dim); margin-bottom: 16px; }
.split .quote { font-family: var(--f-semi); font-weight: 600; color: var(--text); font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.3; border-left: 3px solid var(--accent); padding-left: 18px; margin: 6px 0 22px; }
@media (max-width: 820px) { .split, .split.rev { grid-template-columns: 1fr; } .split .frame { aspect-ratio: 16/10; min-height: 0; order: -1; } }
/* Kids group photo is ~square: a square frame keeps every kid in the shot; bias crops toward the faces. */
#kids-jiu-jitsu .frame { aspect-ratio: 1 / 1; min-height: 0; align-self: center; }
#kids-jiu-jitsu .frame img { object-position: center 38%; }
@media (max-width: 820px) { #kids-jiu-jitsu .frame { aspect-ratio: 16/11; } }
/* The Professor photo is a tall shot: keep the sign and faces in frame on desktop too. */
#professor .frame img, #professor .frame .photo { object-position: center 18%; }
/* The Professor portrait is a vertical headshot — keep it vertical on mobile so
   his face stays in frame (a 16:10 crop slices the head off). */
@media (max-width: 820px) {
  #professor .frame { aspect-ratio: 4 / 5; max-height: 70vh; }
  #professor .frame img, #professor .frame .photo { object-position: center top; }
}

/* ---------- Stat band ---------- */

/* ---------- Program cards ---------- */
/* Program cards: raised like the other cards, each with its own program colour (matches the
   schedule legend): Adult = periwinkle, Kids = gold, Kickboxing = coral. */
.prog-card {
  --pc: var(--periwinkle);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(170deg, var(--iron) 0%, var(--carbon) 70%);
  border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 48px -24px rgba(0, 0, 0, .9);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.prog-card:has(.pc-link[href="/kids-jiu-jitsu.html"]) { --pc: #E3B341; }
.prog-card:has(.pc-link[href="/kickboxing-fitness.html"]) { --pc: #E06C5A; }
.prog-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; z-index: 3; background: var(--pc); }
.prog-card:hover { border-color: color-mix(in srgb, var(--pc) 55%, var(--line-strong)); transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 56px -24px rgba(0, 0, 0, .95); }
.prog-card .pc-meta { color: var(--pc) !important; }
.prog-card .pc-body {
  background:
    radial-gradient(120% 70% at 100% 100%, color-mix(in srgb, var(--pc) 16%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--pc) 6%, transparent), transparent 40%);
  border-top: 1px solid color-mix(in srgb, var(--pc) 35%, transparent);
}
.prog-card .pc-tag { border-left-color: var(--pc) !important; }
.panel-bone .prog-card .pc-body { background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 8%, transparent), transparent 55%); }
.prog-card .pc-link::after { color: var(--pc); }
.panel-bone .prog-card { background: var(--surface); border-color: var(--line); box-shadow: 0 1px 2px rgba(20, 20, 28, .04), 0 10px 28px rgba(20, 20, 28, .08); }
.prog-card .pc-media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.prog-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; filter: contrast(1.04) brightness(.96) saturate(1.02); }
.prog-card:hover .pc-media img { transform: scale(1.05); }
.prog-card .pc-tag { position: absolute; top: 12px; left: 12px; z-index: 2;
  background: color-mix(in srgb, var(--ink) 80%, transparent); padding: 5px 10px; border-radius: 2px; }
.prog-card .pc-body { padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; flex: 1; }
.prog-card h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 2.6vw, 30px); line-height: .95; }
.prog-card .pc-meta { font-family: var(--f-semi); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--text-mute); margin: 8px 0 12px; }
.prog-card p { color: var(--text-dim); font-size: 15px; line-height: 1.55; flex: 1; }
/* "Details" is an outlined button in the program colour; it fills when the card is hovered. */
.prog-card .pc-link { align-self: flex-start; margin-top: 20px; padding: 12px 22px; border: 1.5px solid var(--pc); border-radius: var(--radius);
  font-family: var(--f-semi); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .08em; color: var(--text);
  display: inline-flex; gap: 10px; align-items: center; transition: background .2s, color .2s; }
.prog-card .pc-link::after { content: "\2192"; transition: transform .2s; }
.prog-card:hover .pc-link, .prog-card .pc-link:focus-visible { background: var(--pc); color: var(--ink); }
.prog-card:hover .pc-link::after, .prog-card .pc-link:focus-visible::after { color: inherit; transform: translateX(4px); }

/* ---------- Schedule table ---------- */
.sched-note { background: var(--surface); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 16px 20px; color: var(--text-dim); font-size: 14px; margin-bottom: 28px; }
/* Weekly schedule (schedule.html): filter chips + one full-width card per day — dark day
   header, rows of clock/time · class · type tag. Type colours match the homepage week card. */
.sched-filters, .sched-list, .week-card {
  --c-kids: #E3B341; --c-gi: var(--periwinkle); --c-nogi: #5FB3A1; --c-striking: #E06C5A; --c-open: var(--bone);
}
.sched-filters, .sched-list { --c-open: #8A8FA8; } /* bone is invisible on the light panel */
.sched-wrap { max-width: 1000px; }
.sched-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 clamp(26px, 4vw, 40px); }
.sched-filters button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-dim);
  font-family: var(--f-body); font-weight: 600; font-size: 14px; letter-spacing: .01em; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.sched-filters button:not([data-filter="all"])::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--c-gi)); }
.sched-filters button:hover { border-color: var(--text-mute); color: var(--text); }
.sched-filters button[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--bone);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--ink) 55%, transparent);
}
.sched-filters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sched-filters [data-filter="kids"], .sched-list .row[data-type="kids"] { --dot: var(--c-kids); }
.sched-filters [data-filter="nogi"], .sched-list .row[data-type="nogi"] { --dot: var(--c-nogi); }
.sched-filters [data-filter="striking"], .sched-list .row[data-type="striking"] { --dot: var(--c-striking); }
.sched-filters [data-filter="open"], .sched-list .row[data-type="open"] { --dot: var(--c-open); }

.sched-list { display: grid; gap: 22px; margin-bottom: 22px; }
.sched-list [hidden] { display: none !important; }
.day-card {
  overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 20, 28, .04), 0 10px 28px rgba(20, 20, 28, .07);
}
.day-card .day-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px; background: var(--ink); color: var(--bone);
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  font-size: 26px; line-height: 1;
}
.day-card.is-today { border-color: var(--navy); box-shadow: 0 0 0 2px color-mix(in srgb, var(--navy) 35%, transparent), 0 10px 28px rgba(20, 20, 28, .09); }
.day-card.is-today .day-head { background: var(--navy); }
.day-card.is-today .day-head::after {
  content: "Today"; font-family: var(--f-stencil); font-weight: 700; font-size: 11px; letter-spacing: .14em;
  padding: 6px 10px; border-radius: 999px; background: var(--bone); color: var(--navy);
}
.day-card .row {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 15px 24px; border-bottom: 1px solid var(--line); transition: background .2s;
}
.day-card .row:last-child { border-bottom: none; }
.day-card .row:hover { background: var(--surface-2); }
.day-card .r-time { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-body); font-size: 15px; color: var(--text-mute); white-space: nowrap; }
.day-card .r-time svg { flex: none; }
.day-card .r-class { font-family: var(--f-body); font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; color: var(--text); }
.day-card .r-tag {
  justify-self: end; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
  font-family: var(--f-body); font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  background: color-mix(in srgb, var(--dot, var(--c-gi)) 20%, var(--surface));
  color: color-mix(in srgb, var(--dot, var(--c-gi)) 55%, #14141C);
}
@media (max-width: 600px) {
  .day-card .day-head { padding: 16px 18px; font-size: 22px; }
  .day-card .row { grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 13px 18px; }
  .day-card .r-tag { grid-column: 2; justify-self: start; }
  .day-card .r-class { font-size: 15px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Homepage "This week on the mat" card — same family as .day-card. */
.week-card {
  position: relative; overflow: hidden; margin-top: 8px;
  background: linear-gradient(165deg, var(--iron) 0%, var(--carbon) 65%);
  border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 26px 50px -26px rgba(0, 0, 0, .9);
  transition: transform .25s, border-color .25s;
}
.week-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-soft), var(--periwinkle));
}
.week-card::after {
  content: ""; position: absolute; z-index: 0; top: -110px; right: -110px; width: 260px; height: 260px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--navy-soft) 45%, transparent), transparent);
}
.week-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--periwinkle) 40%, var(--line-strong)); }
.week-card > * { position: relative; z-index: 1; }
.week-card__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, color-mix(in srgb, var(--navy-soft) 30%, transparent), transparent 75%);
}
.week-card__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1; letter-spacing: .03em; }
.week-card__sub { font-family: var(--f-stencil); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--text-mute); }
.week-row {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 22px 14px 25px; border-bottom: 1px solid var(--line); transition: background .2s;
}
.week-row:last-child { border-bottom: none; }
.week-row:hover { background: rgba(255, 255, 255, .03); }
.week-row::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--dot, var(--c-gi));
}
.week-row[data-type="kids"] { --dot: var(--c-kids); }
.week-row[data-type="nogi"] { --dot: var(--c-nogi); }
.week-row[data-type="open"] { --dot: var(--c-open); }
.week-row .k {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 19px; line-height: 1; color: var(--text);
}
.week-row .k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--c-gi)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, var(--c-gi)) 22%, transparent); }
.week-row .v {
  padding: 6px 11px; border-radius: 6px; text-align: right;
  background: color-mix(in srgb, var(--navy-soft) 38%, transparent); border: 1px solid var(--line-strong);
  font-family: var(--f-semi); font-weight: 600; font-size: 13.5px; letter-spacing: .02em; color: var(--text);
}
@media (max-width: 480px) {
  .week-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .week-row .v { text-align: left; }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; text-align: center; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .9;
  font-size: clamp(40px, 8vw, 104px); letter-spacing: -.015em; }
.cta-band p { color: var(--text-dim); max-width: 56ch; margin: 18px auto 0; font-size: clamp(16px,1.6vw,19px); }
.cta-band .hero-actions { margin-top: 30px; }
.offer-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 8px 18px; font-family: var(--f-semi); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: 13px; color: var(--text); margin-bottom: 22px; }
.offer-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

/* ---------- Forms ---------- */
.lead-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .lead-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--f-semi); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--text-dim); font-weight: 600; }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 13px 15px; color: var(--text); font-family: var(--f-body); font-size: 16px; transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-mute); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.consent a { text-decoration: underline; }
.btn--block { width: 100%; justify-content: center; padding: 16px; font-size: 16px; }
.form-msg { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #e98a8a; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.info-card h3 { font-family: var(--f-display); text-transform: uppercase; font-weight: 800; font-size: 22px; margin-bottom: 18px; }
.info-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .k { font-family: var(--f-semi); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--text-mute); min-width: 78px; padding-top: 2px; }
.info-row .v { color: var(--text); font-size: 15px; line-height: 1.5; }
.info-row .v a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--carbon); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 90px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand img { width: 116px; margin-bottom: 18px; }
.footer-brand p { color: var(--text-mute); font-size: 14px; max-width: 34ch; line-height: 1.6; }
.footer h4 { font-family: var(--f-stencil); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--text-dim); margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a, .footer address a { color: var(--text-mute); font-size: 14px; font-style: normal; line-height: 1.5; transition: color .2s; }
.footer ul a:hover, .footer address a:hover { color: var(--text); }
.footer address { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom p, .footer-bottom a { font-family: var(--f-semi); font-size: 12px; letter-spacing: .04em; color: var(--text-mute); text-transform: uppercase; }
.footer-bottom a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(140px, 18vw, 200px) var(--pad) clamp(40px, 6vw, 72px); position: relative; }
.page-hero .wrap { position: relative; z-index: 1; }
/* Photo variant: a lightly darkened photo behind the hero, heavier on the left where the copy sits. */
.page-hero--photo { overflow: hidden; isolation: isolate; }
.page-hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center 45%;
  filter: brightness(.86) saturate(1) contrast(1.03);
}
.page-hero--photo h1, .page-hero--photo p, .page-hero--photo .breadcrumb { text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.page-hero--photo p { color: color-mix(in srgb, var(--text) 90%, transparent); }
/* Fit variant (Kids, Adult + About pages; set --hero-ratio inline for other photo shapes): the photo is small, so instead of stretching it to cover the hero
   (blurry + crops people) show it at hero height on the right and fade its left edge into the
   dark background behind the copy. Phones keep the cover behaviour (no upscaling there). */
@media (min-width: 821px) {
  .page-hero--fit .page-hero-photo {
    /* a box with the photo's own shape, pinned right at full hero height, so the fade below
       always starts at the photo's real left edge whatever the screen width */
    inset: 0 0 0 auto; height: 100%; width: auto; max-width: 100%; aspect-ratio: var(--hero-ratio, 907 / 633);
    background-size: cover; background-position: center; background-repeat: no-repeat;
    filter: brightness(.92) saturate(1.02) contrast(1.02);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  }
  .page-hero--fit::after {
    background: linear-gradient(90deg, rgba(11, 11, 18, .55) 0%, rgba(11, 11, 18, .2) 45%, transparent 70%),
                linear-gradient(180deg, rgba(11, 11, 18, .2) 0%, transparent 30%, rgba(11, 11, 18, .35) 100%);
  }
}
.page-hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 11, 18, .72) 0%, rgba(11, 11, 18, .42) 45%, rgba(11, 11, 18, .1) 100%),
    linear-gradient(180deg, rgba(11, 11, 18, .3) 0%, transparent 35%, rgba(11, 11, 18, .45) 100%);
}
.page-hero h1 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .86;
  font-size: clamp(46px, 10vw, 116px); letter-spacing: -.015em; }
.page-hero p { color: var(--text-dim); max-width: 60ch; margin-top: 18px; font-size: clamp(16px,1.6vw,19px); }
.breadcrumb { font-family: var(--f-stencil); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--text-mute); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--text); }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-cta { margin-top: clamp(40px, 5vw, 64px); }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--text); line-height: 1.55; max-width: 64ch; }
.prose p { color: var(--text-dim); margin-bottom: 16px; max-width: 68ch; }
.prose p strong { color: var(--text); }
/* Privacy policy — long-form legal copy */
.legal { max-width: 68ch; }
.legal .lede { color: var(--text); margin-bottom: 8px; }
.legal h2 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1; margin: 44px 0 14px; color: var(--text); }
.legal ul { list-style: disc; padding-left: 20px; margin-bottom: 16px; color: var(--text-dim); }
.legal li { margin-bottom: 8px; }
.legal li strong { color: var(--text); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-list .chip { font-family: var(--f-stencil); text-transform: uppercase; letter-spacing: .1em; font-size: 11px;
  color: var(--text-dim); border: 1px solid var(--line-strong); border-radius: 2px; padding: 5px 10px; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   NAVY signal accent  +  moody color photos
   DeBlass Navy is the brand's pointing color. On the dark
   canvas, white does the work (--accent: bone); navy carries
   the structural bands (.panel-navy) and the hazard tape.
   The .panel-bone / .panel-navy classes flip --accent locally.
   ============================================================ */
:root {
  --signal:        #34347C;  /* a brighter navy for hover/edges on dark */
  --signal-bright: #4242A0;
  --signal-dim:    #1B1B44;
}

/* Navy hazard tape */
.hazard {
  background-image: repeating-linear-gradient(-45deg, var(--navy) 0 14px, var(--ink) 14px 28px);
}
.hazard-bar { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--navy) 60%, transparent), inset 0 -1px 0 rgba(0,0,0,.4); }

/* Interactive surfaces lean navy */
.pillar:hover { box-shadow: inset 3px 0 0 var(--accent); }
.btn--solid:hover { filter: brightness(1.06); }
.pc-tag { border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--navy) 78%, transparent); }

/* Stat numerals pick up the accent (bone on dark, navy on bone panels) */

/* Photos: color by default with a subtle moody grade; brighten on hover/focus */
.frame img, .frame .photo, .prog-card .pc-media img {
  transition: filter .55s ease, transform .5s ease;
}
.frame:hover .photo, .frame:hover img,
.frame:focus-within .photo, .frame:focus-within img,
.prog-card:hover .pc-media img {
  filter: contrast(1.03) brightness(1.04) saturate(1.06);
}

/* ============================================================
   Gallery — dense masonry grid of real academy photos
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(128px, 17vw, 208px);
  grid-auto-flow: dense;
  gap: clamp(10px, 1.4vw, 18px);
}
.g-tile {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--carbon);
}
.g-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: contrast(1.04) brightness(.96) saturate(1.02);
  transition: filter .55s ease, transform .5s ease;
}
.g-tile:hover img, .g-tile:focus-within img {
  transform: scale(1.05); filter: contrast(1.03) brightness(1.04) saturate(1.06);
}
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-wide, .g-tall { grid-column: auto; grid-row: auto; }
}

/* ============================================================
   Team cards — instructor grid (cousin of .prog-card)
   ============================================================ */
.team-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color .25s, transform .25s;
}
.team-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.team-card .tc-media { aspect-ratio: 3/4; overflow: hidden; }
.team-card .tc-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: contrast(1.04) brightness(.96) saturate(1.02);
  transition: filter .55s ease, transform .5s ease;
}
.team-card:hover .tc-media img { transform: scale(1.04); filter: contrast(1.03) brightness(1.04) saturate(1.06); }
.team-card .tc-body { padding: clamp(14px, 1.6vw, 20px); }
.team-card .tc-body h3 {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 26px); line-height: .95;
}
.team-card .tc-title {
  margin-top: 4px; color: var(--text-mute);
  font-family: var(--f-semi); text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
}
.team-card .tc-rank {
  margin-top: 8px; display: inline-block; color: var(--accent);
  font-family: var(--f-stencil); text-transform: uppercase; letter-spacing: .14em; font-size: 12px;
}

/* ============================================================
   Testimonials — real 5-star Google reviews: a rating chip under
   the heading + soft white cards (initials avatar, source, stars).
   ============================================================ */
.review-grid {
  --star: #F4B400;
  --av-1: var(--navy);  --av-2: #8C2F39; --av-3: #2F4858;
  --av-4: #3B6E4F;      --av-5: #6A4C93; --av-6: #B5652B;
}
.rating-chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.rating-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 20, 28, .04), 0 6px 18px rgba(20, 20, 28, .05);
  color: var(--text); transition: transform .2s, box-shadow .2s;
}
.rating-chip:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 20, 28, .05), 0 12px 26px rgba(20, 20, 28, .09); }
.rating-chip img { width: 34px; height: 34px; flex: none; }
.rc-body { display: flex; flex-direction: column; gap: 3px; }
.rc-top { display: flex; align-items: center; gap: 8px; }
.rc-top strong { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: .9; }
.rc-stars { color: #F4B400; letter-spacing: 2px; font-size: 15px; line-height: 1; }
.rc-label { font-size: 12.5px; color: var(--text-mute); }

.review-card {
  display: flex; flex-direction: column; gap: 14px; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(20px, 2.2vw, 26px);
  box-shadow: 0 1px 2px rgba(20, 20, 28, .04), 0 8px 24px rgba(20, 20, 28, .06);
  transition: transform .25s, box-shadow .25s;
}
.review-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 20, 28, .05), 0 16px 34px rgba(20, 20, 28, .1); }
.rv-head { display: flex; align-items: center; gap: 12px; }
.rv-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--av-1); color: #FFFFFF;
  font-family: var(--f-body); font-weight: 600; font-size: 15px; letter-spacing: .02em;
}
.rv-avatar.av-2 { background: var(--av-2); } .rv-avatar.av-3 { background: var(--av-3); }
.rv-avatar.av-4 { background: var(--av-4); } .rv-avatar.av-5 { background: var(--av-5); }
.rv-avatar.av-6 { background: var(--av-6); }
.rv-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv-name { font-family: var(--f-body); font-weight: 600; font-size: 16px; line-height: 1.2; color: var(--text); }
.rv-src { font-size: 13px; color: var(--text-mute); }
.rv-platform { flex: none; width: 22px; height: 22px; align-self: flex-start; margin-top: 2px; }
.review-stars { color: var(--star); letter-spacing: 3px; font-size: 17px; line-height: 1; }
.review-quote {
  flex: 1; margin: 0; font-family: var(--f-body); font-style: normal;
  font-size: 15.5px; line-height: 1.62; color: var(--text-dim);
}

/* ============================================================
   CTA lead form (homepage navy band) — form + photo, gym-template
   single-column stacked field layout in a light card.
   ============================================================ */
.cta-form-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 4.5vw, 60px); align-items: stretch;
}
@media (max-width: 880px) { .cta-form-grid { grid-template-columns: 1fr; } }
.cta-form-intro .offer-chip { margin-bottom: 18px; }
.cta-form-title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  line-height: .9; font-size: clamp(34px, 5vw, 60px); letter-spacing: -.015em; margin-bottom: 12px;
}
.cta-form-intro > p { color: var(--text-dim); max-width: 48ch; margin-bottom: 22px; font-size: clamp(15px,1.5vw,18px); }
/* light "bone" form card so the form is crisp on the navy band */
.cta-form-card {
  --surface: #FFFFFF; --surface-2: #F1EFE8;
  --line: #DEDAD0; --line-strong: #C9C4B6;
  --text: #14141C; --text-dim: #4C4C5A; --text-mute: #87889C;
  --accent: var(--navy); --accent-ink: #FFFFFF;
  background: #FFFFFF; color: var(--text);
  border: 1px solid #C9C4B6; border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 30px);
}
.cta-form-card .field:last-of-type { margin-bottom: 14px; }
.cta-form-card .form-msg.ok { color: #1a7f4b; }
/* photo column matches the form's height */
.cta-form-photo {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.cta-form-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block; min-height: 340px;
  filter: contrast(1.04) brightness(.98) saturate(1.02);
}
@media (max-width: 880px) {
  .cta-form-photo { order: -1; }
  .cta-form-photo img { min-height: 220px; max-height: 360px; }
}

/* ============================================================
   Lead forms (js/lead-form.js) — the Home/Contact inline forms and
   the pop-out every Book / Free Class CTA opens. The pop-out reuses
   the light .cta-form-card tokens. z-index sits above the nav (7000)
   and rail (8000); the grain overlay (9000) is pointer-events:none.
   ============================================================ */
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .consent { margin-top: 4px; }
.lead-form .field-row { row-gap: 0; } /* stacked rows: the field margin already spaces them */
.lead-turnstile { margin: 14px 0 4px; min-height: 65px; }
.form-msg a { color: inherit; text-decoration: underline; font-weight: 600; }
/* #e98a8a is for dark surfaces; the Home/pop-out card and the Contact .card (bone panel, white surface) are white. */
.cta-form-card .form-msg.err, .card .form-msg.err { color: #b42318; }
.lead-modal {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(16px, 6vh, 64px) 16px;
  background: var(--matblack);
  background: color-mix(in srgb, var(--matblack) 80%, transparent);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.lead-modal[hidden] { display: none; }
.lead-modal__dialog {
  position: relative; width: 100%; max-width: 560px; margin: auto 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.lead-modal__close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  display: grid; place-items: center; font-size: 30px; line-height: 1;
  color: var(--text-dim); border-radius: var(--radius);
}
.lead-modal__close:hover, .lead-modal__close:focus-visible { color: var(--text); }
.lead-modal__title {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  line-height: .92; font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -.01em;
  margin: 0 48px 8px 0;
}
.lead-modal__lede { color: var(--text-dim); font-size: 15px; margin-bottom: 18px; max-width: 46ch; }
/* Contact: title on the inline form card */
.lead-card-title {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  line-height: .92; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.01em; margin-bottom: 18px;
}
@media (max-width: 400px) {
  .lead-modal__dialog { padding-left: 18px; padding-right: 18px; }
}

/* ============================================================
   Social icons — footer "Visit" column + Contact info card.
   Round outline buttons; tokens adapt to dark and bone panels.
   ============================================================ */
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials .social-link {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--text);
  transition: background .2s, color .2s, border-color .2s, transform .2s, filter .2s, box-shadow .2s;
}
.socials .social-link:hover, .socials .social-link:focus-visible {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px);
}
.info-row .socials { margin-top: 0; }
/* Brand colours: white glyph on the network's own colour */
.socials .social-link[href*="instagram.com"] {
  background: #d6249f;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.socials .social-link[href*="facebook.com"] { background: #1877f2; }
.socials .social-link[href*="instagram.com"], .socials .social-link[href*="facebook.com"] { border-color: transparent; color: #fff; }
.socials .social-link[href*="instagram.com"]:hover, .socials .social-link[href*="instagram.com"]:focus-visible,
.socials .social-link[href*="facebook.com"]:hover, .socials .social-link[href*="facebook.com"]:focus-visible {
  color: #fff; border-color: transparent; filter: brightness(1.1); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .6);
}
.socials .social-link[href*="instagram.com"]:hover, .socials .social-link[href*="instagram.com"]:focus-visible {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.socials .social-link[href*="facebook.com"]:hover, .socials .social-link[href*="facebook.com"]:focus-visible { background: #1877f2; }

/* ============================================================
   Programs dropdown (desktop nav) + Programs group (mobile menu)
   ============================================================ */
.nav-dd { position: relative; }
.nav-dd-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 4px 0;
  font-family: var(--f-semi); text-transform: uppercase; font-size: 13px;
  letter-spacing: .12em; font-weight: 600; color: var(--text-dim); transition: color .2s;
}
.nav-dd-toggle svg { transition: transform .2s; }
.nav-dd-toggle:hover, .nav-dd.open .nav-dd-toggle, .nav-dd-toggle[data-current] { color: var(--text); }
.nav-dd.open .nav-dd-toggle svg { transform: rotate(180deg); }
.nav-dd-toggle[data-current]::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: calc(100% - 17px); height: 2px; background: var(--accent);
}
.nav-dd-menu {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 232px;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--carbon); border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .75);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .nav-dd:hover .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-dd:hover .nav-dd-toggle svg { transform: rotate(180deg); }
}
.nav-links .nav-dd-menu a {
  padding: 11px 14px; border-radius: 6px; letter-spacing: .1em; color: var(--text-dim);
}
.nav-links .nav-dd-menu a:hover, .nav-links .nav-dd-menu a:focus-visible { background: var(--iron); color: var(--text); }
.nav-links .nav-dd-menu a[aria-current="page"] { color: var(--text); background: var(--iron); }
.nav-links .nav-dd-menu a[aria-current="page"]::after { display: none; }

@media (max-width: 940px) {
  .mobile-menu { overflow-y: auto; justify-content: safe center; }
  .mobile-menu .m-group {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px;
    padding: 16px 0 14px; border-bottom: 1px solid var(--line);
  }
  .mobile-menu .m-group-label {
    grid-column: 1 / -1; font-family: var(--f-stencil); text-transform: uppercase;
    letter-spacing: .16em; font-size: 12px; color: var(--text-mute); margin-bottom: 4px;
  }
  .mobile-menu a.m-sub {
    font-family: var(--f-semi); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    font-size: 17px; color: var(--text-dim); padding: 8px 0;
  }
  .mobile-menu a.m-sub[aria-current="page"] { color: var(--accent); }
}

/* Google rating chip, compact variant (footer + Contact card); the chip itself is styled in Testimonials. */
.rating-chip--footer { margin-top: 20px; }
.rating-chip--footer, .rating-chip--compact { padding: 10px 16px 10px 12px; gap: 10px; box-shadow: none; }
.rating-chip--footer img, .rating-chip--compact img { width: 28px; height: 28px; }
.rating-chip--footer .rc-top strong, .rating-chip--compact .rc-top strong { font-size: 24px; }
.rating-chip--footer .rc-stars, .rating-chip--compact .rc-stars { font-size: 13px; }
.rating-chip--footer .rc-label, .rating-chip--compact .rc-label { font-size: 12px; }
.info-row--chip { align-items: center; }
.info-row .v .rating-chip { color: var(--text); }
.rating-chip--footer:hover { border-color: var(--line-strong); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }

/* Contact: full-width map band under the form + visit card. */
.map-band {
  position: relative; height: clamp(320px, 40vw, 520px);
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--carbon);
}
.map-band iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ============================================================
   FAQ accordion (native <details>) — homepage + program pages
   ============================================================ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq-head { position: sticky; top: 110px; }
@media (max-width: 900px) { .faq-head { position: static; } }
.faq-head .section-intro a { color: var(--text); text-decoration: underline; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(20, 20, 28, .04), 0 8px 24px rgba(20, 20, 28, .05);
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--line-strong); box-shadow: 0 2px 4px rgba(20, 20, 28, .05), 0 14px 30px rgba(20, 20, 28, .08); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 20px 18px 22px; border-radius: 12px;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.1; letter-spacing: .01em; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 2px 12px no-repeat;
  transition: transform .25s, background-color .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--surface-2); }
.faq-item summary:hover::after { background-color: var(--surface-2); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-a { padding: 0 22px 20px; }
.faq-a p { color: var(--text-dim); font-size: 16px; line-height: 1.65; max-width: 68ch; }
.faq-a a { color: var(--text); text-decoration: underline; font-weight: 600; }

/* ============================================================
   Program pages (/adult-jiu-jitsu, /kids-jiu-jitsu, /kickboxing-fitness)
   ============================================================ */
.page-hero .offer-chip { margin-bottom: 16px; }
.benefit-card {
  position: relative; overflow: hidden; padding: clamp(22px, 2.4vw, 30px);
  background: linear-gradient(165deg, var(--iron) 0%, var(--carbon) 70%);
  border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 22px 44px -24px rgba(0, 0, 0, .85);
  transition: transform .25s, border-color .25s;
}
.benefit-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--navy-soft), var(--periwinkle)); }
.benefit-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--periwinkle) 40%, var(--line-strong)); }
.benefit-card .mono-label { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 21px; letter-spacing: .01em; line-height: 1.1; color: var(--text); }
.benefit-card p { color: var(--text-dim); margin-top: 10px; line-height: 1.6; }
/* light panels: benefit cards become white cards */
.panel-bone .benefit-card { background: var(--surface); border-color: var(--line); box-shadow: 0 1px 2px rgba(20, 20, 28, .04), 0 8px 24px rgba(20, 20, 28, .06); }
.frame--square { aspect-ratio: 1 / 1; min-height: 0; align-self: center; }
.frame--square img { object-position: center 38%; }
@media (max-width: 820px) { .split .frame--square { aspect-ratio: 16 / 11; } }
.prog-note { color: var(--text-mute); font-size: 14px; margin-top: 14px; }
.prog-note a { color: var(--text); text-decoration: underline; }
.prog-form-grid { grid-template-columns: .9fr 1.1fr; align-items: center; }
@media (max-width: 880px) { .prog-form-grid { grid-template-columns: 1fr; } }
.week-row[data-type="striking"] { --dot: var(--c-striking); }

/* Nav fit between the hamburger breakpoint and roomy desktops: 7 nav items + brand + CTA.
   Keep the wordmark and dropdown chevrons from squeezing; tighten spacing, drop the phone
   (it stays in the mobile menu, the footer and the Contact page). */
.nav-brand .wordmark { white-space: nowrap; }
.nav-dd-toggle svg { flex: none; }
.nav-links > a { white-space: nowrap; } /* keeps "Shop ↗" on one line */
@media (min-width: 941px) and (max-width: 1240px) {
  .nav-links { gap: 18px; }
  .nav-links a, .nav-dd-toggle { letter-spacing: .08em; }
  .nav-cta .nav-phone { display: none; }
}
@media (min-width: 941px) and (max-width: 1020px) {
  .nav-links { gap: 14px; }
  .nav-links a, .nav-dd-toggle { font-size: 12px; letter-spacing: .06em; }
  .nav-brand .wordmark span { display: none; }
}
/* Roomy desktops: the phone and the Free Class button join the nav's own spacing, so the
   phone sits centred between the last nav link and the button. */
@media (min-width: 1241px) {
  .nav-cta { display: contents; }
}

/* ============================================================
   Homepage "Your instructors" — trust points for parents
   ============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 20px); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-grid--4 { grid-template-columns: repeat(4, 1fr); } /* About: The OCBJJ Way */
@media (max-width: 1100px) { .trust-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-grid--4 { grid-template-columns: 1fr; } }
/* Dark rounded cards on the light panel: tinted icon tile, bold title, copy, check points.
   Tokens are reset to the dark palette inside the card (the bone panel remaps them). */
.trust-card {
  --text: #F4F2ED; --text-dim: #A6A9C2; --text-mute: #6E7192; --line: #2C2C44;
  position: relative; display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 30px);
  background: linear-gradient(170deg, #22223A 0%, #17172A 100%); color: var(--text);
  border: 1px solid #2E2E4A; border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 44px -22px rgba(11, 11, 18, .55);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.trust-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--periwinkle) 45%, #2E2E4A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 54px -22px rgba(11, 11, 18, .6); }
.trust-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; margin-bottom: 22px;
  color: var(--periwinkle); background: color-mix(in srgb, var(--periwinkle) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--periwinkle) 30%, transparent);
}
.trust-icon svg { width: 24px; height: 24px; }
.trust-card:first-child .trust-icon { background: var(--periwinkle); color: var(--ink); border-color: var(--periwinkle); }
.trust-card h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 23px; line-height: 1; letter-spacing: .01em; margin-bottom: 12px; color: var(--text); }
.trust-card p { color: var(--text-dim); font-size: 15.5px; line-height: 1.6; flex: 1; }
.trust-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.trust-points li { position: relative; padding-left: 24px; color: #D6D7E6; font-size: 15px; }
.trust-points li::before {
  content: ""; position: absolute; left: 4px; top: 5px; width: 5px; height: 10px;
  border-right: 2px solid var(--periwinkle); border-bottom: 2px solid var(--periwinkle); transform: rotate(45deg);
}
.coach-strip {
  display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; margin-top: clamp(22px, 3vw, 34px);
  padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2);
}
.coach-faces { display: flex; padding-left: 10px; }
.coach-face {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none;
  margin-left: -10px; border: 3px solid var(--surface-2); background: var(--surface);
}
/* the coach photos are full-body kneeling shots: zoom in on the head */
.coach-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transform: scale(2.2); transform-origin: 50% 12%; }
.coach-face--tom img { object-position: 50% 0; transform: scale(2); transform-origin: 50% 8%; }
.coach-strip p { flex: 1; min-width: 200px; color: var(--text-dim); font-size: 16px; }
.coach-strip p strong { color: var(--text); }
.coach-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   Program pages: schedule preview cards under the overview copy
   ============================================================ */
.prog-sched { margin-top: clamp(40px, 6vw, 72px); }
.prog-sched-head { max-width: 62ch; margin-bottom: 22px; }
.prog-sched-head h2 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 44px); line-height: .95; margin-bottom: 10px; }
.prog-sched-head p { color: var(--text-dim); }
.prog-sched-head a { color: var(--text); text-decoration: underline; font-weight: 600; }
.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(14px, 1.6vw, 20px); align-items: stretch; }
/* five groups (Adult) read better as 3 + 2 than 4 + 1 */
@media (min-width: 900px) { .ps-grid--5 { grid-template-columns: repeat(3, 1fr); } }
.ps-card {
  display: flex; flex-direction: column; padding: 24px 24px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(20, 20, 28, .04), 0 14px 34px rgba(20, 20, 28, .09);
  transition: transform .25s, box-shadow .25s;
}
.ps-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 20, 28, .05), 0 20px 40px rgba(20, 20, 28, .12); }
.ps-card h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; letter-spacing: .01em; }
.ps-sub { color: var(--text-mute); font-size: 14px; margin-top: 6px; }
.ps-rows { list-style: none; margin: 14px 0 18px; padding: 0; }
.ps-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ps-rows li:last-child { border-bottom: none; }
.ps-day { font-weight: 600; font-size: 16px; color: var(--text); }
.ps-time { color: var(--text-dim); font-size: 15px; white-space: nowrap; }
.ps-card .ps-btn { margin-top: auto; justify-content: center; width: 100%; border-radius: 8px; padding: 13px 18px; font-size: 14px; }
