/* =========================================================
   Little Feet Daycare — stylesheet
   Palette: warm sand + soft sky blue + deep charcoal ink.
   Type: Fraunces (headings), Figtree (body/UI), Beau Rivage
   (script) reserved for brand-voice moments only.
   ========================================================= */

:root {
  /* --- Brand palette (derived only from the two brand hues + ink) --- */
  --sand: #F3E6E0;
  --sand-deep: #E8D8C9;
  --cream: #F9F0EA;
  --sky: #8DB6D5;
  --sky-deep: #5E88AC;
  --sky-soft: #C3DCEC;
  --sky-label: #4B6C89; /* AA-safe darkening of sky-deep for small bold text on sand/cream */
  --ink: #1E293B;
  --ink-70: rgba(30, 41, 59, 0.7);
  --ink-50: rgba(30, 41, 59, 0.5);
  --ink-hairline: rgba(30, 41, 59, 0.14);
  --ink-hairline-strong: rgba(30, 41, 59, 0.22);
  --shadow-soft: 0 18px 40px -22px rgba(30, 41, 59, 0.35);
  --shadow-lift: 0 24px 60px -24px rgba(30, 41, 59, 0.45);

  /* --- Type --- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-script: "Beau Rivage", "Segoe Script", cursive;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  /* --- Shape --- */
  --radius-pill: 999px;
  --radius-lg: 2.75rem;
  --radius-md: 1.5rem;
  --radius-sm: 0.9rem;

  /* --- Rhythm --- */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --edge-pad: clamp(1.25rem, 5vw, 4.5rem);
  --content-max: 1240px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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.nav-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  color: var(--ink);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--edge-pad);
}

section { position: relative; padding-block: var(--section-pad); }

.section-sand { background: var(--sand); }
.section-sky  { background: var(--sky); }

/* Shared section intro block */
.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); }
.section-head p {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--ink-70);
  max-width: 38rem;
}
.section-head--center p { margin-inline: auto; }

.script-accent {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  color: var(--sky-deep);
  display: inline-block;
  line-height: 1;
}

