/* Family & Youth Safety (.fys). Kids' theme, sibling of civics-4-kids. Base, eyebrows, buttons and contact strip come from core.css + kids.css. */

.fys__wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.fys__eyebrow i { font-size: inherit; }

/* ===================== HERO ===================== */
.fys-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 55%, var(--navy-darker) 100%);
  padding: 88px 0 140px;
}
.fys-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 10% 22%, rgba(24,182,174,.22), transparent 26%),
    radial-gradient(circle at 86% 14%, rgba(244,180,0,.22), transparent 24%),
    radial-gradient(circle at 74% 86%, rgba(124,92,252,.18), transparent 28%),
    radial-gradient(circle at 26% 90%, rgba(255,93,162,.14), transparent 24%);
}
.fys-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.4) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.fys-hero__inner {
  position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center;
}
.fys-hero h1 {
  font-weight: 700; color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1; letter-spacing: -.01em; margin: 0 0 20px; text-wrap: balance;
}
.fys-hero h1 .pop { color: var(--gold); }
.fys-hero__lede { font-size: 1.12rem; color: rgba(255,255,255,.86); max-width: 54ch; margin: 0 0 30px; }
.fys-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fys-btn { padding: 15px 30px; letter-spacing: .2px; }
.fys-btn--gold { box-shadow: 0 10px 26px -8px rgba(244,180,0,.65); }
.fys-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; }

/* icon shield with orbiting topic bubbles */
.fys-hero__art { display: flex; justify-content: center; }
.fys-shield { position: relative; width: min(340px, 82%); aspect-ratio: 1; }
.fys-shield__core {
  position: absolute; inset: 16%; display: flex; align-items: center; justify-content: center;
  border-radius: 34% 34% 46% 46%; background: var(--gold); color: var(--navy-darker);
  font-size: clamp(56px, 8vw, 92px); transform: rotate(-4deg);
  box-shadow: 0 30px 60px -26px rgba(0,0,0,.6), inset 0 -10px 0 rgba(0,0,0,.08);
}
.fys-bubble {
  position: absolute; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--b); color: #fff; font-size: 22px;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,.5);
  animation: fys-bob 4s ease-in-out infinite;
}
.fys-bubble--1 { --b: var(--c-coral);  top: 2%;  left: 8%; }
.fys-bubble--2 { --b: var(--c-teal);   top: 0;   right: 6%; animation-delay: .6s; }
.fys-bubble--3 { --b: var(--c-violet); top: 44%; right: -4%; animation-delay: 1.2s; width: 50px; height: 50px; font-size: 19px; }
.fys-bubble--4 { --b: var(--c-green);  bottom: 2%; right: 14%; animation-delay: 1.8s; }
.fys-bubble--5 { --b: var(--c-pink);   bottom: 10%; left: -2%; animation-delay: 2.4s; width: 50px; height: 50px; font-size: 19px; }
@keyframes fys-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fys-spark {
  position: absolute; z-index: 1; width: 30px; height: 30px; background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: fys-twinkle 3.2s ease-in-out infinite;
}
.fys-spark--1 { top: 40px; left: 5%; }
.fys-spark--2 { top: 70px; right: 44%; width: 18px; height: 18px; background: var(--c-pink); animation-delay: .8s; }
.fys-spark--3 { bottom: 110px; left: 46%; width: 22px; height: 22px; background: var(--c-teal); animation-delay: 1.6s; }
@keyframes fys-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(.7) rotate(20deg); opacity: .75; }
}

.fys-btn--ghost { border-color: rgba(255,255,255,.5); }
.fys-btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ===================== CIVICS 4 KIDS! FEATURE ===================== */
.fys-c4k {
  position: relative; overflow: hidden; background: var(--cream);
  padding: 70px 0 96px; scroll-margin-top: 80px;
}
.fys-c4k__blob { position: absolute; border-radius: 50%; pointer-events: none; opacity: .14; }
.fys-c4k__blob--1 { width: 380px; height: 380px; left: -120px; top: 40px; background: var(--c-teal); }
.fys-c4k__blob--2 { width: 260px; height: 260px; right: -80px; top: -60px; background: var(--c-pink); }
.fys-c4k__blob--3 { width: 200px; height: 200px; right: 22%; bottom: -110px; background: var(--c-violet); }
.fys-c4k__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

