/* ==========================================================================
   ABDO FITNESS & WELLBEING — style.css  (DARK THEME)
   Mobile-first · Pure CSS · Montserrat
   Palette: Cyan #00D4E7 · Charcoal #111111 · Deep Dark Surfaces
            Ink #0A0D12 · Surface #161B23 · Border #262C37
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;

  --cyan: #00D4E7;
  --cyan-bright: #4BE6F5;
  --cyan-dark: #2ED9EA;            /* accent text on dark */
  --cyan-soft: rgba(0, 212, 231, 0.12);

  --charcoal: #111111;             /* brand dark (buttons, footer) */
  --page: #0A0D12;                 /* page background */
  --bg: #10141B;                   /* inputs & subtle surfaces */
  --surface: #161B23;              /* cards */
  --surface-2: #0E1218;            /* alternating sections */
  --white: #FFFFFF;
  --gray: #262C37;                 /* borders */
  --text: #F2F5F9;
  --text-soft: #C7D0DB;
  --muted: #97A2B2;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 4px 14px rgba(0, 0, 0, .28);
  --shadow: 0 8px 28px rgba(0, 0, 0, .45);
  --shadow-lg: 0 22px 56px rgba(0, 0, 0, .58);
  --shadow-cyan: 0 14px 34px rgba(0, 212, 231, .26);

  --nav-h: 76px;
  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --grad-cyan: linear-gradient(135deg, #00E5F5 0%, #00D4E7 45%, #00A9BC 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--page);
}

body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 { font-size: clamp(2.1rem, 6.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }

p { margin: 0 0 1.1rem; }

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

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

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--gray);
  color: var(--white);
  border-radius: var(--radius-pill);
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; }

::selection {
  background: var(--cyan);
  color: #06262c;
}

/* ---------- 3. Icons ---------- */
.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}
.eyebrow--center { display: block; text-align: center; }

.text-gradient {
  background: var(--grad-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section__title { margin-bottom: 16px; }
.section__title--center { text-align: center; }

.section__lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
}

/* ---------- 5. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--primary {
  background: var(--grad-cyan);
  color: #06262c;
  box-shadow: var(--shadow-cyan);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .5) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0, 212, 231, .38);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--secondary {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border: 1.5px solid var(--gray);
}
.btn--secondary:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  color: var(--cyan-bright);
  background: var(--cyan-soft);
  box-shadow: var(--shadow);
}

.btn--dark {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: var(--shadow-sm);
}
.btn--dark:hover {
  transform: translateY(-3px);
  background: #E9EEF5;
  box-shadow: var(--shadow-lg);
}

.btn--whatsapp {
  background: #25D366;
  color: #052e16;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .26);
}
.btn--whatsapp:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(37, 211, 102, .36); }
.btn--whatsapp .icon { fill: #052e16; stroke: none; }

.btn--lg { padding: 18px 34px; font-size: 1rem; }
.btn--sm { padding: 11px 22px; font-size: .86rem; }
.btn--block { width: 100%; }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.link-inline {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--cyan-dark);
  border-bottom: 2px solid transparent;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.link-inline:hover { border-color: var(--cyan); color: var(--cyan-bright); }

/* ---------- 6. Header / navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  background: rgba(10, 13, 18, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 13, 18, .92);
  border-bottom-color: var(--gray);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand__mark {
 display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
}
.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--white);
}
.brand__text em {
  font-style: normal;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__menu { display: flex; align-items: center; gap: 34px; }

.nav__list { display: flex; align-items: center; gap: 30px; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-cyan);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--white); font-weight: 700; }

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid var(--gray);
  background: var(--surface);
  padding: 0;
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2.5px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Page ---------- */
/* Multi-page build: each page is a real route, so always render it. */
.page {
  display: block;
  animation: pageIn .5s var(--ease) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

main { padding-top: var(--nav-h); }

/* ---------- 8. Sections ---------- */
.section {
  padding: clamp(64px, 9vw, 116px) 0;
}
.section--alt {
  background: var(--surface-2);
  border-block: 1px solid var(--gray);
}

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 8vw, 100px);
  background:
    radial-gradient(1000px 520px at 92% -8%, rgba(0, 212, 231, .20), transparent 62%),
    radial-gradient(760px 460px at 4% 100%, rgba(0, 212, 231, .12), transparent 60%),
    linear-gradient(180deg, #0C1017 0%, var(--page) 100%);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .38;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.hero__blob--1 {
  width: 320px; height: 320px;
  top: -70px; right: -60px;
  background: rgba(0, 212, 231, .55);
}
.hero__blob--2 {
  width: 260px; height: 260px;
  bottom: -90px; left: -70px;
  background: rgba(0, 169, 188, .40);
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -26px, 0) scale(1.06); }
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(38px, 6vw, 62px);
  align-items: center;
}

