/* ============================================================
   LITTLE BLESSINGS — EARLY LEARNING & CHILD CARE CENTRE
   Main Stylesheet
   ============================================================ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
  /* Brand colours */
  --color-coral:        #FF6B6B;   /* bright brand accent — fills, borders, illustration (non-text) */
  --color-coral-dark:   #8F2F2F;   /* button hover — accessible with white text */
  --color-coral-light:  #FFE8E8;
  --color-yellow:       #FFF3B0;
  --color-yellow-mid:   #FFD166;
  --color-blue:         #D4F1FF;
  --color-blue-mid:     #4BBFFF;
  --color-blue-dark:    #2A9FDF;
  --color-mint:         #C8F5E0;
  --color-mint-mid:     #06D6A0;
  --color-mint-dark:    #04B888;

  /* Accessible text-on-tint variants (WCAG AA on their pastel backgrounds) */
  --color-coral-text:   #B23A3A;   /* accessible coral for text + primary button bg */
  --color-blue-text:    #0F6E9C;
  --color-mint-text:    #046647;
  --color-yellow-text:  #996600;

  /* Brand (from logo) */
  --color-navy:         #0E2E5E;
  --brand-gold:         #F2B430;
  --brand-gold-ink:     #B7791F;
  --brand-blue:         #29ABE2;

  /* Hero (photographic section) */
  --hero-ink:           #0E2E5E;   /* brand navy for eyebrow + headline */
  --color-navy-dark:    #0A2444;   /* navy button hover */
  --hero-gold:          #F7C948;   /* yellow primary button */
  --hero-gold-dark:     #E9B62A;

  /* Neutrals */
  --color-bg:           #FDFAF4;
  --color-white:        #FFFFFF;
  --color-text:         #1E1E2E;
  --color-text-light:   #5E6672;
  --color-border:       #E9ECF1;

  /* Dark footer */
  --color-footer-bg:    #1E1E2E;
  --color-footer-text:  #C8D3E0;

  /* Typography */
  --font-heading:       'Nunito', sans-serif;
  --font-body:          'Open Sans', sans-serif;

  /* Sizing */
  --nav-height:         72px;
  --max-width:          1140px;
  --radius-sm:          8px;
  --radius-md:          16px;
  --radius-lg:          24px;
  --radius-pill:        999px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-md:  0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg:  0 8px 48px rgba(0, 0, 0, 0.13);

  /* Transitions */
  --t: 0.3s ease;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

section[id] {
  scroll-margin-top: var(--nav-height);
}

/* ── Layout Utilities ───────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { color: var(--color-text-light); }

/* ── Section Header ─────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 600px;
  margin-inline: auto;
  font-size: 1.05rem;
}

/* ── Section Label Pill ─────────────────────────────────── */
.section-label {
  display: inline-block;
  background: #E8F4FB;
  color: var(--color-blue-text);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35em 1em;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
  text-align: center;
}

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

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

.btn-primary {
  background: var(--color-navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-navy-dark);
}

.btn-secondary {
  background: var(--color-white);
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-navy);
}

.btn-full {
  width: 100%;
  display: block;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  transition: background var(--t), box-shadow var(--t);
}

#navbar.scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Shared inline icon sizing */
.icon {
  width: 22px;
  height: 22px;
}

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

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-navy);
}

.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  position: relative;
  transition: color var(--t);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 1.7rem);
  height: 2px;
  background: var(--brand-gold);
  border-radius: 2px;
  transition: transform var(--t);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-navy);
}

/* Nav CTA button */
.nav-cta {
  background: var(--color-navy) !important;
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius-pill) !important;
  transition: background var(--t), transform var(--t), box-shadow var(--t) !important;
}

.nav-cta:hover {
  background: var(--color-navy-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-sm) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--t);
}

.hamburger:hover {
  background: #EAF2FB;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}


/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: calc(-1 * var(--nav-height));   /* pull photo up behind the transparent navbar */
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  /* Warm fallback shown until images/hero.jpg is added */
  background: linear-gradient(118deg, #FCEFD6 0%, #F9E1C2 48%, #F5D6B4 100%);
}

/* Full-bleed photo layer — landscape on laptop, portrait on phone */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/hero-desktop.jpg");
  background-size: cover;
  background-position: 72% center;
}

/* Legibility scrim — lightens the left where the text sits */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(255,251,242,0.80) 0%,
      rgba(255,251,242,0.55) 22%,
      rgba(255,251,242,0.18) 44%,
      rgba(255,251,242,0) 62%),
    linear-gradient(0deg, rgba(255,251,242,0.26) 0%, rgba(255,251,242,0) 24%);
}

