/* =========================================================
   NUVO KIDS page — builds on styles.css
   Playful accents come from the Nuvo Kids logo colors.
   ========================================================= */
:root {
  --k-red: #E5533F;
  --k-purple: #7F6BA0;
  --k-lime: #B5C43A;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.khero { padding: clamp(130px, 16vw, 190px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.khero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.khero__logo { margin: 0 0 26px; width: min(460px, 100%); }
.khero__logo img { width: 100%; height: auto; }
.khero__title { font-size: clamp(2.4rem, 4.8vw, 4.4rem); margin-bottom: 22px; }
.khero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 8px 0 34px; }
.khero__facts { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 34px; }
.khero__facts li { font-size: 15px; color: var(--ink-soft); }
.khero__facts strong { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.khero__collage { position: relative; aspect-ratio: 1 / 1.08; }
.kpic { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: 0 26px 50px rgba(37, 39, 35, .18); border: 6px solid var(--white); background: var(--cream); }
.kpic img { width: 100%; height: 100%; object-fit: cover; }
.kpic--1 { width: 62%; aspect-ratio: 4 / 5; top: 4%; left: 0; transform: rotate(-4deg); z-index: 2; border-radius: 999px 999px 22px 22px; }
.kpic--2 { width: 50%; aspect-ratio: 4 / 5; top: 0; right: 0; transform: rotate(5deg); border-radius: 22px 110px 22px 110px; }
.kpic--3 { width: 46%; aspect-ratio: 1; bottom: 0; right: 8%; transform: rotate(-2deg); z-index: 3; border-radius: 50%; }
.js .kpic.reveal.is-in.kpic--1 { transform: rotate(-4deg); }
.js .kpic.reveal.is-in.kpic--2 { transform: rotate(5deg); }
.js .kpic.reveal.is-in.kpic--3 { transform: rotate(-2deg); }
.kdoodle { position: absolute; z-index: 4; pointer-events: none; }
.kdoodle--star {
  width: 64px; height: 64px; left: 54%; top: -2%; background: var(--k-lime);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: kspin 14s linear infinite;
}
.kdoodle--dot { width: 38px; height: 38px; border-radius: 50%; background: var(--k-red); left: 4%; bottom: 10%; animation: kbob 3.5s ease-in-out infinite; }
@keyframes kspin { to { transform: rotate(360deg); } }
@keyframes kbob { 50% { transform: translateY(-10px); } }

/* ---------- Intro ---------- */
.kintro { background: var(--white); }
.kintro__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.kintro__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.kintro__photo img { width: 100%; height: 100%; object-fit: cover; }
.kintro__copy h2 { margin-bottom: 24px; }
.kintro__copy p { color: var(--ink-soft); max-width: 52ch; }
.kbig3 { list-style: none; margin: 26px 0 28px; padding: 0; display: grid; gap: 12px; }
.kbig3 li {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -.01em;
  padding: 16px 20px; border-radius: 16px; background: var(--ivory);
}
.kbig3 li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.kbig3--forest::before { background: var(--forest); }
.kbig3--red::before { background: var(--k-red); }
.kbig3--purple::before { background: var(--k-purple); }
.kbig3--lime::before { background: var(--k-lime); }

/* ---------- Age groups ---------- */
.kages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.kage { background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .4s; }
.kage:hover { box-shadow: 0 24px 50px rgba(37, 39, 35, .1); }
.kage__img { aspect-ratio: 4 / 3.4; overflow: hidden; }
.kage__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.kage:hover .kage__img img { transform: scale(1.05); }
.kage__body { padding: 26px 26px 30px; }
.kage__chip {
  display: inline-block; padding: 7px 14px; border-radius: 999px; margin-bottom: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #fff;
}
.kage__chip--red { background: var(--k-red); }
.kage__chip--purple { background: var(--k-purple); }
.kage__chip--lime { background: #8E9B24; }
.kage h3 { font-weight: 900; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; }
.kage p { margin: 0; color: var(--ink-soft); }
.kages__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 40px; }

/* ---------- Steps ---------- */
.ksteps { background: var(--cream); text-align: center; }
.ksteps__title { margin: 0 auto clamp(40px, 5vw, 64px); }
.ksteps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); text-align: left; counter-reset: none; }
.kstep { background: var(--ivory); border-radius: var(--radius); padding: 30px 26px 32px; position: relative; }
.kstep__num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin-bottom: 20px;
  font-family: var(--font-display); font-weight: 900; font-size: 22px; color: #fff; background: var(--forest);
}
.kstep:nth-child(2) .kstep__num { background: var(--k-purple); }
.kstep:nth-child(3) .kstep__num { background: var(--k-red); }
.kstep:nth-child(4) .kstep__num { background: #8E9B24; }
.kstep h3 { font-weight: 900; font-size: 1.45rem; letter-spacing: -.02em; margin-bottom: 10px; }
.kstep p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- Safety ---------- */
.ksafe { background: var(--charcoal); color: var(--ivory); }
.ksafe__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.ksafe__intro { display: flex; flex-direction: column; }
.ksafe__intro .eyebrow { min-height: 21px; }
.ksafe__grid h2 { margin-bottom: 22px; }
.ksafe__photo { margin-top: 30px; overflow: hidden; width: 100%; max-width: 440px; aspect-ratio: 4 / 4.2; }
.ksafe__photo img { width: 100%; height: 100%; object-fit: cover; }
/* list starts level with the "Known, loved, and cared for" headline */
.ksafe__list { list-style: none; margin: 0; padding: 39px 0 0; }
.ksafe__list li { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid rgba(244, 240, 231, .14); }
.ksafe__list li:first-child { border-top: 0; padding-top: 6px; }
.ksafe__list li:last-child { padding-bottom: 0; }
.ksafe__list svg { width: 40px; height: 40px; flex-shrink: 0; fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ksafe__list h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.ksafe__list p { margin: 0; color: rgba(244, 240, 231, .75); }

/* ---------- Gallery marquee ---------- */
.kgallery { padding: clamp(70px, 9vw, 120px) 0; overflow: hidden; }
.kgallery__track { display: flex; width: max-content; animation: kmarquee 55s linear infinite; }
.kgallery:hover .kgallery__track { animation-play-state: paused; }
.kgallery__row { display: flex; gap: 16px; padding-right: 16px; }
.kgallery__row img { height: clamp(220px, 28vw, 340px); width: auto; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 18px; }
.kgallery__row img:nth-child(even) { transform: translateY(18px); }
@keyframes kmarquee { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.kfaq { background: var(--white); }
.kfaq__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.kfaq__grid h2 { margin-bottom: 20px; }
.kfaq__list details { border-bottom: 1px solid var(--line); }
.kfaq__list details:first-child { border-top: 1px solid var(--line); }
.kfaq__list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 50px 24px 0;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 1.6vw, 1.3rem); letter-spacing: -.01em;
}
.kfaq__list summary::-webkit-details-marker { display: none; }
.kfaq__list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); color: var(--forest); font-size: 22px; font-weight: 500; transition: transform .3s var(--ease), background .3s;
}
.kfaq__list details[open] summary::after { content: "–"; background: var(--forest); color: var(--white); }
.kfaq__list details p { margin: 0 0 24px; color: var(--ink-soft); max-width: 60ch; }
.kfaq__list a { color: var(--forest); font-weight: 600; }