/* Sized so the headline, intro and buttons all fit on a 13" laptop screen. */
.hero__title { margin-bottom: 20px; font-size: clamp(2rem, 3.5vw, 3.1rem); }

.hero__text {
  max-width: 56ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-soft);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 9px; }
.hero__trust .icon {
  width: 20px; height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan);
  stroke-width: 2.6;
}

.hero__media { position: relative; }

.hero__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--gray);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.hero__media:hover .hero__image-wrap img { transform: scale(1.045); }
.hero__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(10, 13, 18, .72) 100%);
  pointer-events: none;
}

.hero__badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  background: rgba(22, 27, 35, .88);
  backdrop-filter: blur(14px);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: float 9s ease-in-out infinite;
}
.hero__badge strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cyan-bright);
  line-height: 1.2;
}
.hero__badge span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__badge--1 { top: 8%; left: -14px; }
.hero__badge--2 { bottom: 9%; right: -14px; animation-delay: -4.5s; }

/* ---------- 10. Split (about blocks) ---------- */
.split {
  display: grid;
  gap: clamp(36px, 6vw, 70px);
  align-items: center;
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray);
  box-shadow: var(--shadow-lg);
  /* Portrait frame: the About photo is 3:4, so cover barely crops. Top-aligned
     so any leftover crop is taken from the bottom, never the face. */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.split__media-card {
  position: absolute;
  right: 16px;
  bottom: -22px;
  display: flex;
  flex-direction: column;
  padding: 18px 24px;
  background: rgba(22, 27, 35, .92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.split__media-card strong {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cyan-bright);
  line-height: 1;
}
.split__media-card span {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.split__content p { color: var(--muted); }

/* ---------- 11. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0 32px;
  padding: 22px 0;
  border-block: 1px solid var(--gray);
}
.stats strong {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
}
.stats span {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- 12. Cards ---------- */
.cards {
  display: grid;
  gap: 26px;
}
.cards--3 { grid-template-columns: 1fr; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 231, .55);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--cyan-soft);
  color: var(--cyan);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.card__icon .icon { width: 26px; height: 26px; }
.card:hover .card__icon {
  background: var(--grad-cyan);
  color: #06262c;
  transform: rotate(-6deg) scale(1.05);
}
.card__icon--soft { background: rgba(255, 255, 255, .06); color: var(--cyan); }
.card__icon--lg { width: 92px; height: 92px; border-radius: 26px; margin: 0; }
.card__icon--lg .icon { width: 40px; height: 40px; }

.card__title { margin-bottom: 12px; }

.card__text {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 22px;
}
.card .card__text:last-child { margin-bottom: 0; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: .9rem;
  font-weight: 700;
  color: var(--cyan-bright);
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.card__link .icon { width: 17px; height: 17px; }
.card__link:hover { color: var(--cyan); gap: 13px; }

/* Card action pinned to the bottom so buttons line up across a row of cards */
.card > .btn { margin-top: auto; }

.card--location .tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--gray);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Home: location finder ---------- */
/* One shared map driven by a compact selector. Desktop places the selector
   beside the map; mobile turns it into a sideways-scrolling row above it. */
.location-finder { display: grid; gap: 24px; }

.location-finder__picker { display: grid; gap: 18px; align-content: start; }

.location-finder__title {
  margin: 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.location-chips {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  /* Mobile: the selector scrolls sideways so it never crowds the map. */
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.location-chips::-webkit-scrollbar { display: none; }
.location-chips > li { flex: 0 0 auto; scroll-snap-align: start; }

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--gray);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  cursor: pointer;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.location-chip:hover { border-color: rgba(0, 212, 231, .45); color: var(--text); transform: translateY(-2px); }
.location-chip.is-active {
  background: linear-gradient(180deg, rgba(0, 212, 231, .16), rgba(0, 212, 231, .04));
  border-color: rgba(0, 212, 231, .6);
  color: var(--white);
}
.location-chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.location-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.location-chip.is-active .location-chip__dot { background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 212, 231, .18); }

.location-finder__map {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.location-finder__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transition: opacity .4s var(--ease);
}
/* Faded while the next location's tiles load, so the swap feels smooth. */
.location-finder__map iframe.is-loading { opacity: .28; }

.location-finder__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.location-finder__directions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--cyan-bright);
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.location-finder__directions .icon { width: 15px; height: 15px; }
.location-finder__directions:hover { color: var(--cyan); gap: 11px; }

