/* ==========================================================================
   A Little World Montessori Academy — Design System
   Palette derived from the school logo:
   navy (wordmark) · sky blue (globe) · gold (continents) · magenta (heart)
   maroon / brown / cream (children silhouettes)
   ========================================================================== */

:root {
  /* Color tokens */
  --navy-900: #10203c;
  --navy-800: #1b3a6b;
  --navy-700: #24498a;
  --navy-600: #2e5aa8;
  --sky-500: #4aa8d8;
  --sky-400: #7fc4e8;
  --sky-200: #c7e6f6;
  --sky-100: #e8f5fc;
  --gold-700: #96610a;
  --gold-600: #d3830a;
  --gold-500: #f0a32f;
  --gold-400: #f5bc63;
  --gold-100: #fdeed3;
  --magenta-600: #c22873;
  --magenta-500: #e23e8f;
  --magenta-100: #fbe3ef;
  --royal-500: #4169e1;
  --red-600: #d43a3a;
  --turquoise-600: #0e7490;
  --green-600: #2e7d32;
  --orange-700: #c2410c;
  --lime-400: #c6ff00;
  --lime-500: #a8d900;
  --lime-600: #6b8c00;
  --lime-100: #f4ffc4;
  --maroon-600: #8e2a3c;
  --brown-500: #8a5a3b;
  --brown-100: #f0e4d8;
  --cream-100: #fdf8ef;
  --cream-200: #f7edda;
  --ink: #22314a;
  --ink-soft: #47546b;
  --white: #ffffff;

  /* Typography */
  --font-display: "Quicksand", "Avenir Next", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", sans-serif;
  --font-hand: "Caveat", cursive;

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(16, 32, 60, 0.08);
  --shadow-md: 0 8px 28px rgba(16, 32, 60, 0.12);
  --shadow-lg: 0 18px 48px rgba(16, 32, 60, 0.16);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--navy-700);
}

ul[class],
ol[class] {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  color: var(--navy-800);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p + p { margin-top: 1em; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 300;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

section {
  position: relative;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--cream { background: var(--cream-100); }
.section--sky { background: var(--sky-100); }
.section--navy { background: var(--navy-800); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: var(--sky-100); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta-600);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold-500);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.hand-note {
  font-family: var(--font-hand);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--magenta-600);
  line-height: 1.3;
}

.underline-swash {
  position: relative;
  white-space: nowrap;
}

.underline-swash svg {
  position: absolute;
  left: 0;
  bottom: -0.35em;
  width: 100%;
  height: 0.4em;
  overflow: visible;
}

.underline-swash path {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 7;
  stroke-linecap: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn svg { flex: none; }

.btn--gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 4px 14px rgba(240, 163, 47, 0.4);
}

.btn--gold:hover {
  background: var(--gold-400);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(240, 163, 47, 0.45);
}

.btn--navy {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27, 58, 107, 0.35);
}

.btn--navy:hover {
  background: var(--navy-700);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(27, 58, 107, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.btn--outline:hover {
  background: var(--navy-800);
  color: #fff;
  transform: translateY(-3px);
}

.btn--white {
  background: #fff;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.btn--white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 1.05rem 2.3rem;
  font-size: 1.08rem;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  transition: box-shadow 0.3s ease;
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block for the fixed mobile nav drawer, collapsing it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  transition: transform 0.4s var(--ease-bounce);
}

/* Larger logo on desktop only — mobile keeps the compact 84px */
@media (min-width: 1200px) {
  .brand img {
    width: 128px;
    height: 128px;
  }
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy-800);
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-tag .t1 { color: var(--red-600); }
.brand-tag .t2 { color: var(--royal-500); }
.brand-tag .t3 { color: var(--gold-500); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

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

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.main-nav a.nav-link {
  white-space: nowrap;
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.72rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-800);
  text-decoration: none;
  border-radius: 8px;
}

.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.3rem;
  height: 3px;
  border-radius: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-smooth);
}

.main-nav a.nav-link:hover::after,
.main-nav a.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta { margin-left: 0.7rem; }

