/* ============ TOKENS ============ */
:root {
  --forest-900: #1F3D2B;
  --forest-800: #234631;
  --forest-700: #2A5239;
  --cream: #FDF6E3;
  --cream-dim: #F7EFD8;
  --orange-600: #F2542D;
  --orange-700: #D6431F;
  --orange-100: #FBDCD1;
  --marigold-500: #F5B942;
  --teal-500: #5FB0A8;
  --teal-700: #3E8981;
  --ink: #1A2E22;
  --ink-soft: #3D5747;
  --white: #FFFFFF;

  --r-sm: 10px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(31, 61, 43, 0.08);
  --shadow-md: 0 12px 28px -10px rgba(31, 61, 43, 0.22), 0 3px 8px rgba(31, 61, 43, 0.10);
  --shadow-lg: 0 32px 64px -20px rgba(31, 61, 43, 0.30), 0 12px 24px -12px rgba(31, 61, 43, 0.16);

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--forest-900); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  background: var(--orange-600); color: var(--white); padding: 12px 20px;
  border-radius: var(--r-sm); transition: top 200ms var(--ease-out);
}
.skip-link:focus { top: 16px; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 12px;
}

.underline { position: relative; display: inline-block; color: var(--orange-600); }
.underline::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.05em; height: 0.14em;
  background: var(--marigold-500); border-radius: var(--r-full);
}
.underline--light::after { background: var(--marigold-500); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: var(--r-full);
  font-family: var(--font-body); font-weight: 700; font-size: 0.9375rem;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background-color 180ms var(--ease-out);
  white-space: nowrap;
}
.btn--sm { padding: 10px 22px; font-size: 0.875rem; }
.btn--solid { background: var(--orange-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--orange-700); transform: scale(1.03); box-shadow: var(--shadow-md); }
.btn--solid:active { transform: scale(0.97); }
.btn--outline { background: transparent; color: var(--forest-900); border: 2px solid var(--forest-900); padding: 13px 28px; }
.btn--outline:hover { transform: scale(1.03); background: var(--forest-900); color: var(--cream); }
.btn--outline:active { transform: scale(0.97); }
.btn--dark { background: var(--forest-900); color: var(--cream); }
.btn--dark:hover { background: var(--forest-800); }
.btn--on-orange { border-color: var(--white); color: var(--white); }
.btn--on-orange:hover { background: var(--white); color: var(--orange-700); }

.hero .btn--outline { color: var(--cream); border-color: var(--cream); }
.hero .btn--outline:hover { background: var(--cream); color: var(--forest-900); }