@media (min-width: 900px) {
  /* Selector beside the map; the chips read as a vertical list. */
  .location-finder { grid-template-columns: 300px 1fr; align-items: start; }
  .location-chips { flex-direction: column; gap: 8px; overflow: visible; padding-bottom: 0; }
  .location-chips > li { width: 100%; }
  .location-chip { width: 100%; justify-content: flex-start; }
  .location-finder__map { min-height: 430px; }
}

/* ---------- Home: Meet Abdo (video cards) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 28px);
}

.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 231, .45);
  box-shadow: var(--shadow-lg);
}

.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  border-bottom: 1px solid var(--gray);
}
.video-card__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__body { padding: 22px 24px 26px; }
.video-card__title { margin: 0 0 8px; font-size: 1.12rem; }
.video-card__text { margin: 0; font-size: .93rem; color: var(--muted); }

@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 13. Testimonials ---------- */
.stars { display: flex; gap: 4px; margin-bottom: 18px; color: #FFB020; }
.stars .icon { width: 18px; height: 18px; }

.testimonial__quote {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--gray);
}
.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-cyan);
  color: #06262c;
  font-weight: 900;
}
.testimonial__author span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.testimonial__author strong { font-size: .95rem; font-weight: 800; color: var(--white); }
.testimonial__author em {
  font-style: normal;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- 14. CTA ---------- */
.cta {
  position: relative;
  padding: clamp(44px, 6vw, 76px) clamp(26px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #131923 0%, #0A0D12 100%);
  border: 1px solid var(--gray);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta__glow {
  position: absolute;
  width: 460px;
  height: 460px;
  top: -230px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 231, .45), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}
.cta__title { position: relative; margin-bottom: 16px; }
.cta__text {
  position: relative;
  max-width: 58ch;
  margin: 0 auto 30px;
  color: var(--muted);
}
.cta .btn { position: relative; }

.cta--soft {
  background: var(--surface);
  border-color: var(--gray);
  box-shadow: var(--shadow-sm);
}
.cta--soft .cta__text { color: var(--muted); }

/* ---------- 15. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 84px);
  background:
    radial-gradient(760px 400px at 88% 0%, rgba(0, 212, 231, .18), transparent 62%),
    linear-gradient(180deg, #0E1218 0%, var(--page) 100%);
  border-bottom: 1px solid var(--gray);
}
.page-hero__title { max-width: 20ch; margin-bottom: 18px; }
.page-hero__lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

/* ---------- 16. Service rows ---------- */
.service-row {
  display: grid;
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
}
.service-row__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(38px, 6vw, 60px);
  background: var(--bg);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.section--alt .service-row__media { background: var(--surface); }
.service-row__num {
  position: absolute;
  top: 18px;
  left: 22px;
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 212, 231, .22);
  letter-spacing: -.04em;
}
.service-row__content p { color: var(--muted); }

/* Service image: uploaded via the admin, or the bundled placeholder fallback */
.service-row__media--image { padding: clamp(12px, 1.8vw, 20px); }
.service-row__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg);
}

