/* =============================================================
   Everest Badminton Centre — sample homepage
   Mobile-first. Custom properties for colour, type and spacing.
   ============================================================= */

/* -------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------- */
:root {
  /* Base — deep navy charcoal, drawn from the EBC logo */
  --ink:          #0C1426;   /* page base dark            */
  --ink-2:        #131D33;   /* raised dark surface       */
  --ink-3:        #1E2A44;   /* hairlines on dark         */
  --slate:        #2C3A57;   /* muted dark accent         */

  /* Brand navy from the logo */
  --navy:         #17386A;
  --navy-deep:    #0C183C;

  /* Light surfaces */
  --paper:        #FFFFFF;
  --paper-2:      #F3F5F8;   /* barely-there cool grey    */
  --rule:         #E1E5EC;   /* hairline on light         */

  /* Type */
  --text:         #0F1729;
  --text-muted:   #5A6478;
  --text-on-dark: #E9ECF2;
  --text-on-dark-muted: #99A6BC;

  /* Accent — the gold from the logo's EBC mark */
  --accent:       #C9A063;
  --accent-deep:  #B08A4C;
  --accent-soft:  #E3C892;
  --accent-ink:   #0C1426;   /* text sitting on accent    */

  /* Deep navy used for the full-width photo band */
  --court:        #0C2244;

  /* Type scale — fluid */
  --fs-eyebrow:  clamp(0.72rem, 0.68rem + 0.18vw, 0.8rem);
  --fs-body:     clamp(1rem,    0.96rem + 0.2vw,  1.075rem);
  --fs-lede:     clamp(1.08rem, 1rem    + 0.42vw, 1.3rem);
  --fs-h3:       clamp(1.15rem, 1.06rem + 0.4vw,  1.4rem);
  /* Mins are deliberately conservative so a wide fallback font during FOUT
     still fits a 375px viewport without breaking words. */
  --fs-h2:       clamp(1.9rem,  1.5rem  + 2.6vw,  3.9rem);
  --fs-h1:       clamp(2.3rem,  1.6rem  + 4.9vw,  6.4rem);
  --fs-stat:     clamp(3rem,    1.9rem  + 4.4vw,  5.6rem);

  /* Spacing */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --section-y: clamp(4.25rem, 2.5rem + 6vw, 8.5rem);

  /* Layout */
  --shell:      1280px;
  --gutter:     clamp(1.15rem, 0.6rem + 2.4vw, 3.5rem);
  --header-h:   72px;

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

/* -------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* belt-and-braces against horizontal scroll */
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Archivo", "Inter", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
  /* safety net: a wide fallback font during FOUT must wrap, never clip */
  overflow-wrap: break-word;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

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

/* Accessibility helpers */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--sp-2); top: -100px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.85rem 1.25rem; font-weight: 600; text-decoration: none;
  border-radius: 2px; transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--sp-2); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
/* On light sections the gold outline needs a dark companion for contrast */
.section--light :focus-visible {
  outline-color: var(--text);
  box-shadow: 0 0 0 6px rgba(201, 160, 99, .55);
}

/* -------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* Anchor landing: without this the browser stops at the top of the section's
   full padding, leaving a big empty band under the sticky header. Pulling the
   scroll target up by most of that padding lands the heading just below it. */
.section[id] { scroll-margin-top: calc(1rem - var(--section-y)); }
.section--light { background: var(--paper); color: var(--text); }
.section--dark  { background: var(--ink);   color: var(--text-on-dark); }

/* Heavy horizontal rule between light sections */
.section--light + .section--light { border-top: 1px solid var(--rule); }

.section__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.section__head-note { color: var(--text-muted); font-size: var(--fs-lede); max-width: 46ch; }
.section--dark .section__head-note { color: var(--text-on-dark-muted); }

.section__head--split { max-width: none; display: grid; gap: var(--sp-3); }
@media (min-width: 900px) {
  .section__head--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    align-items: end;
  }
  /* the supporting note sits on the baseline of the heading, not under it */
  .section__head--split .section__head-note { padding-bottom: 0.4rem; }
}

.eyebrow {
  font-family: "Archivo", sans-serif;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--sp-2);
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::after {
  content: ""; height: 1px; flex: 1 1 auto; max-width: 80px;
  background: currentColor; opacity: .35;
}
.eyebrow--light { color: var(--accent); }

/* Small summit glyph — carries the Everest mark through every section label */
.eyebrow__peak {
  flex: none; width: 13px; height: 11px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M13 1 L25 21 H1 Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M13 1 L25 21 H1 Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .9;
}
.eyebrow:not(.eyebrow--light) .eyebrow__peak { color: var(--accent-deep); background: var(--accent-deep); }

.h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.h2--light { color: #fff; }

/* -------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px;            /* >= 44px tap target */
  padding: 0.85rem 1.75rem;
  font-family: "Archivo", sans-serif;
  font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-deep); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--slate); }

.btn--sm { min-height: 44px; padding: 0.55rem 1.15rem; font-size: 0.78rem; }
.btn--full { width: 100%; }


/* Outline button for light sections (pairs with .btn--dark) */
.btn--outline {
  background: transparent; color: var(--text);
  border-color: var(--rule);
}
.btn--outline:hover { border-color: var(--text); background: var(--paper-2); }

/* Inline action pair inside a prose column */
.prose__actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin: var(--sp-3) 0 var(--sp-5);
}

