/* ============================================================
   02H SWIM SCHOOL — Design System
   Aquatic premium aesthetic. Ocean blue, pool aqua, alice blue.
   Headings: Playfair Display SC (>=24px). Body: DM Sans.
   ============================================================ */

:root {
  --navy:     #0D2137;   /* primary text */
  --ocean:    #0077B6;   /* primary accent */
  --aqua:     #00B4D8;   /* secondary accent */
  --electric: #0096C7;   /* CTA */
  --electric-dk: #007BA8;/* CTA hover */
  --alice:    #F0F8FF;   /* surface */
  --white:    #FFFFFF;
  --muted:    #4A6080;
  --wa-green: #25D366;
  --wa-green-dk: #1ebe5a;

  --line: rgba(13,33,55,0.10);
  --shadow-sm: 0 2px 8px rgba(13,33,55,0.06);
  --shadow-md: 0 10px 30px rgba(13,33,55,0.10);
  --shadow-lg: 0 22px 50px rgba(13,33,55,0.16);
  --glow: 0 0 0 1px var(--ocean), 0 18px 40px rgba(0,119,182,0.25);

  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;

  --font-display: "Playfair Display SC", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.1rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
p  { color: var(--muted); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ocean);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  flex: 0 0 auto;
}
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 300; color: var(--muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--alice { background: var(--alice); }
.section--white { background: var(--white); }
.section--navy  { background: var(--navy); color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; display: inline-flex; }
.section-head p { margin-top: 14px; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem;
  padding: 15px 30px; border-radius: 999px; min-height: 52px;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  text-align: center; cursor: pointer;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn--primary { background: var(--electric); color: var(--white); box-shadow: 0 10px 24px rgba(0,150,199,0.32); }
.btn--primary:hover { background: var(--electric-dk); box-shadow: 0 16px 32px rgba(0,150,199,0.40); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.85); }
.btn--ghost:hover { background: var(--white); color: var(--ocean); }
.btn--outline { background: transparent; color: var(--electric); border: 2px solid var(--electric); }
.btn--outline:hover { background: var(--electric); color: var(--white); }
.btn--wa { background: var(--wa-green); color: var(--white); box-shadow: 0 10px 24px rgba(37,211,102,0.32); }
.btn--wa:hover { background: var(--wa-green-dk); }
.btn--lg { padding: 19px 42px; font-size: 1.12rem; min-height: 62px; }
.btn .ico { width: 20px; height: 20px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo { display: flex; align-items: center; gap: 11px; color: var(--navy); }
.nav__logo img { height: 48px; width: auto; border-radius: 8px; }
.nav__wordmark { display: flex; flex-direction: column; justify-content: center; line-height: 1.08; }
.nav__wordmark-name { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; color: var(--navy); letter-spacing: 0.1px; }
.nav__wordmark-tag { font-family: var(--font-body); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ocean); margin-top: 3px; }
@media (max-width: 430px) {
  .nav__wordmark-name { font-size: 1.02rem; }
  .nav__wordmark-tag { font-size: 0.58rem; letter-spacing: 0.16em; }
  .nav__logo { gap: 9px; }
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-weight: 500; font-size: 0.98rem; color: var(--navy); position: relative; padding: 6px 0; transition: color .2s var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--ocean); transition: width .25s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--ocean); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta { display: inline-flex; }
.nav__toggle { display: none; width: 48px; height: 48px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; border-radius: 10px; }
.nav__toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.nav__mobile {
  position: fixed; inset: 76px 0 auto 0; z-index: 49;
  background: var(--white); border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: 18px 24px 28px;
  box-shadow: var(--shadow-md);
}
.nav__mobile a { padding: 16px 4px; font-size: 1.15rem; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--navy); }
.nav__mobile a:last-of-type { border-bottom: none; }
.nav__mobile .btn { margin-top: 18px; }
.nav.open .nav__mobile { display: flex; animation: dropIn .3s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; }
.hero__swiper { height: clamp(560px, 88vh, 820px); }
.hero__slide { position: relative; height: 100%; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,33,55,0.55) 0%, rgba(13,33,55,0.45) 45%, rgba(13,33,55,0.78) 100%);
}
.hero__content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 24px 70px;
}
.hero__content .eyebrow { color: var(--aqua); margin-bottom: 20px; }
.hero__motto { font-family: var(--font-display); font-weight: 700; line-height: 1.02; color: var(--white); font-size: clamp(2.7rem, 8.5vw, 5.4rem); max-width: 14ch; text-shadow: 0 6px 40px rgba(0,0,0,0.4); }
.hero__motto em { font-style: normal; color: var(--aqua); }
.hero h1.hero__h1 { font-family: var(--font-body); font-weight: 300; color: rgba(255,255,255,0.96); font-size: clamp(1.12rem, 2.6vw, 1.6rem); max-width: 34ch; margin: 22px auto 0; line-height: 1.5; letter-spacing: 0.2px; text-shadow: 0 2px 16px rgba(0,0,0,0.3); }
.hero h1.hero__h1 strong { font-weight: 700; color: var(--white); }
.hero__sub { color: rgba(255,255,255,0.78); font-weight: 500; font-size: clamp(0.82rem, 1.8vw, 0.95rem); letter-spacing: 0.16em; text-transform: uppercase; margin: 18px auto 32px; max-width: 60ch; }
.hero__proof { margin-top: 28px; display: inline-flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; align-items: center; color: rgba(255,255,255,0.9); font-weight: 500; font-size: 0.92rem; }
.hero__proof .stars { color: #F58A1F; letter-spacing: 2px; }
.hero__proof .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__content, .hero__swiper .swiper-slide { } /* keep swiper above wave */

/* Wave divider */
.wave-divider { position: relative; line-height: 0; margin-top: -2px; z-index: 4; }
.wave-divider svg { width: 100%; height: 70px; display: block; }
.wave-divider .wave-a { animation: waveShift 9s ease-in-out infinite alternate; }
.wave-divider .wave-b { animation: waveShift 7s ease-in-out infinite alternate-reverse; }
@keyframes waveShift { from { transform: translateX(0); } to { transform: translateX(-40px); } }
.hero .wave-divider { position: absolute; left: 0; right: 0; bottom: -1px; }
.hero .wave-divider svg path { fill: var(--white); }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust { background: var(--white); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 18px 14px; }
.trust__ico { width: 56px; height: 56px; color: var(--ocean); display: grid; place-items: center; background: var(--alice); border-radius: 50%; }
.trust__ico svg { width: 30px; height: 30px; }
.trust__item span { font-weight: 500; color: var(--navy); font-size: 0.98rem; line-height: 1.4; }

/* ============================================================
   CERT STRIP
   ============================================================ */
.certstrip { background: var(--alice); }
.certstrip__row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.cert-card {
  background: var(--white); border: 2px solid var(--ocean); border-radius: var(--radius);
  padding: 26px 30px; min-width: 230px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-card.is-primary { border-width: 3px; transform: scale(1.04); }
.cert-card.is-primary:hover { transform: scale(1.04) translateY(-4px); }
.cert-card__badge {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(160deg, var(--ocean), var(--aqua)); color: var(--white);
}
.cert-card.is-primary .cert-card__badge { width: 86px; height: 86px; }
.cert-card__badge svg { width: 38px; height: 38px; }
.cert-card__name { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.cert-card__sub { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; }

/* ============================================================
   WHY 02H — asymmetric
   ============================================================ */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--aqua); }
.why-card--feature {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center;
  background: linear-gradient(135deg, var(--navy), #123154); color: var(--white); padding: 44px;
}
.why-card--feature h3, .why-card--feature p { color: var(--white); }
.why-card--feature p { color: rgba(255,255,255,0.85); }
.why-card--feature .why-card__num { color: var(--aqua); }
.why-card__stat { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; font-family: var(--font-display); color: var(--aqua); line-height: 1; }
.why-card__num { font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.2em; color: var(--ocean); display: block; margin-bottom: 12px; }
.why-card h3 { margin-bottom: 10px; }
.why-card__ico { width: 52px; height: 52px; border-radius: 13px; background: var(--alice); color: var(--ocean); display: grid; place-items: center; margin-bottom: 18px; }
.why-card__ico svg { width: 28px; height: 28px; }

/* ============================================================
   CLASSES / PROGRAMMES
   ============================================================ */
.prog__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.prog-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--ocean); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column; gap: 12px;
}
.prog-card:hover { transform: translateY(-8px); box-shadow: var(--glow); }
.prog-card--lg { grid-column: span 7; }
.prog-card--sm { grid-column: span 5; }
.prog-card--mid { grid-column: span 6; }
.prog__grid--four .prog-card--mid { grid-column: span 4; }
.prog-card__ico { width: 50px; height: 50px; color: var(--ocean); }
.prog-card h3 { margin-bottom: 4px; }
.prog-card__link { margin-top: auto; font-weight: 700; color: var(--electric); display: inline-flex; align-items: center; gap: 8px; }
.prog-card__link .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.prog-card:hover .prog-card__link .ico { transform: translateX(5px); }
.badge-popular {
  position: absolute; top: 20px; right: 20px; background: var(--electric); color: var(--white);
  font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}