/* ---------- 17. Checklist ---------- */
.checklist { margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-soft);
}
.checklist .icon {
  width: 22px; height: 22px;
  flex: 0 0 22px;
  margin-top: 3px;
  padding: 3px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan);
  stroke-width: 2.8;
}

/* ---------- 18. Forms ---------- */
.form-layout {
  display: grid;
  /* minmax(0, …) stops a wide child (images, long words) from pushing the
     single mobile column past the viewport. */
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.form-layout > * { min-width: 0; }
.form-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.form-aside > * { min-width: 0; }

.form-card {
  padding: clamp(26px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-card__title { margin-bottom: 8px; }
.form-card__text { color: var(--muted); font-size: .92rem; margin-bottom: 26px; }
.form-card__text span { color: var(--cyan); font-weight: 700; }

.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

/* min-width: 0 lets inputs shrink below their intrinsic size on narrow phones
   instead of pushing the form card past the viewport. */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label {
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #DDE4EC;
}
.field label span { color: var(--cyan); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 15px 18px;
  background: var(--bg);
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-size: .95rem;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2397A2B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}
.field select option { background: var(--surface); color: var(--text); }
.field input::placeholder,
.field textarea::placeholder { color: #6B7686; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #131922;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-soft);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #FF6B70;
  background: rgba(255, 107, 112, .09);
}
.field__error {
  min-height: 0;
  font-size: .78rem;
  font-weight: 600;
  color: #FF8A8E;
}

.form-note {
  margin: 16px 0 0;
  font-size: .8rem;
  color: var(--muted);
}

.form-status {
  margin: 18px 0 0;
  padding: 0;
  font-size: .92rem;
  font-weight: 700;
}
.form-status.is-success {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 212, 231, .45);
  color: var(--cyan-bright);
  animation: pageIn .4s var(--ease) both;
}
.form-status.is-error {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(255, 107, 112, .1);
  border: 1px solid rgba(255, 107, 112, .38);
  color: #FF9CA0;
}

/* ---------- 19. Aside cards ---------- */
.card--aside { padding: clamp(24px, 3vw, 32px); }

.steps { display: grid; gap: 16px; }
.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: .93rem;
  color: var(--muted);
}
.steps__num {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-cyan);
  color: #06262c;
  font-size: .82rem;
  font-weight: 800;
}

.contact-list { display: grid; gap: 16px; margin-bottom: 24px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-soft);
  word-break: break-word;
}
.contact-list__icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--cyan-soft);
  color: var(--cyan);
}
.contact-list__icon .icon { width: 20px; height: 20px; }
.contact-list a { transition: color .25s var(--ease); }
.contact-list a:hover { color: var(--cyan-bright); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--gray);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* ---------- 20. Socials ---------- */
.socials { display: flex; gap: 10px; }
.socials--wide { flex-wrap: wrap; }

.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid var(--gray);
  font-size: .86rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), background .3s var(--ease);
}
.social .icon { width: 19px; height: 19px; }
.social:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  color: var(--cyan-bright);
  background: var(--cyan-soft);
}

