/* CHILD — Care · Help · Initiate · Learn · Develop */

:root {
  --ink: #002147;
  --ink-soft: #3a5568;
  --teal: #1a7a8a;
  --teal-deep: #002147;
  --leaf: #2f8f5b;
  --sun: #e8b84a;
  --sky: #e8f4f6;
  --mist: #f3fafb;
  --cloud: #ffffff;
  --line: rgba(12, 42, 58, 0.1);
  --shadow: 0 24px 60px rgba(14, 90, 106, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ——— Atmospheric sky ——— */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 85% 10%, rgba(232, 184, 74, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 45% at 10% 20%, rgba(47, 155, 106, 0.12), transparent 50%),
    linear-gradient(180deg, #d4eef2 0%, #eef8f6 35%, #f3fafb 70%, #e8f4f0 100%);
}

.sky__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.sky__glow--sun {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  top: -8%;
  right: 5%;
  background: rgba(232, 184, 74, 0.35);
  animation: drift 18s var(--ease) infinite alternate;
}

.sky__glow--mist {
  width: min(60vw, 520px);
  height: min(40vw, 360px);
  bottom: 20%;
  left: -10%;
  background: rgba(26, 122, 138, 0.1);
  animation: drift 22s var(--ease) infinite alternate-reverse;
}

.sky__cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  filter: blur(2px);
}

.sky__cloud--1 {
  width: 180px;
  height: 48px;
  top: 18%;
  left: 8%;
  animation: float 14s var(--ease) infinite;
}

.sky__cloud--2 {
  width: 120px;
  height: 36px;
  top: 28%;
  right: 18%;
  animation: float 17s var(--ease) infinite reverse;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-24px, 16px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-12px); opacity: 0.75; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--teal-deep);
  color: #fff;
}

.btn--primary:hover {
  background: var(--teal);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(14, 90, 106, 0.35);
  color: var(--teal-deep);
}

.btn--ghost:hover {
  border-color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.5);
}

.btn--full {
  width: 100%;
}

/* ——— Hero ——— */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero__support {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34ch;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.4s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

.hero__contact {
  margin-top: 1.25rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.65s forwards;
}

.hero__contact a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero__contact a:hover {
  color: var(--teal);
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  animation: rise 1s var(--ease) 0.35s forwards;
}

.hero__visual::before {
  content: "";
  position: absolute;
  width: min(88%, 400px);
  height: min(88%, 460px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 55% 28%, rgba(232, 184, 74, 0.18), transparent 48%),
    radial-gradient(circle at 38% 62%, rgba(47, 155, 106, 0.12), transparent 52%),
    radial-gradient(circle at 50% 48%, rgba(212, 238, 242, 0.55), transparent 68%);
  animation: pulse 6s ease-in-out infinite;
  z-index: 0;
}

.hero__logo {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  height: auto;
  background: transparent;
  filter: drop-shadow(0 12px 28px rgba(0, 33, 71, 0.1));
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.85; }
}

/* ——— Promise strip ——— */
.promise {
  padding: 3rem clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.promise__text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 28ch;
  margin: 0 auto;
  line-height: 1.4;
}

.promise__text em {
  font-style: italic;
  color: var(--teal-deep);
}

/* ——— Section shared ——— */
.section-head {
  max-width: 560px;
  margin-bottom: 3rem;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.75rem;
}

.eyebrow--on-dark {
  color: #8fd4b0;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

.section-head--center .lede {
  margin-inline: auto;
}

/* ——— Classes ——— */
.classes {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.classes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

.offer {
  padding-top: 1.5rem;
  border-top: 2px solid var(--teal);
}

.offer__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--leaf);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.75rem;
}