/* ============================================================
   STUDENT CAROUSEL
   ============================================================ */
.students__swiper { padding-bottom: 10px; }
.student-slide { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-sm); background: var(--alice); }
.student-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.student-slide:hover img { transform: scale(1.06); }
.student-slide__cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(13,33,55,0.78));
  color: var(--white); font-weight: 500; font-size: 0.92rem;
}
.swiper-pag-students, .swiper-pag-testi { position: static; text-align: center; margin-top: 26px; }

/* generic swiper theming */
.swiper-button-next, .swiper-button-prev { color: var(--ocean); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 26px; font-weight: 700; }
.swiper-pagination-bullet { background: var(--ocean); opacity: 0.4; }
.swiper-pagination-bullet-active { background: var(--ocean); opacity: 1; width: 22px; border-radius: 5px; }

/* ============================================================
   VENUES
   ============================================================ */
.venues__map { width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 16/7; margin-bottom: 34px; }
.venues__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.venue-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.venue-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.venue-card__area { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--navy); }
a.venue-card__area { transition: color .2s var(--ease); }
a.venue-card__area:hover { color: var(--ocean); }
.venue-card__condos { color: var(--muted); font-size: 0.96rem; flex-grow: 1; }
.venue-card__list { display: grid; gap: 9px; margin: 6px 0 4px; flex-grow: 1; align-content: start; }
.venue-card__list a { display: inline-flex; align-items: flex-start; gap: 9px; color: var(--navy); font-weight: 500; font-size: 0.96rem; transition: color .2s var(--ease); }
.venue-card__list a svg { width: 17px; height: 17px; color: var(--ocean); flex: 0 0 auto; margin-top: 2px; }
.venue-card__list a:hover { color: var(--ocean); }
.venue-card .btn { margin-top: 14px; }