/* -------------------------------------------------------------
   5. LOGO LOCKUP
   ------------------------------------------------------------- */
.logo {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 44px;              /* tap target */
  text-decoration: none; color: inherit;
}
/* Client-supplied EBC mark (transparent PNG) */
.logo__mark { width: auto; height: 40px; flex: none; }
@media (min-width: 640px) { .logo__mark { height: 46px; } }
.logo__type { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 1.28rem; letter-spacing: -0.035em; text-transform: uppercase;
}
.logo__sub {
  font-family: "Archivo", sans-serif; font-weight: 600;
  font-size: 0.5rem; letter-spacing: 0.3em; text-transform: uppercase;
  margin-top: 4px; opacity: .78;
}
@media (min-width: 640px) {
  .logo__name { font-size: 1.45rem; }
  .logo__sub  { font-size: 0.55rem; }
}

/* -------------------------------------------------------------
   6. HEADER + NAV
   ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: #fff;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-solid {
  background: rgba(14, 17, 22, .94);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--ink-3);
}

.header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}

.nav { display: none; }

.nav__list { display: flex; align-items: center; gap: clamp(0.75rem, 0.2rem + 1.3vw, 1.9rem); }
/* scoped to top level so the dropdown links don't inherit the underline */
.nav__list > li > a,
.nav__list > li > .nav__parent {
  position: relative;
  font-family: "Archivo", sans-serif; font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; align-items: center;
  min-height: 44px;              /* tap target */
  white-space: nowrap;           /* nav must never wrap */
}
.nav__list > li > a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list > li > a:hover::after,
.nav__list > li > a.is-active::after,
.nav__list > li > a[aria-current="page"]::after,
.nav__list > li.is-current > .nav__parent::after { transform: scaleX(1); }
.nav__list > li > a[aria-current="page"],
.nav__list > li.is-current > .nav__parent { color: var(--accent); }

/* ---- Programs dropdown ------------------------------------------------- */
.nav__item--sub { position: relative; display: flex; align-items: center; gap: 0.25rem; }

.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; min-height: 44px; padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.nav__chev { width: 11px; height: 8px; transition: transform .25s var(--ease); }
.nav__item--sub.is-open .nav__chev { transform: rotate(180deg); }

.nav__sub {
  position: absolute; top: 100%; left: -1rem; z-index: 10;
  min-width: 250px; padding: 0.4rem 0;
  background: rgba(12, 20, 38, .98);
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden;
  pointer-events: none;   /* never intercept clicks while closed */
  transform: translateY(-6px);
  /* visibility flips instantly on open and is delayed on close so the fade-out
     is still seen. Never transition visibility itself — if transitions are
     paused (background tab, reduced motion) the menu can get stuck hidden. */
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.nav__item--sub:hover .nav__sub,
.nav__item--sub:focus-within .nav__sub,
.nav__item--sub.is-open .nav__sub {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s 0s;
}
/* bridges the gap between the trigger and the panel so hover doesn't drop out */
.nav__item--sub::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px;
}
.nav__sub a {
  display: flex; align-items: center; min-height: 44px;   /* tap target */
  padding: 0.35rem 1.15rem;
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 0.88rem; letter-spacing: 0; text-transform: none;
  color: var(--text-on-dark-muted); text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.nav__sub a:hover { color: #fff; background: rgba(255,255,255,.05); border-left-color: var(--accent); }
.nav__sub a[aria-current="page"] { color: var(--accent); border-left-color: var(--accent); }

.nav__phone {
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.04em; text-decoration: none;
  display: none; align-items: center; min-height: 44px;   /* tap target */
}
.nav__phone:hover { color: var(--accent); }

@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: var(--sp-4); }
}
@media (min-width: 1180px) {
  .nav__phone { display: inline-flex; }
}

/* Hamburger — three bars strictly stacked vertically one below the other */
.burger {
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: -4px;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  color: #FFFFFF;
  transition: all .25s ease;
  position: relative;
  z-index: 101;
}