/* ============ SCROLL REVEAL ============ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal-line] { display: block; opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
[data-reveal-line].in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-line] { opacity: 1; transform: none; transition: none; }
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: 20px;
  transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), padding 220ms var(--ease-out), color 220ms var(--ease-out);
  color: var(--cream);
}
.nav.is-scrolled { background: var(--cream); box-shadow: var(--shadow-sm); padding-block: 12px; color: var(--forest-900); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: inherit; }
.nav__logo em { font-style: normal; color: var(--orange-600); }
.nav__logo-icon { flex-shrink: 0; transition: transform 500ms var(--ease-out); }
.nav__logo:hover .nav__logo-icon { transform: rotate(-8deg); }
.nav__links { display: flex; gap: 32px; font-weight: 700; font-size: 0.9375rem; color: inherit; }
.nav__links a { position: relative; padding-block: 4px; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--orange-600); transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
}
.nav__toggle span { display: block; height: 2.5px; width: 100%; background: currentColor; border-radius: var(--r-full); transition: transform 260ms var(--ease-out), opacity 260ms var(--ease-out); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; background: var(--cream); color: var(--forest-900);
  box-shadow: var(--shadow-sm);
  max-height: 0; overflow: hidden; transition: max-height 320ms var(--ease-out);
}
.mobile-menu__inner { display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 24px; }
.mobile-menu.is-open { max-height: 400px; }
.mobile-menu a { padding: 12px 0; font-weight: 700; border-bottom: 1px solid rgba(31,61,43,0.08); }
.mobile-menu .btn { margin-top: 12px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--forest-900), var(--forest-800));
  padding-top: 150px;
  padding-bottom: 0;
  overflow: hidden;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }

.hero__trust { display: flex; align-items: center; gap: 12px; background: rgba(253,246,227,0.08); border: 1px solid rgba(253,246,227,0.16); padding: 8px 18px 8px 8px; border-radius: var(--r-full); margin-bottom: 28px; }
.avatar-cluster { display: flex; }
.avatar-cluster img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--forest-900); object-fit: cover; margin-left: -10px; }
.avatar-cluster img:first-child { margin-left: 0; }
.hero__trust-text { color: var(--cream); font-size: 0.875rem; font-weight: 600; }
.hero__trust-text strong { color: var(--marigold-500); }

.hero__headline {
  font-size: clamp(2.5rem, 1.9rem + 3.6vw, 4.5rem);
  color: var(--cream);
  max-width: 16ch;
}
.reveal-line--accent { color: var(--marigold-500); position: relative; }
.dot { color: var(--orange-600); }

.hero__subhead { color: var(--cream); opacity: 0.85; max-width: 46ch; margin: 24px auto 0; font-size: 1.125rem; }

.hero__ctas { display: flex; align-items: center; gap: 18px; margin-top: 36px; position: relative; flex-wrap: wrap; justify-content: center; }
.doodle-arrow { position: absolute; left: calc(100% + 10px); bottom: -30px; transform: rotate(6deg); }

.hero__visual { position: relative; margin-top: 64px; height: 460px; width: 100%; max-width: 620px; }
.cutout { position: absolute; overflow: hidden; box-shadow: var(--shadow-lg); }
.cutout img { width: 100%; height: 100%; object-fit: cover; }

.cutout--back-left {
  width: 46%; height: 92%; left: 0; top: 4%;
  clip-path: path('M0,40 C0,10 30,0 70,10 L230,10 C270,0 300,20 300,60 L300,340 C300,380 260,400 220,390 L70,390 C20,400 0,370 0,330 Z');
  transform: rotate(-7deg);
  background: var(--forest-800);
}
.cutout--back-right {
  width: 46%; height: 92%; right: 0; top: 6%;
  clip-path: path('M0,40 C0,10 30,0 70,10 L230,10 C270,0 300,20 300,60 L300,340 C300,380 260,400 220,390 L70,390 C20,400 0,370 0,330 Z');
  transform: rotate(8deg);
  background: var(--forest-800);
}
.cutout--front {
  width: 58%; left: 50%; top: 0; height: 100%;
  transform: translateX(-50%);
  border-radius: var(--r-lg) var(--r-lg) 46% 46% / var(--r-lg) var(--r-lg) 30% 30%;
  border: 8px solid var(--marigold-500);
}
.doodle-squiggle { position: absolute; top: -8px; right: 4%; }

.hero__divider { display: block; width: 100%; height: 90px; margin-top: 56px; }

@media (hover: hover) {
  .cutout--back-left, .cutout--back-right { transition: transform 500ms var(--ease-out); }
}

/* ============ STATS ============ */
.stats { background: var(--cream); margin-top: -70px; padding-top: 48px; padding-bottom: 64px; position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  background: var(--white); border-radius: var(--r-md); padding: 28px 20px;
  box-shadow: var(--shadow-md); text-align: center; display: flex; flex-direction: column; gap: 6px;
}
.stat__num { font-family: var(--font-display); font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); font-weight: 700; color: var(--forest-900); }
.stat__label { font-size: 0.8125rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }

/* ============ PHILOSOPHY ============ */
.philosophy { padding-block: 100px; }
.philosophy__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.philosophy__text h2 { font-size: clamp(2rem, 1.6rem + 2.2vw, 3rem); margin-bottom: 20px; }
.philosophy__text > p { color: var(--ink-soft); font-size: 1.125rem; max-width: 52ch; }
.philosophy__ctas { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.feature-row__item { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.feature-row__item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature-row__item p { color: var(--ink-soft); font-size: 0.9375rem; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r-sm);
  transition: transform 220ms var(--ease-out);
}
.icon-badge--teal { background: rgba(95,176,168,0.18); color: var(--teal-700); }
.icon-badge--orange { background: var(--orange-100); color: var(--orange-700); }
.icon-badge--yellow { background: rgba(245,185,66,0.2); color: #9c6e0f; }

.philosophy__visual { position: relative; height: 460px; }
.cutout--philo-back { width: 46%; height: 62%; left: 0; bottom: 0; border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; transform: rotate(-4deg); border: 6px solid var(--teal-500); }
.cutout--philo-front { width: 58%; height: 90%; right: 0; top: 0; border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; border: 6px solid var(--marigold-500); }
.doodle-burst { position: absolute; left: 8%; top: 4%; }

/* ============ PROGRAMMES ============ */
.programmes { padding-block: 100px 96px; background: var(--cream-dim); overflow: hidden; }
.section-head { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 1.6rem + 2.2vw, 3rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.0625rem; }

.section-head--split {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
  max-width: 100%; text-align: left; margin-bottom: 48px;
}
.section-head--split h2 { max-width: 16ch; margin-bottom: 0; }
.section-head__note {
  position: relative; max-width: 34ch; padding-left: 20px; color: var(--ink-soft); font-size: 1rem;
  border-left: 3px dashed var(--orange-600);
}

.programme-carousel { position: relative; display: flex; align-items: center; gap: 12px; padding-inline: 24px; }
.programme-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 16px; scrollbar-width: none;
}
.programme-track::-webkit-scrollbar { display: none; }

.programme-card {
  scroll-snap-align: start; flex: 0 0 clamp(220px, 24vw, 280px);
  border-radius: var(--r-lg); padding: 32px 26px; min-height: 340px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.programme-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.programme-card--orange { background: var(--orange-600); color: var(--cream); }
.programme-card--teal { background: var(--teal-500); color: var(--cream); }
.programme-card--marigold { background: var(--marigold-500); color: var(--forest-900); }
.programme-card--forest { background: var(--forest-700); color: var(--cream); }

.programme-card__icon { margin-bottom: 20px; }
.programme-card__age { font-size: 0.8125rem; font-weight: 700; opacity: 0.85; margin-bottom: 6px; }
.programme-card h3 { font-size: 1.375rem; color: inherit; margin-bottom: 10px; }
.programme-card p { font-size: 0.9375rem; opacity: 0.92; flex-grow: 1; }
.programme-card__link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  font-weight: 700; font-size: 0.9375rem; color: inherit; align-self: flex-start;
  padding-bottom: 2px; border-bottom: 2px solid currentColor; opacity: 0.95;
  transition: gap 180ms var(--ease-out);
}
.programme-card__link:hover { gap: 10px; }

.programme-carousel__arrow {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--marigold-500); color: var(--forest-900); font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out);
}
.programme-carousel__arrow:hover { transform: scale(1.08); background: var(--orange-600); color: var(--cream); }

/* ============ TRUSTED ============ */
.trusted { padding-block: 100px; }
.trusted-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trusted-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  min-height: 420px; box-shadow: var(--shadow-md);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.trusted-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.trusted-card__img { position: absolute; inset: 0; }
.trusted-card__img img { width: 100%; height: 100%; object-fit: cover; }

.trusted-card__blob {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 28px;
  clip-path: path('M0,64 C60,0 260,4 320,58 C370,98 400,140 400,200 L400,420 L0,420 Z');
}
.trusted-card__blob--teal { background: var(--teal-500); }
.trusted-card__blob--marigold { background: var(--marigold-500); }
.trusted-card__blob h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--forest-900); }
.trusted-card__blob p { font-size: 0.9375rem; color: var(--forest-900); opacity: 0.85; }

.trusted-card--pattern { display: flex; align-items: center; justify-content: center; }
.trusted-card--orange { background: var(--orange-600); }
.trusted-card__pattern-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trusted-card__text { position: relative; z-index: 1; text-align: center; padding: 0 32px; }
.trusted-card__text h3 { color: var(--cream); font-size: 1.5rem; margin-bottom: 10px; }
.trusted-card__text p { color: var(--cream); opacity: 0.9; font-size: 0.9375rem; }

.mascot { position: absolute; z-index: 1; }
.mascot-float { animation: mascotFloat 3s ease-in-out infinite alternate; }
@keyframes mascotFloat { from { transform: translateY(0); } to { transform: translateY(-14px); } }

/* ============ GALLERY ============ */
.gallery { padding-block: 100px; background: var(--cream-dim); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: row dense;
  gap: 16px;
}
.gallery__item {
  position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  grid-row: span 1;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease-out); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(31,61,43,0.35));
  opacity: 0; transition: opacity 220ms var(--ease-out);
}
.gallery__item:hover::after { opacity: 1; }

