/* Alfa Da Childcare — Phase 2 visual redesign */

:root {
  --purple: #5b2d86;
  --purple-deep: #451f68;
  --purple-soft: #7a48a8;
  --pink: #e2186d;
  --pink-deep: #be125a;
  --blue: #1f8fe8;
  --blue-deep: #0f6fbe;
  --green: #2ea24a;
  --green-deep: #1d7a34;
  --orange: #f08a16;
  --orange-deep: #c86e08;
  --yellow: #f5c31a;
  --yellow-ink: #5c4700;
  --navy: #1c1840;
  --ink: #2a2448;
  --muted: #5c5678;
  --paper: #ffffff;
  --cream: #fffdf8;
  --line: rgba(28, 24, 64, 0.1);
  --shadow: 0 16px 36px rgba(91, 45, 134, 0.12);
  --radius: 1.6rem;
  --header-h: 5rem;
  --max: 72rem;
  --font: "Avenir Next", Avenir, "Segoe UI", "Gill Sans", "Trebuchet MS", sans-serif;
  --display: "Avenir Next Rounded", "Avenir Next", Avenir, "Gill Sans", "Century Gothic", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  overflow-x: hidden;
}

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

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

a {
  color: var(--pink-deep);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--purple);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

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

.section {
  position: relative;
  padding: 4.25rem 0;
}