.burger:hover,
.burger:focus-visible {
  background: rgba(201, 160, 99, 0.18);
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.burger__bar {
  display: block !important;
  width: 22px !important;
  height: 2.5px !important;
  background: currentColor !important;
  border-radius: 2px !important;
  flex-shrink: 0 !important;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.burger.is-open {
  background: rgba(201, 160, 99, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.burger.is-open .burger__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open .burger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.is-open .burger__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (min-width: 992px) {
  .burger { display: none !important; }
}

/* Full-screen overlay menu */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink);
  /* Top-aligned and scrollable. Centring clips the first item once the
     programs sub-list makes the menu taller than a short viewport. */
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;   /* must never intercept clicks while closed */
  transition: opacity .3s var(--ease);
}
/* The `hidden` attribute has to beat the `display: grid` above. Without this
   the closed overlay still covers the page and swallows every click, because
   the UA rule [hidden]{display:none} loses to a class selector. */
.overlay[hidden] { display: none; }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.overlay__nav {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--sp-3);
  width: 100%; max-width: 460px;
  margin-inline: auto;
  padding: calc(var(--header-h) + var(--sp-3)) var(--gutter) var(--sp-5);
}
.overlay__nav > ul { display: flex; flex-direction: column; gap: 0.25rem; width: 100%; margin-bottom: var(--sp-2); }
.overlay__nav > ul > li > a {
  display: block; padding: 0.5rem 0;
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(1.75rem, 1.1rem + 3vw, 2.6rem);
  letter-spacing: -0.035em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  transition: color .2s var(--ease);
}
.overlay__nav > ul > li > a:hover { color: var(--accent); }
.overlay__nav > ul > li > a[aria-current="page"] { color: var(--accent); }

/* Indented programs sub-list inside the burger menu — always shown, no hover */
.overlay__sub {
  display: flex; flex-direction: column;
  margin: 0.1rem 0 0.6rem; padding-left: 0.9rem;
  border-left: 2px solid var(--ink-3);
}
.overlay__sub a {
  display: flex; align-items: center; min-height: 44px;   /* tap target */
  font-family: "Inter", sans-serif; font-weight: 500;
  font-size: 1rem; letter-spacing: 0; text-transform: none;
  color: var(--text-on-dark-muted); text-decoration: none;
  transition: color .2s var(--ease);
}
.overlay__sub a:hover { color: #fff; }
.overlay__sub a[aria-current="page"] { color: var(--accent); }
.overlay__phone {
  font-family: "Archivo", sans-serif; font-weight: 700;
  letter-spacing: 0.08em; color: var(--text-on-dark-muted); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
body.is-locked { overflow: hidden; }

/* -------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: calc(var(--header-h) + var(--sp-6)) var(--sp-6);
  background: var(--ink); color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% center;
  animation: heroZoom 24s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.001); } to { transform: scale(1.09); } }

/* Dark gradient overlay — vertical for legibility, horizontal for the text side */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top,   rgba(14,17,22,.96) 0%, rgba(14,17,22,.55) 42%, rgba(14,17,22,.25) 70%, rgba(14,17,22,.6) 100%),
    linear-gradient(to right, rgba(14,17,22,.85) 0%, rgba(14,17,22,.25) 55%, rgba(14,17,22,0) 100%);
}

.hero__inner { position: relative; z-index: 1; width: 100%; }
/* Full width on mobile — the headline's own <br>s control the stack.
   Capping this in `ch` squeezes the h1 into mid-word breaks. */
.hero__content { max-width: 100%; }
@media (min-width: 560px) { .hero__content { max-width: 34rem; } }

/* Squared block while the text wraps on narrow screens; a pill once it fits
   on one line. A 100px radius on wrapped text reads as a blob. */
.badge {
  display: inline-flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.55rem 0.95rem 0.55rem 0.8rem;
  border: 1px solid rgba(201,160,99,.45);
  background: rgba(201,160,99,.08);
  color: var(--accent);
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.16em; line-height: 1.5;
  text-transform: uppercase;
  border-radius: 4px; margin-bottom: var(--sp-3);
  max-width: 100%;
}
.badge__dot { margin-top: 0.45em; }

@media (min-width: 1080px) {
  .badge { align-items: center; border-radius: 100px; white-space: nowrap; }
  .badge__dot { margin-top: 0; }
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(201,160,99,.7);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,160,99,.6); }
  70%  { box-shadow: 0 0 0 9px rgba(201,160,99,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,160,99,0); }
}

.hero__title {
  font-size: var(--fs-h1);
  letter-spacing: -0.05em;
  margin-bottom: var(--sp-3);
}
.hero__title em { font-style: normal; color: var(--accent); }

.hero__lede {
  font-size: var(--fs-lede);
  color: rgba(255,255,255,.82);
  max-width: 46ch;
  margin-bottom: var(--sp-4);
}

/* Three engineered-for points under the hero lede */
.hero__points {
  display: grid; gap: 0.6rem;
  margin: 0 0 var(--sp-4); max-width: 52ch;
}
.hero__points li {
  position: relative; padding-left: 1.6rem;
  font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,.78);
}
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 11px; height: 9px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M13 1 L25 21 H1 Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath d='M13 1 L25 21 H1 Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero__points strong {
  display: block; color: #fff; font-weight: 600;
  font-family: "Archivo", sans-serif; letter-spacing: -0.005em;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Meta rail — stacks under the hero copy on small screens */
.hero__rail {
  display: grid; gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,.18);
}
.rail__label {
  display: block;
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.35rem;
}
.rail__value { display: block; font-size: 0.92rem; line-height: 1.5; color: rgba(255,255,255,.86); }
.rail__value a {
  text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px; /* tap target */
}
.rail__value a:hover { color: var(--accent); }

@media (min-width: 560px) {
  .hero__rail { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
}
@media (min-width: 1024px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end; gap: var(--sp-6);
  }
  .hero__content { max-width: none; }
  .hero__rail {
    grid-template-columns: 1fr;
    width: 250px; margin-top: 0;
    border-top: 0; border-left: 1px solid rgba(255,255,255,.18);
    padding: 0.35rem 0 0.35rem var(--sp-3);
  }
}

/* -------------------------------------------------------------
   8. STATS STRIP
   ------------------------------------------------------------- */