/* ---------- Focus & accessibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: #14202f; box-shadow: var(--shadow-lift); }

.btn--sky {
  background: var(--sky);
  color: var(--ink);
}
.btn--sky:hover { background: var(--sky-deep); color: var(--cream); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-hairline-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(30, 41, 59, 0.05); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink);
  background-image: linear-gradient(var(--sky-deep), var(--sky-deep));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.25s ease, color 0.25s ease;
}
.text-link:hover, .text-link:focus-visible { background-size: 100% 2px; color: var(--sky-label); }
.text-link svg { transition: transform 0.25s ease; width: 16px; height: 16px; }
.text-link:hover svg { transform: translateX(4px); }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 230, 224, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--ink-hairline);
  box-shadow: 0 12px 30px -24px rgba(30, 41, 59, 0.4);
}
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1rem;
  padding-block: 0.4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
  justify-self: start;
}
.brand img {
  width: 108px;
  height: 108px;
  border-radius: 50%;
}
.brand-word { font-family: var(--font-script); font-size: 1.9rem; color: var(--ink); line-height: 1; padding-top: 0.3rem; }

.nav-primary { justify-self: center; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-70);
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  cursor: default;
}
.nav-links a:not(.btn):hover { color: var(--ink); border-color: var(--sky-deep); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; justify-self: end; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-hairline-strong);
  background: transparent;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: background 0.25s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.nav-drawer-cta { display: none; }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(30, 41, 59, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s;
  z-index: 90;
}
.nav-scrim.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 100%;
    right: 0;
    left: auto;
    width: min(82vw, 360px);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    background: var(--sand);
    padding: 2.5rem 2rem 2.5rem;
    gap: 0;
    transform: translateX(100%);
    visibility: hidden;
    box-shadow: -30px 0 60px -28px rgba(30, 41, 59, 0.4);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
    z-index: 95;
    overflow-y: auto;
  }
  .nav-links.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-links li {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    list-style: none;
  }
  .nav-links.is-open li { opacity: 1; transform: translateX(0); }
  .nav-links.is-open li:nth-child(1) { transition-delay: 0.08s; }
  .nav-links.is-open li:nth-child(2) { transition-delay: 0.13s; }
  .nav-links.is-open li:nth-child(3) { transition-delay: 0.18s; }
  .nav-links.is-open li:nth-child(4) { transition-delay: 0.23s; }
  .nav-links.is-open li:nth-child(5) { transition-delay: 0.28s; }
  .nav-links.is-open li:nth-child(6) { transition-delay: 0.33s; }
  .nav-links.is-open li:nth-child(7) { transition-delay: 0.4s; }
  .nav-links a:not(.btn) {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 0.15rem;
    width: 100%;
    border-bottom: 1px solid var(--ink-hairline);
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
  }
  .nav-links a:not(.btn):hover, .nav-links a:not(.btn):focus-visible { color: var(--sky-deep); padding-left: 0.4rem; }
  .nav-actions .btn--primary { display: none; }
  .nav-drawer-cta { display: block; margin-top: 1.75rem; }
  .nav-drawer-cta .btn { width: 100%; }
  .nav-toggle { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links, .nav-links li, .nav-scrim { transition: none !important; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  border-radius: 0 0 3.5rem 3.5rem;
  min-height: clamp(560px, 82vh, 760px);
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vw, 5rem);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--sand) 0%, var(--sand) 36%, rgba(243, 230, 224, 0.55) 54%, rgba(243, 230, 224, 0) 76%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-copy { max-width: 34rem; }
.hero-tagline {
  font-family: var(--font-script);
  color: var(--sky-deep);
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  display: inline-block;
  margin-bottom: 0.75rem;
}
.hero-copy h1 {
  font-size: clamp(2.75rem, 5vw, 4.35rem);
  margin-bottom: 1.25rem;
}
.hero-copy > p.lede {
  font-size: 1.125rem;
  color: var(--ink-70);
  max-width: 32rem;
  margin-bottom: 2.1rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

@media (max-width: 900px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 2.75rem;
    border-radius: 0 0 2.5rem 2.5rem;
  }
  .hero-media { position: relative; inset: auto; height: 300px; }
  .hero-fade { background: linear-gradient(to top, var(--sand) 0%, var(--sand) 8%, rgba(243, 230, 224, 0) 62%); }
  .hero-inner { padding-top: 2rem; }
  .hero-copy { max-width: none; }
}

/* Hero load-in — single orchestrated moment */
.hero-copy .hero-tagline,
.hero-copy h1,
.hero-copy p.lede,
.hero-copy .hero-ctas,
.hero-media img {
  opacity: 0;
  animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-copy .hero-tagline { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.16s; }
.hero-copy p.lede { animation-delay: 0.28s; }
.hero-copy .hero-ctas { animation-delay: 0.4s; }
.hero-media img { animation-name: fade-in; animation-delay: 0.1s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy .hero-tagline, .hero-copy h1, .hero-copy p.lede, .hero-copy .hero-ctas, .hero-media img {
    opacity: 1; animation: none; transform: none;
  }
}

/* =========================================================
   Trust signals
   ========================================================= */
.trust { padding-block: clamp(3rem, 5vw, 4rem); }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 220px;
}
.trust-item .icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.trust-item .icon svg { width: 26px; height: 26px; stroke: var(--ink); }
.trust-item .icon img { width: 30px; height: auto; display: block; }
.trust-item h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin-bottom: 0.2rem; }
.trust-item p { font-size: 0.92rem; color: var(--ink-70); }

/* =========================================================
   Philosophy — asymmetric grid + masonry
   ========================================================= */