.social--round {
  width: 46px;
  height: 46px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.social--round .icon { width: 20px; height: 20px; }

/* ---------- 21. Footer ---------- */
.footer {
  background: #070A0E;
  border-top: 1px solid var(--gray);
  color: var(--muted);
  padding-top: clamp(52px, 7vw, 80px);
}
.footer__inner {
  display: grid;
  gap: 40px;
  padding-bottom: 44px;
}
.brand--footer .brand__text strong { color: var(--white); }
.brand--footer .brand__text em { color: var(--muted); }

.footer__tagline {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: .92rem;
  color: var(--muted);
}

.footer__title {
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer__col ul { display: grid; gap: 12px; }
.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-soft);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer__col a:hover { color: var(--cyan-bright); transform: translateX(3px); }
.footer__col .icon { width: 18px; height: 18px; }
.footer .social {
  background: rgba(255, 255, 255, .05);
  border-color: var(--gray);
  color: var(--text-soft);
}
.footer .social:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--cyan-bright);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-block: 24px;
  border-top: 1px solid var(--gray);
  font-size: .82rem;
}
.footer__bottom p { margin: 0; color: var(--muted); }

/* ---------- 22. Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--gray);
  color: var(--cyan);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              visibility .35s var(--ease), background .3s var(--ease),
              color .3s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: var(--grad-cyan);
  color: #06262c;
  border-color: transparent;
  transform: translateY(-4px);
}

/* ---------- 23. Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 24. Responsive: tablet ---------- */
@media (min-width: 640px) {
  .container { padding-inline: 28px; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 25. Responsive: desktop ---------- */
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  /* About: ~40% media / ~60% content, with extra breathing room between them */
  .split {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: clamp(48px, 7vw, 96px);
  }
  .split--reverse .split__media { order: 2; }
  .split--reverse .split__content { order: 1; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .service-row { grid-template-columns: 1fr 1.25fr; }
  .service-row--reverse .service-row__media { order: 2; }
  .service-row--reverse .service-row__content { order: 1; }
  .form-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .footer__inner { grid-template-columns: 1.5fr 1fr 1.4fr 1fr; }
  .section__head { margin-bottom: 70px; }
}

@media (min-width: 1200px) {
  .hero__inner { gap: 72px; }
}

/* ---------- 26. Responsive: mobile navigation ---------- */
@media (max-width: 899px) {
  .nav__toggle { display: grid; }

  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    z-index: 119;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    /* The header's backdrop-filter makes it the containing block for this
       fixed panel, so size it to the viewport explicitly. Solid background:
       a nested backdrop-filter does not render, letting the page show through. */
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 26px 20px 34px;
    background: var(--page);
    border-bottom: 1px solid var(--gray);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s var(--ease);
  }
  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    display: block;
    padding: 15px 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--gray);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--cyan-bright); }
}

/* ---------- 26b. Responsive: mobile hero overlay ---------- */
/* Below 900px the hero photo becomes the section background and the copy
   layers on top of it over a scrim. Desktop stays text-left / image-right. */