/* Dropdown */
.has-dropdown { position: relative; }

.has-dropdown > a.nav-link {
  padding-right: 1.55rem;
}

.has-dropdown > a.nav-link .caret {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  translate: 0 -46%;
  transition: transform 0.25s ease;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  min-width: 235px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 210;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover > a.nav-link .caret,
.has-dropdown:focus-within > a.nav-link .caret {
  transform: rotate(180deg);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  transition: background 0.18s ease, transform 0.18s ease;
}

.dropdown a:hover {
  background: var(--sky-100);
  transform: translateX(4px);
}

.dropdown a .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover { background: var(--sky-100); }

.nav-toggle .bars {
  position: relative;
  width: 24px;
  height: 2.5px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: background 0.2s ease;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2.5px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-smooth), top 0.3s ease;
}

.nav-toggle .bars::before { top: -8px; }
.nav-toggle .bars::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    inset: 72px 0 0 auto;
    width: min(360px, 88vw);
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    padding: 1.5rem 1.25rem 2rem;
    transform: translateX(110%);
    transition: transform 0.35s var(--ease-smooth);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .main-nav a.nav-link {
    font-size: 1.05rem;
    padding: 0.7rem 0.9rem;
  }

  .dropdown {
    position: static;
    translate: 0 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0.4rem 1rem;
    display: none;
  }

  .has-dropdown.open .dropdown { display: block; }

  .nav-cta {
    margin: 1rem 0 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sky-100) 0%, var(--cream-100) 55%, var(--gold-100) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero h1 {
  margin: 0.4rem 0 1.2rem;
}

.hero h1 .accent { color: var(--magenta-500); }

.hero-lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.hero-quickfacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.8rem;
  margin-top: 2.2rem;
  padding: 0;
}

.hero-quickfacts li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-800);
}

.hero-quickfacts svg { color: var(--magenta-500); flex: none; }

.hero-media {
  position: relative;
}

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}

.hero-photo img {
  width: 100%;
  height: clamp(320px, 42vw, 520px);
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -1.4rem;
  left: -1.2rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  animation: floaty 9s ease-in-out infinite;
}

.hero-badge .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--magenta-500);
  line-height: 1;
}

.hero-badge .lbl {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.25;
}

/* Floating sensorial shapes */
.shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
}

/* Extra balancing shapes: only show once the container gutter is wide enough to clear text */
@media (max-width: 960px) {
  .shape--extra { display: none; }
}

.shape--circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sky-400);
  animation: floaty 12s ease-in-out infinite;
}

.shape--square {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--magenta-500);
  animation: floaty 15s ease-in-out infinite reverse;
}

.shape--triangle {
  width: 0;
  height: 0;
  background: none;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 44px solid var(--gold-500);
  animation: spinFloat 22s linear infinite;
}

.shape--ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 8px solid var(--lime-400);
  background: none;
  animation: floaty 13s ease-in-out infinite;
}

/* Math-symbol shapes — a nod to the Montessori operation bars */
.shape--plus {
  width: 38px;
  height: 38px;
  animation: floaty 11s ease-in-out infinite;
}

.shape--plus::before,
.shape--plus::after {
  content: "";
  position: absolute;
  background: var(--shape-color, var(--turquoise-600));
  border-radius: 4px;
}

.shape--plus::before {
  width: 100%;
  height: 9px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.shape--plus::after {
  width: 9px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.shape--minus {
  width: 42px;
  height: 9px;
  border-radius: 4px;
  background: var(--shape-color, var(--maroon-600));
  animation: floaty 16s ease-in-out infinite reverse;
}

.shape--divide {
  width: 36px;
  height: 36px;
  animation: spinFloat 19s linear infinite reverse;
}

.shape--divide::before,
.shape--divide::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--shape-color, var(--brown-500));
  transform: translateX(-50%);
}

.shape--divide::before { top: 0; }
.shape--divide::after { bottom: 0; }

.shape--divide .bar {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 7px;
  border-radius: 4px;
  background: var(--shape-color, var(--brown-500));
  transform: translateY(-50%);
}

