/* ============================================================
   Angel's Daycare & Preschool
   Concept: a kid's crayon drawing of a perfect day.
   Sky above, paper in the middle, grass below. Crayon strokes
   draw themselves in as you scroll.
   Palette: crayon box. Type: Chewy / Schoolbell / Nunito.
   ============================================================ */

:root {
  --sky: #a6d9f4;
  --sky-hi: #cdecfc;
  --paper: #fffcf3;
  --paper-deep: #f6efdd;
  --cream: #fbf5dc;
  --ink: #302921;
  --ink-soft: #5f564a;
  --sun: #ffc53d;
  --sun-deep: #f0a71f;
  --tomato: #e8503b;
  --tomato-deep: #c93c29;
  --royal: #2f5fd0;
  --royal-deep: #2348a8;
  --grass: #4fa653;
  --grass-deep: #35793c;
  --grape: #8a63c9;
  --dusk: #2c3a6e;
  --dusk-deep: #1d2749;

  --font-display: "Chewy", "Comic Sans MS", cursive;
  --font-hand: "Schoolbell", "Comic Sans MS", cursive;
  --font-body: "Nunito", "Avenir Next", "Trebuchet MS", sans-serif;

  --border: 3px solid var(--ink);
  --radius: 18px;
  --header-h: 74px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

svg {
  display: block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.015em;
}

h1 { font-size: clamp(2.7rem, 7.2vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h3 { font-size: 1.5rem; }

p + p { margin-top: 1em; }

a { color: var(--royal); }

.wrap {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ---------- crayon utility colors ---------- */

.c-sun { color: var(--sun-deep); }
.c-tomato { color: var(--tomato); }
.c-royal { color: var(--royal); }
.c-grass { color: var(--grass); }
.c-grape { color: var(--grape); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--paper);
  border-bottom: var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-kids {
  width: 74px;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

.brand-name small {
  display: block;
  font-family: var(--font-hand);
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav > a {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding: 0.15rem 0;
}

.site-nav > a .nav-scribble {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 8px;
  width: 100%;
  opacity: 0;
}

.site-nav > a:hover .nav-scribble,
.site-nav > a[aria-current="page"] .nav-scribble {
  opacity: 1;
}

.nav-scribble path {
  fill: none;
  stroke: var(--royal);
  stroke-width: 3;
  stroke-linecap: round;
}

.site-nav > a[aria-current="page"] .nav-scribble path { stroke: var(--tomato); }

.nav-toggle {
  display: none;
  background: var(--sun);
  border: var(--border);
  border-radius: 12px;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--ink);
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  color: var(--paper);
  background: var(--tomato);
  border: var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.7rem;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transform: rotate(-1deg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: rotate(1.5deg) translate(-2px, -2px) scale(1.03);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--tomato-deep);
}

.btn:active {
  transform: rotate(0deg) translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-sun {
  background: var(--sun);
  color: var(--ink);
}

.btn-sun:hover { background: var(--sun-deep); }

.btn-paper {
  background: var(--paper);
  color: var(--ink);
}

.btn-paper:hover { background: var(--cream); }

.btn-royal { background: var(--royal); }
.btn-royal:hover { background: var(--royal-deep); }

.btn-big {
  font-size: 1.6rem;
  padding: 0.75rem 2.4rem;
}

/* ---------- hero (the sky) ---------- */

.hero {
  position: relative;
  background: linear-gradient(var(--sky-hi), var(--sky) 70%);
  border-bottom: var(--border);
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 0;
  min-height: calc(92vh - var(--header-h));
  display: flex;
  flex-direction: column;
}

.hero .wrap {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-hand);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--royal-deep);
  margin-bottom: 0.8rem;
}

.hero h1 {
  margin-bottom: 1.2rem;
  max-width: 12ch;
}

.hero-underline {
  display: inline-block;
  position: relative;
}

.hero-underline .crayon-line {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.22em;
}

.hero-lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  max-width: 32rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-note {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--ink-soft);
  transform: rotate(-2deg);
}

/* sun */

.sun {
  position: absolute;
  z-index: 1;
  top: -70px;
  right: 6%;
  width: clamp(160px, 22vw, 280px);
  height: clamp(160px, 22vw, 280px);
}

.sun-rays {
  width: 100%;
  height: 100%;
  animation: sun-spin 40s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes sun-spin {
  to { transform: rotate(360deg); }
}

/* clouds: three overlapping circles */

.cloud {
  position: absolute;
  z-index: 1;
  width: 130px;
  height: 46px;
  background: #fff;
  border: var(--border);
  border-radius: 999px;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: #fff;
  border: var(--border);
  border-radius: 50%;
}

.cloud::before {
  width: 52px;
  height: 52px;
  top: -26px;
  left: 18px;
}

.cloud::after {
  width: 38px;
  height: 38px;
  top: -18px;
  left: 64px;
}

/* mask the borders where circles meet the pill */
.cloud i {
  position: absolute;
  inset: 3px;
  background: #fff;
  border-radius: 999px;
  z-index: 2;
}

.cloud-a { top: 56%; right: 4%; transform: scale(0.9); animation: drift 46s linear infinite; }
.cloud-b { top: 6%; left: 42%; transform: scale(0.65); animation: drift 62s linear infinite reverse; }
.cloud-c { top: 38%; right: 30%; transform: scale(1.1); animation: drift 54s linear infinite; }

@keyframes drift {
  0%   { margin-left: 0; }
  50%  { margin-left: 90px; }
  100% { margin-left: 0; }
}

/* hero kids: crayon characters on the grass strip */

.hero-kids {
  position: relative;
  z-index: 3;
  align-self: end;
  justify-self: center;
  width: min(380px, 85%);
  display: flex;
  align-items: flex-end;
  gap: 4%;
  margin-bottom: -6px;
}

.hero-kids .kid { width: 31%; height: auto; overflow: visible; }

.hero-grass {
  position: relative;
  z-index: 2;
  height: 72px;
  background: var(--grass);
  border-top: var(--border);
}

/* zig-zag grass blades along a top edge */

.blades {
  position: absolute;
  top: -13px;
  left: 0;
  width: 100%;
  height: 14px;
  background:
    linear-gradient(-45deg, transparent 74%, var(--grass) 75%) 0 0 / 18px 14px repeat-x,
    linear-gradient(45deg, transparent 74%, var(--grass) 75%) 9px 0 / 18px 14px repeat-x;
}

/* kid characters (inline svg) */

.kid { overflow: visible; }

.kid-bob { animation: kid-bob 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
.kid-bob-2 { animation: kid-bob 3.4s ease-in-out 0.5s infinite; transform-origin: 50% 90%; }
.kid-kick { animation: kid-kick 3s ease-in-out infinite; transform-origin: 50% 85%; }

@keyframes kid-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-2deg); }
}

@keyframes kid-kick {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(4deg); }
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--sun);
  border-bottom: var(--border);
  overflow: hidden;
  padding: 0.7rem 0;
}

