/* =========================================================================
   Skill For Glory Sporting Academy — Design System
   Brand palette derived from the academy emblem:
   navy / gold / green / red, with a pool-cyan accent.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #061539;
  --navy-800: #0A2168;
  --navy-700: #123B8F;
  --navy-600: #1B4FC0;
  --gold-500: #F3B41C;
  --gold-400: #FFD75E;
  --gold-600: #C98A08;
  --green-600: #12742F;
  --green-500: #1E9C3E;
  --red-500: #E23127;
  --cyan-500: #00A9CE;
  --cyan-400: #35C8E6;

  /* Neutrals */
  --ink: #0D1526;
  --ink-soft: #3C475C;
  --ink-mute: #6B7688;
  --line: #E3E7EF;
  --line-soft: #EFF2F7;
  --surface: #FFFFFF;
  --surface-alt: #F6F8FC;
  --surface-tint: #EEF3FB;

  /* Type */
  /* Single family across the whole site, per brand direction. */
  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Space & shape */
  --wrap: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(6, 21, 57, .06), 0 4px 12px rgba(6, 21, 57, .06);
  --sh-2: 0 2px 6px rgba(6, 21, 57, .07), 0 14px 34px rgba(6, 21, 57, .10);
  --sh-3: 0 4px 10px rgba(6, 21, 57, .08), 0 26px 60px rgba(6, 21, 57, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  /* overflow-x: clip contains the overflow without making <body> a scroll
     container, which keeps sticky positioning and scrolling cheap. */
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.14;
  letter-spacing: -.015em;
  font-weight: 600;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 1.3rem + 3.4vw, 3.85rem); letter-spacing: -.028em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); letter-spacing: -.022em; }
h3 { font-size: clamp(1.16rem, 1.02rem + .62vw, 1.48rem); letter-spacing: -.012em; }
h4 { font-size: 1.08rem; }
p  { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--cyan-500);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-400); color: var(--navy-900); }

/* ---------- 3. Layout helpers ------------------------------------------- */
.wrap {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { width: min(830px, 100%); }

.section { padding-block: clamp(3.75rem, 7vw, 7rem); }
.section--alt { background: var(--surface-alt); }
.section--tint {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(0, 169, 206, .10), transparent 62%),
    radial-gradient(760px 420px at 92% 100%, rgba(243, 180, 28, .12), transparent 60%),
    var(--surface-tint);
}
.section--dark {
  background:
    radial-gradient(820px 480px at 88% 8%, rgba(0, 169, 206, .22), transparent 62%),
    radial-gradient(700px 460px at 6% 96%, rgba(243, 180, 28, .16), transparent 60%),
    linear-gradient(160deg, var(--navy-900), #0a1c4d 55%, var(--navy-800));
  color: rgba(255, 255, 255, .8);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--navy-800); color: #fff;
  padding: .8rem 1.25rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 4. Section headings ----------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 30px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--red-500));
}
.section--dark .eyebrow { color: var(--gold-400); }
.section--dark .eyebrow::before { background: linear-gradient(90deg, var(--gold-400), var(--cyan-400)); }

.sec-head { max-width: 720px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow::before { display: none; }
.sec-head p { margin-top: 1.1rem; font-size: 1.06rem; }
.section--dark .sec-head p { color: rgba(255, 255, 255, .74); }

.lead { font-size: clamp(1.06rem, .98rem + .35vw, 1.22rem); line-height: 1.62; color: var(--ink-soft); }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .58rem;
  padding: .92rem 1.7rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  letter-spacing: .005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid transparent; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 55%, var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 10px 26px rgba(201, 138, 8, .32);
}
.btn--primary:hover { box-shadow: 0 16px 38px rgba(201, 138, 8, .42); }

.btn--ghost { background: transparent; color: var(--navy-800); border-color: rgba(10, 33, 104, .28); }
.btn--ghost:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

.btn--light { background: #fff; color: var(--navy-800); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .42); }
.btn--outline-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

.btn--sm { padding: .68rem 1.25rem; font-size: .9rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.textlink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 600;
  color: var(--navy-700);
}
.textlink svg { width: 17px; height: 17px; transition: transform .22s var(--ease); }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- 6. Header / nav --------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 26px rgba(6, 21, 57, .09); background: rgba(255, 255, 255, .96); }

.topbar {
  background: linear-gradient(100deg, var(--navy-900), var(--navy-800) 70%, var(--navy-700));
  color: rgba(255, 255, 255, .82);
  font-size: .84rem;
}
.topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 40px; flex-wrap: wrap;
}
.topbar a { display: inline-flex; align-items: center; gap: .45rem; transition: color .2s var(--ease); }
.topbar a:hover { color: var(--gold-400); }
.topbar svg { width: 15px; height: 15px; flex: none; color: var(--gold-400); }
.topbar__group { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar__tag { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .8rem; flex: none; }
/* The logo may be square (emblem) or wide (wordmark) — fix the height and let
   the width follow, so neither shape is stretched or cropped. */
.brand__mark {
  height: 56px; width: auto; max-width: 168px; flex: none;
  object-fit: contain; object-position: left center;
  filter: drop-shadow(0 3px 8px rgba(6, 21, 57, .18));
}
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.13rem; letter-spacing: -.02em; color: var(--navy-900);
}
.brand__sub {
  font-size: .66rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute);
}