@media (max-width: 899px) {
  /* Drop out of the grid so the media can anchor to the whole section. */
  .hero__inner {
    display: block;
    position: static;
  }

  .hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  /* Full-bleed background rather than a rounded card. */
  .hero__image-wrap {
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* Stronger scrim than the desktop bottom fade, for text contrast. */
  .hero__image-wrap::after {
    background: linear-gradient(
      180deg,
      rgba(8, 10, 14, .84) 0%,
      rgba(8, 10, 14, .68) 45%,
      rgba(8, 10, 14, .92) 100%
    );
  }

  /* No hover zoom on touch — it would fire on tap. */
  .hero__media:hover .hero__image-wrap img { transform: none; }

  /* Floating stat badges would collide with the layered copy. */
  .hero__badge { display: none; }

  .hero__content {
    position: relative;
    z-index: 2;
  }

  .hero__text { color: var(--text-soft); }
}

/* ---------- 27. Small phones ---------- */
@media (max-width: 420px) {
  .brand__text em { letter-spacing: .16em; font-size: .56rem; }
  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .hero__actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .cta__actions .btn { width: 100%; }
  .hero__badge { padding: 11px 16px; }
  .hero__badge strong { font-size: .95rem; }
}

/* ---------- 28. 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; }
}

/* ---------- 29. Print ---------- */
@media print {
  .site-header, .back-to-top, .nav__toggle { display: none; }
  .page { display: block !important; }
}

/* ---------- 30. Server-rendered additions ---------- */
/* Flash alerts (rendered by the layout from session flashes) */
.alert-stack {
  display: grid;
  gap: 12px;
  padding-top: 24px;
}
.alert {
  padding: 16px 22px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 600;
  border: 1px solid var(--gray);
  background: var(--surface);
}
.alert--success {
  background: var(--cyan-soft);
  border-color: rgba(0, 212, 231, .45);
  color: var(--cyan-bright);
}
.alert--error {
  background: rgba(255, 107, 112, .1);
  border-color: rgba(255, 107, 112, .38);
  color: #FF9CA0;
}

/* Timetable */
.day-heading {
  margin: 40px 0 20px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}
/* Avoid stacking the section intro margin with the first day heading */
.section__head + .day-heading { margin-top: 0; }

/* Status badge (workshops) */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--gray);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Badge sits directly above a card's action — keep a minimum gap when that
   action is pinned to the bottom of the card. */
.card .badge { margin-bottom: 22px; }

.card__meta {
  margin: 0 0 18px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Public classes page ---------- */
.card__media {
  margin-bottom: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray);
  background: var(--bg);
  aspect-ratio: 16 / 10;
}
.card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.class-meta {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-soft);
}
.class-meta li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.class-meta__label {
  flex: 0 0 88px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted { color: var(--muted); }

/* ---------- 31. Class pricing ---------- */
.pricing__card { text-align: center; }
.pricing__price {
  margin: 6px 0 4px;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}
.pricing__card .badge { margin-top: 14px; }
.pricing__per { font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.pricing__group {
  margin: 36px 0 18px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  color: var(--white);
}
.pricing__group:first-child { margin-top: 0; }
.cards--2 { display: grid; gap: 24px; }
@media (min-width: 640px) { .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; } }
.pricing__included { margin-top: 28px; text-align: center; color: var(--text-soft, #C9D2DE); }

/* ---------- 32. Nav call-to-action + tighter mobile spacing ---------- */
.nav__cta { white-space: nowrap; }
@media (max-width: 899px) {
  .nav__cta { margin-top: 18px; width: 100%; padding: 15px 22px; font-size: .95rem; }
}
@media (max-width: 639px) {
  .section { padding: 52px 0; }
}

/* ---------- 33. Shorter mobile homepage ---------- */
@media (max-width: 639px) {
  /* Videos and testimonials become a sideways swipe row instead of a long stack. */
  .swipe-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    margin-inline: -20px;
    padding-inline: 20px;
    scroll-padding-inline: 20px;
  }
  .swipe-row > * { scroll-snap-align: start; min-width: 0; }
  .swipe-row > .card { padding: 22px 20px; }
  .swipe-row .testimonial__quote { font-size: .95rem; line-height: 1.6; }

  /* About photo: a cropped portrait rather than a full-height image. */
  .split__media img { max-height: 380px; width: 100%; object-fit: cover; object-position: center 20%; }

  /* Footer links in two columns. */
  .footer__col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
}

/* ---------- 34. Long-form text (privacy policy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 38px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft, #C9D2DE); line-height: 1.75; }
.prose ul { margin: 0 0 16px; padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: 8px; }

/* ---------- 35. About: qualifications ---------- */
.credentials {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--gray);
  border-radius: var(--radius-lg);
}
.credentials__title {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.credentials__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.credentials__list li { display: flex; flex-direction: column; gap: 2px; }
.credentials__list strong { color: var(--white); font-size: 1rem; }
.credentials__list span { color: var(--muted); font-size: .88rem; }