.hero-inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 6rem 1.25rem 7rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hero-ink);
  margin-bottom: 0.6rem;
}

#hero h1 {
  font-family: 'Caveat', var(--font-heading);
  font-weight: 700;
  font-size: clamp(3.1rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0.5px;
  color: var(--hero-ink);
  margin-bottom: 1.1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: #4A4A42;
  max-width: 30rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-arrow { width: 18px; height: 18px; }

.hero-btn-primary {
  background: var(--hero-gold);
  color: var(--color-navy);
}
.hero-btn-primary:hover { background: var(--hero-gold-dark); }

.hero-btn-alt {
  background: var(--color-navy);
  color: #fff;
}
.hero-btn-alt:hover { background: var(--color-navy-dark); }

.hero-btn-outline {
  background: rgba(255,255,255,0.65);
  border-color: var(--hero-ink);
  color: var(--hero-ink);
}
.hero-btn-outline:hover { background: #fff; }

/* Scroll-down indicator */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 3.25rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--hero-ink);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(255,251,242,0.9);
}

.hero-scroll .mouse { width: 22px; height: 35px; }
.hero-scroll .chev { width: 16px; height: 16px; opacity: 0.75; }

@media (prefers-reduced-motion: no-preference) {
  .hero-scroll .mouse-dot { animation: hero-wheel 1.8s ease-in-out infinite; }
}

@keyframes hero-wheel {
  0%   { opacity: 0; transform: translateY(-3px); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(5px); }
}

/* Wavy divider into the About section */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 68px;
}


/* ============================================================
   SHARED — kickers, organic photo frames, doodles
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kicker {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--brand-gold-ink);
  margin-bottom: 0.35rem;
}

.section-head-center {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-head-center h2 { color: var(--color-navy); margin-bottom: 0.9rem; }
.section-head-center .section-intro { margin-inline: auto; }

/* Brand button (gold) */
.btn-gold { background: var(--brand-gold); color: var(--color-navy); }
.btn-gold:hover { background: #E4A81E; }

/* Organic photo frame */
.photo-frame { position: relative; width: 100%; isolation: isolate; }
.photo-frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  left: -6%;
  top: 7%;
  border-radius: 52% 48% 46% 54% / 55% 50% 50% 45%;
  background: var(--frame-accent, var(--brand-blue));
  opacity: 0.16;
}
.frame-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;              /* let aspect-ratio drive height, not width/height attrs */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 46% 54% 57% 43% / 54% 48% 52% 46%;
  box-shadow: 0 26px 60px rgba(14, 46, 94, 0.16);
  /* Branded gradient shows through where no photo is supplied yet */
  background: linear-gradient(150deg, #9FD6EF 0%, #CDEBD6 52%, #F5D492 118%);
  color: transparent;
  font-size: 0;
}

/* blob radius variants for a hand-made, non-uniform feel */
.blob-1 .frame-img { border-radius: 46% 54% 57% 43% / 54% 48% 52% 46%; }
.blob-2 .frame-img { border-radius: 58% 42% 44% 56% / 45% 55% 45% 55%; }
.blob-a .frame-img { border-radius: 50% 50% 46% 54% / 55% 46% 54% 45%; }
.blob-b .frame-img { border-radius: 42% 58% 55% 45% / 52% 44% 56% 48%; }
.blob-c .frame-img { border-radius: 56% 44% 52% 48% / 46% 58% 42% 54%; }
.blob-d .frame-img { border-radius: 48% 52% 42% 58% / 58% 46% 54% 42%; }