.philosophy .container {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.philosophy-text h2 { margin-bottom: 1.4rem; }
.philosophy-text p { color: var(--ink-70); margin-bottom: 1.15rem; max-width: 34rem; }
.philosophy-quote {
  margin-top: 1.75rem;
  padding-left: 1.35rem;
  border-left: 3px solid var(--sky);
}
.philosophy-quote .script-accent { font-size: clamp(1.65rem, 2.6vw, 2.1rem); color: var(--ink); }
.philosophy-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-70);
  margin-top: 0.4rem;
}

.masonry {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-areas:
    "a b c"
    "a d e";
  gap: 1.25rem;
}
.masonry img { width: 100%; height: 100%; object-fit: cover; }
.masonry-item { overflow: hidden; box-shadow: var(--shadow-soft); }
.masonry-item.m-1 { grid-area: a; border-radius: 3.5rem 1.25rem 3.5rem 1.25rem; aspect-ratio: 3/4.4; align-self: start; }
.masonry-item.m-2 { grid-area: b; border-radius: 50%; aspect-ratio: 1; align-self: end; }
.masonry-item.m-3 { grid-area: c; border-radius: 1.25rem 3.5rem 1.25rem 3.5rem; aspect-ratio: 6/5; }
.masonry-item.m-4 { grid-area: d; border-radius: 1.25rem 3.5rem 1.25rem 3.5rem; aspect-ratio: 6/5; align-self: start; }
.masonry-item.m-5 { grid-area: e; border-radius: 3.5rem 1.25rem 3.5rem 1.25rem; aspect-ratio: 1; align-self: start; }

@media (max-width: 980px) {
  .philosophy .container { grid-template-columns: 1fr; }
  .masonry { max-width: 620px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .masonry {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a a"
      "b c"
      "d e";
  }
  .masonry-item.m-1 { aspect-ratio: 16 / 9; }
}

/* =========================================================
   Curriculum journey
   ========================================================= */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.stage-card {
  background: var(--cream);
  border: 1px solid var(--ink-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stage-card .stage-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
}
.stage-card .stage-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-card .stage-body {
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex-grow: 1;
}
.stage-card .stage-age {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sky-label);
  letter-spacing: 0.02em;
}
.stage-card h3 { font-size: 1.4rem; margin-top: 0.15rem; }
.stage-card p { color: var(--ink-70); font-size: 0.98rem; flex-grow: 1; }

@media (max-width: 900px) {
  .curriculum-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

/* =========================================================
   Enrollment timeline
   ========================================================= */
.timeline { max-width: 640px; margin-inline: auto; }
.timeline-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  padding-bottom: 3rem;
}
.timeline-step:last-of-type { padding-bottom: 2.5rem; }
.timeline-step .node {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--sand-deep);
  border: 1.5px solid var(--ink-hairline);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
  flex-shrink: 0;
}
.timeline-step .node img { width: 34px; height: auto; display: block; }
.timeline-step .path {
  position: absolute;
  left: 32px;
  top: 64px;
  bottom: -4px;
  width: 2px;
  background-image: linear-gradient(var(--ink-hairline-strong) 60%, transparent 0%);
  background-size: 2px 12px;
  background-repeat: repeat-y;
}
.timeline-step:last-of-type .path { display: none; }
.timeline-step .step-label { font-size: 0.85rem; font-weight: 700; color: var(--sky-label); margin-bottom: 0.25rem; }
.timeline-step h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.timeline-step p { color: var(--ink-70); }
.timeline-cta { text-align: center; margin-top: 1rem; }
.timeline-cta p { color: var(--ink-70); margin-bottom: 1.5rem; }