.section-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.12rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Handprints — painted assets from images/painted-handprints.png */
.handprint {
  display: block;
  width: 4.5rem;
  height: 5.6rem;
  background-color: transparent;
  background-image: url("images/prints/pink.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.hp-a,
.hp-b,
.hp-c,
.hp-d {
  /* shape variants now come from the painted source, not vector masks */
}

.hp-pink { background-image: url("images/prints/pink.png"); }
.hp-blue { background-image: url("images/prints/blue.png"); }
.hp-green { background-image: url("images/prints/green.png"); }
.hp-yellow { background-image: url("images/prints/yellow.png"); }
.hp-orange { background-image: url("images/prints/orange.png"); }
.hp-purple { background-image: url("images/prints/purple.png"); }
.hp-sm { width: 2.4rem; height: 3rem; }
.hp-md { width: 3.8rem; height: 4.7rem; }
.hp-lg { width: 6.8rem; height: 8.4rem; }
.hp-xl { width: 9.5rem; height: 11.8rem; }
.hp-xxl { width: 14rem; height: 17.5rem; }

.brand-print.hp-pink,
.hp-sm.hp-pink,
.hp-md.hp-pink { background-image: url("images/prints/pink-sm.png"); }
.brand-print.hp-blue,
.hp-sm.hp-blue,
.hp-md.hp-blue { background-image: url("images/prints/blue-sm.png"); }
.brand-print.hp-green,
.hp-sm.hp-green,
.hp-md.hp-green { background-image: url("images/prints/green-sm.png"); }
.hp-sm.hp-yellow,
.hp-md.hp-yellow { background-image: url("images/prints/yellow-sm.png"); }
.hp-sm.hp-orange,
.hp-md.hp-orange { background-image: url("images/prints/orange-sm.png"); }

.hp-soft { opacity: 0.22; }
.rotate-n24 { transform: rotate(-24deg); }
.rotate-n20 { transform: rotate(-20deg); }
.rotate-n16 { transform: rotate(-16deg); }
.rotate-n14 { transform: rotate(-14deg); }
.rotate-n12 { transform: rotate(-12deg); }
.rotate-n8 { transform: rotate(-8deg); }
.rotate-n6 { transform: rotate(-6deg); }
.rotate-8 { transform: rotate(8deg); }
.rotate-10 { transform: rotate(10deg); }
.rotate-12 { transform: rotate(12deg); }
.rotate-14 { transform: rotate(14deg); }
.rotate-16 { transform: rotate(16deg); }
.rotate-18 { transform: rotate(18deg); }
.rotate-20 { transform: rotate(20deg); }
.rotate-22 { transform: rotate(22deg); }

/* Waves */
.wave {
  position: absolute;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}

.wave svg {
  width: 100%;
  height: 4.5rem;
}

.wave-hero {
  bottom: -1px;
}

.wave-mission-top,
.wave-hours-top,
.wave-footer {
  top: -1px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(91, 45, 134, 0.06);
}

.header-inner {
  width: min(calc(100% - 1.25rem), var(--max));
  min-height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}

.brand-mark {
  position: relative;
  width: 2.7rem;
  height: 2.7rem;
  flex-shrink: 0;
}

.brand-print {
  position: absolute;
  width: 1.5rem;
  height: 1.85rem;
}

.brand-print:nth-child(1) { left: 0; top: 0.15rem; transform: rotate(-18deg); }
.brand-print:nth-child(2) { left: 0.9rem; top: 0; transform: rotate(12deg); }
.brand-print:nth-child(3) { left: 0.4rem; top: 0.75rem; transform: rotate(4deg); }

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

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--purple);
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

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

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

.site-nav {
  display: none;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-pink { background: var(--pink); }
.nav-blue { background: var(--blue); }
.nav-green { background: var(--green); }
.nav-orange { background: var(--orange-deep); color: #fff; }
.nav-purple { background: var(--purple); }
.nav-yellow { background: var(--yellow); color: var(--navy); }

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(28, 24, 64, 0.18);
}

.nav-pink.is-active { box-shadow: 0 0 0 3px #fff8ee, 0 0 0 6px var(--pink); }
.nav-blue.is-active { box-shadow: 0 0 0 3px #fff8ee, 0 0 0 6px var(--blue); }
.nav-green.is-active { box-shadow: 0 0 0 3px #fff8ee, 0 0 0 6px var(--green); }
.nav-orange.is-active { box-shadow: 0 0 0 3px #fff8ee, 0 0 0 6px var(--orange); }
.nav-purple.is-active { box-shadow: 0 0 0 3px #fff8ee, 0 0 0 6px var(--purple); }
.nav-yellow.is-active { box-shadow: 0 0 0 3px #fff8ee, 0 0 0 6px var(--yellow); }
.nav-yellow:hover,
.nav-yellow.is-active {
  color: var(--navy);
}

.nav-backdrop {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1023px) {
  /* Backdrop stays below the header stacking context so it cannot mute or
     intercept the menu. Header filter is disabled while open so iOS does
     not frost the panel. */
  body.nav-open .site-header {
    z-index: 130;
    background: #fffdf8;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-toggle {
    position: relative;
    z-index: 140;
    opacity: 1;
    filter: none;
  }

  .site-nav {
    display: block;
    visibility: hidden;
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(22rem, 90vw);
    background: #fff;
    padding: 1.1rem 1rem 2rem;
    transform: translateX(100%);
    transition: transform 0.28s ease, visibility 0.28s ease;
    z-index: 140;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    box-shadow: -12px 0 30px rgba(28, 24, 64, 0.12);
  }

  body.nav-open .site-nav {
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .site-nav .nav-link {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  body.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(28, 24, 64, 0.4);
    z-index: 120;
    pointer-events: auto;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
  }

  .nav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
  }
}

@media (min-width: 1240px) {
  .nav-link {
    min-height: 44px;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn-primary {
  background: var(--orange-deep);
  color: #fff;
  box-shadow: 0 10px 22px rgba(200, 110, 8, 0.32);
}

.btn-primary:hover {
  background: var(--orange-deep);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--purple);
}

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

.btn-ghost {
  background: #fff;
  color: var(--purple);
}

.btn-ghost:hover {
  background: var(--yellow);
  color: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.4rem 0 8.5rem;
  background: linear-gradient(160deg, #6d389c 0%, var(--purple) 48%, #4a2270 100%);
  color: #fff;
}

.hero-prints {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-hand {
  display: block;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.hero-hand-pink {
  position: absolute;
  left: 0.85rem;
  top: 3.2rem;
  width: 6.8rem;
  height: 7.8rem;
  opacity: 0.34;
  transform: rotate(-16deg);
}

.hero-hand-blue {
  position: absolute;
  right: 0.7rem;
  top: 9.2rem;
  bottom: auto;
  width: 6.2rem;
  height: 7.2rem;
  opacity: 0.32;
  transform: rotate(12deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 7vw, 4.35rem);
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}

.hero-lead {
  max-width: 32rem;
  margin-bottom: 1.1rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-enroll {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.55rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: #d51f3c;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(213, 31, 60, 0.28);
}

.hero-ages {
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  justify-self: center;
}

.hero-visual-hands {
  position: relative;
  width: min(100%, 16rem);
  height: 11rem;
}

.hero-visual-hands .hero-hand {
  position: absolute;
}

.hero-hand-yellow {
  right: 8%;
  top: 0;
  width: 4.6rem;
  height: 5.2rem;
  opacity: 0.55;
  transform: rotate(14deg);
}

.hero-hand-green {
  left: 18%;
  top: 1.2rem;
  width: 4.1rem;
  height: 4.6rem;
  opacity: 0.5;
  transform: rotate(-10deg);
}

.hero-hand-orange {
  left: 42%;
  bottom: 0.4rem;
  width: 3.8rem;
  height: 4.3rem;
  opacity: 0.48;
  transform: rotate(8deg);
}

@media (max-width: 899px) {
  .hero-visual {
    display: none;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
  }

  .hero-hand-pink {
    left: 0.15rem;
    top: 2.4rem;
    width: 6.4rem;
    height: 7.4rem;
  }

  .hero-hand-blue {
    right: 0.2rem;
    top: auto;
    bottom: 8.6rem;
    width: 6rem;
    height: 7rem;
  }
}

/* Feature cards overlapping hero */
.feature-band {
  position: relative;
  z-index: 2;
  margin-top: -6.25rem;
  padding: 0 0 2.5rem;
}

.feature-grid {
  display: grid;
  gap: 0.9rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 13.5rem;
  padding: 1.5rem 1.35rem 1.4rem;
  border-radius: 1.7rem;
  color: #fff;
  box-shadow: var(--shadow);
}

.feature-card h2 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.45rem;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.92);
}

.feature-blue { background: linear-gradient(165deg, #3aa3ef, var(--blue-deep)); }
.feature-green { background: linear-gradient(165deg, #48b85f, var(--green-deep)); }
.feature-orange { background: linear-gradient(165deg, #e08920, #b86206); }
.feature-pink { background: linear-gradient(165deg, #ef4d8c, var(--pink-deep)); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 0.75rem;
  background: transparent;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -0.6rem;
  bottom: -0.8rem;
  width: 5.2rem;
  height: 6.4rem;
  background: transparent url("images/prints/blue.png") center / contain no-repeat;
  opacity: 0.28;
  transform: rotate(18deg);
}
.feature-blue::after { background-image: url("images/prints/blue.png"); }
.feature-green::after { background-image: url("images/prints/green.png"); }
.feature-orange::after { background-image: url("images/prints/orange.png"); }
.feature-pink::after { background-image: url("images/prints/pink.png"); }

/* About */
.about {
  background: var(--cream);
  padding-top: 2.5rem;
}

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-copy p {
  font-size: 1.12rem;
}

.about-visual {
  display: grid;
  gap: 1rem;
}

.about-photo-slot {
  position: relative;
  min-height: 12rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 30% 40%, rgba(226, 24, 109, 0.14), transparent 42%),
    radial-gradient(circle at 72% 30%, rgba(31, 143, 232, 0.16), transparent 40%),
    radial-gradient(circle at 60% 75%, rgba(46, 162, 74, 0.14), transparent 40%),
    #fff;
  overflow: hidden;
}

.about-photo-slot .handprint {
  position: absolute;
}

.about-photo-slot .handprint:nth-child(1) { left: 8%; top: 10%; }
.about-photo-slot .handprint:nth-child(2) { right: 10%; top: 8%; }
.about-photo-slot .handprint:nth-child(3) { left: 22%; bottom: 6%; }
.about-photo-slot .handprint:nth-child(4) { right: 18%; bottom: 10%; }

.about-panel {
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.about-panel-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
}

.about-panel-value {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--purple);
  margin: 0.15rem 0 0.45rem;
}

.about-panel-note {
  color: var(--muted);
}

.about-green-badge {
  margin: 1.5rem 0 0;
  max-width: 8.75rem;
}

.about-green-badge img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 899px) {
  .about-green-badge {
    margin: 1.6rem auto 0.15rem;
    max-width: 7rem;
  }
}

/* Mission */
.mission {
  background: #f4ecfb;
  overflow: hidden;
}

.dev-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.6rem;
  padding: 0;
}

.dev-badges li {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
}

.badge-blue { background: var(--blue); }
.badge-pink { background: var(--pink); }
.badge-green { background: var(--green); }
.badge-orange { background: var(--orange); }
.badge-purple { background: var(--purple); }
.badge-yellow { background: var(--yellow); color: var(--yellow-ink); }

.mission-grid {
  display: grid;
  gap: 1rem;
}

.mission-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.25rem;
  box-shadow: var(--shadow);
}

.mission-card h3 {
  padding-bottom: 0.45rem;
  border-bottom: 4px solid var(--blue);
}

.mission-card:nth-child(2) h3 { border-bottom-color: var(--pink); }
.mission-card:nth-child(3) h3 { border-bottom-color: var(--green); }
.mission-card:nth-child(4) h3 { border-bottom-color: var(--orange); }
.mission-card:nth-child(5) h3 { border-bottom-color: var(--purple); }

.mission-close {
  margin: 1.6rem 0 0;
  padding: 1.6rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--purple);
  color: #fff;
}

.mission-close p {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
}

/* Learning */
.learning {
  background: var(--paper);
}

.activity-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.activity-card {
  position: relative;
  overflow: hidden;
  min-height: 12.5rem;
  padding: 1.4rem 1.25rem 1.3rem;
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

.activity-card::after {
  content: "";
  position: absolute;
  right: -0.5rem;
  bottom: -0.7rem;
  width: 4.6rem;
  height: 5.7rem;
  background: transparent url("images/prints/pink.png") center / contain no-repeat;
  opacity: 0.24;
  transform: rotate(16deg);
}
.card-pink::after { background-image: url("images/prints/pink.png"); }
.card-blue::after { background-image: url("images/prints/blue.png"); }
.card-orange::after { background-image: url("images/prints/orange.png"); }
.card-green::after { background-image: url("images/prints/green.png"); }
.card-purple::after { background-image: url("images/prints/purple.png"); }

.activity-icon {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 0.7rem;
  background: transparent;
}

.activity-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-pink { background: #ffe0ec; color: var(--pink-deep); }
.card-blue { background: #dcefff; color: var(--blue-deep); }
.card-orange { background: #ffe7c4; color: var(--orange-deep); }
.card-green { background: #d9f5df; color: var(--green-deep); }
.card-purple { background: #efe0fb; color: var(--purple); }

.activity-card h3 {
  color: var(--navy);
}

.activity-card p {
  color: var(--ink);
}

.activity-card[role="button"] {
  cursor: pointer;
}

/* Future gallery
   Insert <section class="section gallery" id="gallery"> between #learning and #hours.
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  margin: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  background: #f3efe8;
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
*/

/* Hours */
.hours {
  background: linear-gradient(180deg, #fff6d8 0%, #ffe7c4 100%);
  overflow: hidden;
}

.hours-wrap {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hours-card {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.4rem;
  background: var(--purple);
  color: #fff;
  border-radius: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.hours-stamp,
.hours-stamp-b {
  position: absolute;
  opacity: 0.22;
}

.hours-stamp { left: -0.6rem; top: -0.4rem; }
.hours-stamp-b { right: -0.3rem; bottom: -0.4rem; }

.hours-days {
  position: relative;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--yellow);
}

.hours-time {
  position: relative;
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-weight: 800;
  color: #fff;
  margin: 0.3rem 0 0;
}

/* Contact */
.contact {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  gap: 1.15rem;
}

.contact-card,
.contact-cta {
  border-radius: 1.7rem;
  padding: 1.7rem 1.45rem;
}

.contact-card {
  background: #eef6ff;
  font-style: normal;
}

.contact-card h3 {
  font-size: 1.5rem;
  color: var(--purple);
}

.contact-address {
  font-size: 1.08rem;
}

.contact-details {
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.contact-details dt {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-details dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
}

.contact-details a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 3px solid var(--pink);
}

.contact-details a:hover {
  color: var(--pink-deep);
}

.contact-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--purple) 0%, #3d1b62 100%);
  color: #fff;
}

.contact-cta h3,
.contact-cta p {
  position: relative;
  z-index: 1;
  color: #fff;
}

.contact-cta h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
}

.contact-cta .hero-actions {
  position: relative;
  z-index: 1;
}

.cta-print,
.cta-print-b {
  position: absolute;
  opacity: 0.2;
}

.cta-print { right: -1rem; bottom: -1.1rem; }
.cta-print-b { right: 4.5rem; bottom: -0.6rem; transform: rotate(-18deg); }

/* Footer */
.site-footer {
  position: relative;
  background: var(--purple);
  color: rgba(255, 255, 255, 0.86);
  padding: 4.8rem 0 2.2rem;
  text-align: center;
}

.wave-footer {
  overflow: hidden;
}

.footer-prints {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  margin: 0 auto 1.15rem;
  padding: 0.7rem 0.65rem 0.55rem;
  max-width: 22.5rem;
  opacity: 0.92;
}

.footer-hand {
  display: block;
  width: 3.35rem;
  height: 3.35rem;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}

.fh-1 { transform: rotate(-7deg); }
.fh-2 { transform: rotate(6deg); }
.fh-3 { transform: rotate(-4deg); }
.fh-4 { transform: rotate(7deg); }
.fh-5 { transform: rotate(-6deg); }
.fh-6 { transform: rotate(5deg); }

.footer-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.footer-tag {
  color: var(--yellow);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.footer-meta,
.footer-copy,
.footer-credit {
  font-size: 0.92rem;
}

.footer-credit {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  font-weight: 600;
}

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

.site-footer a {
  color: #fff;
}

/* Layouts */
@media (min-width: 640px) {
  .footer-prints {
    gap: 0.45rem;
    max-width: 34rem;
    padding-inline: 1rem;
  }

  .footer-hand {
    width: 3.7rem;
    height: 3.7rem;
  }

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

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

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

  .mission-card-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 5rem 0;
  }

  .hero {
    padding: 3rem 0 9rem;
  }

  .hero-grid,
  .about-grid,
  .hours-wrap,
  .contact-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.4rem;
  }

  .hero-hand-pink {
    left: 2.1rem;
    top: 3.5rem;
    width: 11.2rem;
    height: 12.8rem;
  }

  .hero-hand-blue {
    right: 2.4rem;
    top: auto;
    bottom: 26%;
    width: 10.2rem;
    height: 11.8rem;
  }

  .hero-visual-hands {
    width: min(100%, 20rem);
    height: 16rem;
  }

  .hero-hand-yellow {
    width: 6.2rem;
    height: 7rem;
  }

  .hero-hand-green {
    width: 5.4rem;
    height: 6.1rem;
  }

  .hero-hand-orange {
    width: 5rem;
    height: 5.6rem;
  }

  .feature-icon,
  .activity-icon {
    width: 4.4rem;
    height: 4.4rem;
  }

  .site-footer {
    padding-top: 5.7rem;
  }

  .footer-prints {
    gap: 0.7rem;
    max-width: 44rem;
    padding: 0.85rem 1rem 0.65rem;
  }

  .footer-hand {
    width: 5.1rem;
    height: 5.1rem;
  }
}

@media (min-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .nav-list {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
}

@media (min-width: 1440px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

/* Entrance motion — only after JS marks the document, so content stays visible without JS */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-kicker { animation: rise-in 0.5s ease both; }
  .hero-title { animation: rise-in 0.62s ease 0.1s both; }
  .hero-lead { animation: rise-in 0.55s ease 0.2s both; }
  .hero-enroll { animation: rise-in 0.5s ease 0.26s both; }
  .hero-ages { animation: rise-in 0.5s ease 0.3s both; }
  .hero .hero-actions { animation: rise-in 0.55s ease 0.4s both; }

  html.js-ready .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.58s ease, transform 0.58s ease;
  }

  html.js-ready .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  html.js-ready .feature-card.reveal:nth-child(1),
  html.js-ready .activity-card.reveal:nth-child(1),
  html.js-ready .mission-card.reveal:nth-child(1) { transition-delay: 0.04s; }

  html.js-ready .feature-card.reveal:nth-child(2),
  html.js-ready .activity-card.reveal:nth-child(2),
  html.js-ready .mission-card.reveal:nth-child(2) { transition-delay: 0.1s; }

  html.js-ready .feature-card.reveal:nth-child(3),
  html.js-ready .activity-card.reveal:nth-child(3),
  html.js-ready .mission-card.reveal:nth-child(3) { transition-delay: 0.16s; }

  html.js-ready .feature-card.reveal:nth-child(4),
  html.js-ready .activity-card.reveal:nth-child(4),
  html.js-ready .mission-card.reveal:nth-child(4) { transition-delay: 0.22s; }

  html.js-ready .activity-card.reveal:nth-child(5),
  html.js-ready .mission-card.reveal:nth-child(5) { transition-delay: 0.08s; }

  html.js-ready .activity-card.reveal:nth-child(6) { transition-delay: 0.14s; }
  html.js-ready .activity-card.reveal:nth-child(7) { transition-delay: 0.2s; }
  html.js-ready .activity-card.reveal:nth-child(8) { transition-delay: 0.26s; }
}

/* 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;
  }

  .btn:hover {
    transform: none;
  }

  html.js-ready .reveal,
  .hero-kicker,
  .hero-title,
  .hero-lead,
  .hero-enroll,
  .hero-ages,
  .hero .hero-actions {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.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;
}

body.modal-open,
body.lightbox-open {
  overflow: hidden;
}

.hero.gallery-hero {
  padding: 2.4rem 0 5.2rem;
}

.gallery-jump {
  padding-top: 1.6rem;
  padding-bottom: 0.4rem;
  background: var(--cream);
}

.gallery-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gallery-cat-nav .nav-link {
  white-space: normal;
  text-align: center;
  min-height: 44px;
}

.gallery-section {
  background: var(--paper);
}

.gallery-section-alt {
  background: var(--cream);
}

.photo-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.photo-tile {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  background: #f3efe8;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.activity-modal[hidden] {
  display: none;
}

.activity-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 24, 64, 0.55);
}

.activity-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 46rem);
  max-height: min(90vh, 54rem);
  overflow: auto;
  background: var(--cream);
  border-radius: 1.6rem;
  padding: 1.5rem 1.25rem 1.6rem;
  box-shadow: var(--shadow);
}

.activity-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.activity-modal-panel .section-kicker {
  padding-right: 3rem;
}

.activity-modal-panel h2 {
  padding-right: 3rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.activity-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1rem 0 1.25rem;
}

.activity-modal-grid.is-multi {
  grid-template-columns: 1fr 1fr;
}

.activity-modal-grid button {
  margin: 0;
  padding: 0;
  border: 0;
  background: #f3efe8;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.activity-modal-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-modal-empty {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.2rem 3.4rem 2.2rem;
  background: rgba(28, 24, 64, 0.88);
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox-image {
  max-width: 100%;
  max-height: min(80vh, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.9rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.photo-lightbox-close,
.photo-lightbox-prev,
.photo-lightbox-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.photo-lightbox-close {
  top: 0.85rem;
  right: 0.85rem;
  background: #fff;
  color: var(--purple);
}

.photo-lightbox-prev {
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
}

.photo-lightbox-next {
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .hero.gallery-hero {
    padding: 3rem 0 5.4rem;
  }

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

  .activity-modal-grid.is-multi {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 430px) {
  .activity-modal {
    padding: 0.65rem;
    align-items: flex-end;
  }

  .activity-modal-panel {
    width: 100%;
    max-height: 88vh;
    padding: 1.25rem 1rem 1.3rem;
  }

  .activity-modal-grid.is-multi {
    grid-template-columns: 1fr 1fr;
  }

  .photo-lightbox {
    padding: 4.4rem 0.75rem 1.1rem;
  }

  .photo-lightbox-prev,
  .photo-lightbox-next {
    top: auto;
    bottom: 0.75rem;
    transform: none;
  }

  .photo-lightbox-prev {
    left: 0.75rem;
  }

  .photo-lightbox-next {
    right: 0.75rem;
  }
}
