/* ─────────────────────────────────────────────────────────────
   TodayDayCare — childcare centre demo
   Palette sampled from the reference screenshot. All imagery is
   illustrated (CSS gradients + inline SVG); the only runtime
   network request is the Google Maps iframe.
   ───────────────────────────────────────────────────────────── */

:root {
  --page:     #fdf8ec;
  --butter:   #f6d36b;
  --butter-2: #f1c94e;
  --peach:    #e7c3a0;
  --ink:      #1d2340;
  --card:     #ffffff;
  --lav:      #e7e4f6;
  --mint:     #d2e8db;
  --blush:    #f4dbc9;
  --sky:      #dbe7f3;
  --muted:    rgba(29, 35, 64, .62);
  --line:     rgba(29, 35, 64, .16);

  --r-shell: 28px;
  --r-card:  18px;
  --pad:     clamp(20px, 4.6vw, 68px);
  --head:    "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-lang="es"]:not([data-ready]) body { visibility: hidden; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
}
.skip:focus { left: 16px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border: 0; border-radius: 999px;
  font-family: var(--head); font-size: 14.5px; font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap;
  transition: background .22s, color .22s, transform .22s, box-shadow .22s;
}
.btn--ink    { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2b3358; }
.btn--butter { background: var(--butter); color: var(--ink); }
.btn--butter:hover { background: var(--butter-2); }
.btn--ghost  { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background .2s;
}
.icon-btn:hover { background: rgba(29, 35, 64, .08); }

/* ── Typography helpers ────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .13em; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
}
.eyebrow--center { justify-content: center; }

.h2 { font-size: clamp(26px, 3.1vw, 42px); line-height: 1.14; }
.lede { max-width: 46ch; color: var(--muted); font-size: 15.5px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }

/* ── Shell ─────────────────────────────────────────────────── */
.shell { overflow: clip; }