/* Horizontal layout on desktop — the same four steps, read left to right */
@media (min-width: 901px) {
  .timeline {
    max-width: none;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .timeline::before {
    content: "";
    position: absolute;
    top: 32px;
    left: calc(64px / 2);
    right: calc(64px / 2);
    height: 2px;
    background-image: linear-gradient(to right, var(--ink-hairline-strong) 50%, transparent 0%);
    background-size: 12px 2px;
    background-repeat: repeat-x;
    z-index: 1;
  }
  .timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    grid-template-columns: none;
    gap: 1.1rem;
    padding-bottom: 0;
    flex: 1 1 0;
  }
  .timeline-step .path { display: none; }
  .timeline-text { max-width: 230px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--sky); color: var(--ink); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(30, 41, 59, 0.18);
}
.footer-brand img { width: 128px; height: 128px; border-radius: 50%; margin-bottom: 1.1rem; }
.footer-brand p { color: var(--ink); opacity: 0.85; max-width: 22rem; font-size: 0.96rem; }
.footer-social { display: flex; gap: 0.65rem; margin-top: 1.25rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--ink); transform: translateY(-2px); }
.footer-social a:hover svg { stroke: var(--cream); }
.footer-social svg { width: 18px; height: 18px; stroke: var(--ink); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.1rem;
  color: var(--ink);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col address { font-style: normal; }
.footer-col a:hover { text-decoration: underline; }
.footer-col p, .footer-col li, .footer-col address { font-size: 0.95rem; }

.footer-form { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-form .field { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-form label { font-size: 0.85rem; font-weight: 600; }
.footer-form input, .footer-form textarea {
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  min-height: 44px;
  resize: vertical;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: var(--ink-50); }
.footer-form textarea { min-height: 88px; }
.footer-form .btn { align-self: flex-start; margin-top: 0.25rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--ink-70);
}

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

/* ---------- Footfall divider (brand-specific transition motif) ---------- */
.footfall {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0;
  position: relative;
  z-index: 3;
  line-height: 0;
}
.footfall img { width: 44px; height: auto; opacity: 0.65; display: block; }

/* =========================================================
   WhatsApp floating action button
   ========================================================= */
.whatsapp-fab {
  position: fixed;
  right: clamp(1rem, 4vw, 1.75rem);
  bottom: clamp(1rem, 4vw, 1.75rem);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lift);
  z-index: 150;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  animation: fab-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 1.1s backwards;
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover, .whatsapp-fab:focus-visible {
  transform: translateY(-3px) scale(1.05);
  background: var(--sky-deep);
  box-shadow: 0 26px 50px -20px rgba(30, 41, 59, 0.55);
}
.wa-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.whatsapp-fab:hover .wa-tooltip, .whatsapp-fab:focus-visible .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@keyframes fab-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 640px) {
  .wa-tooltip { display: none; }
  .whatsapp-fab { width: 54px; height: 54px; }
  .whatsapp-fab svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab { animation: none; opacity: 1; }
}

/* =========================================================
   Scroll-in reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.trust-row > .reveal:nth-child(1) { transition-delay: 0.02s; }
.trust-row > .reveal:nth-child(2) { transition-delay: 0.1s; }
.trust-row > .reveal:nth-child(3) { transition-delay: 0.18s; }
.trust-row > .reveal:nth-child(4) { transition-delay: 0.26s; }

.masonry > .reveal:nth-child(1) { transition-delay: 0s; }
.masonry > .reveal:nth-child(2) { transition-delay: 0.08s; }
.masonry > .reveal:nth-child(3) { transition-delay: 0.16s; }
.masonry > .reveal:nth-child(4) { transition-delay: 0.1s; }
.masonry > .reveal:nth-child(5) { transition-delay: 0.22s; }

.curriculum-grid > .reveal:nth-child(1) { transition-delay: 0s; }
.curriculum-grid > .reveal:nth-child(2) { transition-delay: 0.12s; }
.curriculum-grid > .reveal:nth-child(3) { transition-delay: 0.24s; }

.timeline > .reveal:nth-child(1) { transition-delay: 0s; }
.timeline > .reveal:nth-child(2) { transition-delay: 0.1s; }
.timeline > .reveal:nth-child(3) { transition-delay: 0.2s; }
.timeline > .reveal:nth-child(4) { transition-delay: 0.3s; }

.footer-grid > .reveal:nth-child(1) { transition-delay: 0s; }
.footer-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.footer-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.footer-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Utility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