.nav__menu { display: flex; align-items: center; gap: .3rem; }
.nav__link {
  position: relative;
  display: block; padding: .6rem .92rem; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 500; font-size: .96rem;
  color: var(--ink-soft);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: var(--navy-800); background: var(--surface-alt); }
.nav__link.is-active { color: var(--navy-800); font-weight: 600; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: .18rem;
  width: 20px; height: 3px; border-radius: 3px; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--gold-500), var(--red-500));
}

.nav__cta { display: flex; align-items: center; gap: .6rem; flex: none; }

.nav__toggle {
  display: none; place-items: center;
  width: 46px; height: 46px; flex: none;
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
}
.nav__toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--navy-800); position: relative;
  transition: background-color .2s var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  border-radius: 2px; background: var(--navy-800);
  transition: transform .28s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7. Media wrappers (photo + designed fallback) ---------------- */
.media {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700) 55%, var(--cyan-500));
  isolation: isolate;
}
.media::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, .22), transparent 42%),
    repeating-linear-gradient(125deg, rgba(255, 255, 255, .10) 0 2px, transparent 2px 22px);
}
.media > img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--ease);
}
.media--swim   { background: linear-gradient(150deg, #063a6b, #0a72a8 48%, #23c3dd); }
.media--shoot  { background: linear-gradient(150deg, #1d1200, #4a3208 48%, #c98a08); }
.media--cricket{ background: linear-gradient(150deg, #062c17, #12742F 48%, #4fbc63); }
.media--turf   { background: linear-gradient(150deg, #04241b, #0b6b4d 48%, #2fbf8f); }
.media--navy   { background: linear-gradient(150deg, var(--navy-900), var(--navy-700) 60%, var(--navy-600)); }

.media[data-ratio="4/3"] { aspect-ratio: 4 / 3; }
.media[data-ratio="3/2"] { aspect-ratio: 3 / 2; }
.media[data-ratio="1/1"] { aspect-ratio: 1 / 1; }
.media[data-ratio="16/9"]{ aspect-ratio: 16 / 9; }

/* Icon shown only when the photo fails to load */
.media__fallback {
  position: absolute; inset: 0; z-index: 1;
  display: none; place-items: center;
  color: rgba(255, 255, 255, .5);
}
.media__fallback svg { width: 30%; max-width: 120px; height: auto; }
.media.is-fallback .media__fallback { display: grid; }

/* ---------- 8. Hero ------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy-900) 0%, #08265f 45%, #0b3a86 100%);
  color: rgba(255, 255, 255, .82);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 560px at 78% 12%, rgba(0, 169, 206, .34), transparent 60%),
    radial-gradient(760px 520px at 8% 92%, rgba(243, 180, 28, .20), transparent 58%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .30;
  background-image: repeating-linear-gradient(118deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 30px);
}
.hero > .wrap { position: relative; z-index: 2; }

.hero__grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1.08fr .92fr; align-items: center;
}
.hero h1 { color: #fff; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--gold-400), var(--gold-500) 45%, var(--cyan-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  margin-top: 1.4rem; max-width: 54ch;
  font-size: clamp(1.03rem, .96rem + .38vw, 1.2rem);
  color: rgba(255, 255, 255, .78);
}
.hero .btn-row { margin-top: 2.1rem; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .48rem 1.05rem .48rem .55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  font-size: .84rem; font-weight: 500; color: rgba(255, 255, 255, .9);
  margin-bottom: 1.6rem;
}
.hero__badge b {
  display: inline-flex; align-items: center;
  background: var(--gold-500); color: var(--navy-900);
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .22rem .68rem; border-radius: 999px;
}

/* Hero collage */
.hero__art { position: relative; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage .media { box-shadow: var(--sh-3); border: 1px solid rgba(255, 255, 255, .14); }
.collage .media:nth-child(1) { grid-row: span 2; aspect-ratio: 3 / 4.35; }
.collage .media:nth-child(2) { aspect-ratio: 4 / 3; }
.collage .media:nth-child(3) { aspect-ratio: 4 / 3; }

.hero__seal {
  position: absolute; left: -34px; bottom: -26px;
  width: 122px; height: 122px;
  background: #fff; border-radius: 50%;
  display: grid; place-items: center; padding: 9px;
  box-shadow: var(--sh-3);
}
.hero__seal img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

/* Hero stat strip */
.hero__stats {
  position: relative; z-index: 2;
  margin-top: clamp(2.75rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg); overflow: hidden;
}
.hero__stat { background: rgba(6, 21, 57, .42); padding: 1.45rem 1.35rem; backdrop-filter: blur(6px); }
.hero__stat dt { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.hero__stat dd {
  margin: .3rem 0 0;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.05rem);
  color: #fff; letter-spacing: -.02em;
}

/* ---------- 9. Cards ----------------------------------------------------- */
.grid { display: grid; gap: clamp(1.15rem, 2.2vw, 1.85rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: transparent; }
.card:hover .media > img { transform: scale(1.05); }
.card__body { padding: clamp(1.35rem, 2.4vw, 1.8rem); display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card__body > .textlink { margin-top: auto; padding-top: .35rem; }
.card p { font-size: .97rem; }
.card .media { border-radius: 0; }

.card__tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .78rem; border-radius: 999px;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--surface-tint); color: var(--navy-700);
}
.card__tag--gold  { background: rgba(243, 180, 28, .16); color: #8A5A05; }
.card__tag--green { background: rgba(30, 156, 62, .14); color: var(--green-600); }
.card__tag--cyan  { background: rgba(0, 169, 206, .14); color: #056A83; }
.card__tag--red   { background: rgba(226, 49, 39, .12); color: #A81F17; }

/* Facility card with floating label */
.fcard { position: relative; }
.fcard .media { aspect-ratio: 4 / 3; }
.fcard__ribbon {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .9rem; border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--navy-800);
  box-shadow: var(--sh-1);
}
.fcard__ribbon i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-500); }

/* Icon feature card */
.icard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.6vw, 2rem);
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.icard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.icard__icon {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
  box-shadow: 0 8px 20px rgba(10, 33, 104, .22);
}
.icard__icon svg { width: 26px; height: 26px; }
.icard__icon--gold  { background: linear-gradient(140deg, var(--gold-600), var(--gold-400)); color: var(--navy-900); box-shadow: 0 8px 20px rgba(201, 138, 8, .28); }
.icard__icon--green { background: linear-gradient(140deg, var(--green-600), var(--green-500)); color: #fff; box-shadow: 0 8px 20px rgba(18, 116, 47, .26); }
.icard__icon--cyan  { background: linear-gradient(140deg, #056A83, var(--cyan-400)); color: #fff; box-shadow: 0 8px 20px rgba(0, 169, 206, .28); }
.icard__icon--red   { background: linear-gradient(140deg, #A81F17, #F0584D); color: #fff; box-shadow: 0 8px 20px rgba(226, 49, 39, .26); }
.icard p { font-size: .96rem; }

.section--dark .icard {
  background: rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .13);
  backdrop-filter: blur(6px);
}
.section--dark .icard:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .22); }
.section--dark .icard p { color: rgba(255, 255, 255, .74); }

/* ---------- 10. Split feature block ------------------------------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.25rem, 5vw, 4.5rem); align-items: center;
}
.split--flip .split__media { order: 2; }
.split__media .media { box-shadow: var(--sh-2); }
.split h2 + p, .split h3 + p { margin-top: 1.1rem; }
.split .btn-row { margin-top: 1.9rem; }

.ticks { display: grid; gap: .85rem; margin-top: 1.6rem; }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; font-size: .99rem; }
.ticks svg { width: 21px; height: 21px; flex: none; margin-top: .22rem; color: var(--green-500); }
.section--dark .ticks li { color: rgba(255, 255, 255, .78); }
.section--dark .ticks svg { color: var(--gold-400); }

/* Stacked media pair used on facility pages */
.media-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.media-stack .media:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.media-stack .media:not(:first-child) { aspect-ratio: 4 / 3; }

/* ---------- 11. Spec list ------------------------------------------------ */
.specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  margin-top: 1.9rem;
}
.specs > div { background: var(--surface); padding: 1.15rem 1.3rem; }
.specs dt { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.specs dd { margin: .35rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--navy-900); }

/* ---------- 12. Tables --------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--sh-1);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .96rem; }
caption { text-align: left; padding: 1.1rem 1.3rem .35rem; font-weight: 600; color: var(--navy-900); font-family: var(--font-display); }
thead th {
  background: var(--navy-900); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .09em; text-transform: uppercase;
  text-align: left; padding: .95rem 1.3rem; white-space: nowrap;
}
tbody td, tbody th { padding: .95rem 1.3rem; border-top: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
tbody th { font-weight: 600; color: var(--navy-900); white-space: nowrap; }
tbody tr:nth-child(even) { background: #FAFBFE; }
td .pill { font-weight: 600; }

.pill {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px;
  font-size: .8rem; background: var(--surface-tint); color: var(--navy-700);
}
.pill--green { background: rgba(30, 156, 62, .14); color: var(--green-600); }
.pill--gold  { background: rgba(243, 180, 28, .18); color: #8A5A05; }

.note { margin-top: .95rem; font-size: .88rem; color: var(--ink-mute); }

/* ---------- 13. Steps ---------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.35rem; }
.steps li {
  counter-increment: step;
  position: relative; padding-left: 4.1rem;
  min-height: 3rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 3rem; height: 3rem; border-radius: 14px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
}
.steps h4 { margin-bottom: .3rem; }
.steps p { font-size: .96rem; }
.section--dark .steps li::before { background: linear-gradient(140deg, var(--gold-500), var(--gold-400)); color: var(--navy-900); }
.section--dark .steps p { color: rgba(255, 255, 255, .74); }

/* ---------- 14. Testimonials -------------------------------------------- */
.quote {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 2.6vw, 2rem);
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.quote__stars { display: flex; gap: .18rem; color: var(--gold-500); }
.quote__stars svg { width: 17px; height: 17px; }
.quote blockquote { font-size: 1.01rem; color: var(--ink-soft); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; }
.quote__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-700), var(--cyan-500));
  color: #fff; font-family: var(--font-display); font-weight: 700;
}
.quote__who strong { display: block; color: var(--navy-900); font-family: var(--font-display); font-size: .98rem; }
.quote__who span { font-size: .85rem; color: var(--ink-mute); }

/* ---------- 15. Gallery -------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .media { aspect-ratio: 1 / 1; cursor: zoom-in; }
.gallery .media:nth-child(1),
.gallery .media:nth-child(6) { grid-column: span 2; grid-row: span 2; }
.gallery .media > img:hover { transform: scale(1.06); }

/* ---------- 16. Coaches -------------------------------------------------- */
.coach { text-align: center; }
.coach .media { aspect-ratio: 1 / 1; border-radius: 50%; width: 148px; margin: 0 auto 1.15rem; }
.coach h4 { margin-bottom: .18rem; }
.coach__role { font-size: .85rem; font-weight: 600; color: var(--navy-700); letter-spacing: .04em; margin-bottom: .7rem; }
.coach p { font-size: .93rem; }

/* ---------- 17. Contact -------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.infolist { display: grid; gap: 1.5rem; }
.infolist li { display: flex; gap: 1rem; align-items: flex-start; }
.infolist__icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-tint); color: var(--navy-700);
}
.section--dark .infolist__icon { background: rgba(255, 255, 255, .1); color: var(--gold-400); }
.infolist__icon svg { width: 21px; height: 21px; }
.infolist h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .28rem; font-family: var(--font-body); font-weight: 700; }
.section--dark .infolist h4 { color: rgba(255, 255, 255, .55); }
.infolist p, .infolist a { font-size: 1.01rem; color: var(--ink); }
.section--dark .infolist p, .section--dark .infolist a { color: #fff; }
.infolist a:hover { color: var(--navy-600); }
.section--dark .infolist a:hover { color: var(--gold-400); }

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--sh-2);
}
.field { display: grid; gap: .42rem; margin-bottom: 1.15rem; }
.field label { font-size: .87rem; font-weight: 600; color: var(--navy-900); }
.field label .req { color: var(--red-500); }
.field input, .field select, .field textarea {
  width: 100%; padding: .82rem 1rem;
  background: var(--surface-alt);
  border: 1.5px solid var(--line); border-radius: 11px;
  font-size: .97rem; color: var(--ink);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 4px rgba(27, 79, 192, .12);
}
.field input::placeholder, .field textarea::placeholder { color: #A6AFBF; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-note { margin-top: 1rem; font-size: .85rem; color: var(--ink-mute); text-align: center; }
.form-status { margin-top: 1rem; padding: .85rem 1.1rem; border-radius: 11px; font-size: .92rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(30, 156, 62, .1); color: var(--green-600); border: 1px solid rgba(30, 156, 62, .25); }

.map-frame {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-1);
  aspect-ratio: 16 / 9; background: var(--surface-alt);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 18. FAQ ------------------------------------------------------ */
.faq { display: grid; gap: .85rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: rgba(27, 79, 192, .3); box-shadow: var(--sh-1); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.03rem; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 2.5px solid var(--navy-700); border-bottom: 2.5px solid var(--navy-700);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .faq__body { padding: 0 1.4rem 1.3rem; font-size: .97rem; }

/* ---------- 19. CTA banner ---------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.4rem, 5vw, 4rem);
  background: linear-gradient(140deg, var(--navy-900), #0b3070 55%, var(--navy-700));
  color: rgba(255, 255, 255, .8);
  text-align: center;
  box-shadow: var(--sh-3);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(620px 320px at 84% 8%, rgba(0, 169, 206, .34), transparent 62%),
    radial-gradient(520px 300px at 10% 100%, rgba(243, 180, 28, .26), transparent 60%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { margin: 1.1rem auto 0; max-width: 60ch; color: rgba(255, 255, 255, .78); }
.cta .btn-row { margin-top: 2rem; justify-content: center; }

/* ---------- 20. Page banner (inner pages) ------------------------------- */
.pagehead {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-900), #08265f 55%, #0b3a86);
  color: rgba(255, 255, 255, .78);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.pagehead::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 400px at 82% 10%, rgba(0, 169, 206, .3), transparent 60%),
    radial-gradient(600px 380px at 6% 96%, rgba(243, 180, 28, .18), transparent 58%);
}
.pagehead > .wrap { position: relative; z-index: 1; }
.pagehead h1 { color: #fff; max-width: 18ch; }
.pagehead p { margin-top: 1.15rem; max-width: 60ch; color: rgba(255, 255, 255, .76); font-size: 1.06rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .86rem; margin-bottom: 1.1rem; color: rgba(255, 255, 255, .58); }
.crumbs a:hover { color: var(--gold-400); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .45rem; opacity: .5; }
.crumbs [aria-current] { color: var(--gold-400); }

/* Anchor chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.05rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  font-size: .9rem; font-weight: 500; color: #fff;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.chip:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }

/* ---------- 21. Footer --------------------------------------------------- */
.site-footer {
  background: linear-gradient(165deg, var(--navy-900), #071a45);
  color: rgba(255, 255, 255, .66);
  padding-top: clamp(3rem, 6vw, 4.75rem);
  font-size: .95rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.3fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  padding-bottom: 3rem;
}
.footer__brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.15rem; }
.footer__brand img { height: 58px; width: auto; max-width: 170px; object-fit: contain; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: var(--gold-400); }
.site-footer h4 {
  color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.2rem; font-family: var(--font-body); font-weight: 700;
}
.footer__links { display: grid; gap: .7rem; }
.footer__links a { transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer__links a:hover { color: var(--gold-400); padding-left: 5px; }
.footer__contact { display: grid; gap: .95rem; }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: .22rem; color: var(--gold-400); }
.footer__contact a:hover { color: var(--gold-400); }

.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  transition: background-color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); border-color: transparent; }
.socials svg { width: 18px; height: 18px; }

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: .87rem; color: rgba(255, 255, 255, .5);
}
.footer__bar nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__bar a:hover { color: var(--gold-400); }

/* ---------- 22. Floating call button ------------------------------------ */
.callfab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  box-shadow: 0 12px 32px rgba(18, 116, 47, .42);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.callfab:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(18, 116, 47, .5); }
.callfab svg { width: 19px; height: 19px; }

/* ---------- 23. Scroll reveal ------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 24. Lightbox ------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  padding: 4vmin;
  background: rgba(6, 21, 57, .92);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--r-md); box-shadow: var(--sh-3); }
.lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .22); }

/* ---------- 25. Responsive ---------------------------------------------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 620px; }
  .hero__seal { left: auto; right: -14px; bottom: -22px; width: 104px; height: 104px; }
}

/* Eight nav items need the drawer sooner than the layout needs to stack. */
@media (max-width: 1080px) {
  :root { --header-h: 72px; }

  .nav__toggle { display: grid; }
  .nav__cta .btn { display: none; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    padding: .75rem var(--gutter) 1.75rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: .95rem .25rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1.05rem; }
  .nav__link.is-active::after { left: .25rem; bottom: .55rem; transform: none; }
  .nav__menu .btn { margin-top: 1.15rem; }

}

@media (max-width: 900px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .media:nth-child(6) { grid-column: span 1; grid-row: span 1; }
  .topbar__in { justify-content: center; text-align: center; }
  .topbar__group { gap: 1rem; justify-content: center; }
}

@media (max-width: 620px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .collage { grid-template-columns: 1fr; }
  .collage .media:nth-child(1) { grid-row: auto; aspect-ratio: 4 / 3; }
  .collage .media:nth-child(3) { display: none; }
  .media-stack { grid-template-columns: 1fr; }
  .media-stack .media:first-child { grid-column: auto; }
  .brand__mark { height: 44px; width: auto; max-width: 118px; }
  .brand__name { font-size: 1rem; }
  .brand__sub { font-size: .6rem; letter-spacing: .12em; }
  .hero__seal { display: none; }
  .btn { padding: .85rem 1.4rem; }
  .topbar__tag { display: none; }
  .callfab { padding: 1rem; }
}

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

/* ---------- 26. Print ---------------------------------------------------- */
@media print {
  .site-header, .site-footer, .callfab, .hero__art, .lightbox { display: none !important; }
  body { color: #000; }
  .section { padding-block: 1rem; }
}

/* =========================================================================
   27. Scroll progress bar
   ========================================================================= */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-500), var(--red-500) 45%, var(--cyan-500));
  will-change: transform;
}

