/* ============================================================
   THE WONDERS OF — WEBSITE STYLES
   ============================================================ */

/* ----- VARIABLES ----- */
:root {
  --gold:       #C9922D;
  --gold-dark:  #A3751E;
  --navy:       #1B2A4A;
  --cream:      #FAF6EF;
  --cream-dark: #EFE6D2;
  --text:       #2C2C2C;
  --text-light: #5E5E5E;
  --white:      #FFFFFF;
  --shadow:     0 4px 24px rgba(0, 0, 0, 0.10);
  --radius:     14px;
}

/* ----- RESET ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: auto; }
body {
  font-family: 'Open Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.18; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; }

/* ----- LAYOUT ----- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 146, 45, 0.38);
}
.btn-amazon {
  background: var(--navy);
  color: var(--white);
  margin-top: 22px;
}
.btn-amazon:hover {
  background: #253d6e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 42, 74, 0.32);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(250, 246, 239, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-dark);
}
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-the {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--gold);
}
.logo-wonders {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--navy);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 28px 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 55%, rgba(201, 146, 45, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(139, 26, 26, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
/* Decorative parchment texture suggestion */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 720px;
}
.hero-series {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

/* ============================================================
   BOOKS SECTION
   ============================================================ */
.books {
  padding: 110px 0;
  background: var(--cream);
}
.books .container > h2 {
  text-align: center;
  color: var(--navy);
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto 70px;
  font-size: 1.05rem;
}
.books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}
.book-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.28s, box-shadow 0.28s;
}
.book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}
.book-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--cream-dark);
}
.book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.book-card:hover .book-cover { transform: scale(1.04); }
.age-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.book-info { padding: 30px; }
.book-info h3 {
  color: var(--navy);
  margin-bottom: 6px;
}
.book-sub {
  font-style: italic;
  color: var(--gold-dark);
  font-size: 0.87rem;
  margin-bottom: 18px;
  line-height: 1.5;
}
.book-desc {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 10px;
}

/* ============================================================
   ILLUSTRATION STRIP
   ============================================================ */
.illustration-strip {
  overflow: hidden;
  height: 240px;
  background: var(--navy);
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}
.strip-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: scroll-strip 28s linear infinite;
}
.strip-track img {
  height: 240px;
  width: auto;
  object-fit: cover;
  opacity: 0.88;
  filter: sepia(15%) brightness(0.9);
}
@keyframes scroll-strip {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.illustration-strip:hover .strip-track { animation-play-state: paused; }

/* ============================================================
   ABOUT THE SERIES
   ============================================================ */
.series-about {
  padding: 110px 0;
  background: var(--cream);
}
.series-about-container {
  max-width: 760px;
}
.series-about h2 {
  color: var(--navy);
  margin-bottom: 36px;
}
.series-about-body p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 18px;
}
.series-about-body p:last-child { margin-bottom: 0; }

/* ============================================================
   WHY THIS SERIES
   ============================================================ */
.why {
  padding: 110px 0;
  background: var(--cream-dark);
}
.why h2 {
  text-align: center;
  color: var(--navy);
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-tile {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  transition: transform 0.22s;
  border-top: 4px solid var(--gold);
}
.feature-tile:hover { transform: translateY(-5px); }
.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}
.feature-tile h4 {
  color: var(--navy);
  margin-bottom: 12px;
}
.feature-tile p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================================
   ABOUT THE AUTHOR
   ============================================================ */
.author {
  padding: 110px 0;
  background: var(--white);
}
.author-container { max-width: 700px; }
.author-label {
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 10px;
}
.author h2 {
  color: var(--navy);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 26px;
}
.author p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 52px 28px;
  text-align: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 0.83rem;
  margin-bottom: 22px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.83rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ============================================================
   HERO PROMISES + CTA ROW
   ============================================================ */
.hero-promises {
  list-style: none;
  margin: 28px auto 36px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.hero-promises li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.hero-promises li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   WHAT MAKES THIS SERIES DIFFERENT
   ============================================================ */
.series-different {
  padding: 88px 0;
  background: var(--navy);
}
.series-different-container { max-width: 760px; }
.series-different h2 {
  color: var(--white);
  margin-bottom: 36px;
}
.series-different-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.series-different-list li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  padding-left: 28px;
  position: relative;
  line-height: 1.65;
}
.series-different-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ============================================================
   HOW FAMILIES USE THESE BOOKS
   ============================================================ */
.how-families {
  padding: 88px 0;
  background: var(--cream-dark);
}
.how-families-container { max-width: 760px; }
.how-families h2 {
  color: var(--navy);
  margin-bottom: 36px;
}
.how-families-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.how-families-list li {
  color: var(--text);
  font-size: 1rem;
  padding-left: 28px;
  position: relative;
  line-height: 1.65;
}
.how-families-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ============================================================
   SOCIAL PROOF / TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 100px 0;
  background: var(--cream);
}
.testimonials h2 {
  text-align: center;
  color: var(--navy);
  margin-bottom: 52px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  border-top: 4px solid var(--gold);
  min-height: 140px;
  display: flex;
  align-items: center;
}
.testimonial-text {
  color: var(--text-light);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
}
.testimonials-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.82rem;
}

/* ============================================================
   FOOTER — RESTRUCTURED
   ============================================================ */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.footer-top { text-align: center; }
.footer-columns {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-col-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-col-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col-links a:hover { color: var(--gold); }

/* ============================================================
   FOR PARENTS/EDUCATORS PAGE
   ============================================================ */
.page-hero {
  padding: 140px 28px 80px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201, 146, 45, 0.15) 0%, transparent 55%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  max-width: 760px;
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}
.page-hero-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  line-height: 1.75;
}
.page-section {
  padding: 88px 0;
  background: var(--cream);
}
.page-section-alt { background: var(--cream-dark); }
.page-section-container { max-width: 760px; }
.page-section h2 {
  color: var(--navy);
  margin-bottom: 22px;
}
.page-section-intro {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 28px;
}
.page-section-intro:last-child { margin-bottom: 0; }
.page-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.page-list li {
  color: var(--text);
  font-size: 1rem;
  padding-left: 28px;
  position: relative;
  line-height: 1.65;
}
.page-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.page-cta {
  padding: 88px 0;
  background: var(--navy);
  text-align: center;
}
.page-cta-container { max-width: 600px; }
.page-cta h2 {
  color: var(--white);
  margin-bottom: 36px;
}
.page-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FADE-IN ANIMATION (intersection observer)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 18px;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--cream);
    padding: 24px 28px;
    border-bottom: 2px solid var(--cream-dark);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
  }
  .nav-links.open { display: flex; }

  /* Books */
  .books-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Footer */
  .footer-columns { gap: 36px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 110px 20px 70px; }
  .books, .why, .author { padding: 76px 0; }
  .book-info { padding: 22px; }
}