.stats { background: var(--ink); color: #fff; padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.stats__grid { display: grid; gap: 0; }

.stat { padding: var(--sp-3) 0; border-top: 1px solid var(--ink-3); }
.stat:first-child { border-top: 0; padding-top: 0; }

.stat__num {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: var(--fs-stat); line-height: 0.9; letter-spacing: -0.05em;
  color: var(--accent); margin: 0 0 0.5rem;
  font-variant-numeric: tabular-nums;
}
.stat__prefix { font-size: 0.5em; letter-spacing: -0.02em; }
/* The markup carries a real space before this, so it reads "8 layer" when
   copied or read aloud. No extra left margin, or the gap doubles up. */
.stat__suffix {
  font-size: 0.26em; letter-spacing: 0.12em; text-transform: uppercase;
  margin-left: 0; vertical-align: 0.72em; color: var(--accent-soft);
  white-space: nowrap;
}

/* Figure 4 carries no number, so it reads as a statement instead of a counter */
.stat--statement .stat__statement {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.85rem);
  line-height: 1.06; letter-spacing: -0.035em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 0.55rem;
}
.stat__label {
  color: var(--text-on-dark-muted); font-size: 0.9rem; line-height: 1.45;
  max-width: 24ch; margin: 0;
}

@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-4); }
  .stat { border-top: 1px solid var(--ink-3); padding-top: var(--sp-3); }
  .stat:nth-child(-n+2) { border-top: 0; padding-top: 0; }
}
@media (min-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); column-gap: var(--sp-5); }
  .stat { border-top: 0; border-left: 1px solid var(--ink-3); padding: 0 0 0 var(--sp-3); }
  .stat:first-child { border-left: 0; padding-left: 0; }
}

/* -------------------------------------------------------------
   9. ABOUT — asymmetric split, image right
   ------------------------------------------------------------- */
.about__grid { display: grid; gap: var(--sp-5); }
.about__copy p { color: var(--text-muted); max-width: 54ch; }

.ticks { margin-top: var(--sp-4); display: grid; gap: 0.85rem; }
.ticks li {
  position: relative; padding-left: 2.1rem;
  font-family: "Archivo", sans-serif; font-weight: 600;
  font-size: 0.95rem; letter-spacing: -0.01em; line-height: 1.4;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.12em;
  width: 1.35rem; height: 1.35rem; border-radius: 2px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E") center / 78% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E") center / 78% no-repeat;
}



.about__media { display: grid; gap: var(--sp-3); }
.about__figure { margin: 0; }
.about__figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
  border-radius: 2px;
}
.about__figure figcaption {
  margin-top: 0.85rem; font-size: 0.82rem; color: var(--text-muted);
  padding-left: 0.9rem; border-left: 2px solid var(--accent);
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(3rem, 1rem + 6vw, 7rem);
    align-items: start;
  }
  .about__figure img { aspect-ratio: 3 / 4; }
}


/* -------------------------------------------------------------
   9b. WHY EVEREST BAND — full-bleed mountain background
   Carries the brand across the full width so the logo and the
   blurb share the same photo, rather than sitting in two boxes.
   ------------------------------------------------------------- */
.everest-band {
  position: relative; isolation: isolate;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  background: var(--navy-deep); color: var(--text-on-dark);
  overflow: hidden;
}
.everest-band__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
}
.everest-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,20,40,.82) 0%, rgba(10,20,40,.55) 45%, rgba(10,20,40,.75) 100%);
}
.everest-band__inner { display: grid; gap: var(--sp-4); align-items: center; }
.everest-band__mark img { width: min(100%, 320px); height: auto; margin-inline: auto; }
.everest-band__copy p { color: rgba(255,255,255,.86); max-width: 54ch; }
.everest-band__copy .h2 { margin-bottom: var(--sp-3); }

@media (min-width: 860px) {
  .everest-band__inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  }
  .everest-band__mark img { width: min(100%, 380px); margin-inline: 0; }
}

/* -------------------------------------------------------------
   10. FACILITIES GRID
   ------------------------------------------------------------- */
.facilities { background: var(--paper-2); }

/* Asymmetric image pair above the grid */
.facilities__lead {
  display: grid; gap: var(--sp-2);
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
.facilities__shot { margin: 0; }
.facilities__shot img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px;
}
.facilities__shot--wide img { object-position: center 45%; }

@media (min-width: 720px) {
  .facilities__lead { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; }
  .facilities__shot img { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .facilities__shot--wide img { min-height: clamp(300px, 34vw, 460px); }
}

.facility-grid {
  display: grid; gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.card {
  background: var(--paper-2);
  padding: var(--sp-4) 0;
  transition: background-color .3s var(--ease);
}
.card__icon {
  width: 34px; height: 34px; margin-bottom: var(--sp-3);
  fill: none; stroke: var(--text); stroke-width: 1.5;
  stroke-linecap: square; stroke-linejoin: miter;
  transition: stroke .3s var(--ease);
}
.card__title { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.94rem; max-width: 36ch; }

@media (min-width: 640px) {
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; }
  .card:nth-child(2n) { padding-left: var(--sp-4); padding-right: 0; }
}
@media (min-width: 1024px) {
  .facility-grid { grid-template-columns: repeat(3, 1fr); }
  .card { padding: var(--sp-5) var(--sp-4); }
  .card:nth-child(3n+1) { padding-left: 0; }
  .card:nth-child(3n)   { padding-right: 0; }
  .card:nth-child(2n)   { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .card:hover { background: var(--paper); }
  .card:hover .card__icon { stroke: var(--accent-deep); }
}

/* -------------------------------------------------------------
   11. PHOTO BAND / PULL QUOTE
   ------------------------------------------------------------- */
.band {
  position: relative; isolation: isolate;
  min-height: clamp(400px, 60vh, 620px);
  display: flex; align-items: center;
  padding-block: var(--sp-6);
  background: var(--court);
  overflow: hidden;
}
.band__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(10,20,40,.95) 0%, rgba(10,20,40,.80) 48%, rgba(10,20,40,.45) 100%);
}
.band__inner { width: 100%; }

