/* ==========================================================================
   LIFESAVING MUMBAI — VISUAL SYSTEM 2026
   Navy for trust, gold for the badge.
   Built to the brand moodboard by Sense of Social.

   Contents
     01  Tokens
     02  Reset & base
     03  Typography
     04  Layout — container, bands, grid
     05  The lifeline (signature motif)
     06  Buttons & links
     07  Header & navigation
     08  Hero
     09  Cards
     10  Stats — numbers as proof
     11  Chain of survival
     12  Quotes
     13  Client & affiliation walls
     14  Gallery + lightbox
     15  Prose (course & article pages)
     16  Forms
     17  Page head / breadcrumbs
     18  Footer
     19  Floating actions
     20  Motion & reveal
   ========================================================================== */


/* ==========================================================================
   01  TOKENS
   ========================================================================== */

:root {
  /* Palette — exact moodboard values */
  --navy:        #0C1E30;  /* Deep Navy      · base            */
  --navy-panel:  #12314F;  /* Tide Navy      · panels          */
  --gold:        #C79A3C;  /* Certified Gold · accent + CTA    */
  --chalk:       #F6F2E9;  /* Chalk White    · space           */
  --teal:        #2E7C86;  /* Tide Teal      · water + teach   */
  --mist:        #9FC9CF;  /* Sea Mist       · tints           */
  --signal:      #E1523D;  /* Rescue Signal  · urgency only    */
  --ink:         #16232E;  /* Slate Ink      · body text       */

  /* Derived */
  --navy-deep:   #081625;
  --gold-bright: #D8AC4E;
  --gold-soft:   rgba(199, 154, 60, .16);
  --gold-line:   rgba(199, 154, 60, .30);
  --chalk-dim:   #ECE6D9;
  --ink-soft:    #46586a;

  /* On-navy text */
  --on-navy:      #F6F2E9;
  --on-navy-soft: rgba(246, 242, 233, .72);
  --on-navy-faint:rgba(246, 242, 233, .48);
  --rule-navy:    rgba(246, 242, 233, .14);
  --rule-chalk:   rgba(22, 35, 46, .12);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-accent:  "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --t-h1:    clamp(2.25rem, 1.45rem + 3.4vw, 3.5rem);   /* 36 → 56 */
  --t-h2:    clamp(1.6rem,  1.25rem + 1.5vw, 2.1rem);   /* 26 → 34 */
  --t-h3:    clamp(1.15rem, 1.05rem + .45vw, 1.35rem);
  --t-body:  1.0625rem;
  --t-small: .9375rem;
  --t-label: .75rem;
  --lh-body: 1.62;

  /* Space */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --band-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* Shape */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-pill: 999px;
  --container: 1200px;
  --shadow: 0 18px 48px -24px rgba(8, 22, 37, .45);

  --ease: cubic-bezier(.22, .61, .36, 1);
}


/* ==========================================================================
   02  RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* `clip`, not `hidden`: hidden would make these scroll containers, which
   breaks position:sticky on the header. clip contains the closed off-canvas
   drawer without that side effect. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px;
  z-index: 999;
  background: var(--gold); color: var(--navy);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ==========================================================================
   03  TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.018em;
}

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

/* The moodboard headline pattern: Archivo ExtraBold with a Fraunces italic
   phrase carrying the emphasis. Use <em> for the phrase. */
h1 em, h2 em, h3 em, .accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--gold);
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
}
.eyebrow--teal { color: var(--teal); }
.band--navy .eyebrow--teal,
.band--deep .eyebrow--teal { color: var(--mist); }

.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); }

/* Gold underline — under every section headline. */
.h-rule { position: relative; padding-bottom: var(--sp-4); }
.h-rule::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 58px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.h-rule.is-centred::after { left: 50%; transform: translateX(-50%); }

.lede {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
}
.band--navy .lede,
.band--deep .lede,
.hero .lede { color: var(--on-navy-soft); }

.section-head { margin-bottom: var(--sp-7); max-width: 62ch; }
.section-head.is-centred { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: var(--sp-4); }
.section-head.is-centred .lede { margin-inline: auto; }