/* ---------- Gallery video cards ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.4rem;
  max-width: 1120px;
  margin: 0 auto;
}

.video-card {
  margin: 0;
}

.video-card {
  position: relative;
}

.video-card .video-play {
  position: absolute;
  top: calc(50% - 1.4rem);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: rgba(16, 32, 60, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: transform 0.25s var(--ease-bounce), background 0.2s ease, opacity 0.25s ease;
}

.video-card .video-play:hover {
  background: rgba(16, 32, 60, 0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card.playing .video-play {
  opacity: 0;
  pointer-events: none;
}

.video-card video {
  cursor: pointer;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  box-shadow: var(--shadow-md);
}

.video-card figcaption {
  text-align: center;
  font-weight: 700;
  color: var(--navy-800);
  font-size: 0.95rem;
  margin-top: 0.6rem;
}

@media (max-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 980px) {
  .booking-grid { grid-template-columns: 1fr; }
}

a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Underline under a bold "(" reads like a stray period — keep tel links clean */
a[href^="tel:"] { text-decoration: none; }

@media (max-width: 640px) {
  .shape { display: none; }
}

@keyframes floaty {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(26px, -38px) rotate(7deg); }
  50% { transform: translate(-16px, -60px) rotate(-5deg); }
  75% { transform: translate(-34px, -22px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes spinFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -28px) rotate(130deg); }
  66% { transform: translate(-26px, 18px) rotate(250deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { transform: none; }
  .hero-badge { left: 1rem; }
}

/* ---------- Video hero ---------- */
.hero--video {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 253, 246, 0.94) 0%, rgba(255, 253, 246, 0.78) 32%, rgba(255, 253, 246, 0.12) 54%, rgba(255, 253, 246, 0) 66%, rgba(198, 255, 0, 0.08) 100%);
}

.hero-video-content {
  position: relative;
  z-index: 2;
  padding: clamp(4.5rem, 11vw, 7.5rem) 0;
  max-width: 660px;
}

/* Staged entrance for hero content */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero-video-content > * {
  animation: heroRise 0.8s var(--ease-smooth) both;
}

.hero-video-content .eyebrow { animation-delay: 0.1s; }
.hero-video-content h1 { animation-delay: 0.25s; }
.hero-video-content .hero-lede { animation-delay: 0.4s; }
.hero-video-content .hero-actions { animation-delay: 0.55s; }
.hero-video-content .hero-quickfacts { animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .hero-video-content > * { animation: none; }
}

.hero--video h1 {
  color: var(--navy-800);
}

.hero--video h1,
.hero--video .hero-lede,
.hero--video .hero-quickfacts li {
  text-shadow: 0 1px 16px rgba(255, 253, 246, 0.85), 0 0 6px rgba(255, 253, 246, 0.6);
}

.hero--video .hero-lede {
  color: var(--ink-soft);
}

.hero--video .eyebrow {
  color: var(--orange-700);
}

.hero--video .eyebrow::before {
  background: var(--lime-500);
}

.hero--video .hero-quickfacts li {
  color: var(--navy-800);
}

.hero--video .hero-quickfacts svg {
  color: var(--lime-600);
}

@media (max-width: 700px) {
  .hero-overlay {
    background: none;
  }

  .hero--video h1,
  .hero--video .hero-lede,
  .hero--video .hero-quickfacts li,
  .hero--video .eyebrow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.45), 0 0 2px rgba(0, 0, 0, 0.5);
  }

  .hero--video h1,
  .hero--video .hero-lede,
  .hero--video .hero-quickfacts li {
    color: #fff;
  }

  .hero--video .hero-quickfacts svg {
    color: var(--gold-400);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
  }

  .hero--video .btn--outline {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  }

  .hero--video .btn--outline:hover,
  .hero--video .btn--outline:active {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: #fff;
  }
}

.btn--lime {
  background: var(--lime-400);
  color: var(--navy-800);
  box-shadow: 0 6px 18px rgba(168, 217, 0, 0.45);
}