/* ---------- Team + serve ---------- */
.kteam__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(16px, 2vw, 26px); }
.kteam__card { display: grid; grid-template-columns: .85fr 1fr; gap: 30px; align-items: center; background: var(--cream); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.kteam__card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.kteam__card h2 { margin-bottom: 4px; }
.kteam__role { font-family: var(--font-display); font-weight: 700; color: var(--forest); margin: 0 0 14px; }
.kteam__card p:not(.eyebrow):not(.kteam__role) { color: var(--ink-soft); margin: 0 0 22px; }
.kserve { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 720px; display: flex; align-items: flex-end; color: var(--ivory); background: var(--charcoal); }
.kserve__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.2s var(--ease); }
.kserve::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 33, 29, .96) 28%, rgba(30, 33, 29, .1) 66%); }
.kserve:hover .kserve__bg { transform: scale(1.04); }
.kserve__content { position: relative; z-index: 1; padding: clamp(26px, 3.6vw, 48px); }
.kserve__content h2 { margin-bottom: 14px; }
.kserve__content p:not(.eyebrow) { color: rgba(244, 240, 231, .85); margin: 0 0 24px; max-width: 40ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ksafe__list { padding-top: 0; }
  .kserve { min-height: 600px; }
  .khero__grid, .kintro__grid, .ksafe__grid, .kfaq__grid, .kteam__grid { grid-template-columns: 1fr; }
  .khero__collage { max-width: 560px; width: 100%; margin: 0 auto; }
  .kages__grid { grid-template-columns: 1fr 1fr; }
  .ksteps__list { grid-template-columns: 1fr 1fr; }
  .kintro__photo { max-width: 520px; }
}
@media (max-width: 760px) {
  .kages__grid, .ksteps__list { grid-template-columns: 1fr; }
  .kteam__card { grid-template-columns: 1fr; }
  .kteam__card img { max-width: 260px; }
  .khero__logo { width: min(340px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .kgallery__track { animation: none; }
  .kgallery { overflow-x: auto; }
}

/* ---------- Fun photo shapes ---------- */
.shape-quarter { border-radius: 200px 22px 22px 22px !important; }
.shape-scoop { border-radius: 22px 22px 200px 22px !important; }
.kage__img { margin: 12px 12px 0; border-radius: 16px; }
.kgallery__row img:nth-child(3n+1) { border-radius: 999px 999px 18px 18px; }
.kgallery__row img:nth-child(3n+2) { border-radius: 18px 110px 18px 110px; }
.kgallery__row img:nth-child(3n) { border-radius: 50%; aspect-ratio: 1; align-self: center; }
.kteam__card img { border-radius: 50% !important; }

/* ---------- Floating shapes sprinkled through the page ---------- */
.has-doodles { position: relative; overflow: hidden; }
.has-doodles > .container { position: relative; z-index: 1; }
.kd { position: absolute; z-index: 0; pointer-events: none; opacity: .9; }
.kd--lime { --kd: var(--k-lime); } .kd--red { --kd: var(--k-red); } .kd--purple { --kd: var(--k-purple); }
.kd--forest { --kd: var(--forest); } .kd--sage { --kd: var(--sage); }
.kd-star { width: 54px; height: 54px; background: var(--kd); animation: kspin 16s linear infinite;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.kd-ring { width: 90px; height: 90px; border-radius: 50%; border: 10px solid var(--kd); animation: kbob 5s ease-in-out infinite; }
.kd-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--kd); animation: kbob 3.6s ease-in-out infinite; }
.kd-half { width: 120px; height: 60px; border-radius: 120px 120px 0 0; background: var(--kd); animation: krock 6s ease-in-out infinite; transform-origin: 50% 100%; }
.kd-plus { width: 46px; height: 46px; background: var(--kd); animation: kspin 12s linear infinite reverse;
  clip-path: polygon(36% 0, 64% 0, 64% 36%, 100% 36%, 100% 64%, 64% 64%, 64% 100%, 36% 100%, 36% 64%, 0 64%, 0 36%, 36% 36%); }
.kd-squig { width: 90px; height: 24px; animation: kdrift 7s ease-in-out infinite;
  background: radial-gradient(circle at 12px 24px, transparent 8px, var(--kd) 8px 13px, transparent 13px) 0 0 / 30px 24px repeat-x,
              radial-gradient(circle at 27px 0, transparent 8px, var(--kd) 8px 13px, transparent 13px) 0 0 / 30px 24px repeat-x; }
.kd-tr { top: 8%; right: 5%; } .kd-tl { top: 7%; left: 4%; } .kd-br { bottom: 8%; right: 6%; } .kd-bl { bottom: 8%; left: 3%; }
.kd-r { top: 30%; right: -30px; } .kd-l { top: 26%; left: 8%; } .kd-bc { bottom: 14%; left: 30%; }
.closing .kd-r { top: 22%; right: 9%; }
.ksafe .kd { opacity: .35; }
@keyframes krock { 50% { transform: rotate(-14deg); } }
@keyframes kdrift { 50% { transform: translateX(14px) rotate(4deg); } }
@media (max-width: 760px) {
  .kd { transform: scale(.65); }
  .kd-ring { width: 64px; height: 64px; border-width: 8px; }
  .kd-l, .kd-tl { left: -6px; } .kd-tr, .kd-r { right: -10px; }
}
@media (prefers-reduced-motion: reduce) { .kd { animation: none; } }

/* "Interested in joining the team?" link under the big ideas */
.kjoin { margin-top: 6px; }
.kjoin a { font-family: var(--font-display); font-weight: 800; color: var(--forest); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.kjoin a:hover { color: var(--forest-dark); }