/* ============ TESTIMONIALS ============ */
.testimonials { padding-block: 100px; background: var(--forest-900); }
.section-head--light h2 { color: var(--cream); }
.section-head--light p { color: rgba(253,246,227,0.75); }

.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--forest-800); border-radius: var(--r-md); padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.testimonial-card__stars { color: var(--marigold-500); font-size: 1.05rem; letter-spacing: 2px; }
.testimonial-card__quote { color: var(--cream); font-size: 1rem; flex-grow: 1; }
.testimonial-card__author { display: flex; flex-direction: column; gap: 2px; font-weight: 700; color: var(--cream); }
.testimonial-card__area { font-weight: 400; font-size: 0.8125rem; color: rgba(253,246,227,0.6); }

.testimonial-dots { display: none; justify-content: center; gap: 8px; margin-top: 24px; }
.testimonial-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(253,246,227,0.3); transition: background 200ms var(--ease-out), width 200ms var(--ease-out); }
.testimonial-dots button.is-active { background: var(--marigold-500); width: 22px; border-radius: var(--r-full); }

/* ============ CLOSING CTA ============ */
.closing {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--orange-600) 55%, var(--teal-500) 55%);
  padding-block: 90px;
}
.closing__blob { position: absolute; border-radius: 50%; opacity: 0.25; background: var(--white); }
.closing__blob--1 { width: 340px; height: 340px; top: -140px; left: -100px; animation: blobDrift 22s linear infinite; }
.closing__blob--2 { width: 240px; height: 240px; bottom: -100px; right: 8%; animation: blobDrift 26s linear infinite reverse; }
@keyframes blobDrift { from { transform: rotate(0deg) translateX(0); } 50% { transform: rotate(180deg) translateX(20px); } to { transform: rotate(360deg) translateX(0); } }

.closing__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.closing__text h2 { color: var(--white); font-size: clamp(2rem, 1.6rem + 2.2vw, 3rem); margin-bottom: 16px; }
.closing__text p { color: rgba(255,255,255,0.9); font-size: 1.0625rem; max-width: 46ch; margin-bottom: 32px; }
.closing__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.closing__visual { position: relative; display: flex; justify-content: center; }
.cutout--closing { position: relative; width: 280px; height: 340px; border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; border: 8px solid var(--white); box-shadow: var(--shadow-lg); }
.mascot--closing { position: absolute; bottom: -10px; left: -20px; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.2)); }

/* ============ FOOTER ============ */
.footer { background: var(--forest-900); color: var(--cream); padding-top: 80px; position: relative; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer__col h3 { color: var(--cream); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; }
.footer__col p, .footer__col a { display: block; color: rgba(253,246,227,0.7); font-size: 0.9375rem; margin-bottom: 12px; transition: color 180ms var(--ease-out); }
.footer__col a:hover { color: var(--marigold-500); }

.footer__wordmark {
  font-family: var(--font-display); font-weight: 700; color: var(--cream);
  font-size: clamp(4rem, 2rem + 14vw, 11rem);
  line-height: 0.8; text-align: center; white-space: nowrap; overflow: hidden;
  letter-spacing: -0.02em; opacity: 0.95;
  padding-inline: 12px;
}

.footer__bottom { padding-block: 24px; border-top: 1px solid rgba(253,246,227,0.12); font-size: 0.8125rem; color: rgba(253,246,227,0.5); text-align: center; margin-top: 16px; }

.mascot--footer { position: absolute; bottom: 30%; opacity: 0.85; }
.mascot--footer-left { left: 3%; }
.mascot--footer-right { right: 3%; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 999; background: rgba(26,46,34,0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: min(90vw, 900px); max-height: 76vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lightbox__caption { color: var(--cream); font-size: 0.9375rem; }
.lightbox__close {
  position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(253,246,227,0.12); color: var(--cream); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; transition: background 180ms var(--ease-out);
}
.lightbox__close:hover { background: rgba(253,246,227,0.24); }
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(253,246,227,0.12); color: var(--cream); font-size: 1.75rem;
  display: flex; align-items: center; justify-content: center; transition: background 180ms var(--ease-out);
}
.lightbox__arrow:hover { background: rgba(253,246,227,0.24); }
.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--next { right: 20px; }

/* ============ BOOKING / APPLY MODAL ============ */
.modal {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(26,46,34,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: modalFadeIn 220ms var(--ease-out);
}
.modal[hidden] { display: none; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__panel {
  background: var(--cream); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  padding: 40px 36px 32px; position: relative;
  animation: modalPanelIn 260ms var(--ease-out);
}
@keyframes modalPanelIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .modal, .modal__panel { animation: none; }
}

.modal__close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--cream-dim); color: var(--forest-900); font-size: 1rem;
  display: flex; align-items: center; justify-content: center; transition: background 180ms var(--ease-out);
}
.modal__close:hover { background: var(--orange-100); }

.modal__header { text-align: center; margin-bottom: 24px; }
.modal__badge { margin-bottom: 10px; }
.modal__header h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); margin-bottom: 8px; }
.modal__header p { color: var(--ink-soft); font-size: 0.9375rem; max-width: 42ch; margin-inline: auto; }

.modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.modal__row .field { margin-bottom: 0; }
.field label { font-size: 0.8125rem; font-weight: 700; color: var(--forest-900); }
.field__optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.9375rem; padding: 11px 14px; border-radius: var(--r-sm);
  border: 1.5px solid rgba(31,61,43,0.18); background: var(--white); color: var(--ink);
  transition: border-color 180ms var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500);
}
.field textarea { resize: vertical; min-height: 70px; }
.was-validated .field input:invalid,
.was-validated .field select:invalid { border-color: var(--orange-600); }

.field--apply { display: none; }
.modal.mode-apply .field--visit { display: none; }
.modal.mode-apply .field--apply { display: flex; }

.modal__submit {
  width: 100%; justify-content: center; margin-top: 4px;
  display: flex; align-items: center; gap: 10px;
}
.modal__submit[disabled] { opacity: 0.75; cursor: default; }
.modal__submit[disabled]:hover { transform: none; }
.modal__submit .spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(253,246,227,0.4); border-top-color: var(--cream);
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .modal__submit .spinner { animation-duration: 1400ms; }
}

.modal__disclaimer { font-size: 0.8125rem; color: var(--ink-soft); text-align: center; margin-top: 14px; }

.modal__success { text-align: center; padding: 12px 0 4px; }
.modal__success[hidden] { display: none; }
.modal__success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--teal-500);
  margin-bottom: 18px;
}
.modal__success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.modal__success p { color: var(--ink-soft); font-size: 0.9375rem; max-width: 40ch; margin: 0 auto 24px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .mobile-menu { display: flex; }

  .philosophy__grid { grid-template-columns: 1fr; gap: 56px; }
  .philosophy__visual { order: -1; height: 380px; max-width: 440px; margin-inline: auto; width: 100%; }

  .section-head--split { flex-direction: column; gap: 16px; }
  .trusted-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }

  .testimonial-track { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

  .closing__inner { grid-template-columns: 1fr; text-align: center; }
  .closing__text p { margin-inline: auto; }
  .closing__ctas { justify-content: center; }
  .closing__visual { order: -1; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .mascot--footer { display: none; }
}

@media (max-width: 768px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .programme-carousel { padding-inline: 8px; gap: 6px; }
  .programme-card { flex-basis: 240px; min-height: 300px; padding: 26px 22px; }
  .programme-carousel__arrow { width: 38px; height: 38px; font-size: 1.2rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 380px; }
  .doodle-arrow { display: none; }
  .modal__row { grid-template-columns: 1fr; }
  .modal__panel { padding: 32px 22px 26px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .hero { padding-top: 130px; }
  .nav__logo { font-size: 0.875rem; gap: 6px; }
  .nav__logo-icon { width: 26px; height: 26px; }
  .nav__cta { padding: 10px 16px; font-size: 0.8125rem; }
  .btn { padding: 13px 24px; font-size: 0.875rem; }
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .lightbox__arrow { width: 44px; height: 44px; font-size: 1.4rem; }
  .lightbox__arrow--prev { left: 8px; }
  .lightbox__arrow--next { right: 8px; }
  .lightbox__close { width: 44px; height: 44px; top: 12px; right: 12px; }
}