.offer h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.offer p {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ——— Approach ——— */
.approach {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.journey {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  min-height: 340px;
  padding: 1.5rem 1.25rem 1.5rem 0.5rem;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

.journey__track {
  position: absolute;
  left: 2.35rem;
  top: 3rem;
  bottom: 3rem;
  width: 3px;
  border-radius: 999px;
  background: rgba(26, 122, 138, 0.14);
  overflow: hidden;
}

.journey__progress {
  width: 100%;
  height: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--teal) 0%, var(--leaf) 100%);
  transition: height 0.55s var(--ease);
}

.journey[data-active="0"] .journey__progress { height: 0%; }
.journey[data-active="1"] .journey__progress { height: 50%; }
.journey[data-active="2"] .journey__progress { height: 100%; }

.journey__step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  opacity: 0.45;
  transform: translateX(-6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.journey__step.is-active {
  opacity: 1;
  transform: translateX(0);
}

.journey__step.is-done {
  opacity: 0.8;
  transform: translateX(0);
}

.journey__node {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--teal-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(26, 122, 138, 0.2);
  box-shadow: 0 10px 28px rgba(14, 90, 106, 0.1);
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.4s var(--ease);
}

.journey__node svg {
  width: 1.55rem;
  height: 1.55rem;
}

.journey__step.is-active .journey__node {
  color: #fff;
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-color: transparent;
  transform: scale(1.08);
  animation: nodePulse 1.8s ease-in-out infinite;
}

.journey__step.is-done .journey__node {
  color: #fff;
  background: var(--leaf);
  border-color: transparent;
}

.journey__label {
  display: grid;
  gap: 0.15rem;
}

.journey__num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--leaf);
}

.journey__label strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(14, 90, 106, 0.16); }
  50% { box-shadow: 0 12px 34px rgba(47, 155, 106, 0.28); }
}

.steps {
  list-style: none;
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.steps li {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.25rem;
  border-left: 3px solid rgba(47, 155, 106, 0.35);
  transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease);
}

.steps li.is-lit {
  border-left-color: var(--leaf);
  transform: translateX(4px);
}

.steps strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.steps span {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ——— Values ——— */
.values {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.values__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.value {
  text-align: center;
  padding: 1.5rem 0.75rem;
}

.value__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  background: var(--teal-deep);
  margin-bottom: 1rem;
}

.value:nth-child(2) .value__letter { background: #1a8a9a; }
.value:nth-child(3) .value__letter { background: var(--leaf); }
.value:nth-child(4) .value__letter { background: #3a9a7a; }
.value:nth-child(5) .value__letter { background: #0c4a5a; }

.value h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.value p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* ——— Ages ——— */
.ages {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.ages__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(232, 244, 246, 0.9));
  border-radius: var(--radius);
  border: 1px solid rgba(26, 122, 138, 0.12);
}

.ages__inner .lede {
  margin-inline: auto;
}

/* ——— Enroll ——— */
.enroll {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.enroll__panel {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem);
  background:
    linear-gradient(160deg, #0e5a6a 0%, #0c3a48 55%, #0a2e38 100%);
  border-radius: calc(var(--radius) + 0.25rem);
  color: #e8f4f6;
  box-shadow: var(--shadow);
}

.enroll__panel h2 {
  color: #fff;
  max-width: 16ch;
}

.enroll__panel > p {
  color: rgba(232, 244, 246, 0.82);
  margin-bottom: 1.25rem;
  max-width: 38ch;
  font-size: 1.05rem;
}

.enroll__contact {
  margin-bottom: 1.75rem !important;
  font-weight: 500;
}

.enroll__contact a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.enroll__contact a:hover {
  color: #8fd4b0;
}

.enroll__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(232, 244, 246, 0.7);
}

.field input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.field input:focus {
  border-color: rgba(143, 212, 176, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.enroll__form .btn {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  background: #fff;
  color: var(--teal-deep);
}

.enroll__form .btn:hover {
  background: #e8f4f0;
}

.enroll__note {
  margin-top: 1.25rem;
  font-weight: 500;
  color: #8fd4b0;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 3rem;
    text-align: center;
  }

  .hero__headline,
  .hero__support {
    max-width: none;
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__contact {
    text-align: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__logo {
    width: min(72vw, 300px);
  }

  .classes__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .approach {
    grid-template-columns: 1fr;
  }

  .journey {
    min-height: 280px;
    max-width: 280px;
    order: -1;
  }

  .values__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .value:last-child {
    grid-column: 1 / -1;
    max-width: 220px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .enroll__form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .values__row {
    grid-template-columns: 1fr;
  }

  .value:last-child {
    max-width: none;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__contact {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .enroll__panel {
    padding: 1.75rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__headline,
  .hero__support,
  .hero__actions,
  .hero__contact,
  .hero__visual {
    opacity: 1;
    animation: none;
  }
}