/* topic covers fanned behind the workbook */
.fys-c4k__art {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  min-height: 420px; padding-top: 20px;
}
.fys-fan { position: absolute; inset: 0; }
.fys-fan img {
  position: absolute; left: 50%; bottom: 34px; width: 150px; height: auto;
  border-radius: 8px; border: 4px solid #fff; transform-origin: 50% 120%;
  box-shadow: 0 16px 30px -16px rgba(13,71,161,.55);
  transition: transform .35s ease;
}
.fys-fan img:nth-child(1) { transform: translateX(-50%) rotate(-34deg); border-color: var(--c-coral); }
.fys-fan img:nth-child(2) { transform: translateX(-50%) rotate(-17deg); border-color: var(--c-teal); }
.fys-fan img:nth-child(3) { transform: translateX(-50%) rotate(0deg) translateY(-30px); border-color: var(--c-violet); }
.fys-fan img:nth-child(4) { transform: translateX(-50%) rotate(17deg); border-color: var(--c-green); }
.fys-fan img:nth-child(5) { transform: translateX(-50%) rotate(34deg); border-color: var(--c-sky); }
.fys-c4k__art:hover .fys-fan img:nth-child(1) { transform: translateX(-50%) rotate(-40deg); }
.fys-c4k__art:hover .fys-fan img:nth-child(2) { transform: translateX(-50%) rotate(-20deg); }
.fys-c4k__art:hover .fys-fan img:nth-child(4) { transform: translateX(-50%) rotate(20deg); }
.fys-c4k__art:hover .fys-fan img:nth-child(5) { transform: translateX(-50%) rotate(40deg); }

