/* =========================================================
   Reid Kids — styles.css
   Soft blues, golds & whites · warm, faith-filled, mobile-first
   ========================================================= */

:root {
  --blue-50:  #f3f8fd;
  --blue-100: #e3eefb;
  --blue-200: #c4dbf3;
  --blue-300: #93bce6;
  --blue-400: #5e93d1;
  --blue-500: #3b6ea5;
  --blue-600: #2f5687;
  --gold-300: #ffe3a3;
  --gold-400: #f7cf73;
  --gold-500: #e8b24b;
  --gold-600: #cf9530;
  --ink:      #2b3a4a;
  --ink-soft: #5a6b7b;
  --white:    #ffffff;
  --cream:    #fffdf8;

  --radius:   20px;
  --radius-lg: 28px;
  --shadow:   0 18px 40px -18px rgba(47, 86, 135, 0.35);
  --shadow-sm: 0 8px 20px -10px rgba(47, 86, 135, 0.3);

  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;

  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 40%, var(--cream) 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }

.text-gold { color: var(--gold-600); }

.visually-hidden, .signup .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Decorative sky ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cloud {
  position: absolute; background: #fff; border-radius: 50%;
  filter: blur(2px); opacity: .55;
  box-shadow: 40px 10px 0 8px #fff, 80px 0 0 0 #fff, -30px 12px 0 4px #fff;
}
.cloud--1 { width: 70px; height: 70px; top: 12%; left: -4%; animation: drift 60s linear infinite; }
.cloud--2 { width: 50px; height: 50px; top: 30%; right: -6%; animation: drift 80s linear infinite reverse; }
.cloud--3 { width: 60px; height: 60px; top: 62%; left: 8%; opacity: .35; animation: drift 95s linear infinite; }
@keyframes drift {
  from { transform: translateX(-120px); }
  to   { transform: translateX(120vw); }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-100);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.brand__mark { color: var(--gold-500); font-size: 1.1em; }
.brand__name { color: var(--blue-600); }
.brand__name-accent { color: var(--gold-500); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__name-accent { color: var(--gold-400); }

.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__menu a { font-weight: 600; color: var(--ink-soft); transition: color .2s; }
.nav__menu a:hover { color: var(--blue-500); }
.nav__cta {
  background: var(--blue-500); color: #fff !important;
  padding: .55rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .2s, background .2s;
}
.nav__cta:hover { background: var(--blue-600); transform: translateY(-1px); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 3px; border-radius: 3px; background: var(--blue-600); transition: .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  padding: .85rem 1.7rem; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .2s, box-shadow .2s, background .2s; font-size: 1rem;
}
.btn--primary { background: var(--gold-400); color: var(--ink); box-shadow: 0 12px 24px -12px rgba(207, 149, 48, .8); }
.btn--primary:hover { background: var(--gold-500); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.7); color: var(--blue-600); box-shadow: inset 0 0 0 2px var(--blue-200); }
.btn--ghost:hover { background: #fff; transform: translateY(-2px); }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  letter-spacing: .04em; font-size: .8rem; text-transform: uppercase;
  color: var(--blue-500); background: var(--blue-100);
  padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow--center { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 7rem; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; }
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34ch; margin: 0 0 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }
.hero__verse { font-style: italic; color: var(--blue-500); font-weight: 600; }
.hero__verse span { display: block; font-style: normal; font-weight: 700; color: var(--gold-600); font-size: .9rem; }

.hero__art { display: flex; justify-content: center; }
.hero__card {
  position: relative; width: min(320px, 80vw); aspect-ratio: 1; border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 25%, var(--gold-300), var(--blue-300) 85%);
  box-shadow: var(--shadow); display: grid; place-items: center;
  animation: float 6s ease-in-out infinite;
}
.hero__badge { font-size: clamp(4rem, 14vw, 7rem); filter: drop-shadow(0 10px 16px rgba(47,86,135,.3)); }
.hero__sparkles span {
  position: absolute; color: #fff; font-size: 1.4rem; opacity: .9;
  animation: twinkle 3s ease-in-out infinite;
}
.hero__sparkles span:nth-child(1) { top: 14%; left: 16%; animation-delay: 0s; }
.hero__sparkles span:nth-child(2) { bottom: 18%; right: 18%; animation-delay: .8s; }
.hero__sparkles span:nth-child(3) { top: 26%; right: 22%; animation-delay: 1.6s; font-size: 1rem; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }

.wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave svg { width: 100%; height: 90px; }
.wave path { fill: var(--white); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--tint { background: linear-gradient(180deg, var(--blue-50), var(--white)); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section__sub { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* ---------- About features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--blue-100);
  transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon { font-size: 2.6rem; margin-bottom: .6rem; }
.feature h3 { color: var(--blue-600); }
.feature p { color: var(--ink-soft); margin: 0; }

/* ---------- Books ---------- */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.book {
  background: #fff; border-radius: var(--radius); padding: 1.4rem; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--blue-100);
  transition: transform .25s, box-shadow .25s;
}
.book:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.book__cover {
  aspect-ratio: 3 / 4; border-radius: 14px; display: grid; place-items: center;
  font-size: 3rem; color: #fff; margin-bottom: 1.1rem; box-shadow: var(--shadow-sm);
}
.book__cover--1 { background: linear-gradient(160deg, var(--blue-400), var(--blue-600)); }
.book__cover--2 { background: linear-gradient(160deg, var(--gold-400), var(--gold-600)); }
.book__cover--3 { background: linear-gradient(160deg, var(--blue-300), var(--gold-400)); }
.book h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.book p { color: var(--ink-soft); font-size: .98rem; margin: 0 0 1rem; }
.tag {
  display: inline-block; font-weight: 700; font-size: .78rem; color: var(--blue-600);
  background: var(--blue-100); padding: .3rem .8rem; border-radius: 999px;
}

/* ---------- Family resources ---------- */
.resources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.resource {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid var(--blue-100);
  transition: transform .25s, box-shadow .25s;
}
.resource:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.resource__icon {
  font-size: 1.8rem; background: var(--blue-50); border-radius: 14px;
  width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto;
}
.resource h3 { font-size: 1.15rem; margin-bottom: .25rem; color: var(--blue-600); }
.resource p { color: var(--ink-soft); margin: 0; }

/* ---------- Coming soon ---------- */
.section--soon {
  background: linear-gradient(150deg, var(--blue-500), var(--blue-600));
  color: #fff; position: relative; overflow: hidden;
}
.section--soon::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(247,207,115,.25), transparent 45%);
  pointer-events: none;
}
.soon__inner { max-width: 620px; margin: 0 auto; text-align: center; position: relative; }
.section--soon h2 { color: #fff; }
.section--soon .eyebrow { background: rgba(255,255,255,.15); color: var(--gold-300); }
.section--soon .section__sub { color: rgba(255,255,255,.85); }

.signup { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin: 2rem auto 0; max-width: 460px; }
.signup input {
  flex: 1 1 220px; padding: .85rem 1.1rem; border-radius: 999px; border: 0;
  font-size: 1rem; font-family: var(--font-body); min-width: 0;
}
.signup input:focus { outline: 3px solid var(--gold-400); }
.signup__note { min-height: 1.4rem; margin: .9rem 0 0; font-weight: 600; color: var(--gold-300); }
.soon__date { margin-top: 1.5rem; font-family: var(--font-head); letter-spacing: .03em; color: rgba(255,255,255,.9); }
.soon__date strong { color: var(--gold-300); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; max-width: 820px; margin: 0 auto; }
.contact__card {
  background: #fff; border-radius: var(--radius); padding: 2rem; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--blue-100);
  transition: transform .25s, box-shadow .25s;
}
.contact__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact__icon { font-size: 2.2rem; }
.contact__card h3 { color: var(--blue-600); margin-top: .5rem; }
.contact__card p { color: var(--ink-soft); margin: 0; }
.contact__social { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.contact__social a { font-weight: 700; color: var(--blue-500); }
.contact__social a:hover { color: var(--gold-600); }

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-600); color: #fff; text-align: center;
  padding: 3rem 0 2.4rem;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.footer__verse { font-style: italic; color: var(--blue-200); margin: 0; }
.footer__copy { color: rgba(255,255,255,.7); font-size: .9rem; margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { order: 2; }
  .hero__art { order: 1; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .features, .books { grid-template-columns: 1fr; }
  .resources, .contact { grid-template-columns: 1fr; }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--blue-100); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav__menu.is-open { max-height: 360px; }
  .nav__menu a { width: 100%; padding: 1rem 22px; border-top: 1px solid var(--blue-50); }
  .nav__cta { border-radius: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