/* =========================================================================
   28. Government / accreditation badges
   ========================================================================= */
.govbar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.govbar__item {
  background: var(--surface); padding: 1.4rem 1.4rem;
  display: flex; gap: .9rem; align-items: flex-start;
}
.govbar__ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
}
.govbar__ico svg { width: 20px; height: 20px; }
.govbar strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: .97rem; color: var(--navy-900); line-height: 1.35;
}
.govbar__item div span { display: block; font-size: .84rem; color: var(--ink-mute); margin-top: .18rem; }

.section--dark .govbar { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.section--dark .govbar__item { background: rgba(6, 21, 57, .5); }
.section--dark .govbar strong { color: #fff; }
.section--dark .govbar__item div span { color: rgba(255,255,255,.6); }

/* =========================================================================
   29. Sports marquee — the full discipline list, always in motion
   ========================================================================= */
.marquee {
  position: relative; overflow: hidden;
  padding-block: 1.15rem;
  border-block: 1px solid rgba(255, 255, 255, .14);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: inline-flex; align-items: center; gap: .85rem;
  padding-inline: 1.35rem;
  font-family: var(--font-display); font-weight: 500; font-size: .97rem;
  color: rgba(255, 255, 255, .78); white-space: nowrap;
}
.marquee__item::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-500); opacity: .85;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================================
   30. Service cards (construction, affiliation, certification…)
   ========================================================================= */
.svc {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 2.8vw, 2.15rem);
  display: flex; flex-direction: column; gap: .85rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.svc::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--red-500));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: transparent; }