.marquee-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  white-space: nowrap;
  color: var(--ink);
}

.marquee-track svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.marquee-track svg path,
.marquee-track svg circle {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
}

.section-deep {
  background: var(--paper-deep);
  border-top: var(--border);
  border-bottom: var(--border);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--tomato);
  display: block;
  margin-bottom: 0.3rem;
  transform: rotate(-1deg);
}

.section-head p {
  color: var(--ink-soft);
  margin-top: 0.7rem;
}

/* heading scribble underline that draws itself */

.scribble-head {
  position: relative;
  display: inline-block;
}

.scribble-head .crayon-line {
  position: absolute;
  left: 0;
  bottom: -0.18em;
  width: 100%;
  height: 0.2em;
}

.crayon-line path {
  fill: none;
  stroke: var(--tomato);
  stroke-width: 7;
  stroke-linecap: round;
}

.crayon-line.cl-royal path { stroke: var(--royal); }
.crayon-line.cl-grass path { stroke: var(--grass); }
.crayon-line.cl-sun path { stroke: var(--sun-deep); }
.crayon-line.cl-grape path { stroke: var(--grape); }

/* draw-on-view strokes */

.draw path,
.draw circle,
.draw line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.draw.is-drawn path,
.draw.is-drawn circle,
.draw.is-drawn line {
  transition: stroke-dashoffset 1.1s ease 0.15s;
  stroke-dashoffset: 0;
}