/* booklet mockup (civics-4-kids .c4k-book treatment) */
.fys-book {
  position: relative; z-index: 2; width: min(230px, 62%); border-radius: 10px 16px 16px 10px;
  transform: rotate(1.5deg);
  box-shadow: 20px 30px 56px -22px rgba(8,45,107,.6);
  transition: transform .35s ease;
}
.fys-c4k__art:hover .fys-book { transform: rotate(0deg) translateY(-4px); }
.fys-book img { width: 100%; height: auto; border-radius: 10px 16px 16px 10px; display: block; }
.fys-book::before {
  content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 14px;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0));
}
.fys-book::after {
  content: ''; position: absolute; top: 6px; bottom: 6px; right: -8px; width: 8px;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(180deg, #fff 0 2px, #e7ebf2 2px 4px);
  box-shadow: 2px 0 6px rgba(0,0,0,.25);
}
.fys-book__ribbon {
  position: absolute; top: 16px; right: -10px; z-index: 3;
  background: var(--c-coral); color: #fff; font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: .8rem; padding: 7px 14px; border-radius: 6px;
  box-shadow: 0 6px 16px -4px rgba(0,0,0,.4);
}

.fys-c4k__chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 50px; padding: 9px 18px;
  font-weight: 700; color: var(--navy); font-size: .92rem;
  box-shadow: 0 8px 20px -14px rgba(13,71,161,.5);
}
.fys-c4k__chip i { color: var(--c-green); font-size: 16px; }
.fys-c4k h2 {
  font-weight: 700; color: var(--navy); font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.06; letter-spacing: -.01em; margin: 20px 0 16px; text-wrap: balance;
}
.fys-c4k h2 .pop { box-shadow: inset 0 -.36em 0 rgba(244,180,0,.55); }
.fys-c4k p { color: #3a4252; font-size: 1.1rem; max-width: 46ch; margin: 0 0 28px; }

/* ===================== GUIDANCE ===================== */
.fys-guide { background: #fff; padding: 80px 0 90px; scroll-margin-top: 80px; }
.fys-guide__head { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.fys-guide__head h2 {
  font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--navy);
  margin: 10px 0 0; line-height: 1.12; text-wrap: balance;
}
.fys-guide__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
  max-width: 1080px; margin: 0 auto;
}
/* sticker cards, like the c4k quotes */
.fys-tip {
  --accent: var(--t-violet);
  --t-violet: #5B3FE0; --t-teal: #0B7F79; --t-coral: #D4432A; --t-green: #1E8A55;
  background: #fff; border: 3px solid var(--accent); border-radius: 26px;
  padding: 32px 30px 30px; box-shadow: 8px 8px 0 var(--accent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fys-tip:nth-child(1) { --accent: var(--t-coral); transform: rotate(-.6deg); }
.fys-tip:nth-child(2) { --accent: var(--t-teal); transform: rotate(.6deg); }
.fys-tip:nth-child(3) { --accent: var(--t-violet); transform: rotate(.5deg); }
.fys-tip:nth-child(4) { --accent: var(--t-green); transform: rotate(-.5deg); }
.fys-tip:hover { transform: rotate(0deg) translate(-2px, -2px); box-shadow: 12px 12px 0 var(--accent); }
.fys-tip__icon {
  width: 54px; height: 54px; border-radius: 50%; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 22px;
}
.fys-tip h3 { color: var(--navy); font-size: 1.45rem; font-weight: 600; margin: 0 0 10px; line-height: 1.2; }
.fys-tip p { color: #3a4252; font-size: .98rem; margin: 0 0 16px; }
.fys-tip ul { list-style: none; margin: 0; padding: 0; }
.fys-tip li {
  position: relative; padding-left: 30px; margin: 0 0 9px;
  color: var(--muted); font-size: .95rem; line-height: 1.55;
}
.fys-tip li::before {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; background: var(--accent);
}
.fys-tip li.fys-tip__more {
  margin: 18px 0 0; padding: 16px 18px 16px 48px;
  background: var(--cream); border-radius: 16px; color: #3a4252;
}
.fys-tip li.fys-tip__more::before {
  content: '\f35d'; left: 16px; top: 17px; background: var(--navy); color: var(--gold);
}
.fys-tip li strong { color: var(--navy); }
.fys-tip li a {
  color: var(--navy); font-weight: 700;
  border-bottom: 2px solid var(--gold); transition: color .2s ease;
}
.fys-tip li a:hover { color: var(--accent); }

/* ===================== CONTACT ===================== */
.fys-contact p { max-width: 560px; }

/* ===================== RESPONSIVE ===================== */
@media (prefers-reduced-motion: reduce) {
  .fys-spark, .fys-bubble { animation: none; }
}
@media (max-width: 960px) {
  .fys-hero { padding: 64px 0 110px; }
  .fys-hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .fys-hero__actions { justify-content: center; }
  .fys-hero__lede { margin-left: auto; margin-right: auto; }
  .fys-hero__art { order: -1; }
  .fys-shield { width: min(240px, 66%); }
  .fys-spark--2, .fys-spark--3 { display: none; }
  .fys-c4k { padding: 50px 0 70px; }
  .fys-c4k__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; max-width: 680px; }
  .fys-c4k p { margin-left: auto; margin-right: auto; }
  .fys-guide { padding: 60px 0 64px; }
}
@media (max-width: 760px) {
  .fys-guide__grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 640px) {
  .fys__wrap, .fys-hero__inner { padding-left: 18px; padding-right: 18px; }
  .fys-hero__wave { height: 40px; }
  .fys-hero__actions { flex-direction: column; }
  .fys-btn { width: 100%; justify-content: center; }
  .fys-bubble { width: 44px; height: 44px; font-size: 16px; border-width: 3px; }
  .fys-c4k__art { min-height: 320px; }
  .fys-fan img { width: 104px; bottom: 26px; border-width: 3px; }
  .fys-fan img:nth-child(1), .fys-fan img:nth-child(5) { display: none; }
  .fys-book { width: min(180px, 56%); }
  .fys-tip { padding: 26px 22px 24px; box-shadow: 6px 6px 0 var(--accent); }
}