[data-accent="blue"]  { --frame-accent: var(--brand-blue); }
[data-accent="gold"]  { --frame-accent: var(--brand-gold); }
[data-accent="green"] { --frame-accent: #7FD0A6; }
[data-accent="navy"]  { --frame-accent: var(--color-navy); }

/* floating hand-written caption bubble */
.media-bubble {
  position: absolute;
  z-index: 3;
  left: -4%;
  bottom: 6%;
  background: var(--brand-gold);
  color: var(--color-navy);
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.05;
  text-align: center;
  padding: 0.8rem 1.15rem;
  border-radius: 46% 54% 54% 46% / 46% 46% 54% 54%;
  box-shadow: 0 12px 28px rgba(14, 46, 94, 0.18);
}

/* decorative hand-drawn doodles */
.doodle { position: absolute; z-index: 2; pointer-events: none; }
.doodle-sun   { width: 46px; height: 46px; top: -16px; right: 8%; }
.doodle-leaf  { width: 40px; height: 40px; bottom: 6%; right: -12px; }
.doodle-star  { width: 30px; height: 30px; top: 32%; left: -14px; }
.doodle-cloud { width: 58px; height: 34px; top: -18px; left: 2%; }
.doodle-bear  { width: 48px; height: 48px; bottom: -8px; right: 6%; }

@media (prefers-reduced-motion: no-preference) {
  .float-slow { animation: floaty 7s ease-in-out infinite alternate; }
  .float-a    { animation: floaty 5s ease-in-out infinite alternate; }
  .float-b    { animation: floaty 6.5s ease-in-out infinite alternate-reverse; }
}
@keyframes floaty { to { transform: translateY(-12px); } }


/* ============================================================
   ABOUT US
   ============================================================ */
#about {
  padding: 6rem 0;
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about-copy h2 { color: var(--color-navy); margin-bottom: 1rem; }
.about-copy .lead {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1.9rem;
  max-width: 34rem;
}

.about-points { display: grid; gap: 1.15rem; margin-bottom: 2rem; }
.about-points li { display: flex; gap: 0.9rem; align-items: flex-start; }
.point-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.point-icon .icon { width: 24px; height: 24px; }
.point-blue { background: var(--color-blue);  color: var(--color-blue-text); }
.point-gold { background: var(--color-yellow); color: var(--color-yellow-text); }
.point-navy { background: #DCE6F5; color: var(--color-navy); }
.about-points h3 { font-size: 1.02rem; color: var(--color-navy); margin-bottom: 0.15rem; }
.about-points p { font-size: 0.92rem; line-height: 1.55; }

.about-media { position: relative; width: 100%; max-width: 440px; justify-self: center; }
.about-media { --frame-accent: var(--brand-blue); }
.about-media .frame-img { aspect-ratio: 4 / 5; }


/* ============================================================
   OUR PROGRAMS
   ============================================================ */
#services {
  padding: 6rem 0;
  background: #F1F8FC;
}

.programs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  max-width: 900px;
  margin-inline: auto;
}

.program-card {
  position: relative;
  background: var(--color-white);
  border-radius: 28px;
  padding: 1.25rem 1.25rem 1.6rem;
  box-shadow: 0 18px 44px rgba(14, 46, 94, 0.08);
  transition: transform var(--t), box-shadow var(--t);
}
.program-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(14, 46, 94, 0.14); }

.program-media { position: relative; margin-bottom: 1.15rem; }
.program-media .frame-img { aspect-ratio: 1 / 1; box-shadow: 0 14px 30px rgba(14, 46, 94, 0.12); }

.program-icon {
  position: absolute;
  z-index: 3;
  right: 8%;
  bottom: -14px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #fff;
  color: var(--color-navy);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(14, 46, 94, 0.16);
}
.program-icon .icon { width: 26px; height: 26px; }
.program-card:nth-child(1) .program-icon { color: var(--brand-blue); }
.program-card:nth-child(2) .program-icon { color: var(--brand-gold-ink); }
.program-card:nth-child(3) .program-icon { color: #2E8B67; }
.program-card:nth-child(4) .program-icon { color: var(--color-navy); }

.age-pill {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.3em 0.9em;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
  background: #E8F4FB;
  color: var(--color-blue-text);
}
.program-card:nth-child(2) .age-pill { background: var(--color-yellow); color: var(--color-yellow-text); }
.program-card:nth-child(3) .age-pill { background: var(--color-mint);   color: var(--color-mint-text); }
.program-card:nth-child(4) .age-pill { background: #E7ECF6; color: var(--color-navy); }

.program-body h3 { color: var(--color-navy); font-size: 1.2rem; margin-bottom: 0.4rem; }
.program-body p { font-size: 0.93rem; line-height: 1.6; }

/* Supporting services */
.extra-services {
  margin-top: 3rem;
  text-align: center;
}

.extra-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.extra-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  text-align: left;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}

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

.extra-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.extra-grid .extra-card:nth-child(1) .extra-icon { background: var(--color-mint);   color: var(--color-mint-text); }
.extra-grid .extra-card:nth-child(2) .extra-icon { background: var(--color-blue);   color: var(--color-blue-text); }
.extra-grid .extra-card:nth-child(3) .extra-icon { background: var(--color-yellow); color: var(--color-yellow-text); }

.extra-card h3 {
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
}

.extra-card p {
  font-size: 0.86rem;
  line-height: 1.55;
}


/* ============================================================
   WHY CHOOSE US
   ============================================================ */
#why-us {
  padding: 6rem 0;
  background: var(--color-white);
}