/* ---------- sticker cards ---------- */

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.sticker {
  position: relative;
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.8rem;
  box-shadow: 5px 6px 0 rgba(48, 41, 33, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticker:nth-child(odd) { transform: rotate(-1.1deg); }
.sticker:nth-child(even) { transform: rotate(0.9deg); }

.sticker:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 7px 9px 0 rgba(48, 41, 33, 0.22);
}

.sticker .tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 197, 61, 0.75);
  border: 2px solid rgba(48, 41, 33, 0.25);
}

.sticker .doodle {
  width: 54px;
  height: 54px;
  margin-bottom: 0.8rem;
}

.sticker h3 { margin-bottom: 0.5rem; }

.sticker p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.doodle path,
.doodle circle,
.doodle line {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-sun path, .st-sun circle { stroke: var(--sun-deep); }
.st-tomato path, .st-tomato circle { stroke: var(--tomato); }
.st-royal path, .st-royal circle { stroke: var(--royal); }
.st-grass path, .st-grass circle { stroke: var(--grass); }
.st-grape path, .st-grape circle { stroke: var(--grape); }
.st-ink path, .st-ink circle { stroke: var(--ink); }

/* ---------- split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split h2 { margin-bottom: 1rem; }

.split p { color: var(--ink-soft); }

.split .btn { margin-top: 1.6rem; }

.photo-frame {
  position: relative;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 7px 8px 0 rgba(48, 41, 33, 0.18);
  transform: rotate(-1.5deg);
}

.photo-frame.tilt-right { transform: rotate(1.5deg); }

.photo-caption {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.9rem;
  transform: rotate(-1deg);
}

/* ---------- checklist ---------- */

.checklist {
  list-style: none;
  margin-top: 1.2rem;
}

.checklist li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.25em;
  height: 1.25em;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234fa653' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 13.5c2.5 2.5 4 4.5 5 6C11 14 15.5 8 21 4.5'/%3E%3C/svg%3E");
}

/* ---------- day teaser strip (home) ---------- */

.day-teaser {
  background: var(--sky);
  border-top: var(--border);
  border-bottom: var(--border);
  overflow: hidden;
}

.day-teaser .section-head { margin-bottom: 2.4rem; }

.day-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  margin-bottom: 2.2rem;
}

.day-chip {
  background: var(--paper);
  border: var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 4px 4px 0 rgba(48, 41, 33, 0.25);
}

.day-chip:nth-child(odd) { transform: rotate(-1deg); }
.day-chip:nth-child(even) { transform: rotate(1deg); }

.day-chip .time {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--tomato);
}

.day-chip .what {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.15;
}

/* ---------- quote ---------- */

.quote {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.3;
}

.quote cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.quote .btn { margin-top: 1.8rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--royal);
  border-top: var(--border);
  color: var(--paper);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.8rem;
}

.cta-band p {
  max-width: 36rem;
  margin: 0 auto 1.8rem;
  color: var(--sky-hi);
}

.cta-band .doodle-star {
  position: absolute;
  width: 44px;
  height: 44px;
  opacity: 0.55;
}

.cta-band .doodle-star path { stroke: var(--sun); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.cta-band .fl-a { top: 18%; left: 8%; }
.cta-band .fl-b { bottom: 14%; right: 9%; width: 64px; height: 64px; }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  position: relative;
  background: linear-gradient(var(--sky-hi), var(--sky));
  border-bottom: var(--border);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  overflow: hidden;
}

.page-hero .wrap { position: relative; z-index: 2; }

.page-hero h1 { margin-bottom: 0.8rem; }

.page-hero p {
  max-width: 40rem;
  font-size: 1.15rem;
}

.page-hero .cloud { opacity: 0.9; }

/* ---------- day timeline page ---------- */

.timeline {
  position: relative;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}

.timeline-path {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.timeline-path path {
  fill: none;
  stroke: var(--tomato);
  stroke-width: 6;
  stroke-linecap: round;
}

.stops {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(2.2rem, 5vw, 3.4rem);
}

.stop {
  width: min(430px, 100%);
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 5px 6px 0 rgba(48, 41, 33, 0.18);
}

.stop:nth-child(odd) {
  align-self: flex-start;
  margin-left: 4%;
  transform: rotate(-1deg);
}

.stop:nth-child(even) {
  align-self: flex-end;
  margin-right: 4%;
  transform: rotate(1deg);
}

.stop-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.5rem;
}