/* ============================================================
   COACHES
   ============================================================ */
.coach__pre { margin-bottom: 30px; }
.coach__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.coach-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.coach-card:hover { transform: translateY(-8px); box-shadow: var(--glow); }
.coach-card__photo { aspect-ratio: 4/5; background: var(--alice); position: relative; overflow: hidden; }
.coach-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
/* Per coach framing so the three read consistently */
.coach-card__photo--zoom img { transform: scale(1.14); transform-origin: center 26%; }
.coach-card__photo--zoom-lg img { object-position: center 8%; transform: scale(1.22); transform-origin: center 12%; }
.coach-card__photo--contain { background: #fff; }
.coach-card__photo--contain img { object-fit: contain; object-position: center; transform: none; }
.coach-card__photo--placeholder {
  display: grid; place-items: center; text-align: center; padding: 24px;
  background: linear-gradient(160deg, #d9ecf7, #eaf6fc); color: var(--ocean);
}
.coach-card__photo--placeholder span { font-style: italic; font-weight: 500; }
.coach-card__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.coach-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.coach-card__title { font-weight: 500; color: var(--ocean); font-size: 0.95rem; }
.coach-card__bio { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.coach-points { display: grid; gap: 8px; margin: 2px 0; }
.coach-points li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.93rem; line-height: 1.45; }
.coach-points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }

/* cert pills carousel */
.cert-rail { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.cert-rail::-webkit-scrollbar { height: 6px; }
.cert-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.cert-pill {
  flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap;
  border: 2px solid var(--ocean); color: var(--ocean); background: var(--white);
  border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 0.82rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.cert-pill svg { width: 15px; height: 15px; }
.coach-nroc {
  margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.coach-nroc__badge { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(160deg, var(--ocean), var(--aqua)); color: var(--white); display: grid; place-items: center; flex: 0 0 auto; }
.coach-nroc__badge svg { width: 24px; height: 24px; }
.coach-nroc__txt strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--navy); }
.coach-nroc__txt em { display: block; font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi__swiper { padding-bottom: 60px; }
.testi-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 42px; box-shadow: var(--shadow-md); height: 100%;
  display: flex; flex-direction: column; gap: 18px;
}
.testi-card__stars { color: #F58A1F; display: flex; gap: 3px; font-size: 1.25rem; letter-spacing: 2px; }
.testi-card__stars svg { width: 20px; height: 20px; }
.testi-card__quote { font-family: var(--font-body); font-weight: 400; font-size: 1.1rem; line-height: 1.68; color: var(--navy); flex-grow: 1; }
.testi-card__quote::before { content: "\201C"; font-family: var(--font-display); color: var(--aqua); font-size: 2rem; line-height: 0; vertical-align: -0.3em; margin-right: 4px; }
.testi-card__who strong { display: block; font-weight: 700; color: var(--navy); }
.testi-card__who span { font-size: 0.88rem; color: var(--ocean); }

/* ============================================================
   POPUP
   ============================================================ */
.popup-overlay {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(13,33,55,0.55); backdrop-filter: blur(4px);
}
.popup-overlay.show { display: flex; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.popup {
  position: relative; background: var(--white); border: 2px solid var(--ocean);
  border-radius: 22px; max-width: 440px; width: 100%; padding: 44px 36px 38px; text-align: center;
  box-shadow: var(--shadow-lg); animation: popIn .35s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.popup__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; color: var(--navy); display: grid; place-items: center; transition: background .2s; }
.popup__close:hover { background: var(--alice); }
.popup__close svg { width: 22px; height: 22px; }
.popup .eyebrow { color: var(--ocean); margin-bottom: 10px; display: block; }
.popup h3 { font-size: 1.7rem; margin-bottom: 10px; }
.popup p { margin-bottom: 24px; }

/* ============================================================
   FINAL CTA BANNER
   ============================================================ */
.finalcta { background: linear-gradient(120deg, var(--ocean) 0%, var(--aqua) 100%); color: var(--white); text-align: center; }
.finalcta h2 { color: var(--white); }
.finalcta p { color: rgba(255,255,255,0.92); font-weight: 300; font-size: 1.2rem; margin: 16px auto 30px; max-width: 50ch; }
.finalcta .btn--ghost { border-color: var(--white); background: var(--white); color: var(--ocean); }
.finalcta .btn--ghost:hover { background: transparent; color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,0.78); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer__brand img { height: 56px; width: 56px; border-radius: 50%; background: #fff; margin-bottom: 16px; }
.footer__brand p { color: rgba(255,255,255,0.7); }
.footer__tag { font-family: var(--font-display); font-style: italic; color: var(--aqua); font-size: 1.1rem; margin-bottom: 8px; }
.footer h4 { font-family: var(--font-body); font-weight: 700; color: var(--white); margin-bottom: 16px; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; }
.footer__links a { display: block; padding: 7px 0; color: rgba(255,255,255,0.78); transition: color .2s; }
.footer__links a:hover { color: var(--aqua); }
.footer__contact a { color: rgba(255,255,255,0.78); }
.footer__certs { display: flex; gap: 12px; margin-top: 16px; }
.footer__cert { border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; padding: 8px 12px; font-size: 0.74rem; font-weight: 700; color: var(--white); letter-spacing: 0.04em; }
.footer__bottom { padding-top: 24px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.55); font-weight: 300; }
.footer__legal { margin-top: 8px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.footer__legal a { color: rgba(255,255,255,0.7); transition: color .2s var(--ease); }
.footer__legal a:hover { color: var(--aqua); }
.footer__legal span { color: rgba(255,255,255,0.3); }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa-green);
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,0.45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 33px; height: 33px; color: #fff; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa-green);
  z-index: -1; animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }

/* ============================================================
   FLOATING PORTAL SIGN IN (above WhatsApp)
   ============================================================ */
.portal-float {
  position: fixed; right: 22px; bottom: 96px; z-index: 70;
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy);
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(13,33,55,0.35);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.portal-float:hover { transform: scale(1.08); background: var(--ocean); }
.portal-float svg { width: 25px; height: 25px; color: #fff; }

/* Nav portal sign in button */
.nav__portal { padding: 12px 22px; min-height: 44px; font-size: 0.95rem; }
@media (max-width: 1120px) {
  .nav__links { gap: 22px; }
  .nav__portal { padding: 10px 16px; min-height: 40px; font-size: 0.9rem; }
  .nav__cta { padding: 12px 20px; min-height: 44px; font-size: 0.92rem; }
}

/* ============================================================
   SCROLL FADE-IN
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.d1 { transition-delay: .08s; }
.fade-in.d2 { transition-delay: .16s; }
.fade-in.d3 { transition-delay: .24s; }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-head { background: linear-gradient(135deg, var(--navy), #123154); color: var(--white); padding: clamp(70px, 12vw, 130px) 0 clamp(56px, 9vw, 96px); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(0,180,216,0.30), transparent 70%); }
.page-head .eyebrow { color: var(--aqua); }
.page-head h1 { color: var(--white); margin: 16px 0 14px; position: relative; }
.page-head p { color: rgba(255,255,255,0.85); max-width: 60ch; position: relative; }

/* ============================================================
   CLASSES PAGE — alternating feature rows
   ============================================================ */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-row.reverse .feature-row__media { order: 2; }
.feature-row__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 3/2; object-fit: cover; }
.feature-row__media--contain img { object-fit: contain; background: #fff; padding: 18px; }
.feature-row__body .eyebrow { display: block; margin-bottom: 12px; }
.feature-row__body h2 { margin-bottom: 16px; }
.feature-row__body ul.ticks { margin: 18px 0 26px; display: grid; gap: 12px; }
.feature-row__body ul.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--navy); }
.feature-row__body ul.ticks svg { width: 22px; height: 22px; color: var(--ocean); flex: 0 0 auto; margin-top: 2px; }
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 26px; }
.stage-chip { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 18px; }
.stage-chip strong { display: block; color: var(--ocean); font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.stage-chip span { display: block; font-size: 0.85rem; line-height: 1.35; color: var(--muted); }
#learn-to-coach .stage-chip { padding: 12px 12px 14px; }
#learn-to-coach .stage-chip strong { font-size: 0.92rem; line-height: 1.25; }
#learn-to-coach .stage-chip span { font-size: 0.78rem; line-height: 1.3; }
.feature-row__body p a { color: var(--electric); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   FORMS
   ============================================================ */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 500; font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--navy);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(0,119,182,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow-md); }

/* contact split */
.contact-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
.contact-primary { background: linear-gradient(135deg, var(--navy), #123154); color: var(--white); border-radius: var(--radius); padding: clamp(28px,4vw,44px); }
.contact-primary h2 { color: var(--white); }
.contact-primary p { color: rgba(255,255,255,0.82); }
.contact-primary .line { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--white); }
.contact-primary .line svg { width: 22px; height: 22px; color: var(--aqua); }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card__img { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--ocean), var(--aqua)); display: grid; place-items: center; color: #fff; overflow: hidden; }
.blog-card__img svg { width: 54px; height: 54px; opacity: 0.9; }
.blog-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.blog-card__img--logo { background: #fff; }
.blog-card__img--logo img { object-fit: contain; padding: 14px; }
.blog-card__img--zoom img { transform: scale(1.32); transform-origin: center 40%; }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card:hover .blog-card__img--zoom img { transform: scale(1.38); }
.blog-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.blog-card__meta { font-size: 0.8rem; color: var(--ocean); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.blog-card h3 { font-size: 1.3rem; }
.blog-card__excerpt { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.blog-card__link { color: var(--electric); font-weight: 700; }
.blog-note { background: var(--alice); border: 1px solid var(--ocean); border-radius: var(--radius); padding: 20px 24px; color: var(--muted); margin-bottom: 40px; font-size: 0.95rem; }
.blog-card__tag { display: inline-block; align-self: flex-start; background: var(--alice); color: var(--ocean); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }

/* ===================== ARTICLE / BLOG POST ===================== */
.article { max-width: 760px; margin: 0 auto; }
.article__back { display: inline-flex; align-items: center; gap: 8px; color: var(--electric); font-weight: 700; margin-bottom: 22px; }
.article__back svg { width: 18px; height: 18px; }
.article__byline { color: var(--muted); font-weight: 500; font-size: 0.98rem; margin: 0 0 8px; }
.article__hero { margin: 18px 0 26px; }
.article__hero img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.article > p { color: var(--navy); font-size: 1.06rem; line-height: 1.78; margin-bottom: 18px; }
.article h2 { margin: 40px 0 14px; }
.article h3 { margin: 28px 0 10px; font-size: 1.28rem; }
.article ul { display: grid; gap: 9px; margin: 0 0 22px; padding-left: 0; }
.article ul li { position: relative; padding-left: 26px; color: var(--navy); line-height: 1.6; }
.article ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); }
.article blockquote { margin: 28px 0; padding: 24px 28px; background: var(--alice); border-left: 4px solid var(--ocean); border-radius: 0 14px 14px 0; font-family: var(--font-body); font-style: italic; font-weight: 500; font-size: 1.14rem; line-height: 1.6; color: var(--navy); }
.article .faq-q { font-weight: 700; color: var(--navy); font-size: 1.05rem; margin: 24px 0 6px; }
.article__cta { margin: 38px 0 8px; padding: 32px; background: linear-gradient(135deg, var(--navy), #123154); border-radius: var(--radius); text-align: center; }
.article__cta h3 { color: #fff; margin: 0 0 10px; }
.article__cta p { color: rgba(255,255,255,0.85); margin: 0 auto 20px; max-width: 48ch; }
.article hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

/* ============================================================
   MISC
   ============================================================ */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.section-foot { margin-top: 40px; text-align: center; }

/* ============================================================
   PROGRAMME FEATURE (bigger Learn to Swim) + COACH DETAIL
   ============================================================ */
.prog-card--full { grid-column: 1 / -1; }
.prog-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-left: 4px solid var(--ocean); }
.prog-card--feature:hover { transform: none; box-shadow: var(--shadow-md); }
.prog-card__media { position: relative; min-height: 280px; background: var(--alice); }
.prog-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prog-card__inner { padding: 40px; display: flex; flex-direction: column; gap: 12px; }

.coach-hero { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.coach-hero__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-md); background: var(--alice); }
.coach-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.coach-hero__body .coach-card__title { font-size: 1.05rem; color: var(--ocean); font-weight: 500; }

.certgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.cert-item { background: var(--white); border: none; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cert-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-item__img { background: #fff; overflow: hidden; }
.cert-item__img img { width: 100%; height: auto; display: block; }
.cert-item__ph { aspect-ratio: 4/3; display: grid; place-items: center; align-content: center; text-align: center; gap: 8px; padding: 20px; background: linear-gradient(160deg, #d9ecf7, #eaf6fc); color: var(--ocean); }
.cert-item__ph svg { width: 40px; height: 40px; }
.cert-item__ph strong { font-family: var(--font-body); font-weight: 700; }
.cert-item__ph em { font-size: 0.8rem; color: var(--muted); }
.cert-item__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.cert-item__name { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.cert-item__desc { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.cert-item__link { margin-top: auto; font-size: 0.82rem; font-weight: 700; color: var(--electric); display: inline-flex; align-items: center; gap: 6px; }
.cert-item__link:hover { color: var(--ocean); }

.coach-card__cta { margin-top: 14px; font-weight: 700; color: var(--electric); display: inline-flex; align-items: center; gap: 8px; }
.coach-card__cta svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.coach-card:hover .coach-card__cta svg { transform: translateX(5px); }

@media (max-width: 900px) {
  .prog-card--feature { grid-template-columns: 1fr; }
  .prog-card__media { min-height: 220px; }
  .coach-hero { grid-template-columns: 1fr; }
  .coach-hero__photo { max-width: 300px; }
}
@media (max-width: 760px) {
  .testi-card { padding: 30px 26px; }
  .testi-card__quote { font-size: 1.06rem; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .why__grid { grid-template-columns: 1fr 1fr; }
  .why-card--feature { grid-template-columns: 1fr; gap: 20px; padding: 32px; }
  .prog-card--lg, .prog-card--sm, .prog-card--mid, .prog__grid--four .prog-card--mid { grid-column: span 12; }
  .venues__grid { grid-template-columns: 1fr 1fr; }
  .coach__grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-row__media { order: 0; }
  .contact-split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta, .nav__portal { display: none; }
  .nav__toggle { display: flex; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .venues__grid { grid-template-columns: 1fr; }
  .coach__grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .stage-grid { grid-template-columns: 1fr 1fr; }
  .hero__cta { flex-direction: column; width: 100%; max-width: 320px; }
  .hero__cta .btn { width: 100%; }
}

@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .trust__grid { gap: 10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .fade-in { opacity: 1; transform: none; }
}