/* NB: measure is set in rem, not ch — `ch` here would resolve against
   .pull's own font-size, not the much larger size on the <p> inside it. */
.pull { margin: 0; max-width: min(100%, 44rem); }
.pull p {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 4.1rem);
  line-height: 1.01; letter-spacing: -0.045em; text-transform: uppercase;
  color: #fff; margin: 0 0 var(--sp-3);
}
.pull footer {
  max-width: 46ch;
  font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,.78);
  padding-top: var(--sp-3); border-top: 2px solid var(--accent);
}

/* -------------------------------------------------------------
   12. PROGRAMS
   ------------------------------------------------------------- */
.programs__grid { display: grid; gap: var(--sp-5); }
.programs__note { color: var(--text-on-dark-muted); max-width: 40ch; }

.programs__figure { margin: var(--sp-4) 0 0; }
.programs__figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%;
  border-radius: 2px;
}

.prog-list { display: grid; }
.prog {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-top: 1px solid var(--ink-3);
}
.prog:last-child { border-bottom: 1px solid var(--ink-3); }
.prog__num {
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--accent); padding-top: 0.35rem;
}
.prog__body h3 { font-size: var(--fs-h3); color: #fff; margin-bottom: 0.55rem; }
.prog__body p { color: var(--text-on-dark-muted); font-size: 0.96rem; max-width: 52ch; }

@media (min-width: 900px) {
  .programs__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(3rem, 1rem + 6vw, 6.5rem);
    align-items: start;
  }
  .programs__sticky { position: sticky; top: calc(var(--header-h) + 2.5rem); }
  .prog { grid-template-columns: 4.5rem minmax(0, 1fr); gap: var(--sp-4); }
}

/* -------------------------------------------------------------
   13. PRICING TIERS (restored: rates are final)
   ------------------------------------------------------------- */
.price-note {
  font-size: 0.88rem; color: var(--text-muted);
  padding: 0.9rem 1.1rem; background: var(--paper-2);
  border-left: 3px solid var(--accent);
  margin-bottom: var(--sp-4); max-width: 70ch;
}

.tiers { display: grid; gap: var(--sp-3); }

.tier {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--sp-4);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.tier:hover { border-color: var(--text); }

.tier--feature {
  background: var(--ink); color: var(--text-on-dark);
  border-color: var(--ink);
}
.tier--feature:hover { border-color: var(--accent); }

.tier__flag {
  position: absolute; top: 0; right: var(--sp-4);
  transform: translateY(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.35rem 0.7rem; border-radius: 2px; margin: 0;
}

.tier__head { margin-bottom: var(--sp-3); }
.tier__name { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.tier--feature .tier__name { color: #fff; }
.tier__when { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.tier--feature .tier__when { color: var(--text-on-dark-muted); }

.tier__price {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(2.6rem, 1.8rem + 2.4vw, 3.4rem);
  line-height: 1; letter-spacing: -0.05em;
  margin: 0 0 var(--sp-3); padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.tier--feature .tier__price { color: var(--accent); border-bottom-color: var(--ink-3); }
.tier__cur  { font-size: 0.45em; vertical-align: 0.62em; margin-right: 0.08em; }
.tier__unit {
  font-size: 0.26em; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-muted); margin-left: 0.3em;
}
.tier--feature .tier__unit { color: var(--text-on-dark-muted); }

.tier__list { display: grid; gap: 0.6rem; margin-bottom: var(--sp-4); flex: 1 1 auto; }
.tier__list li {
  position: relative; padding-left: 1.4rem;
  font-size: 0.92rem; line-height: 1.5; color: var(--text-muted);
}
.tier--feature .tier__list li { color: var(--text-on-dark-muted); }
.tier__list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 1px; background: var(--accent-deep);
}
.tier--feature .tier__list li::before { background: var(--accent); }

@media (min-width: 720px) {
  .tiers { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); align-items: stretch; }
  .tier { padding: var(--sp-4) var(--sp-3); }
  .tier--feature { transform: translateY(-14px); padding-bottom: calc(var(--sp-4) + 14px); }
}
@media (min-width: 1024px) {
  .tier { padding: var(--sp-5) var(--sp-4); }
  .tier--feature { padding-bottom: calc(var(--sp-5) + 14px); }
}

/* Two-tier comparison inside a prose column (memberships page) */
.tiers--pair { margin: var(--sp-3) 0 var(--sp-4); }
@media (min-width: 620px) {
  .tiers--pair { grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
  /* the founding tier is first here, so lift that one instead of the middle */
  .tiers--pair .tier--feature { transform: translateY(-10px); padding-bottom: calc(var(--sp-4) + 10px); }
}
/* a tier with no price still needs its list to line up with the priced one */
.tier__list--offset { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--rule); }

/* -------------------------------------------------------------
   13. REGISTER YOUR INTEREST (form)
   ------------------------------------------------------------- */
.book__grid { display: grid; gap: var(--sp-5); }
.book__copy p { color: var(--text-on-dark-muted); max-width: 44ch; }
.book__figure { margin: var(--sp-4) 0 0; }
.book__figure img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px;
}

.form { display: grid; gap: var(--sp-3); align-content: start; }
.form__split { display: grid; gap: var(--sp-3); }
.form__row { display: grid; gap: 0.45rem; }

.form label {
  font-family: "Archivo", sans-serif; font-weight: 600;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.form label span { color: var(--accent); }

.form input, .form select, .form textarea {
  width: 100%; min-height: 52px;
  padding: 0.8rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  color: #fff; font-size: 1rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form input::placeholder, .form textarea::placeholder { color: #6C7787; }

.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--slate); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); background: #171D27;
  box-shadow: 0 0 0 3px rgba(201,160,99,.18);
}
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #E4643F; }