.why-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.why-media {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: center;
  --frame-accent: var(--brand-gold);
}
.why-media .frame-img { aspect-ratio: 4 / 5; }
.why-intro h2 { color: var(--color-navy); margin-bottom: 1rem; }
.why-intro p { margin-bottom: 1.75rem; max-width: 34rem; }
.why-btn { margin-top: 0.25rem; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem 2.5rem;
}
.why-feature { display: flex; gap: 0.9rem; align-items: flex-start; }
.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.why-feature:nth-child(3n+1) .why-icon { background: var(--color-blue);   color: var(--color-blue-text); }
.why-feature:nth-child(3n+2) .why-icon { background: var(--color-yellow); color: var(--color-yellow-text); }
.why-feature:nth-child(3n+3) .why-icon { background: var(--color-mint);   color: var(--color-mint-text); }
.why-feature h3 { font-size: 1rem; color: var(--color-navy); margin-bottom: 0.2rem; }
.why-feature p { font-size: 0.9rem; line-height: 1.55; }


/* ============================================================
   MEET THE TEAM
   ============================================================ */
#team {
  padding: 6rem 0;
  background: linear-gradient(180deg, #FFFDF6 0%, #FBF3E2 100%);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 1.75rem;
  max-width: 920px;
  margin-inline: auto;
}
.team-card { text-align: center; }
.team-photo {
  width: 78%;
  max-width: 210px;
  margin: 0 auto 1.1rem;
  --frame-accent: var(--brand-blue);
}
.team-photo .frame-img { aspect-ratio: 1 / 1; }
.team-name { color: var(--color-navy); font-size: 1.12rem; margin-bottom: 0.1rem; }
.team-role {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--brand-gold-ink);
  font-size: 0.9rem;
}
.team-cta { text-align: center; margin-top: 3.25rem; }
.team-bio {
  font-size: 0.88rem;
  line-height: 1.55;
  margin-top: 0.5rem;
  max-width: 22rem;
  margin-inline: auto;
}

/* Dedicated team page header */
.page-hero {
  margin-top: calc(-1 * var(--nav-height));
  padding: calc(var(--nav-height) + 3.5rem) 0 3.75rem;
  text-align: center;
  background:
    radial-gradient(720px 340px at 82% -12%, #E7F5FC 0%, rgba(231,245,252,0) 60%),
    linear-gradient(180deg, #FFFDF7 0%, #FDFAF4 100%);
}
.page-hero .kicker { margin-bottom: 0.4rem; }
.page-hero h1 {
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  margin-bottom: 0.85rem;
}
.page-hero p { max-width: 40rem; margin: 0 auto; font-size: 1.05rem; }


/* ============================================================
   GALLERY
   ============================================================ */
#gallery {
  padding: 3.5rem 0 6rem;
  background: var(--color-white);
}
.gallery {
  column-count: 1;
  column-gap: 1.1rem;
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.1rem;
}
.gallery-item .frame-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(14, 46, 94, 0.10);
}
.gallery-item.g-tall   .frame-img { aspect-ratio: 3 / 4; }
.gallery-item.g-square .frame-img { aspect-ratio: 1 / 1; }
.gallery-item.g-wide   .frame-img { aspect-ratio: 5 / 4; }

@media (min-width: 600px) { .gallery { column-count: 2; } }
@media (min-width: 960px) { .gallery { column-count: 3; } }


/* ============================================================
   CONTACT US
   ============================================================ */
#contact {
  padding: 5rem 0;
  background: var(--color-blue);
}

#contact .section-label {
  background: rgba(75,191,255,0.2);
  color: var(--color-blue-text);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  color: var(--color-blue-text);
  flex-shrink: 0;
  background: white;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  line-height: 1;
}

.info-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-blue-text);
  margin-bottom: 0.25rem;
}

.info-item p {
  font-size: 0.97rem;
  color: var(--color-text);
  line-height: 1.5;
}

.info-item a {
  color: var(--color-blue-text);
  font-weight: 600;
  transition: color var(--t);
}

.info-item a:hover {
  color: var(--color-navy);
}

.hours-note {
  font-size: 0.82rem;
  color: var(--color-text-light) !important;
  margin-top: 0.2rem;
}

/* Embedded map */
.contact-map {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
}

.contact-map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