.btn--lime:hover {
  background: var(--lime-500);
  color: var(--navy-900);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(168, 217, 0, 0.55);
}

.video-toggle {
  position: absolute;
  bottom: 1.3rem;
  right: 1.3rem;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(13, 26, 48, 0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s var(--ease-bounce);
}

.video-toggle:hover {
  background: rgba(13, 26, 48, 0.75);
  transform: scale(1.08);
}

.video-toggle .icon-play { display: none; }
.video-toggle.paused .icon-play { display: block; }
.video-toggle.paused .icon-pause { display: none; }

@media (max-width: 700px) {
  .hero--video { min-height: 76vh; }
}

/* ---------- Wave divider ---------- */
.wave {
  display: block;
  width: 100%;
  height: 70px;
  margin-bottom: -1px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.6rem;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1000px) {
  .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* When a 3-card grid wraps to 2 columns, center the orphaned last card */
@media (max-width: 1000px) and (min-width: 621px) {
  .card-grid--3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 560px;
  }
}

@media (max-width: 620px) {
  .card-grid--3, .card-grid--4, .card-grid--2 { grid-template-columns: 1fr; }
}

.program-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s var(--ease-bounce), box-shadow 0.32s ease;
  position: relative;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.program-card .media {
  position: relative;
  overflow: hidden;
}

.program-card .media img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.program-card:hover .media img {
  transform: scale(1.06);
}

.program-card .age-chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.program-card .body {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.program-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.program-card h3 .swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex: none;
}

.program-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}

.program-card .link-more {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--magenta-600);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.program-card .link-more svg {
  transition: transform 0.25s var(--ease-bounce);
}

.program-card:hover .link-more svg {
  transform: translateX(5px);
}

/* Feature tiles */
.feature-tile {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
}

.feature-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-tile .icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: transform 0.35s var(--ease-bounce);
}

.feature-tile:hover .icon {
  transform: rotate(-8deg) scale(1.1);
}

.feature-tile h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.feature-tile p { color: var(--ink-soft); font-size: 0.96rem; }

.icon--sky { background: var(--sky-100); color: var(--sky-500); }
.icon--gold { background: var(--gold-100); color: var(--gold-600); }
.icon--magenta { background: var(--magenta-100); color: var(--magenta-600); }
.icon--navy { background: #e5ebf7; color: var(--navy-700); }
.icon--brown { background: var(--brown-100); color: var(--brown-500); }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--rev > .split-media { order: 2; }

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--rev > .split-media { order: 0; }
}

.split-media {
  position: relative;
}

.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: clamp(300px, 40vw, 460px);
  object-fit: cover;
}

.split-media .accent-frame {
  position: absolute;
  inset: -14px auto auto -14px;
  width: 110px;
  height: 110px;
  border-radius: var(--radius-lg) 0 0 0;
  border-top: 8px solid var(--gold-500);
  border-left: 8px solid var(--gold-500);
  pointer-events: none;
}

.split-media--stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.split-media--stack img {
  height: 240px;
}

.split-media--stack img:nth-child(2) {
  margin-top: 2rem;
}

/* Cross-fade photo slots (homepage program section) */
.split-media--stack .fade-slot {
  position: relative;
  height: 240px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.split-media--stack .fade-slot:nth-child(2) {
  margin-top: 2rem;
}

.fade-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.fade-slot img.active {
  opacity: 1;
}

.check-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-list .tick {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime-100);
  color: var(--lime-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.check-list b { color: var(--navy-800); }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

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

.stat .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--gold-400);
  line-height: 1.1;
}

.stat:nth-child(odd) .num { color: var(--lime-400); }

.stat .lbl {
  color: var(--sky-100);
  font-weight: 600;
  font-size: 0.98rem;
}

/* ---------- Curriculum area cards ---------- */
.area-card {
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--sky-400);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease;
}

.area-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.area-card.b-gold { border-top-color: var(--gold-500); }
.area-card.b-magenta { border-top-color: var(--magenta-500); }
.area-card.b-navy { border-top-color: var(--navy-700); }
.area-card.b-brown { border-top-color: var(--brown-500); }