.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%2398A2B0' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.75rem;
}


/* Inline links inside the status message: grow the hit area with vertical
   padding rather than a block box, so the sentence still flows. */
.form__status a { padding-block: 0.7rem; }

.form__fine { font-size: 0.8rem; color: var(--text-on-dark-muted); margin: 0; }

.form__status { margin: 0; font-size: 0.92rem; min-height: 1.5em; }
.form__status.is-ok    { color: var(--accent); font-weight: 500; }
.form__status.is-error { color: #F08A6A; }

@media (min-width: 560px) {
  .form__split { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .book__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 1rem + 5vw, 6rem);
    align-items: start;
  }
}

/* -------------------------------------------------------------
   14. LOCATION AND HOURS
   ------------------------------------------------------------- */
.contact__grid { display: grid; gap: var(--sp-5); }

.contact__map {
  border: 1px solid var(--rule);
  background: var(--paper-2);
  border-radius: 2px; overflow: hidden;
}
.contact__map iframe {
  width: 100%; height: 100%; min-height: 340px; border: 0;
  filter: grayscale(1) contrast(1.05);
  transition: filter .4s var(--ease);
}
.contact__map:hover iframe { filter: grayscale(0); }

.contact__h3 {
  font-size: 0.78rem; letter-spacing: 0.2em; font-weight: 700;
  color: var(--text-muted); margin-bottom: 0.9rem;
}