@media (max-width: 600px) {
  .contact-map iframe { height: 280px; }
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.required {
  color: var(--color-navy);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: #7A8798;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-blue-mid);
  box-shadow: 0 0 0 3px rgba(75, 191, 255, 0.18);
}

input.error,
textarea.error {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

/* Custom select arrow */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-text-light);
  pointer-events: none;
}

.error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--color-coral);
  margin-top: 0.3rem;
  font-weight: 600;
}

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

.contact-form .btn-primary {
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Form success */
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--color-mint);
  border: 1.5px solid var(--color-mint-mid);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.form-success[hidden] {
  display: none;
}

.success-icon {
  width: 26px;
  height: 26px;
  color: var(--color-mint-text);
  flex-shrink: 0;
}

.success-icon .icon {
  width: 100%;
  height: 100%;
}

.form-success strong {
  display: block;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.form-success p {
  font-size: 0.9rem;
  color: var(--color-mint-text);
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--color-footer-bg);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo-mark {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-yellow-mid);
  display: block;
  margin-bottom: 0.25rem;
}

.footer-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: inline-block;
  vertical-align: -11px;
  margin-right: 6px;
}

.footer-logo p {
  font-size: 0.8rem;
  color: var(--color-footer-text);
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
}

.footer-links a {
  color: var(--color-footer-text);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--t);
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: var(--color-yellow-mid);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--color-footer-text);
  opacity: 0.75;
  line-height: 1.6;
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays — redesigned grids */
.programs .program-card:nth-child(2) { transition-delay: 0.08s; }
.programs .program-card:nth-child(3) { transition-delay: 0.16s; }
.programs .program-card:nth-child(4) { transition-delay: 0.24s; }

.why-grid .why-feature:nth-child(3n+2) { transition-delay: 0.08s; }
.why-grid .why-feature:nth-child(3n+3) { transition-delay: 0.16s; }

.team-grid .team-card:nth-child(2) { transition-delay: 0.08s; }
.team-grid .team-card:nth-child(3) { transition-delay: 0.16s; }
.team-grid .team-card:nth-child(4) { transition-delay: 0.24s; }


/* ============================================================
   RESPONSIVE — 640px+
   ============================================================ */
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .programs { grid-template-columns: repeat(2, 1fr); }

  .contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================================
   RESPONSIVE — 768px+ (nav breakpoint)
   ============================================================ */
@media (min-width: 768px) {
  /* Hide hamburger, show inline nav */
  .hamburger { display: none !important; }
  .nav-links {
    display: flex !important;
    position: static !important;
    max-height: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }
}

/* Mobile nav — hamburger visible, links collapsed */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: block;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    padding-block: 0.75rem;
    box-shadow: var(--shadow-md);
    /* Hardware-accelerated open/close (transform + opacity, no layout thrash) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  }

  .nav-links.nav-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    display: block;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-size: 1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    margin: 0.5rem 1rem 0.25rem !important;
    border-radius: var(--radius-pill) !important;
    text-align: center !important;
    display: block !important;
    padding: 0.75rem 1rem !important;
  }
}


/* ============================================================
   RESPONSIVE — 1024px+ (full desktop)
   ============================================================ */
@media (min-width: 1024px) {
  #contact { padding: 6rem 0; }

  .about-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; }
  .why-top { grid-template-columns: 0.9fr 1.1fr; gap: 4.5rem; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(4, 1fr); }

  /* Playful masonry offset for the program cards */
  .programs .program-card:nth-child(even) { transform: translateY(2.5rem); }
  .programs .program-card:nth-child(even):hover { transform: translateY(calc(2.5rem - 6px)); }

  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Small-screen polish for the redesigned sections */
@media (max-width: 560px) {
  .doodle-star, .doodle-leaf { display: none; }
  .media-bubble { font-size: 1.15rem; left: 0; bottom: 4%; }
  .team-grid { gap: 1.75rem 1.25rem; }
}

/* Hero — photographic section on small screens */
@media (max-width: 768px) {
  .hero-inner {
    padding: 5rem 1.25rem 6.5rem;
  }

  #hero h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  /* Lighter scrim — reveals the photo while keeping headline legible */
  .hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(255,251,242,0.82) 0%,
        rgba(255,251,242,0.55) 34%,
        rgba(255,251,242,0.30) 64%,
        rgba(255,251,242,0.20) 100%);
  }

  .hero-photo {
    background-image: url("../images/hero-mobile.jpg");
    background-position: center 22%;
  }

  .hero-scroll {
    bottom: 2.5rem;
  }
}