.area-card h3 { margin-bottom: 0.5rem; font-size: 1.18rem; }
.area-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Timeline (day in the life / admissions steps) ---------- */
.timeline {
  position: relative;
  margin-top: 1rem;
  display: grid;
  gap: 1.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--sky-400), var(--gold-500), var(--magenta-500));
}

.timeline-item {
  position: relative;
  padding-left: 72px;
}

.timeline-item .marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-800);
  border: 3px solid var(--gold-500);
  z-index: 1;
  transition: transform 0.3s var(--ease-bounce);
}

.timeline-item:hover .marker {
  transform: scale(1.12) rotate(6deg);
}

.timeline-item .time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta-600);
}

.timeline-item h3 { font-size: 1.15rem; margin: 0.15rem 0 0.3rem; }
.timeline-item p { color: var(--ink-soft); font-size: 0.97rem; max-width: 620px; }

/* ---------- Testimonials ---------- */
.testimonial-carousel {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
}

.testimonial-track {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.testimonial-slides {
  display: flex;
  transition: transform 0.55s var(--ease-smooth);
}

.testimonial {
  flex: 0 0 100%;
  background: #fff;
  padding: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.testimonial .stars {
  color: var(--gold-500);
  display: inline-flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.testimonial blockquote {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink);
  font-style: italic;
  max-width: 580px;
  margin-inline: auto;
}

.testimonial cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--magenta-600);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--navy-800);
  background: #fff;
  color: var(--navy-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-bounce);
}

.carousel-btn:hover {
  background: var(--navy-800);
  color: #fff;
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: var(--sky-200);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  padding: 0;
}

.carousel-dots button[aria-current="true"] {
  background: var(--magenta-500);
  transform: scale(1.3);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}

.faq-list details {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border-left: 5px solid var(--sky-400);
  transition: box-shadow 0.25s ease;
}

.faq-list details:nth-child(4n+2) { border-left-color: var(--gold-500); }
.faq-list details:nth-child(4n+3) { border-left-color: var(--magenta-500); }
.faq-list details:nth-child(4n+4) { border-left-color: var(--brown-500); }

.faq-list details[open] { box-shadow: var(--shadow-md); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-800);
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--magenta-500);
  transition: transform 0.3s var(--ease-bounce);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list .faq-body {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-soft);
}

/* ---------- Gallery ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.filter-btn {
  border: 2px solid var(--sky-200);
  background: #fff;
  color: var(--navy-800);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s ease;
}

.filter-btn:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
}

.filter-btn[aria-pressed="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s ease, opacity 0.35s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(16, 32, 60, 0.78));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}

.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(12, 22, 42, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1080px, 92vw);
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox .lb-cap {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  translate: -50% 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: center;
  max-width: 80vw;
}

.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev { left: 1.5rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1.5rem; top: 50%; translate: 0 -50%; }

@media (max-width: 640px) {
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

/* ---------- Calendar ---------- */
.calendar-shell {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  background: var(--navy-800);
  color: #fff;
}

.calendar-head h3 {
  color: #fff;
  font-size: 1.3rem;
  min-width: 200px;
  text-align: center;
}

.cal-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s var(--ease-bounce);
}

.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.08);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-grid .dow {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.8rem 0.2rem;
  background: var(--sky-100);
  color: var(--navy-800);
  text-transform: uppercase;
}

.calendar-grid .day {
  min-height: 92px;
  border-top: 1px solid #eef1f6;
  border-left: 1px solid #eef1f6;
  padding: 0.45rem 0.5rem;
  font-size: 0.9rem;
  position: relative;
  background: #fff;
  transition: background 0.2s ease;
}

.calendar-grid .day:hover { background: var(--cream-100); }

.calendar-grid .day.other { background: #f8fafc; color: #a9b3c4; }

.calendar-grid .day.today .date-num {
  background: var(--magenta-500);
  color: #fff;
}

.calendar-grid .date-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-family: var(--font-display);
}