/* ==========================================================================
   04  LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container--wide { max-width: 1360px; }
.container--narrow { max-width: 780px; }

.band { padding-block: var(--band-y); position: relative; }
.band--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4rem); }
.band--flush-top { padding-top: 0; }

.band--navy  { background: var(--navy);       color: var(--on-navy); }
.band--deep  { background: var(--navy-deep);  color: var(--on-navy); }
.band--panel { background: var(--navy-panel); color: var(--on-navy); }
.band--chalk { background: var(--chalk);      color: var(--ink); }
.band--white { background: #fff;              color: var(--ink); }

.band--navy h1, .band--navy h2, .band--navy h3,
.band--deep h1, .band--deep h2, .band--deep h3,
.band--panel h1, .band--panel h2, .band--panel h3 { color: var(--on-navy); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.grid--aside { grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--split, .grid--aside { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.media {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: var(--navy-panel);
}
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media--tall img { aspect-ratio: 3 / 4; }
.media--wide img { aspect-ratio: 16 / 10; }


/* ==========================================================================
   05  THE LIFELINE — signature motif
   --------------------------------------------------------------------------
   One line, two readings. Calm water either side; the compression spike in
   the middle. "The calm in the emergency", drawn. The pulse animates at
   110 beats per minute — the rate you are actually taught in the room.
   ========================================================================== */

.lifeline {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(56px, 6vw, 82px);
}
.lifeline__bed,
.lifeline__ecg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.lifeline__wave  { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.lifeline__trace { fill: none; stroke: var(--gold); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; opacity: .3; }
.lifeline__sweep { fill: none; stroke: var(--gold); stroke-width: 2.5;  stroke-linecap: round; stroke-linejoin: round; }
.lifeline__dot   { fill: var(--gold); }

/* Divider use — quiet water, no beat. */
.waterline { line-height: 0; background: inherit; }
.waterline .lifeline { height: clamp(48px, 5vw, 70px); }
.waterline .lifeline__trace { opacity: .5; }

@media (prefers-reduced-motion: reduce) {
  /* Show the whole trace, still, rather than a moving highlight. */
  .lifeline--live .lifeline__trace { opacity: .85; }
  .lifeline--live .lifeline__sweep,
  .lifeline--live .lifeline__dot   { display: none; }
}

.lifeline-note {
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--t-label);
  font-family: var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-navy-faint);
}
.lifeline-note b { color: var(--gold); font-weight: 700; }


/* ==========================================================================
   06  BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  padding: .875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold  { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #d8ac4e; }

.btn--ghost { background: transparent; color: var(--on-navy); border-color: var(--rule-navy); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--ink   { background: var(--navy); color: var(--on-navy); }
.btn--ink:hover { background: var(--navy-panel); }

.btn--outline-ink { background: transparent; color: var(--ink); border-color: var(--rule-chalk); }
.btn--outline-ink:hover { border-color: var(--gold); color: var(--gold); }

.btn__arrow { transition: transform .22s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* Quiet text link with a gold rule that grows on hover. */
.link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--gold);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .28s var(--ease);
}
.link:hover { background-size: 100% 2px; }


/* ==========================================================================
   07  HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12, 30, 48, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-navy);
  color: var(--on-navy);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 12px 32px -20px rgba(0, 0, 0, .8); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
  min-height: 76px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 190px; height: auto; }
@media (max-width: 480px) { .brand img { width: 150px; } }

.nav { display: flex; align-items: center; gap: var(--sp-2); }
.nav__list { display: flex; align-items: center; gap: var(--sp-1); }
.nav__li { position: relative; }

.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--on-navy-soft);
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--on-navy); background: rgba(246, 242, 233, .06); }
.nav__li.is-current > .nav__link { color: var(--gold); }

.nav__caret { width: 10px; height: 10px; transition: transform .22s var(--ease); }
.nav__li:hover .nav__caret,
.nav__li:focus-within .nav__caret { transform: rotate(180deg); }

.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 268px;
  background: var(--navy-panel);
  border: 1px solid var(--rule-navy);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__li:hover > .nav__sub,
.nav__li:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }

.nav__sub a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: var(--t-small);
  color: var(--on-navy-soft);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__sub a:hover { color: var(--navy); background: var(--gold); }

.nav__cta { margin-left: var(--sp-3); white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--rule-navy);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--on-navy); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1220px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(360px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    border-left: 1px solid var(--rule-navy);
    padding: 96px var(--sp-5) var(--sp-6);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s var(--ease), visibility .32s;
    z-index: 70;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: var(--sp-4) var(--sp-2); font-size: 1.0625rem; border-radius: 0; border-bottom: 1px solid var(--rule-navy); justify-content: space-between; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: transparent;
    padding: 0 0 var(--sp-3) var(--sp-4);
    display: none;
  }
  .nav__li.is-expanded > .nav__sub { display: block; }
  .nav__li.is-expanded .nav__caret { transform: rotate(180deg); }
  .nav__cta { margin: var(--sp-5) 0 0; justify-content: center; }
}

.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(8, 22, 37, .6);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  z-index: 65;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }


/* ==========================================================================
   08  HERO
   ========================================================================== */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--on-navy);
  padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 82% 8%, rgba(46, 124, 134, .22), transparent 62%),
    radial-gradient(760px 420px at 4% 92%, rgba(199, 154, 60, .10), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__title { font-size: var(--t-h1); margin-bottom: var(--sp-5); }
.hero__lede { margin-bottom: var(--sp-6); }

.hero__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--gold-line);
}
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(12, 30, 48, .10) 0%, rgba(12, 30, 48, .62) 100%);
}