.section { padding: clamp(56px, 7vw, 108px) var(--pad); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(30px, 3.6vw, 54px);
}
.section__head .h2 { max-width: 20ch; margin-top: 12px; }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: relative; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: clamp(14px, 1.8vw, 22px) var(--pad);
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--head); font-size: 20px; font-weight: 600; letter-spacing: -.02em;
}
.brand__mark { width: 26px; height: 26px; flex: none; }
.nav__links {
  display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px);
  margin-left: clamp(20px, 4vw, 52px);
  font-family: var(--head); font-size: 14px; font-weight: 400;
}
.nav__links a { opacity: .82; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.langs { display: flex; align-items: center; gap: 4px; font-family: var(--head); font-size: 12.5px; }
.langs button { background: none; border: 0; padding: 2px 3px; opacity: .5; transition: opacity .2s; }
.langs button[aria-pressed="true"] { opacity: 1; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.langs button:hover { opacity: 1; }

.burger { display: none; width: 42px; height: 42px; background: none; border: 0; padding: 11px; }
.burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger span + span { margin-top: 6px; }

/* ── Hero — full-bleed 50/50 split ─────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  min-height: clamp(430px, 52vw, 620px);
}

/* The photo is pinned to the viewport and the hero box scrolls over it, so it
   holds still while the page moves up. clip-path (not overflow) is what clips a
   position:fixed descendant to this box. */
.hero__media { position: relative; overflow: hidden; clip-path: inset(0); background: #e9d3b4; }
.hero__media img {
  position: fixed; top: 0; left: 0;
  width: 51vw; height: 100vh;
  object-fit: cover; object-position: 50% 38%;
}

.hero__panel {
  position: relative; overflow: hidden;
  padding: clamp(30px, 4vw, 66px);
  background: var(--butter);
  display: flex; flex-direction: column; gap: 20px;
}
.hero__panel > div { margin-top: 6px; }
.hero__quote { margin-top: auto; }
.hero__panel > * { position: relative; z-index: 1; }
.hero__panel > .hero__arcs {
  position: absolute; right: -14%; top: -12%; width: 70%; height: auto; z-index: 0;
  color: rgba(29, 35, 64, .11); pointer-events: none;
}

.hero__title {
  max-width: 15ch;
  font-size: clamp(32px, 4.2vw, 54px); font-weight: 600; line-height: 1.06; letter-spacing: -.03em;
}
.hero__lead { margin-top: 18px; max-width: 34ch; font-size: 15.5px; color: rgba(29, 35, 64, .8); }
.hero__cta { margin-top: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero__quote {
  border-top: 1.5px dashed rgba(29, 35, 64, .28);
  padding-top: 16px; font-size: 13.5px; color: rgba(29, 35, 64, .78);
}
.hero__quote b { display: block; margin-top: 6px; font-weight: 600; color: var(--ink); font-family: var(--head); }
.hero__quote b::before { content: "● "; color: var(--ink); }

/* ── Approach ──────────────────────────────────────────────── */
.approach { background: var(--page); }
.approach__title { max-width: 22ch; margin: 6px auto clamp(34px, 4vw, 56px); font-size: clamp(24px, 3vw, 40px); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.acard {
  background: var(--card); border-radius: var(--r-card); padding: 26px 24px 28px;
  box-shadow: 0 12px 30px rgba(29, 35, 64, .06);
}
.acard__art {
  height: 168px; margin-bottom: 18px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(150deg, var(--sky), var(--lav));
}
.acard__art img { width: 100%; height: 100%; object-fit: cover; }
.acard p { font-family: var(--head); font-weight: 500; font-size: 15px; letter-spacing: -.01em; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .acard { transition: transform .32s cubic-bezier(.2, .7, .3, 1), box-shadow .32s ease; }
  .acard__art img { transition: scale .55s cubic-bezier(.2, .7, .3, 1); }
  .acard:hover { transform: translateY(-7px); box-shadow: 0 22px 46px rgba(29, 35, 64, .13); }
  .acard:hover .acard__art img { scale: 1.09; }
}

/* ── Stats band ────────────────────────────────────────────── */
.stats {
  background: var(--peach);
  padding: clamp(40px, 4.6vw, 66px) var(--pad);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px);
  max-width: 1100px; margin-inline: auto; text-align: center;
}
.stat__num {
  display: block; font-family: var(--head); font-weight: 600;
  font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat p { margin-top: 10px; font-size: 13.5px; color: rgba(29, 35, 64, .72); }

/* ── Educators ─────────────────────────────────────────────── */
.team { background: var(--page); }
.team__head { margin-bottom: clamp(30px, 3.6vw, 52px); }
.team__head .h2 { max-width: 22ch; }
.team__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px);
  perspective: 1200px;
}
.person__photo {
  aspect-ratio: 1 / 1; border-radius: var(--r-card); overflow: hidden;
  background: linear-gradient(160deg, #cdd9ec, #b9c6e0);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-top: 14px; font-size: 15.5px; font-weight: 600; }
.person p { margin-top: 3px; font-size: 12.8px; color: var(--muted); }

/* ── Standards ─────────────────────────────────────────────── */
.standards { background: var(--page); }
.standards__title { max-width: 20ch; margin: 6px auto clamp(34px, 4vw, 56px); font-size: clamp(23px, 2.8vw, 38px); }
/* Horizontal marquee: the row drifts on its own and holds still the moment a
   pointer lands on it. JS clones the tiles for a seamless loop and runs the
   drift; this is the resting layout it animates. */
/* Vertical padding + matching negative margin so the hover lift is not sliced
   by the horizontal clip. */
.tiles { overflow: hidden; padding-block: 16px; margin-block: -16px; }
.tiles__track {
  display: flex; gap: clamp(14px, 1.8vw, 24px);
  width: max-content; will-change: transform;
}
.tile {
  flex: 0 0 clamp(230px, 23vw, 286px);
  border-radius: var(--r-card); padding: 24px 22px 26px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 196px; text-align: left;
}
.tile:nth-child(4n+1) { background: var(--blush); }
.tile:nth-child(4n+2) { background: var(--lav); }
.tile:nth-child(4n+3) { background: var(--mint); }
.tile:nth-child(4n+4) { background: var(--sky); }
.tile__icon { width: 34px; height: 34px; color: var(--ink); }
.tile p { font-size: 13.5px; font-weight: 500; font-family: var(--head); letter-spacing: -.005em; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile { transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease; }
  .tiles__track:hover .tile:not(:hover) { opacity: .55; }
  .tile:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(29, 35, 64, .14); }
}

/* ── From our rooms ────────────────────────────────────────── */
.rooms { background: var(--page); }
.rooms__title { margin: 6px auto clamp(30px, 3.6vw, 48px); font-size: clamp(23px, 2.8vw, 38px); }
.rooms .feature__body, .rooms .post { text-align: left; }

.feature {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  min-height: clamp(280px, 34vw, 420px); margin-bottom: clamp(18px, 2.2vw, 30px);
  background: linear-gradient(155deg, #1d2340, #333a63);
}
.feature__media { position: absolute; inset: 0; background: #1d2340; }
.feature__media img,
.feature__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.feature__body {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: clamp(24px, 3vw, 44px);
  background: linear-gradient(0deg, rgba(15, 18, 36, .92) 4%, rgba(15, 18, 36, .55) 45%, rgba(15, 18, 36, 0));
  color: #fff;
}
.feature__body h3 { font-size: clamp(19px, 2.2vw, 30px); max-width: 24ch; }
.feature__body p { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .82); max-width: 46ch; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.post {
  background: var(--card); border-radius: var(--r-card); padding: 16px 16px 24px;
  box-shadow: 0 12px 30px rgba(29, 35, 64, .06);
}
.post__img {
  aspect-ratio: 16 / 10; margin-bottom: 18px; border-radius: 12px; overflow: hidden;
  background: var(--sky);
}
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__n { font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--muted); padding-inline: 6px; }
.post h3 { margin-top: 10px; font-size: 16px; font-weight: 600; line-height: 1.3; padding-inline: 6px; }

/* ── Map ───────────────────────────────────────────────────── */
.map { background: var(--page); padding: 0 var(--pad) clamp(56px, 7vw, 108px); }
.map__wrap {
  position: relative; max-width: 1240px; margin-inline: auto;
  border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 18px 44px rgba(29, 35, 64, .12);
}
.map__wrap iframe { display: block; width: 100%; height: clamp(320px, 44vw, 460px); border: 0; }
.map__card {
  position: absolute; left: clamp(16px, 2.4vw, 34px); bottom: clamp(16px, 2.4vw, 34px);
  background: var(--card); border-radius: 14px; padding: 20px 22px 22px;
  max-width: 300px; box-shadow: 0 14px 32px rgba(29, 35, 64, .16);
}
.map__card h3 { font-size: 16px; font-weight: 600; }
.map__card p { margin: 6px 0 14px; font-size: 13px; color: var(--muted); }

/* ── Get in touch ─────────────────────────────────────────── */
.contact { background: var(--butter); padding: clamp(48px, 6vw, 88px) var(--pad); }
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 52px);
  align-items: center; max-width: 1180px; margin-inline: auto;
}
.contact__grid h2 { font-size: clamp(26px, 3.4vw, 46px); max-width: 16ch; }
.contact__aside p { font-size: 15px; color: rgba(29, 35, 64, .82); margin-bottom: 20px; max-width: 42ch; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--butter);
  border-top: 1.5px dashed rgba(29, 35, 64, .26);
  padding: clamp(44px, 5.4vw, 76px) var(--pad) clamp(22px, 2.6vw, 34px);
}
.footer__top {
  display: grid; grid-template-columns: minmax(220px, .9fr) 1.7fr;
  gap: clamp(28px, 4vw, 60px); max-width: 1240px; margin-inline: auto;
}
.footer__lead .brand { margin-bottom: 14px; }
.footer__lead p { font-size: 13.5px; color: rgba(29, 35, 64, .74); max-width: 30ch; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.footer__cols h4 { margin: 0 0 14px; font-family: var(--head); font-size: 14px; font-weight: 600; }
.footer__cols li + li { margin-top: 8px; }
.footer__cols a { font-size: 13px; color: rgba(29, 35, 64, .68); transition: color .2s; }
.footer__cols a:hover { color: var(--ink); }
.footer__bar {
  display: flex; flex-wrap: wrap; gap: 10px clamp(16px, 2.4vw, 32px);
  max-width: 1240px; margin: clamp(30px, 3.6vw, 48px) auto 0; padding-top: 18px;
  border-top: 1.5px dashed rgba(29, 35, 64, .26);
  font-size: 12.5px; color: rgba(29, 35, 64, .66);
}
.footer__bar a:hover { color: var(--ink); }

/* ─────────────────────────────────────────────────────────────
   Motion — one distinct treatment per section.
   JS adds `.in` to each [data-anim] as it enters the viewport.
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {

  [data-anim] { transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .3, 1),
                            scale .7s cubic-bezier(.2, .7, .3, 1), rotate .7s ease, filter .7s ease; }

  /* rise — staggered fade + climb (Approach cards) */
  [data-anim="rise"] { opacity: 0; translate: 0 22px; }
  [data-anim="rise"].in { opacity: 1; translate: none; }

  /* band-left — slides in from the left (Stats band) */
  [data-anim="band-left"] { opacity: 0; translate: -44px 0; }
  [data-anim="band-left"].in { opacity: 1; translate: none; }

  /* flip — rotates up on the X axis (Educator tiles) */
  [data-anim="flip"] { opacity: 0; rotate: x 14deg; translate: 0 16px; transform-origin: 50% 100%; }
  [data-anim="flip"].in { opacity: 1; rotate: x 0deg; translate: none; }

  /* pop — scales in with a slight overshoot (Standards tiles) */
  [data-anim="pop"] { opacity: 0; scale: .82; }
  [data-anim="pop"].in { opacity: 1; scale: 1; }
  [data-anim="pop"] { transition: opacity .5s ease, scale .55s cubic-bezier(.22, 1.2, .36, 1); }

  /* wipe — media reveals left→right (featured post) */
  [data-anim="wipe"] .feature__media { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.65, 0, .35, 1); }
  [data-anim="wipe"].in .feature__media { clip-path: inset(0 0 0 0); }
  [data-anim="wipe"] .feature__body { opacity: 0; translate: 0 18px; transition: opacity .6s .35s ease, translate .6s .35s ease; }
  [data-anim="wipe"].in .feature__body { opacity: 1; translate: none; }

  /* blur — de-focuses into place (post cards) */
  [data-anim="blur"] { opacity: 0; translate: 0 26px; filter: blur(9px); }
  [data-anim="blur"].in { opacity: 1; translate: none; filter: blur(0); }

  /* zoom — settles from slightly enlarged (Map) */
  [data-anim="zoom"] { opacity: 0; scale: 1.05; }
  [data-anim="zoom"].in { opacity: 1; scale: 1; }

  /* slide-up — content lifts, button springs after (Get in touch) */
  [data-anim="slide-up"] { opacity: 0; translate: 0 30px; }
  [data-anim="slide-up"].in { opacity: 1; translate: none; }
  [data-anim="slide-up"] .btn { opacity: 0; scale: .9; transition: opacity .5s .28s ease, scale .5s .28s cubic-bezier(.22, 1.3, .36, 1); }
  [data-anim="slide-up"].in .btn { opacity: 1; scale: 1; }

  /* fade — opacity only (Footer) */
  [data-anim="fade"] { opacity: 0; }
  [data-anim="fade"].in { opacity: 1; }

  /* ── Hero entrance (fires on load) ───────────────────────── */
  html.hero-armed .hero__media img { scale: 1.08; }
  html.hero-armed .hero__panel { clip-path: inset(0 100% 0 0); }
  html.hero-armed .hero__arcs { opacity: 0; }
  html.hero-armed .hero__title,
  html.hero-armed .hero__lead,
  html.hero-armed .hero__cta,
  html.hero-armed .hero__quote { opacity: 0; translate: 0 16px; }

  html.hero-ready .hero__media img {
    scale: 1;
    transition: scale 1.1s cubic-bezier(.16, .84, .34, 1);
  }
  html.hero-ready .hero__panel {
    clip-path: inset(0 0 0 0);
    transition: clip-path .85s cubic-bezier(.65, 0, .35, 1);
  }
  html.hero-ready .hero__arcs {
    opacity: 1; transition: opacity .8s .5s ease;
  }
  html.hero-ready .hero__title,
  html.hero-ready .hero__lead,
  html.hero-ready .hero__cta,
  html.hero-ready .hero__quote {
    opacity: 1; translate: none;
    transition: opacity .6s ease, translate .6s cubic-bezier(.22, .68, .36, 1);
  }
  html.hero-ready .hero__title { transition-delay: .30s; }
  html.hero-ready .hero__lead  { transition-delay: .44s; }
  html.hero-ready .hero__cta   { transition-delay: .56s; }
  html.hero-ready .hero__quote { transition-delay: .68s; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__links.is-open {
    position: absolute; top: 100%; left: var(--pad); right: var(--pad);
    display: grid; gap: 6px; margin: 0; padding: 16px 20px;
    background: rgba(253, 248, 236, .97); border: 1px solid var(--line);
    border-radius: 16px; box-shadow: 0 18px 40px rgba(29, 35, 64, .14);
  }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { min-height: clamp(240px, 56vw, 380px); clip-path: none; }
  /* stacked: the photo goes back to filling its own box normally */
  .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .cards3, .posts { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 26px; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .map__card { position: static; max-width: none; margin: 14px; box-shadow: none; border: 1px solid var(--line); }
  .map__wrap { box-shadow: 0 12px 30px rgba(29, 35, 64, .1); }
}

@media (max-width: 560px) {
  .team__grid, .tiles { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-anim], [data-anim] * { opacity: 1 !important; translate: none !important; scale: none !important;
                               rotate: none !important; filter: none !important; clip-path: none !important; }
  /* the pinned hero photo becomes an ordinary in-box image */
  .hero__media { clip-path: none; }
  .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; scale: none; }
  /* the promo video is replaced by its poster still */
  .feature__media video { display: none; }
  .feature__media { background-image: url(img/feature.webp); background-size: cover; background-position: 50% 45%; }
  /* the standards row stops drifting and becomes a manual scroll strip */
  .tiles { overflow-x: auto; }
}