.cal-event {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  color: var(--navy-900);
  background: var(--sky-200);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cal-event.cat-celebration { background: var(--magenta-100); color: var(--magenta-600); }
.cal-event.cat-trip { background: var(--gold-100); color: var(--gold-700); }
.cal-event.cat-family { background: var(--brown-100); color: var(--brown-500); }
.cal-event.cat-closure { background: #eceff4; color: var(--ink-soft); }
.cal-event.cat-school { background: var(--sky-200); color: var(--navy-700); }

@media (max-width: 720px) {
  .calendar-grid .day { min-height: 64px; padding: 0.3rem; }
  .cal-event { font-size: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 2px; }
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  padding: 1rem 1.5rem 1.3rem;
  border-top: 1px solid #eef1f6;
}

.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.cal-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.event-list {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.event-row {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s ease;
}

.event-row:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.event-date {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: var(--navy-800);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  line-height: 1.1;
}

.event-date .d { font-size: 1.5rem; font-weight: 700; }
.event-date .m { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

.event-row h3 { font-size: 1.1rem; }
.event-row p { color: var(--ink-soft); font-size: 0.92rem; }

.event-tag {
  margin-left: auto;
  flex: none;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

@media (max-width: 620px) {
  .event-tag { display: none; }
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-800);
}

.form-field label .req { color: var(--magenta-500); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 2px solid #dde4ee;
  border-radius: 12px;
  background: #fbfcfe;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--sky-400);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sky-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(127, 196, 232, 0.25);
}

.form-field input.invalid,
.form-field select.invalid {
  border-color: var(--maroon-600);
  background: #fdf3f4;
}

.field-error {
  color: var(--maroon-600);
  font-size: 0.85rem;
  font-weight: 700;
  display: none;
}

.field-error.show { display: block; }

.form-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}

.form-success.show { display: block; }

.form-success .big-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop 0.6s var(--ease-bounce);
}

@keyframes pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ---------- Contact info cards ---------- */
.info-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.info-card .icon {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.info-card p, .info-card a { color: var(--ink-soft); font-size: 0.97rem; }

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 380px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: #fff;
}

.cta-banner h2 { color: #fff; margin-bottom: 0.7rem; }
.cta-banner p { color: var(--sky-100); max-width: 560px; margin-inline: auto; }

.cta-banner .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.cta-banner .shape { opacity: 0.16; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--sky-100), var(--cream-100) 70%);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .shape {
  z-index: 0;
  opacity: 0.5;
}

.page-hero .crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.page-hero .crumbs a {
  color: var(--navy-700);
  text-decoration: none;
}

.page-hero .crumbs a:hover { text-decoration: underline; }

.page-hero p.lede {
  max-width: 640px;
  margin-top: 0.9rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--sky-100);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand img {
  width: 74px;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: #fff;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #b9cfe2;
  max-width: 30ch;
}

.footer-tagline {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--gold-400);
  margin-top: 0.7rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: #b9cfe2;
  text-decoration: none;
  font-size: 0.97rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-400);
  padding-left: 5px;
}

.footer-contact {
  display: grid;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.footer-contact li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: #b9cfe2;
}

.footer-contact svg {
  flex: none;
  color: var(--gold-400);
  margin-top: 0.2rem;
}

.footer-contact a { color: #b9cfe2; }
.footer-contact a:hover { color: var(--gold-400); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #8ba3bd;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--gold-500);
  color: var(--navy-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-bounce), visibility 0.3s;
  z-index: 150;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background: var(--lime-400); color: var(--navy-900); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.reveal--left { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }
.reveal--zoom { transform: scale(0.92); }

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Misc ---------- */

.notice-strip {
  background: var(--lime-100);
  border-left: 6px solid var(--lime-500);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  font-size: 0.98rem;
}

.notice-strip b { color: var(--navy-800); }

table.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hours-table th,
.hours-table td {
  padding: 0.85rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid #eef1f6;
}

.hours-table th {
  font-family: var(--font-display);
  color: var(--navy-800);
}

.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