.hours { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-4); }
.hours th, .hours td {
  text-align: left; padding: 0.62rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.92rem;
}
.hours th { font-weight: 500; color: var(--text); }
.hours td { text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.contact__block { padding-top: var(--sp-3); border-top: 1px solid var(--rule); margin-top: var(--sp-3); }
.contact address { font-style: normal; line-height: 1.6; }
.contact__phone a {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 1.5rem; letter-spacing: -0.03em; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.contact__phone a:hover { color: var(--accent-deep); }

.socials { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.socials a {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0.5rem 1rem 0.5rem 0.85rem;
  border: 1px solid var(--rule); border-radius: 2px;
  text-decoration: none; font-size: 0.88rem; font-weight: 500;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.socials a:hover { border-color: var(--text); background: var(--paper-2); }
.socials svg { width: 19px; height: 19px; }

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(2.5rem, 1rem + 4vw, 5rem);
  }
  .contact__map iframe { min-height: 100%; }
}

/* -------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: var(--text-on-dark);
  padding-block: var(--sp-6) var(--sp-4);
}
.footer__top { display: grid; gap: var(--sp-5); padding-bottom: var(--sp-5); }

.logo--footer { color: #fff; margin-bottom: var(--sp-3); }
.footer__blurb { color: var(--text-on-dark-muted); font-size: 0.92rem; max-width: 34ch; }

.footer__h {
  font-size: 0.72rem; letter-spacing: 0.2em; font-weight: 700;
  color: var(--accent); margin-bottom: var(--sp-2);
}
.footer__top ul { display: grid; gap: 0.15rem; }
.footer__top a {
  text-decoration: none; color: var(--text-on-dark-muted);
  font-size: 0.92rem; display: inline-flex; align-items: center;
  min-height: 44px;              /* tap target */
  transition: color .2s var(--ease);
}
.footer__top a:hover { color: #fff; }
.footer__col address { font-style: normal; font-size: 0.92rem; color: var(--text-on-dark-muted); line-height: 1.6; margin-bottom: 0.5rem; }
.footer__col p { font-size: 0.92rem; color: var(--text-on-dark-muted); margin-bottom: 0.5rem; }
.footer__hours { line-height: 1.6; }

.footer__base {
  display: grid; gap: 0.5rem;
  padding-top: var(--sp-3); border-top: 1px solid var(--ink-3);
  font-size: 0.8rem; color: #79839180;
}
.footer__base p { margin: 0; color: var(--text-on-dark-muted); opacity: .75; }

/* Build credit — understated, must not compete with the client's own details */
.footer__credit a {
  color: var(--text-on-dark-muted);
  /* underline the text itself — a border would sit on the tap-target box */
  text-decoration: underline;
  text-decoration-color: rgba(201, 160, 99, .5);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  display: inline-flex; align-items: center; min-height: 44px;  /* tap target */
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.footer__credit a:hover { color: var(--accent); text-decoration-color: var(--accent); }

@media (min-width: 700px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col:last-child { grid-column: 2 / -1; }
}
@media (min-width: 960px) {
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 0.8fr; gap: var(--sp-4); }
  .footer__col:last-child { grid-column: auto; }
  .footer__base { grid-template-columns: 1fr auto; align-items: center; }
  .footer__abn { text-align: right; }
  /* credit sits on its own row so it stays clearly secondary */
  .footer__credit { grid-column: 1 / -1; text-align: right; }
}

/* -------------------------------------------------------------
   15b. STICKY ANNOUNCEMENT BAR (mobile only)
   ------------------------------------------------------------- */
.sticky-bar {
  position: fixed; inset: auto 0 0 0; z-index: 80;
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 0.6rem var(--gutter);
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 20, 38, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--ink-3);
}
.sticky-bar p {
  margin: 0; flex: 1 1 auto; min-width: 0;
  font-size: 0.74rem; line-height: 1.35; color: var(--text-on-dark-muted);
}
.sticky-bar strong {
  display: block; color: var(--accent);
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.sticky-bar__cta {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.4rem 0.95rem;   /* tap target */
  background: var(--accent); color: var(--accent-ink);
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
}
/* Keep the sticky bar and the floating WhatsApp button clear of footer
   content — the float is fixed bottom-right, where the credit line sits. */
@media (max-width: 767px) { .site-footer { padding-bottom: 6.5rem; } }
@media (min-width: 768px) {
  .sticky-bar { display: none; }
  .site-footer { padding-bottom: 6.5rem; }
}

/* -------------------------------------------------------------
   16. SCROLL REVEAL — fade and rise
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Gentle stagger for items inside a grid */
.facility-grid .reveal:nth-child(2), .prog:nth-child(2), .stat:nth-child(2) { transition-delay: .08s; }
.facility-grid .reveal:nth-child(3), .prog:nth-child(3), .stat:nth-child(3) { transition-delay: .16s; }
.facility-grid .reveal:nth-child(4), .prog:nth-child(4), .stat:nth-child(4) { transition-delay: .24s; }
.facility-grid .reveal:nth-child(5), .prog:nth-child(5) { transition-delay: .32s; }
.facility-grid .reveal:nth-child(6), .prog:nth-child(6) { transition-delay: .4s; }

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

/* =============================================================
   18. INNER PAGES (programs, memberships, booking)
   Reuses the tokens and rhythm of the homepage.
   ============================================================= */

/* Compact hero for inner pages — not the full-bleed homepage hero */
.page-hero {
  position: relative; isolation: isolate;
  padding-block: calc(var(--header-h) + var(--sp-6)) var(--sp-6);
  background: var(--ink); color: #fff;
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top,   rgba(12,20,38,.94) 0%, rgba(12,20,38,.70) 55%, rgba(12,20,38,.55) 100%),
    linear-gradient(to right, rgba(12,20,38,.92) 0%, rgba(12,20,38,.45) 70%, rgba(12,20,38,.2) 100%);
}
.page-hero__title { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.2rem); margin-bottom: var(--sp-3); }
.page-hero__lede {
  font-size: var(--fs-lede); color: rgba(255,255,255,.85);
  max-width: 52ch; margin-bottom: var(--sp-4);
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Breadcrumb */
.crumbs { margin-bottom: var(--sp-3); font-size: 0.82rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.crumbs a {
  color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;  /* tap target */
}
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: .45; }
.crumbs [aria-current] { color: rgba(255,255,255,.7); }

/* Two-column body: prose left, aside right */
.page-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 900px) {
  .page-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(3rem, 1rem + 5vw, 6rem);
    align-items: start;
  }
  .page-grid__aside { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}

.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin: var(--sp-5) 0 var(--sp-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-h3); margin: var(--sp-4) 0 0.5rem; }
.prose p { color: var(--text-muted); max-width: 60ch; }

/* Numbered steps */
.steps { display: grid; gap: 0; margin-top: var(--sp-3); }
.steps li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3);
  padding: var(--sp-3) 0; border-top: 1px solid var(--rule);
}
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps__n {
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.1em; color: var(--accent-deep); padding-top: 0.2rem;
}
.steps h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.steps p { margin: 0; font-size: 0.94rem; }