.stop .doodle {
  width: 46px;
  height: 46px;
  flex: none;
}

.stop .time {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--tomato);
  display: block;
  line-height: 1.1;
}

.stop h3 { line-height: 1.1; }

.stop p {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* nap band: the sky goes dusk */

.nap-band {
  background: linear-gradient(var(--dusk), var(--dusk-deep));
  border-top: var(--border);
  border-bottom: var(--border);
  color: var(--sky-hi);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
}

.nap-band h2 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.nap-band .time {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--sun);
}

.nap-band p {
  max-width: 34rem;
  margin: 0.8rem auto 0;
  color: #c6d4f2;
}

.nap-band .moon {
  width: 74px;
  height: 74px;
  margin: 0 auto 1rem;
}

.nap-band .moon path {
  fill: none;
  stroke: var(--sun);
  stroke-width: 3.4;
  stroke-linecap: round;
}

.star {
  position: absolute;
  width: 22px;
  height: 22px;
  animation: twinkle 2.6s ease-in-out infinite;
}

.star path {
  fill: none;
  stroke: #ffe9a8;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.star.s2 { animation-delay: 0.9s; transform: scale(0.7); }
.star.s3 { animation-delay: 1.6s; transform: scale(1.2); }

.nap-band .fl-a { top: 22%; left: 12%; }
.nap-band .fl-b { top: 34%; right: 14%; }
.nap-band .fl-c { bottom: 20%; left: 24%; }

@keyframes twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ---------- team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  box-shadow: 5px 6px 0 rgba(48, 41, 33, 0.18);
  transition: transform 0.2s ease;
}

.team-card:nth-child(odd) { transform: rotate(-1deg); }
.team-card:nth-child(even) { transform: rotate(1deg); }

.team-card:hover { transform: rotate(0) translateY(-6px); }

.team-card .kid {
  width: 64px;
  height: 84px;
  margin: 0 auto 0.7rem;
}

.team-photo {
  width: min(180px, 100%);
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ink);
  margin: 0 auto 0.9rem;
}

.team-card:nth-child(1) .team-photo { box-shadow: 0 0 0 5px var(--tomato); }
.team-card:nth-child(2) .team-photo { box-shadow: 0 0 0 5px var(--royal); }
.team-card:nth-child(3) .team-photo { box-shadow: 0 0 0 5px var(--grass); }
.team-card:nth-child(4) .team-photo { box-shadow: 0 0 0 5px var(--grape); }

.team-card h3 { font-size: 1.35rem; }

.team-card .role {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------- forms page ---------- */

.doc-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.doc-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border: var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 4px 5px 0 rgba(48, 41, 33, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.doc-list li:nth-child(odd) a { transform: rotate(-0.6deg); }
.doc-list li:nth-child(even) a { transform: rotate(0.6deg); }

.doc-list a:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: 6px 7px 0 rgba(48, 41, 33, 0.22);
}

.pdf-tag {
  flex: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  background: var(--royal);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.12rem 0.55rem;
  transform: rotate(-4deg);
}

.doc-list li:nth-child(3n + 2) .pdf-tag { background: var(--tomato); }
.doc-list li:nth-child(3n) .pdf-tag { background: var(--grass); }

/* ---------- contact: the worksheet ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-card {
  background: #fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 5px 6px 0 rgba(48, 41, 33, 0.18);
  transform: rotate(-0.8deg);
}

.contact-card + .contact-card { margin-top: 1.4rem; transform: rotate(0.8deg); }

.contact-card h3 { margin-bottom: 0.5rem; }

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

.contact-card a { font-weight: 700; }

.contact-card .find-photo {
  border: 3px solid var(--ink);
  border-radius: 12px;
  margin: 0.4rem 0 0.8rem;
  transform: rotate(-1deg);
}

/* the worksheet form: ruled paper */

.worksheet {
  position: relative;
  background:
    repeating-linear-gradient(
      transparent 0,
      transparent 34px,
      rgba(47, 95, 208, 0.16) 34px,
      rgba(47, 95, 208, 0.16) 36px
    ),
    #fff;
  border: var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.9rem 2.1rem;
  box-shadow: 6px 7px 0 rgba(48, 41, 33, 0.18);
}

.worksheet::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2.35rem;
  width: 2px;
  background: rgba(232, 80, 59, 0.35);
}