.hero__badge {
  position: absolute; left: var(--sp-5); bottom: var(--sp-5);
  z-index: 2;
  display: flex; align-items: center; gap: var(--sp-3);
  background: rgba(8, 22, 37, .82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-line);
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-2);
  font-size: var(--t-small);
  color: var(--on-navy);
}
.hero__badge-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
}

.hero__foot {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-top: 1px solid var(--rule-navy);
  padding-top: var(--sp-5);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); flex-wrap: wrap;
}

.proof-strip { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, .5rem + 2vw, 2.75rem); }
.proof-strip__item { display: flex; align-items: baseline; gap: var(--sp-2); }
.proof-strip__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: -.02em;
}
.proof-strip__l {
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-navy-faint);
}


/* ==========================================================================
   09  CARDS
   ========================================================================== */

.card {
  display: flex; flex-direction: column;
  background: var(--navy-panel);
  border: 1px solid var(--rule-navy);
  border-radius: var(--r-md);
  overflow: hidden;
  color: var(--on-navy);
  transition: border-color .28s var(--ease), transform .28s var(--ease);
}
.card:hover { border-color: var(--gold-line); transform: translateY(-4px); }

.band--chalk .card,
.band--white .card {
  background: #fff;
  border-color: var(--rule-chalk);
  color: var(--ink);
}
.band--chalk .card:hover,
.band--white .card:hover { border-color: var(--gold); }

.card__media { position: relative; overflow: hidden; }
.card__media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }

.card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; gap: var(--sp-3); }
.card__title { font-size: 1.1875rem; }
.card__text { font-size: var(--t-small); color: var(--on-navy-soft); margin: 0; }
.band--chalk .card__text, .band--white .card__text { color: var(--ink-soft); }
.card__foot { margin-top: auto; padding-top: var(--sp-4); }

/* Course facts — duration and validity, stated plainly. */
.card__facts {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin: 0;
}
.fact {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--gold);
}
.band--chalk .fact, .band--white .fact { color: #8a6a1f; }

/* Team */
.person { text-align: left; }
.person__media {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule-navy);
  background: var(--navy-panel);
  margin-bottom: var(--sp-4);
}
.person__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center; }
.person__name { font-size: 1.0625rem; }
.person__role {
  margin: 6px 0 0;
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}


/* ==========================================================================
   10  STATS — NUMBERS AS PROOF
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule-navy);
  border: 1px solid var(--rule-navy);
  border-radius: var(--r-md);
  overflow: hidden;
}
.band--chalk .stats, .band--white .stats { background: var(--rule-chalk); border-color: var(--rule-chalk); }

.stat {
  background: var(--navy);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) var(--sp-5);
  text-align: center;
}
.band--chalk .stat { background: var(--chalk); }
.band--white .stat { background: #fff; }
.band--panel .stat { background: var(--navy-panel); }
.band--deep .stat  { background: var(--navy-deep); }

.stat__n {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--gold);
}
.stat__n--teal { color: var(--teal); }
.band--navy .stat__n--teal, .band--deep .stat__n--teal, .band--panel .stat__n--teal { color: var(--mist); }

.stat__l {
  display: block;
  margin-top: var(--sp-3);
  font-size: var(--t-label);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-navy-faint);
}
.band--chalk .stat__l, .band--white .stat__l { color: var(--ink-soft); }

@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }


/* ==========================================================================
   11  CHAIN OF SURVIVAL
   --------------------------------------------------------------------------
   Numbered because this genuinely is a sequence — the order is the lesson.
   ========================================================================== */

.chain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
@media (max-width: 1000px) { .chain { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .chain { grid-template-columns: 1fr; } }

.chain__step {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5) 0;
  border-top: 2px solid var(--rule-chalk);
}
.band--navy .chain__step, .band--deep .chain__step { border-top-color: var(--rule-navy); }
.chain__step:first-child { border-top-color: var(--gold); }

