/* ============================================================
   Taekwondo Masters Academy Singapore — Stylesheet
   Brand: red #D91E26 · navy #1F2E9E · ink #0E1020
   ============================================================ */
:root {
  --red: #d91e26;
  --red-dark: #b0151c;
  --blue: #1f2e9e;
  --blue-dark: #16205f;
  --navy: #0e1230;
  --ink: #14162b;
  --paper: #f7f8fc;
  --white: #ffffff;
  --text: #2a2d3f;
  --muted: #6b7085;
  --line: #e4e7f0;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(14, 18, 48, 0.12);
  --font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.container { width: min(1160px, 92%); margin: 0 auto; }

h1, h2 { font-family: var(--font-display); letter-spacing: 0.02em; line-height: 1.05; color: var(--ink); }
h1 { font-size: clamp(2.9rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.12rem; font-weight: 800; color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 0.7rem;
}
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.2rem, 5vw, 3.5rem); }
.section-head p { margin-top: 0.9rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 10px 24px rgba(217, 30, 38, 0.35); }
.btn-red:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px rgba(31, 46, 158, 0.3); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-white { background: var(--white); color: var(--red); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.btn-outline { border: 2px solid rgba(255,255,255,0.75); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { border: 2px solid var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0.9rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background: rgba(14, 18, 48, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0,0,0,0.25);
  padding: 0.55rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo {
  /* bare icon, no ring — the artwork carries its own outline */
  width: 62px; height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}
.nav-title { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.nav-title strong { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.06em; color: var(--white); }
.nav-title small { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.34em; color: var(--red); }
.nav-brand { flex-shrink: 0; margin-right: 1rem; }
.nav-links { display: flex; align-items: center; gap: 1.15rem; }
.nav-links a:not(.btn) {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 0.88rem;
  position: relative;
  white-space: nowrap;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2.5px;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a.active:not(.btn)::after { width: 100%; }
.nav-cta { padding: 0.6rem 1.3rem; font-size: 0.88rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(140deg, #0c0f28 0%, #131a4a 45%, #1f2e9e 100%);
  color: var(--white);
  padding-top: 7.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 45% 55% at 82% 18%, rgba(217, 30, 38, 0.35), transparent 65%),
    radial-gradient(ellipse 40% 50% at 12% 85%, rgba(31, 46, 158, 0.55), transparent 60%);
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%, transparent 95%);
}
.hero-inner {
  position: relative;
  display: grid;
  /* minmax(0,…) lets the tracks compress below the hero-visual flex row's
     preferred width — without it the visual column steals space and the
     headline wraps badly. */
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 2rem;
  align-items: center;
  padding-bottom: 5.5rem;
}
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; gap: 0.6rem; min-width: 0; }

/* Floating student photos sit BESIDE the team artwork (flex items, not
   overlays) so they never cover the people in the image. The rotation is baked
   into each keyframe because `animation` sets `transform` outright — a separate
   `transform: rotate()` on the element would be overridden the moment it runs. */
.hero-card {
  flex-shrink: 0;
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card-1 { align-self: flex-start; margin-top: 1.6rem; animation: floatCardA 7s ease-in-out infinite 0.4s; }
.hero-card-2 { align-self: flex-end; margin-bottom: 1.6rem; animation: floatCardB 8.5s ease-in-out infinite 1s; }

@keyframes floatCardA {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50%      { transform: rotate(-7deg) translateY(-15px); }
}
@keyframes floatCardB {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50%      { transform: rotate(6deg) translateY(-17px); }
}
.hero-team {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 540px;
  /* The banner artwork is near-black at its edges, so feathering the border
     lets it melt into the hero gradient instead of sitting in a hard box.
     Fade kept to the outer rim only so the image reads at full size. */
  -webkit-mask-image: radial-gradient(ellipse 76% 88% at 51% 47%, #000 58%, rgba(0,0,0,0.75) 82%, transparent 99%);
  mask-image: radial-gradient(ellipse 76% 88% at 51% 47%, #000 58%, rgba(0,0,0,0.75) 82%, transparent 99%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.hero-badge .stars { color: #ffc531; letter-spacing: 2px; }
.hero h1 { color: var(--white); margin-bottom: 1.1rem; }
/* three-line headline needs a slightly tighter scale than the base h1 */
.hero-h1 { font-size: clamp(2.15rem, 4.2vw, 3.4rem); line-height: 1.04; }
.accent-red {
  color: var(--red);
  text-shadow: 0 0 34px rgba(217, 30, 38, 0.55);
}
.accent-blue {
  color: #7f96ff;
  text-shadow: 0 0 34px rgba(127, 150, 255, 0.45);
}
.hero-quote {
  font-size: 1.12rem;
  font-weight: 700;
  font-style: italic;
  color: #ffd7d9;
  margin-bottom: 0.8rem;
}
.hero-sub {
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.6rem; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 700;
}
.hero-points li { display: flex; align-items: center; gap: 0.45rem; }
.hero-points li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(217, 30, 38, 0.9);
}

.hero-strip {
  position: relative;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 1.15rem 0;
}
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.strip-item strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--white); letter-spacing: 0.04em; }
.strip-item span { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-photo { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo-badge {
  position: absolute;
  bottom: -1.4rem; right: -0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 14px;
  padding: 0.8rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 14px 34px rgba(14, 18, 48, 0.4);
  max-width: 270px;
}
.about-photo-badge img { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.about-text h2 { margin-bottom: 1.1rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; margin-top: 1.6rem; }
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card h3 { font-size: 1rem; }
.value-card p { font-size: 0.82rem; color: var(--muted); margin: 0; }
.value-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  border-radius: 12px;
}
.value-icon.red { background: rgba(217, 30, 38, 0.1); }
.value-icon.blue { background: rgba(31, 46, 158, 0.1); }

/* ---------- Goal band ---------- */
.goal-band {
  background:
    radial-gradient(ellipse 55% 120% at 15% 50%, rgba(217, 30, 38, 0.35), transparent 65%),
    linear-gradient(120deg, #0c0f28 0%, #16205f 100%);
  color: var(--white);
  padding: clamp(2.8rem, 6vw, 4.2rem) 0;
  text-align: center;
}
.goal-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}
.goal-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  max-width: 900px;
  margin: 0 auto;
}
.goal-quote span { color: var(--red); }

/* ---------- Vision ---------- */
.vision-body {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.vision-lead {
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.3rem;
  font-size: 1.02rem;
}
.vision-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.vision-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.97rem;
}
.vision-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.vision-list strong { color: var(--ink); font-weight: 800; }
.v-check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(217, 30, 38, 0.1);
  color: var(--red);
  margin-top: 1px;
}

/* ---------- Programs ---------- */
.programs { background: var(--paper); }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.program-img { position: relative; aspect-ratio: 4 / 4.6; overflow: hidden; }
.program-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.program-card:hover .program-img img { transform: scale(1.06); }
.program-age {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.program-body { padding: 1.25rem 1.3rem 1.5rem; }
.program-body h3 { margin-bottom: 0.5rem; }
.program-body p { font-size: 0.9rem; color: var(--muted); }
.programs-cta {
  margin-top: 2.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.programs-cta p { color: var(--muted); font-weight: 600; }

/* ---------- Why us ---------- */
.whyus {
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(217, 30, 38, 0.25), transparent 60%),
    linear-gradient(160deg, #0c0f28, #16205f);
  color: var(--white);
}
.whyus .on-dark { color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  transition: background 0.3s ease, transform 0.3s ease;
}
.why-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-6px); }
.why-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: 0.8rem;
}
.why-card h3 { color: var(--white); margin-bottom: 0.55rem; }
.why-card p { font-size: 0.88rem; color: rgba(255,255,255,0.68); }

/* ---------- Coaches page (coaches.html) ---------- */
.page-hero {
  background:
    radial-gradient(ellipse 50% 70% at 80% 30%, rgba(217, 30, 38, 0.3), transparent 65%),
    linear-gradient(140deg, #0c0f28 0%, #131a4a 55%, #1f2e9e 100%);
  color: var(--white);
  text-align: center;
  padding: 9.5rem 0 4.5rem;
}
.page-hero h1 { color: var(--white); margin: 0.4rem 0 0.9rem; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto; }
.profile-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.profile-grid.flip { grid-template-columns: 1.18fr 0.82fr; }
.profile-grid.flip .profile-media { order: 2; }
.profile-media { position: sticky; top: 96px; }
.profile-photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.profile-text h2 { margin-bottom: 1.2rem; }
.profile-text p { color: var(--muted); margin-bottom: 1rem; }
.role-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.role-chip.red { background: var(--red); }
.role-chip.blue { background: var(--blue); }
.profile-quote {
  margin-top: 1.5rem;
  background: var(--paper);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
}
.profile-alt { background: var(--paper); }
.profile-alt .profile-quote { background: var(--white); border-left-color: var(--blue); }
.team-band {
  background:
    radial-gradient(ellipse 55% 120% at 15% 50%, rgba(217, 30, 38, 0.32), transparent 65%),
    linear-gradient(120deg, #0c0f28 0%, #16205f 100%);
  color: var(--white);
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.team-band h2 { color: var(--white); margin-bottom: 1.2rem; }
.team-band p { color: rgba(255,255,255,0.78); max-width: 720px; margin: 0 auto 1rem; }
.team-band .team-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--white);
  letter-spacing: 0.03em;
  margin: 1.6rem auto 1.8rem;
}

/* ---------- Belt levels banner + modal ---------- */
.belt-banner {
  margin-top: 2.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.belt-banner-text h3 { margin-bottom: 0.3rem; }
.belt-banner-text p { color: var(--muted); font-size: 0.92rem; }
.belt-banner .btn { flex-shrink: 0; }

.modal {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(10, 12, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal.open { display: flex; }
.modal-card {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  padding: 2rem 2.2rem;
  width: min(92vw, 560px);
  max-height: 88vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 0.7rem; right: 1rem;
  background: none; border: 0;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--red); }
.modal-card h3 { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0.02em; }
.modal-sub { color: var(--muted); font-size: 0.9rem; margin: 0.2rem 0 1.3rem; }
.belt-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.belt-list li { display: flex; align-items: center; gap: 0.9rem; font-size: 0.92rem; }
.belt-list strong { width: 42px; flex-shrink: 0; color: var(--ink); }
.belt-list em { font-style: normal; color: var(--muted); }
.belt-chip {
  width: 74px; height: 16px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.18);
  background: linear-gradient(to right, var(--b1) 0 68%, var(--b2) 68% 100%);
}
.belt-black {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.belt-black > div { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.92rem; }
.belt-black strong { color: var(--ink); }
.belt-black em { font-style: normal; color: var(--muted); font-size: 0.84rem; }
.belt-chip.poom { background: repeating-linear-gradient(90deg, #c0181f 0 12px, #17171c 12px 24px); width: 74px; }
.belt-chip.dan { background: #17171c; width: 74px; }
.belt-note {
  margin-top: 1.2rem;
  background: var(--paper);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Coaches ---------- */
.coaches-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.coaches-text h2 { margin-bottom: 1.1rem; }
.coaches-text > p { color: var(--muted); margin-bottom: 1rem; }
.coach-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin: 1.4rem 0 1.8rem; }
.coach-list li { display: flex; align-items: flex-start; gap: 0.9rem; color: var(--muted); font-size: 0.97rem; font-weight: 600; }
.coach-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.coaches-media { position: relative; }
.coaches-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  object-position: top;
}
.coaches-caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(14, 18, 48, 0.82);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-align: center;
}

/* ---------- Events & News ---------- */
.news { background: var(--paper); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-img { aspect-ratio: 16 / 10; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 1.25rem 1.3rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; flex: 1; }
.news-date {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  background: rgba(217, 30, 38, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.news-body p { font-size: 0.9rem; color: var(--muted); }
.news-link { font-weight: 800; font-size: 0.9rem; margin-top: auto; padding-top: 0.4rem; }
.news-link:hover { color: var(--red); }
.news-more { text-align: center; margin-top: 2.6rem; }

/* ---------- Schedule ---------- */
.schedule-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.schedule-text h2 { margin-bottom: 1rem; }
.schedule-text > p { color: var(--muted); margin-bottom: 1.6rem; }
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.8rem;
}
.hours-table td {
  padding: 1rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--muted);
}
.hours-table td:last-child { text-align: right; color: var(--ink); }
.hours-table .closed { color: var(--red); }
.schedule-media { position: relative; }
.schedule-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 620px;
  width: 100%;
  object-fit: cover;
  /* keep the signage and window banner in frame, trim the floor tiles */
  object-position: 50% 32%;
}
.schedule-caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(14, 18, 48, 0.82);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-align: center;
}

/* ---------- Gallery ---------- */
.gallery { background: var(--white); }
.ig-link { font-weight: 800; color: var(--red); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 0.9rem;
}
.g-item {
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  grid-row: span 2;
  position: relative;
}
.g-item.tall { grid-row: span 3; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.g-item:hover img { transform: scale(1.07); }
.g-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,18,48,0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.g-item:hover::after { opacity: 1; }

/* ---------- Reviews ---------- */
.reviews-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(2.2rem, 5vw, 3.8rem);
  max-width: 760px;
  margin: 0 auto;
}
.reviews-stars { font-size: 2rem; color: #ffc531; letter-spacing: 6px; margin-bottom: 0.8rem; }
.reviews-card h2 { margin-bottom: 0.8rem; }
.reviews-card p { color: var(--muted); max-width: 480px; margin: 0 auto 1.6rem; }
.reviews-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; }
.contact-info {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.c-item { display: flex; gap: 1rem; }
.c-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: var(--paper);
  border-radius: 12px;
}
.c-item h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.c-item p { font-size: 0.92rem; color: var(--muted); }
.c-item a { font-weight: 700; }
.muted { color: #9aa0b5; font-size: 0.85em; }
.c-social { display: flex; gap: 0.8rem; margin-top: auto; padding-top: 0.4rem; }
.c-social a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  transition: background 0.25s ease, transform 0.25s ease;
}
.c-social a:hover { background: var(--red); transform: translateY(-3px); }
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
  background: var(--line);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(ellipse 50% 90% at 20% 50%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(120deg, var(--red-dark), var(--red));
  color: var(--white);
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  text-align: center;
}
.cta-inner h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-inner p { color: rgba(255,255,255,0.85); margin-bottom: 1.6rem; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 3rem 0 2rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1.6rem; align-items: center; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.footer-logo {
  width: 220px;
  max-width: 70vw;
  background: var(--white);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
}
.footer-motto { font-size: 0.88rem; font-style: italic; color: rgba(255,255,255,0.7); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.footer-links a { color: rgba(255,255,255,0.75); font-weight: 700; font-size: 0.9rem; }
.footer-links a:hover { color: var(--red); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-copy a { color: rgba(255,255,255,0.6); }
.footer-credit {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.4);
  margin-top: -0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  text-align: center;
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 90;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.1); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(10, 12, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 720px);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}
.lb-close {
  position: absolute;
  top: 1.2rem; right: 1.6rem;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 2.6rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 4rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-team { max-width: 440px; }
  .hero-card { width: 104px; }
  .about-grid, .schedule-grid, .contact-grid, .coaches-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; margin: 0 auto; }
  .schedule-media { order: -1; }
  .coaches-media { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
  .profile-grid, .profile-grid.flip { grid-template-columns: 1fr; }
  .profile-media, .profile-grid.flip .profile-media { order: -1; position: static; max-width: 420px; margin: 0 auto; width: 100%; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 2.2rem;
    gap: 1.7rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a:not(.btn) { font-size: 1.1rem; }
  .nav-toggle { display: block; position: relative; z-index: 110; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .nav-title small { display: none; }
  .nav-title strong { font-size: 1.1rem; }

  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 0.6rem; }
  .program-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .belt-banner { flex-direction: column; text-align: center; }
  .belt-black { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .hero { padding-top: 6rem; }
  /* Phones: the three-piece hero row gets too cramped — show the team photo
     alone and let the gallery carry the candid shots. */
  .hero-card { display: none; }
  .hero-team { max-width: 420px; }
  .about-photo-badge { right: 0.4rem; bottom: -1.8rem; }
  .reviews-actions .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-map { min-height: 320px; }
}