.worksheet-inner {
  position: relative;
  padding-left: 1.4rem;
}

.worksheet h2 { margin-bottom: 0.4rem; }

.worksheet-sub {
  font-family: var(--font-hand);
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.field { margin-bottom: 1.15rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.field label {
  display: block;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--sun);
  outline-offset: 1px;
}

.hidden-field { display: none; }

/* ---------- footer: the grass ---------- */

.site-footer {
  position: relative;
  background: var(--grass);
  color: #fff;
  padding: 3.4rem 0 2.2rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.footer-blades {
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.site-footer p,
.site-footer li {
  color: #e2f3e0;
  font-size: 0.98rem;
}

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

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 0.4rem; }

.footer-kids {
  width: 120px;
  margin-bottom: 0.8rem;
}

.footer-note {
  border-top: 2px dashed rgba(255, 255, 255, 0.4);
  margin-top: 2rem;
  padding-top: 1.1rem;
  font-size: 0.9rem;
  color: #cfe9cc;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
}

/* ---------- parallax doodles (floating cutouts) ---------- */

.floaty {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.floaty svg { width: 100%; height: 100%; }

.floaty path, .floaty circle {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- motion: reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.pop {
  transform: scale(0.85) rotate(-2deg);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.sticker-grid .reveal:nth-child(2),
.team-grid .reveal:nth-child(2),
.day-strip .reveal:nth-child(2) { transition-delay: 0.1s; }

.sticker-grid .reveal:nth-child(3),
.team-grid .reveal:nth-child(3),
.day-strip .reveal:nth-child(3) { transition-delay: 0.2s; }

.team-grid .reveal:nth-child(4),
.day-strip .reveal:nth-child(4) { transition-delay: 0.3s; }

/* masked type reveal (hero lines) */

.tr-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.tr-line > span {
  display: block;
  transform: translateY(115%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-loaded .tr-line:nth-child(1) > span { transform: none; transition-delay: 0.1s; }
.is-loaded .tr-line:nth-child(2) > span { transform: none; transition-delay: 0.22s; }
.is-loaded .tr-line:nth-child(3) > span { transform: none; transition-delay: 0.34s; }

.hero-fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.is-loaded .hero-fade { opacity: 1; transform: none; }

.is-loaded .hf-1 { transition-delay: 0.45s; }
.is-loaded .hf-2 { transition-delay: 0.6s; }
.is-loaded .hf-3 { transition-delay: 0.75s; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .hero-fade,
  .tr-line > span {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .sun-rays,
  .cloud,
  .kid-bob,
  .kid-bob-2,
  .kid-kick,
  .marquee-track,
  .star {
    animation: none !important;
  }

  .draw path, .draw circle, .draw line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }

  .timeline-path path {
    stroke-dasharray: none !important;
    stroke-dashoffset: 0 !important;
  }

  .floaty { transform: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }

  .hero .cloud,
  .page-hero .cloud { display: none; }

  .hero-kids { width: min(300px, 70%); margin-top: 1rem; }

  .sun { right: -40px; top: -60px; }

  .sticker-grid { grid-template-columns: 1fr; max-width: 30rem; }

  .split { grid-template-columns: 1fr; }

  .split .photo-side { order: -1; }

  .day-strip { grid-template-columns: 1fr 1fr; }

  .team-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem 4% 1.4rem;
    gap: 1rem;
  }

  .site-nav.open { display: flex; }

  .stop:nth-child(odd),
  .stop:nth-child(even) {
    align-self: center;
    margin: 0;
  }

  .timeline-path { left: 8%; transform: none; width: 60px; }
}

@media (max-width: 560px) {
  .doc-list,
  .field-row,
  .day-strip,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .brand-name { font-size: 1.2rem; }

  .brand-kids { width: 58px; }

  .hero h1 { font-size: clamp(2.4rem, 12vw, 3rem); }
}