.chain__n {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8125rem;
  letter-spacing: .2em;
  color: var(--teal);
  margin-bottom: var(--sp-4);
}
.band--navy .chain__n, .band--deep .chain__n { color: var(--mist); }

.chain__title { font-size: 1.0625rem; margin-bottom: var(--sp-3); }
.chain__text { font-size: var(--t-small); color: var(--ink-soft); margin: 0; }
.band--navy .chain__text, .band--deep .chain__text { color: var(--on-navy-soft); }


/* ==========================================================================
   12  QUOTES
   ========================================================================== */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-5);
}

.quote {
  display: flex; flex-direction: column;
  padding: var(--sp-6);
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--rule-chalk);
}
.band--navy .quote, .band--deep .quote {
  background: var(--navy-panel);
  border-color: var(--rule-navy);
}

.quote__stars { display: flex; gap: 3px; margin-bottom: var(--sp-4); color: var(--gold); }
.quote__stars svg { width: 15px; height: 15px; }

.quote__text {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 var(--sp-5);
}
.band--navy .quote__text, .band--deep .quote__text { color: var(--on-navy); }

.quote__by { margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--rule-chalk); }
.band--navy .quote__by, .band--deep .quote__by { border-top-color: var(--rule-navy); }
.quote__name { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; }
.quote__meta { font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 4px 0 0; }


/* ==========================================================================
   13  CLIENT & AFFILIATION WALLS
   ========================================================================== */

.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 1px;
  background: var(--rule-chalk);
  border: 1px solid var(--rule-chalk);
  border-radius: var(--r-md);
  overflow: hidden;
}
.band--navy .logo-wall, .band--deep .logo-wall { background: var(--rule-navy); border-color: var(--rule-navy); }

.logo-wall__cell {
  display: grid; place-items: center;
  background: #fff;
  padding: var(--sp-4);
  min-height: 138px;
}
.band--navy .logo-wall__cell, .band--deep .logo-wall__cell { background: var(--navy-panel); }
.logo-wall__cell img {
  width: 106px; height: 106px; max-width: 100%;
  object-fit: contain;
  opacity: .9;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.logo-wall__cell:hover img { opacity: 1; transform: scale(1.04); }

.affil {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6);
  border-radius: var(--r-md);
  border: 1px solid var(--rule-chalk);
  background: #fff;
}
/* Every affiliation mark ships on its own white ground, so give them all a
   matching plate — consistent on the chalk band and legible on navy. */
.affil__logo {
  display: grid; place-items: center;
  width: 104px; height: 104px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--rule-chalk);
  border-radius: var(--r-md);
}
.affil__logo img { width: 100%; height: 100%; object-fit: contain; }


/* ==========================================================================
   14  GALLERY + LIGHTBOX
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--sp-4);
}
.gallery__item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule-navy);
  background: var(--navy-panel);
  cursor: zoom-in;
  padding: 0;
  display: block;
  width: 100%;
}
.gallery__item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
  opacity: .88;
}
.gallery__item:hover img { transform: scale(1.05); opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(8, 22, 37, .94);
  padding: var(--sp-5);
  opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 94vw); max-height: 86vh;
  width: auto; border-radius: var(--r-md);
  border: 1px solid var(--gold-line);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-navy);
  background: rgba(18, 49, 79, .8);
  color: var(--on-navy);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__close { top: var(--sp-5); right: var(--sp-5); }
.lightbox__nav--prev { left: var(--sp-5); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: var(--sp-5); top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute; bottom: var(--sp-5); left: 50%; transform: translateX(-50%);
  font-size: var(--t-label); letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-navy-faint);
}


/* ==========================================================================
   15  PROSE — course & article pages
   ========================================================================== */

/* Vertical rhythm comes from the owl selector alone. Note the specificity:
   a bare `.prose p { margin: 0 }` would out-rank `.prose > * + *` and collapse
   the spacing, so element rules here must not set margin. */