/* Fact card in the aside */
.factcard {
  background: var(--paper-2); border-left: 3px solid var(--accent);
  border-radius: 2px; padding: var(--sp-3);
}
.factcard h2 { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--accent-deep); margin: 0 0 var(--sp-2); }
.factcard dl { display: grid; gap: 0.75rem; margin: 0; }
.factcard dt {
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.factcard dd { margin: 0.15rem 0 0; font-size: 0.95rem; }
.factcard dd a {
  color: inherit;
  display: inline-flex; align-items: center; min-height: 44px;  /* tap target */
}

/* Cross links to sibling program pages */
.crosslinks { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.crosslink {
  background: var(--paper); padding: var(--sp-3) var(--sp-2) var(--sp-3) 0;
  text-decoration: none; display: block;
  transition: background-color .25s var(--ease);
}
.crosslink h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.crosslink p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.crosslink:hover { background: var(--paper-2); }
@media (min-width: 700px) {
  .crosslinks { grid-template-columns: repeat(2, 1fr); }
  .crosslink { padding-inline: var(--sp-3); }
  .crosslink:nth-child(2n+1) { padding-left: 0; }
}
@media (min-width: 1024px) { .crosslinks { grid-template-columns: repeat(4, 1fr); } }

/* Closing CTA band */
.cta-band { background: var(--ink); color: var(--text-on-dark); padding-block: var(--section-y); }
.cta-band .h2 { color: #fff; }
.cta-band p { color: var(--text-on-dark-muted); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--sp-4); }
@media (min-width: 900px) {
  .cta-band__inner {
    display: grid; grid-template-columns: minmax(0,1fr) auto;
    gap: var(--sp-5); align-items: end;
  }
  .cta-band__actions { margin-top: 0; }
}

/* Booking embed slot */
.booking-slot {
  border: 1px dashed var(--rule); border-radius: 2px;
  background: var(--paper-2); padding: var(--sp-5) var(--sp-3);
  text-align: center;
}
.booking-slot h2 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.booking-slot p { color: var(--text-muted); max-width: 48ch; margin-inline: auto; }

/* -------------------------------------------------------------
   19. WHATSAPP BUTTON
   ------------------------------------------------------------- */
.wa-float {
  position: fixed; z-index: 85;
  right: clamp(0.9rem, 2vw, 1.75rem);
  bottom: clamp(0.9rem, 2vw, 1.75rem);
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 52px; padding: 0.7rem 1.15rem;
  background: #25D366; color: #06251A;
  font-family: "Archivo", sans-serif; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.04em;
  text-decoration: none; border-radius: 100px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.wa-float:hover { background: #1FBE5A; transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.wa-float__label { display: none; }
@media (min-width: 560px) { .wa-float__label { display: inline; } }
/* clear the mobile sticky bar */
@media (max-width: 767px) { .wa-float { bottom: 5.25rem; } }

/* -------------------------------------------------------------
   20. FORM ON A LIGHT SECTION (booking page)
   ------------------------------------------------------------- */
.form--light { margin-top: var(--sp-4); }
.form--light label { color: var(--text-muted); }
.form--light label span { color: var(--accent-deep); }
.form--light input,
.form--light select,
.form--light textarea {
  background: var(--paper); border-color: var(--rule); color: var(--text);
}
.form--light input::placeholder,
.form--light textarea::placeholder { color: #8A93A5; }
.form--light input:hover,
.form--light select:hover,
.form--light textarea:hover { border-color: var(--text-muted); }
.form--light input:focus,
.form--light select:focus,
.form--light textarea:focus {
  border-color: var(--accent-deep); background: var(--paper);
  box-shadow: 0 0 0 3px rgba(201,160,99,.22);
}
.form--light select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%235A6478' stroke-width='1.6'/%3E%3C/svg%3E");
  /* the background-colour rule above is a shorthand, so these must be restated
     or the chevron tiles across the whole control */
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}
.form--light .form__fine { color: var(--text-muted); }
.form--light .form__status.is-ok { color: var(--accent-deep); }
.form--light .form__status.is-error { color: #C2410C; }

/* Program titles on the homepage now link through to their own page */
.prog__link {
  color: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px;              /* tap target */
  transition: color .2s var(--ease);
}
.prog__link::after {
  content: ""; width: 14px; height: 10px; flex: none;
  background: currentColor; opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M1 7h17M12 1l6 6-6 6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Cpath d='M1 7h17M12 1l6 6-6 6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.prog__link:hover { color: var(--accent); }
.prog__link:hover::after { transform: translateX(4px); }


/* =============================================================
   BOOTSTRAP 5 HARMONIZATION & ENHANCED BOOKING STYLES
   ============================================================= */

/* Fix Bootstrap 5 conflict with base typography & reset */
h1, h2, h3, h4, h5, h6 {
  font-family: "Archivo", "Inter", system-ui, sans-serif !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--paper);
}

a {
  text-decoration: none;
}

/* Modal Styling matching Everest brand */
.modal-content.everest-modal {
  background-color: var(--ink);
  color: var(--text-on-dark);
  border: 1px solid var(--ink-3);
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.everest-modal .modal-header {
  border-bottom: 1px solid var(--ink-3);
  padding: 1.5rem 1.75rem 1rem;
}

.everest-modal .modal-title {
  color: #FFFFFF;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.everest-modal .btn-close-white {
  opacity: 0.8;
  filter: invert(1);
}

.everest-modal .modal-body {
  padding: 1.5rem 1.75rem;
}

.everest-modal .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.4rem;
}

.everest-modal .form-control,
.everest-modal .form-select {
  background-color: var(--ink-2);
  border: 1px solid var(--ink-3);
  color: #FFFFFF;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.everest-modal .form-control:focus,
.everest-modal .form-select:focus {
  background-color: var(--ink-2);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.25);
  outline: none;
}

.everest-modal .form-control::placeholder {
  color: #6C7A92;
}

.everest-modal .form-select option {
  background-color: var(--ink);
  color: #FFFFFF;
}

.everest-modal .modal-footer {
  border-top: 1px solid var(--ink-3);
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* WhatsApp Badge Button */
.btn-whatsapp-direct {
  background-color: #25D366;
  color: #0C1426;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  cursor: pointer;
}

.btn-whatsapp-direct:hover {
  background-color: #20bd5a;
  color: #0C1426;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp-direct:active {
  transform: translateY(0);
}

.btn-whatsapp-direct svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Pulse animation for WhatsApp float */
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-float {
  animation: wa-pulse 2.5s infinite;
}

/* Responsive adjustment for bootstrap container */
@media (max-width: 991.98px) {
  .site-header .nav {
    display: none;
  }
  .burger {
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (min-width: 992px) {
  .burger {
    display: none !important;
  }
}