.svc:hover::before { transform: scaleX(1); }
.svc__num {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .16em; color: var(--gold-600);
}
.svc h3 { margin-top: -.2rem; }
.svc p { font-size: .97rem; }
.svc .ticks { margin-top: .3rem; }
.svc .ticks li { font-size: .93rem; }
.svc .textlink { margin-top: auto; padding-top: .7rem; }

/* =========================================================================
   31. Process rail — how we work
   ========================================================================= */
.rail { position: relative; display: grid; gap: 0; counter-reset: rail; }
.rail::before {
  content: ""; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--gold-500), rgba(255,255,255,.15));
  opacity: .5;
}
.rail li {
  counter-increment: rail;
  position: relative; padding: 0 0 1.9rem 4.1rem;
}
.rail li:last-child { padding-bottom: 0; }
.rail li::before {
  content: counter(rail);
  position: absolute; left: 0; top: -2px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: linear-gradient(140deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  box-shadow: 0 0 0 6px rgba(6, 21, 57, .55);
}
.rail h4 { margin-bottom: .25rem; }
.rail p { font-size: .95rem; }
.section--dark .rail p { color: rgba(255, 255, 255, .72); }

/* =========================================================================
   32. Leadership / founder
   ========================================================================= */
.leader { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(1.75rem, 4vw, 3.25rem); align-items: center; }
.leader__photo { position: relative; }
.leader__photo .media { position: relative; z-index: 1; aspect-ratio: 4 / 5; box-shadow: var(--sh-3); }
.leader__photo::after {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 62%; height: 62%; z-index: 0; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--gold-500), transparent 70%);
  opacity: .55;
}
.leader__role {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: .55rem;
}
.leader blockquote {
  margin-top: 1.3rem; padding-left: 1.25rem;
  border-left: 3px solid var(--gold-500);
  font-size: 1.03rem; font-style: italic; color: var(--ink-soft);
}
.section--dark .leader blockquote { color: rgba(255,255,255,.8); }
.leader__meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }

.tagpill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .95rem; border-radius: 999px;
  background: var(--surface-tint); color: var(--navy-700);
  font-size: .85rem; font-weight: 500;
}
.section--dark .tagpill { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }

/* =========================================================================
   33. Photo slots awaiting the academy's own images
   ========================================================================= */
.media--slot .media__fallback { display: grid; }
.media__note {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  z-index: 2; padding: .3rem .8rem; border-radius: 999px;
  background: rgba(6, 21, 57, .55); color: rgba(255, 255, 255, .82);
  font-size: .7rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap; pointer-events: none;
}
.media > img:not([hidden]) ~ .media__note { display: none; }
.media.is-fallback .media__note, .media--slot .media__note { display: block; }

/* =========================================================================
   34. Richer scroll reveals
   ========================================================================= */
.reveal-l { opacity: 0; transform: translateX(-26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-r { opacity: 0; transform: translateX(26px);  transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-s { opacity: 0; transform: scale(.955);       transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-l.is-in, .reveal-r.is-in, .reveal-s.is-in { opacity: 1; transform: none; }

/* Hero entrance */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__in > * { animation: riseIn .85s var(--ease) both; }
.hero__in > *:nth-child(1) { animation-delay: .05s; }
.hero__in > *:nth-child(2) { animation-delay: .16s; }
.hero__in > *:nth-child(3) { animation-delay: .27s; }
.hero__in > *:nth-child(4) { animation-delay: .38s; }
.hero__in > *:nth-child(5) { animation-delay: .49s; }

/* Hero background photo */
.hero--photo { padding-block: clamp(4.5rem, 9vw, 8rem); }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* The photo carries full opacity; the scrim alone controls contrast. At .3
   opacity under a 94% scrim only about 2% of the picture came through, which
   made a hero photo swap invisible. */
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  /* Dense behind the headline on the left, opening up over the photo right. */
  background:
    linear-gradient(100deg,
      rgba(6, 21, 57, .96) 0%,
      rgba(6, 21, 57, .91) 34%,
      rgba(6, 21, 57, .74) 66%,
      rgba(8, 28, 80, .62) 100%);
}

/* One column on phones means the copy sits over the whole width, so the scrim
   has to run vertically instead. */
@media (max-width: 900px) {
  .hero__bg::after {
    background:
      linear-gradient(180deg,
        rgba(6, 21, 57, .94) 0%,
        rgba(6, 21, 57, .91) 45%,
        rgba(8, 28, 80, .88) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-l, .reveal-r, .reveal-s { opacity: 1; transform: none; }
  .hero__in > * { animation: none; }
  .marquee__track { animation: none; }
  .scroll-progress { display: none; }
}

@media (max-width: 900px) {
  .leader { grid-template-columns: 1fr; }
  .leader__photo { max-width: 300px; }
}

/* ---------- 35. Misc additions ------------------------------------------ */
.hero__note {
  margin-top: 1.6rem; display: flex; align-items: flex-start; gap: .6rem;
  flex-wrap: wrap; max-width: 46ch;
  font-size: .9rem; color: rgba(255, 255, 255, .68);
}
.hero__note svg { width: 17px; height: 17px; flex: none; margin-top: .28rem; color: var(--gold-400); }
.hero__note em { color: var(--gold-400); font-style: italic; }

/* Seven nav items need a little more room before the mobile breakpoint. */
@media (max-width: 1180px) and (min-width: 1081px) {
  .nav__link { padding: .6rem .62rem; font-size: .91rem; }
  .brand__name { font-size: 1.04rem; }
  .brand__mark { height: 48px; }
  .topbar__tag { display: none; }
}

/* Rail on a light background — the ring must match the surface behind it. */
.rail--light::before { background: linear-gradient(180deg, var(--gold-500), rgba(10,33,104,.18)); opacity: .6; }
.rail--light li::before { box-shadow: 0 0 0 6px var(--surface-tint); }
.rail--light h4 { color: var(--navy-900); }
.rail--light p { color: var(--ink-soft); }

/* =========================================================================
   36. Typing headline
   ========================================================================= */
.typer {
  display: inline-block; white-space: nowrap;
  /* Reserve the width of the longest phrase so the headline does not rewrap
     on every keystroke. Released on small screens, where a fixed width would
     push the line out of the viewport. */
  min-width: 7.4em;
}
@media (max-width: 900px) {
  /* A fixed width would overflow a phone, so reserve the tallest line count
     instead — the headline then never pushes the content below it around. */
  .typer { min-width: 0; }
  .hero h1 { min-height: 3.5em; }
}
.typer__caret {
  display: inline-block;
  width: 4px; height: .9em;
  margin-left: .08em;
  vertical-align: -.1em;
  border-radius: 2px;
  background: var(--gold-400);
  box-shadow: 0 0 12px rgba(255, 215, 94, .55);
  animation: caret 1s steps(1, end) infinite;
}
@keyframes caret { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }

/* =========================================================================
   37. Inline icon sizing
   Any icon sitting inline with text needs an explicit box, otherwise the
   SVG falls back to its intrinsic 300px and dwarfs the label.
   ========================================================================= */
.tagpill svg      { width: 16px; height: 16px; flex: none; }
.leader__role svg { width: 15px; height: 15px; flex: none; }
.marquee__item svg{ width: 19px; height: 19px; flex: none; color: var(--gold-400); }
.govbar__ico svg  { width: 22px; height: 22px; stroke-width: 2; }
.svc > svg, .icard > svg { width: 24px; height: 24px; }

/* A little more presence for the accreditation row */
.govbar__item { padding: 1.5rem 1.45rem; }
.govbar__ico  { width: 44px; height: 44px; border-radius: 12px; }

/* Four sports only — space them out so the strip does not read as a list */
.marquee__item { padding-inline: 2rem; font-size: 1.02rem; font-weight: 600; }
.marquee__item::after { width: 6px; height: 6px; margin-left: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  .typer__caret { animation: none; opacity: 1; }
}

/* =========================================================================
   38. Larger logo lockup
   ========================================================================= */
:root { --header-h: 94px; }
.brand { gap: .95rem; }
.brand__mark { height: 68px; max-width: 250px; }
.brand__name { font-size: 1.2rem; }
.footer__brand img { height: 70px; max-width: 250px; }
.hero__seal { width: 136px; height: 136px; }

/* =========================================================================
   39. Phone numbers — never break a number across two lines
   ========================================================================= */
.numlist { display: grid; gap: .18rem; }
.numlist a, .numlist li { white-space: nowrap; }
.numlist a { font-variant-numeric: tabular-nums; }
.numlist--footer { display: grid; gap: .2rem; }
.infolist .numlist a { font-size: 1.01rem; color: var(--ink); }
.infolist .numlist a:hover { color: var(--navy-600); }

/* =========================================================================
   40. Eight nav items — tighten before the mobile breakpoint
   ========================================================================= */
@media (max-width: 1290px) and (min-width: 1081px) {
  .nav__link { padding: .6rem .58rem; font-size: .9rem; }
  .brand__mark { height: 56px; max-width: 190px; }
  .brand__name { font-size: 1.02rem; }
  .brand__sub { font-size: .58rem; }
  .topbar__tag { display: none; }
}

@media (max-width: 1080px) {
  :root { --header-h: 80px; }
  .brand__mark { height: 56px; max-width: 190px; }
}
@media (max-width: 620px) {
  .brand__mark { height: 48px; max-width: 140px; }
}

/* =========================================================================
   41. Nav: the menu carries its own "Book a Trial" for the mobile drawer.
   On desktop the .nav__cta button is the visible one, so hide the duplicate
   rather than paying for it in horizontal space.
   ========================================================================= */
@media (min-width: 1081px) {
  .nav__menu > li:last-child { display: none; }
}

/* =========================================================================
   42. Sideways reveals slide in from off-canvas, which overflows a narrow
   viewport before they animate. Move vertically on small screens instead.
   ========================================================================= */
@media (max-width: 900px) {
  .reveal-l, .reveal-r { transform: translateY(22px); }
}

/* =========================================================================
   43. Nav sizing for eight items
   The 1200px content column is right for prose but too tight for a brand
   lockup + eight links + a CTA. Give the header its own wider container
   and trim the link padding; the page body keeps its 1200px measure.
   ========================================================================= */
@media (min-width: 1081px) {
  .site-header .nav { max-width: 1320px; margin-inline: auto; }
  .site-header > .wrap { width: 100%; max-width: none; }
  .nav__link { padding: .6rem .72rem; }
  .nav__menu { gap: .15rem; }
}

/* Between the drawer breakpoint and ~1180px the wordmark is what does not fit;
   drop it and let the emblem carry the brand. */
@media (max-width: 1180px) and (min-width: 1081px) {
  .brand__text { display: none; }
}

/* =========================================================================
   44. Accreditation icons — set the stroke explicitly
   These glyphs are drawn with stroke="currentColor", so they inherit whatever
   `color` resolves to and are vulnerable to any ancestor rule that happens to
   match. Painting `stroke` directly from CSS beats the presentation attribute
   and removes the dependency on inheritance entirely.
   ========================================================================= */
.govbar__ico { color: var(--gold-400); }
.govbar__ico svg {
  width: 23px; height: 23px;
  stroke: var(--gold-400);
  stroke-width: 2;
  fill: none;
}
.section--dark .govbar__ico svg { stroke: var(--gold-400); }

/* =========================================================================
   45. Brand lockup — drop the sub-line slightly clear of the name
   ========================================================================= */
.brand__text { line-height: 1.15; }
.brand__sub { margin-top: .34rem; }

/* =========================================================================
   46. Scrolling performance
   ========================================================================= */

/* A blurred backdrop on a sticky header has to re-composite a blurred strip
   on every scrolled frame. It is cheap on a desktop GPU and expensive on a
   phone, so keep it only where there is a real pointer and enough room. */
@media (max-width: 900px), (hover: none) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, .97);
  }
  .hero__badge { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero__stat { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .section--dark .icard { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Promote the always-running marquee to its own layer so it never repaints
   the section behind it. */
.marquee__track { will-change: transform; }
.marquee { contain: paint; }

/* Photographs are decoded off the main thread and their boxes are reserved by
   width/height, so a late-arriving image cannot reflow the page under you. */
.media > img { content-visibility: auto; }

/* Skip rendering work for sections far below the fold. `auto` lets the browser
   remember each section's real height after first paint, so the scrollbar does
   not jump the way a fixed estimate would. */
@media (prefers-reduced-motion: no-preference) {
  main > section:nth-child(n + 5) {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }
}

/* =========================================================================
   47. Map actions
   ========================================================================= */
.map-actions { justify-content: center; margin-top: 1.6rem; }

/* =========================================================================
   48. WhatsApp button — pulsing rings
   The rings start on the button's edge and travel outward, so they never
   cover the label. Both animate transform/opacity only, which the compositor
   handles without repainting the page underneath while scrolling.
   ========================================================================= */
.callfab { isolation: isolate; }
.callfab__icon { display: grid !important; place-items: center; flex: none; }
.callfab__label { display: inline; }

.callfab::before,
.callfab::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .55);
  pointer-events: none;
  opacity: 0;
  animation: fabRing 2.8s cubic-bezier(.22, .61, .36, 1) infinite;
}
.callfab::after { animation-delay: 1.1s; }

@keyframes fabRing {
  0%   { transform: scale(1);    opacity: .7; }
  65%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* A slow nudge so the button reads as live without being distracting. */
.callfab__icon { animation: fabNudge 3.4s ease-in-out infinite; }
@keyframes fabNudge {
  0%, 78%, 100% { transform: rotate(0) scale(1); }
  84%           { transform: rotate(-12deg) scale(1.08); }
  90%           { transform: rotate(10deg)  scale(1.08); }
  95%           { transform: rotate(-4deg)  scale(1.03); }
}

.callfab:hover::before, .callfab:hover::after { animation-play-state: paused; }
.callfab:hover .callfab__icon { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .callfab::before, .callfab::after, .callfab__icon { animation: none; }
}

@media (max-width: 620px) {
  .callfab__label { display: none; }
}