.prose { max-width: 68ch; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 { font-size: var(--t-h2); }
.prose h3 { font-size: var(--t-h3); }
.prose > h2 + *, .prose > h3 + * { margin-top: var(--sp-4); }
.prose > * + h2 { margin-top: var(--sp-7); }
.prose > * + h3 { margin-top: var(--sp-6); }
.prose p { color: var(--ink-soft); }
.band--navy .prose p, .band--deep .prose p { color: var(--on-navy-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.band--navy .prose strong, .band--deep .prose strong { color: var(--on-navy); }

.prose ul { display: grid; gap: var(--sp-3); }
.prose li {
  position: relative;
  padding-left: var(--sp-6);
  color: var(--ink-soft);
  font-size: var(--t-body);
}
.band--navy .prose li, .band--deep .prose li { color: var(--on-navy-soft); }
.prose li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 12px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.prose ul ul { margin-top: var(--sp-3); padding-left: var(--sp-5); }
.prose ul ul li::before { background: var(--teal); width: 8px; }

.panel {
  padding: var(--sp-6);
  border-radius: var(--r-md);
  border: 1px solid var(--rule-chalk);
  background: #fff;
}
.band--navy .panel, .band--deep .panel { background: var(--navy-panel); border-color: var(--rule-navy); }
.panel--gold { background: var(--gold-soft); border-color: var(--gold-line); }

.spec-list { display: grid; gap: 0; }
.spec {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--rule-chalk);
}
.band--navy .spec, .band--deep .spec { border-bottom-color: var(--rule-navy); }
.spec:last-child { border-bottom: 0; }
.spec__k { font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.band--navy .spec__k, .band--deep .spec__k { color: var(--on-navy-faint); }
.spec__v { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; text-align: right; }


/* ==========================================================================
   16  FORMS
   ========================================================================== */

.form { display: grid; gap: var(--sp-4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

.field { display: grid; gap: var(--sp-2); }
.field__label {
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.band--navy .field__label, .band--deep .field__label { color: var(--on-navy-faint); }

.field input, .field textarea, .field select {
  width: 100%;
  padding: .875rem 1rem;
  background: #fff;
  border: 1px solid var(--rule-chalk);
  border-radius: var(--r-sm);
  font-size: var(--t-body);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.band--navy .field input, .band--navy .field textarea,
.band--deep .field input, .band--deep .field textarea {
  background: rgba(246, 242, 233, .05);
  border-color: var(--rule-navy);
  color: var(--on-navy);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa7b3; }
.band--navy .field input::placeholder, .band--navy .field textarea::placeholder,
.band--deep .field input::placeholder, .band--deep .field textarea::placeholder { color: var(--on-navy-faint); }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field textarea { min-height: 132px; resize: vertical; }

/* Validation messages from the PHP handlers land here. */
.error_field {
  display: block;
  min-height: 1px;
  font-size: var(--t-small);
  color: var(--signal);
}
.error_field:not(:empty) { margin-top: var(--sp-1); }

.field.has-error input, .field.has-error textarea { border-color: var(--signal); }

.honeypot { position: absolute; left: -5000px; opacity: 0; height: 0; overflow: hidden; }


/* ==========================================================================
   17  PAGE HEAD / BREADCRUMBS
   ========================================================================== */

.page-head {
  position: relative;
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 88% 0%, rgba(46, 124, 134, .2), transparent 62%);
  pointer-events: none;
}
.page-head > * { position: relative; }
.page-head__title { font-size: var(--t-h1); max-width: 20ch; }
.page-head__lede { margin-top: var(--sp-5); }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-navy-faint);
}
.crumbs a { transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--gold); }
.crumbs__sep { color: var(--gold); }


/* ==========================================================================
   18  FOOTER
   ========================================================================== */

.site-footer { background: var(--navy-deep); color: var(--on-navy-soft); }

.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}
@media (max-width: 900px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } }

.site-footer__brand img { width: 200px; margin-bottom: var(--sp-4); }

.f-title {
  font-family: var(--font-display);
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-5);
}

.f-links { display: grid; gap: var(--sp-3); }
.f-links a { font-size: var(--t-small); transition: color .2s var(--ease), padding-left .2s var(--ease); }
.f-links a:hover { color: var(--gold); padding-left: 5px; }

.f-contact { display: grid; gap: var(--sp-5); }
.f-contact__item { display: flex; gap: var(--sp-4); }
.f-contact__icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
}
.f-contact__k {
  display: block;
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-navy-faint);
  margin-bottom: 3px;
}
.f-contact__v { font-size: var(--t-small); color: var(--on-navy); transition: color .2s var(--ease); }
a.f-contact__v:hover { color: var(--gold); }

.f-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.f-social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule-navy);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.f-social a:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

.site-footer__bottom {
  border-top: 1px solid var(--rule-navy);
  padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--t-small);
  color: var(--on-navy-faint);
}
.site-footer__bottom a { color: var(--on-navy-soft); }
.site-footer__bottom a:hover { color: var(--gold); }


/* ==========================================================================
   19  FLOATING ACTIONS
   ========================================================================== */

.float-actions {
  position: fixed; right: var(--sp-5); bottom: var(--sp-5);
  z-index: 55;
  display: grid; gap: var(--sp-3);
}
.float-actions a {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: var(--r-pill);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(8, 22, 37, .7);
  transition: transform .22s var(--ease);
}
.float-actions a:hover { transform: translateY(-3px) scale(1.04); }
.float-actions .is-whatsapp { background: #25D366; }
.float-actions .is-call     { background: var(--gold); color: var(--navy); }
.float-actions .is-top      { background: var(--navy-panel); border: 1px solid var(--rule-navy); }

.float-actions .is-top { opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s, transform .22s var(--ease); }
.float-actions .is-top.is-visible { opacity: 1; visibility: visible; }

@media (max-width: 600px) {
  .float-actions { right: var(--sp-4); bottom: var(--sp-4); }
  .float-actions a { width: 46px; height: 46px; }
}


/* ==========================================================================
   20  MOTION & REVEAL
   ========================================================================== */

/* Only hide for the reveal when JS is actually running (the `js` class is set
   by an inline script in the head). Without JS the content is simply visible —
   a failed script must never blank the page. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

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


/* ==========================================================================
   UTILITIES
   ========================================================================== */

.u-center { text-align: center; }
.u-mt-4 { margin-top: var(--sp-4); }
.u-mt-5 { margin-top: var(--sp-5); }
.u-mt-6 { margin-top: var(--sp-6); }
.u-mt-7 { margin-top: var(--sp-7); }
.u-max-none { max-width: none; }


/* ==========================================================================
   FILTER BAR — gallery albums
   ========================================================================== */

.filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.filter-bar button {
  padding: .55rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-navy);
  background: transparent;
  color: var(--on-navy-soft);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.filter-bar button:hover { border-color: var(--gold-line); color: var(--on-navy); }
.filter-bar button.is-on { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.band--chalk .filter-bar button, .band--white .filter-bar button {
  border-color: var(--rule-chalk); color: var(--ink-soft);
}
.band--chalk .filter-bar button.is-on, .band--white .filter-bar button.is-on {
  background: var(--gold); border-color: var(--gold); color: var(--navy);
}


/* ==========================================================================
   CONTACT — info cards & map
   ========================================================================== */

.contact-card {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  border: 1px solid var(--rule-navy);
  background: var(--navy-panel);
}
.band--chalk .contact-card, .band--white .contact-card { background: #fff; border-color: var(--rule-chalk); }

.contact-card__icon {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
}
.contact-card__k {
  display: block;
  font-size: var(--t-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
}
.band--navy .contact-card__k, .band--deep .contact-card__k { color: var(--on-navy-faint); }
.contact-card__v { font-size: var(--t-small); line-height: 1.5; }
a.contact-card__v { transition: color .2s var(--ease); }
a.contact-card__v:hover { color: var(--gold); }

.map-frame {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule-navy);
  line-height: 0;
}
.band--chalk .map-frame { border-color: var(--rule-chalk); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }


/* ==========================================================================
   CLIENT DIRECTORY — the clients page
   --------------------------------------------------------------------------
   Grouped by sector, because who we train is itself the information. Logos
   are shown at full colour and full size with the name spelled out; a wall of
   small grey marks is decoration, not proof.
   ========================================================================== */

.client-group + .client-group { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.client-group__head {
  display: flex; align-items: baseline; gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.client-group__title {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.client-group__rule { flex: 1; height: 1px; background: var(--rule-chalk); }
.band--navy .client-group__rule, .band--deep .client-group__rule { background: var(--rule-navy); }
.client-group__count {
  font-size: var(--t-label);
  letter-spacing: .12em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.band--navy .client-group__count, .band--deep .client-group__count { color: var(--on-navy-faint); }

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: var(--sp-4);
}
@media (max-width: 520px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }

.client-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-5);
  min-height: 236px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--rule-chalk);
  border-radius: var(--r-md);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.client-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.band--navy .client-card, .band--deep .client-card {
  background: var(--navy-panel);
  border-color: var(--rule-navy);
}

.client-card__logo { display: grid; place-items: center; width: 100%; height: 142px; }
.client-card__logo img { width: 142px; height: 142px; max-width: 100%; object-fit: contain; }

.client-card__name {
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
}
.band--navy .client-card__name, .band--deep .client-card__name { color: var(--on-navy-soft); }
