/* ==============================================
   RISING READER — Design System & Styles
   ============================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Caveat:wght@400;600;700&family=Nunito:wght@400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Palette */
  --cream:       #FAF3E7;
  --navy:        #1B2E5B;
  --coral:       #F4877E;
  --lavender:    #B8A4D4;
  --teal:        #6BC4B8;
  --mustard:     #E8B53D;
  --soft-pink:   #F5B5B0;
  --navy-light:  #2a4278;
  --coral-deep:  #e06f65;
  --cream-dark:  #f0e6d4;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script:  'Caveat', cursive;
  --font-body:    'Nunito', 'DM Sans', sans-serif;

  /* Spacing */
  --section-pad: 100px 5%;
  --gap: 2rem;
  --radius: 18px;
  --radius-pill: 50px;

  /* Transitions */
  --ease: cubic-bezier(.25,.46,.45,.94);
  --duration: .35s;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.script { font-family: var(--font-script); }
.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral);
}

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  position: relative;
}
.btn-primary {
  background: var(--coral); color: var(--navy);
  box-shadow: 0 4px 16px rgba(244,135,126,.3);
}
.btn-primary:hover {
  background: var(--coral-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,135,126,.4);
}
.btn-secondary {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover {
  background: var(--navy); color: var(--cream);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--cream); color: var(--navy);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-sun, .star { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==============================================
   NAVIGATION
   ============================================== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 16px 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  border-top: 6px solid;
  border-image: repeating-linear-gradient(45deg, var(--coral), var(--coral) 20px, var(--teal) 20px, var(--teal) 40px, var(--mustard) 40px, var(--mustard) 60px, var(--lavender) 60px, var(--lavender) 80px) 1;
}
.navbar.scrolled {
  background: rgba(250,243,231,.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(27,46,91,.08);
}
.navbar-logo img.brand-logo { height: 95px; margin-left: -5px; }
.navbar-logo { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .9rem; font-weight: 600; color: var(--navy);
  position: relative; transition: color var(--duration);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--coral);
  transition: width var(--duration) var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 1rem; }

/* Mobile hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s; }

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 75%; height: 100vh;
    flex-direction: column; justify-content: center;
    background: var(--cream); box-shadow: -4px 0 30px rgba(0,0,0,.1);
    transition: right .4s var(--ease); 
    padding: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
  .nav-links.open { right: 0; }
  .nav-links a { 
    font-size: 1.2rem; 
    padding: 12px 0; /* Increase touch target */
    width: 100%;
    text-align: center;
  }
  .nav-cta { margin-left: 0; margin-top: 1rem; width: 100%; text-align: center; justify-content: center; }
}

/* ==============================================
   HERO
   ============================================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 5% 100px;
  position: relative; overflow: hidden;
  background: var(--cream);
}
.hero-content {
  max-width: 680px; position: relative; z-index: 2;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em {
  font-style: italic; color: var(--coral);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute; bottom: 2px; left: -4px; right: -4px;
  height: 10px; background: rgba(244,135,126,.18);
  border-radius: 4px; z-index: -1;
}
.hero-sub {
  font-size: 1.15rem; color: var(--navy); opacity: .8;
  margin-bottom: 2rem; max-width: 540px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero illustration area */
.hero-visual {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  width: 420px; height: 420px; z-index: 1;
}

/* Animated Sun */
.hero-sun {
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--mustard) 40%, rgba(232,181,61,.2) 70%, transparent 100%);
  border-radius: 50%;
  position: absolute; top: 60px; right: 80px;
  animation: pulse-sun 4s ease-in-out infinite;
}
@keyframes pulse-sun {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Floating stars */
.star {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  opacity: .7;
  animation: float-star 6s ease-in-out infinite;
}
.star:nth-child(1) { background: var(--coral); top: 20%; left: 10%; animation-delay: 0s; width: 20px; height: 20px; }
.star:nth-child(2) { background: var(--lavender); top: 40%; left: 80%; animation-delay: 1s; width: 14px; height: 14px; }
.star:nth-child(3) { background: var(--teal); top: 70%; left: 30%; animation-delay: 2s; width: 16px; height: 16px; }
.star:nth-child(4) { background: var(--mustard); top: 15%; left: 60%; animation-delay: 3s; width: 12px; height: 12px; }
.star:nth-child(5) { background: var(--soft-pink); top: 80%; left: 70%; animation-delay: 1.5s; width: 22px; height: 22px; }
.star:nth-child(6) { background: var(--lavender); top: 55%; left: 50%; animation-delay: 4s; width: 10px; height: 10px; }
@keyframes float-star {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-18px) rotate(180deg); }
}

/* Background confetti stars */
.hero-bg-stars { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-stars .dot {
  position: absolute; border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

/* ==============================================
   ABOUT SECTION
   ============================================== */
.about {
  padding: var(--section-pad);
  background: linear-gradient(175deg, var(--cream) 0%, rgba(244,135,126,.06) 50%, var(--cream) 100%);
  position: relative;
}
.about::before {
  content: '✦';
  position: absolute; top: 40px; right: 8%;
  font-size: 2rem; color: var(--mustard); opacity: .35;
  animation: float-star 5s ease-in-out infinite;
}
.about::after {
  content: '✧';
  position: absolute; bottom: 60px; left: 6%;
  font-size: 1.5rem; color: var(--lavender); opacity: .4;
  animation: float-star 7s ease-in-out infinite 1s;
}
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 4rem;
  align-items: center;
  max-width: 800px; margin: 0 auto;
}
.about-image {
  display: none;
}
.about-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
  font-family: var(--font-script); font-size: 1.3rem; color: var(--lavender);
}
.about-text h2 {
  margin-bottom: 1rem;
  display: inline-block;
}
.about-text h2::after {
  content: '';
  display: block; width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--mustard));
  border-radius: 3px; margin-top: 8px;
}
.about-text p { margin-bottom: 1rem; opacity: .85; }
.credential-badges {
  display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem;
}
.badge {
  padding: 8px 18px; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 700;
}
.badge-coral { background: rgba(244,135,126,.2); color: var(--coral-deep); border: 1px solid rgba(244,135,126,.25); }
.badge-lavender { background: rgba(184,164,212,.2); color: #8b72b8; border: 1px solid rgba(184,164,212,.25); }
.badge-teal { background: rgba(107,196,184,.2); color: #4a9e90; border: 1px solid rgba(107,196,184,.25); }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { max-width: 340px; margin: 0 auto; }
}

/* ==============================================
   SERVICES SECTION
   ============================================== */
.services {
  padding: var(--section-pad);
  background: linear-gradient(180deg, var(--cream) 0%, rgba(107,196,184,.06) 50%, var(--cream) 100%);
  position: relative;
}
.services::before {
  content: '☆';
  position: absolute; top: 30px; left: 10%;
  font-size: 1.8rem; color: var(--teal); opacity: .3;
}
.services-header { text-align: center; margin-bottom: 3rem; }
.services-header h2 {
  margin-bottom: .5rem; display: inline-block;
}
.services-header h2::after {
  content: '';
  display: block; width: 80px; height: 4px; margin: 10px auto 0;
  background: linear-gradient(90deg, var(--teal), var(--lavender));
  border-radius: 3px;
}
.services-header .script { font-size: 1.3rem; color: var(--coral); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  border-top: 4px solid var(--coral);
  box-shadow: 0 4px 24px rgba(27,46,91,.06);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  position: relative;
}
.service-card:nth-child(2) { border-top-color: var(--lavender); }
.service-card:nth-child(3) { border-top-color: var(--teal); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(27,46,91,.1);
}
.service-icon {
  width: 56px; height: 56px; margin-bottom: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 48px; height: 48px; }
.service-card h3 { margin-bottom: .6rem; }
.service-card p { font-size: .95rem; opacity: .8; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* ==============================================
   HOW IT WORKS
   ============================================== */
.approach {
  padding: var(--section-pad);
  background: linear-gradient(180deg, rgba(232,181,61,.05) 0%, rgba(252, 250, 242, 0.4) 40%, rgba(184,164,212,.05) 100%);
  position: relative;
}
.approach::after {
  content: '✦';
  position: absolute; bottom: 50px; right: 10%;
  font-size: 1.5rem; color: var(--coral); opacity: .25;
}
.approach-header { text-align: center; margin-bottom: 3.5rem; }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative;
}
.step {
  text-align: center; padding: 0 1.5rem; position: relative;
}
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  margin: 0 auto 1rem; color: #fff; position: relative; z-index: 2;
}
.step:nth-child(1) .step-number { background: var(--coral); }
.step:nth-child(2) .step-number { background: var(--lavender); }
.step:nth-child(3) .step-number { background: var(--teal); }
.step:nth-child(4) .step-number { background: var(--mustard); }
.step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step p { font-size: .88rem; opacity: .75; }

/* Dotted connector line */
.steps::before {
  content: '';
  position: absolute; top: 28px; left: 12.5%; right: 12.5%;
  height: 2px;
  border-top: 3px dotted var(--soft-pink);
  z-index: 1;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { display: none; }
  .step { display: flex; gap: 1rem; text-align: left; padding: 0; }
  .step-number { margin: 0; flex-shrink: 0; }
  .step-text { flex: 1; }
}

/* ==============================================
   WHO IT'S FOR
   ============================================== */
.who {
  padding: var(--section-pad);
  background: linear-gradient(180deg, rgba(184,164,212,.12) 0%, rgba(244,135,126,.04) 100%);
  position: relative;
}
.who::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--lavender), var(--teal), var(--mustard));
  opacity: .4;
}
.who-header { text-align: center; margin-bottom: 3rem; }
.who-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; max-width: 900px; margin: 0 auto;
}
.who-col h3 {
  font-size: 1.15rem; margin-bottom: 1.2rem;
  font-family: var(--font-display);
}
.who-col:first-child h3 { color: var(--coral); }
.who-col:last-child h3 { color: var(--lavender); }
.who-col li {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: .9rem; font-size: .95rem;
}
.check-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  background: var(--teal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
}
.check-icon svg { width: 12px; height: 12px; }

@media (max-width: 600px) { .who-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ==============================================
   TESTIMONIALS
   ============================================== */
.testimonials {
  padding: var(--section-pad);
  background: linear-gradient(180deg, rgba(252, 250, 242, 0.4) 0%, rgba(232,181,61,.06) 50%, rgba(252, 250, 242, 0.4) 100%);
  position: relative;
}
.testimonials::before {
  content: '★';
  position: absolute; top: 50px; right: 12%;
  font-size: 1.6rem; color: var(--mustard); opacity: .35;
}
.testimonials::after {
  content: '✧';
  position: absolute; bottom: 40px; left: 8%;
  font-size: 1.2rem; color: var(--soft-pink); opacity: .4;
}
.testimonials-header { text-align: center; margin-bottom: 3rem; }
.carousel {
  max-width: 800px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.carousel-track {
  display: flex; transition: transform .5s var(--ease);
}
.testimonial-card {
  min-width: 100%; padding: 2.5rem 3rem;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(27,46,91,.06);
  text-align: center;
  border-left: 4px solid var(--lavender);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 12px; left: 20px;
  font-family: var(--font-display); font-size: 4rem;
  color: var(--coral); opacity: .2; line-height: 1;
}
.testimonial-card:nth-child(2) { border-left-color: var(--teal); }
.testimonial-card:nth-child(3) { border-left-color: var(--mustard); }
.testimonial-card blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; line-height: 1.7;
  margin-bottom: 1.2rem; color: var(--navy);
}
.testimonial-card cite {
  font-style: normal; font-size: .9rem; opacity: .7;
}
.carousel-dots {
  display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--soft-pink); border: none;
  transition: background var(--duration);
  cursor: pointer;
}
.carousel-dot.active { background: var(--coral); }

/* ==============================================
   FAQ
   ============================================== */
.faq {
  padding: var(--section-pad);
  background: linear-gradient(180deg, rgba(107,196,184,.08) 0%, rgba(252, 250, 242, 0.4) 60%, rgba(184,164,212,.05) 100%);
}
.faq-header { text-align: center; margin-bottom: 3rem; }
.accordion { max-width: 750px; margin: 0 auto; }
.accordion-item {
  border-bottom: 2px solid rgba(27,46,91,.08);
  transition: border-color .3s;
}
.accordion-item.open {
  border-bottom-color: var(--coral);
}
.accordion-btn {
  width: 100%; padding: 1.3rem 0;
  display: flex; align-items: center; justify-content: space-between;
  background: none; text-align: left;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--navy); transition: color var(--duration);
}
.accordion-btn:hover { color: var(--coral); }
.accordion-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease);
}
.accordion-panel-inner {
  padding: 0 0 1.3rem;
  font-size: .95rem; opacity: .8; line-height: 1.7;
}

/* ==============================================
   CTA BAND
   ============================================== */
.cta-band {
  padding: 100px 5%;
  background: #FF8C42;
  text-align: center; color: var(--cream);
  position: relative;
  z-index: 1;
}
.cta-band h2 { color: var(--cream); margin-bottom: .75rem; position: relative; z-index: 2; }
.cta-band p { margin-bottom: 2rem; font-size: 1.1rem; color: var(--cream); font-weight: 600; position: relative; z-index: 2; }
.cta-band .btn { position: relative; z-index: 2; background: var(--cream); color: #FF8C42; }
.cta-band .btn:hover { background: var(--navy); color: var(--cream); }

/* Matter.js Physics Canvas */
.cta-band canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto; /* Allow mouse interaction for grabbing balls */
}

/* Ensure content stays above the physics canvas but lets clicks through where transparent */
.cta-band .cta-content {
  position: relative;
  z-index: 2;
  pointer-events: none; /* Let clicks pass through to canvas... */
}

/* ...but buttons and text inside should be clickable/selectable */
.cta-band .cta-content h2, 
.cta-band .cta-content p, 
.cta-band .cta-content .btn {
  pointer-events: auto;
}
.cta-band .sparkle { display: none; }

/* ==============================================
   ANIMATED MASCOTS
   ============================================== */
.mascot-character {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}
.mascot-hero {
  right: 6%; bottom: -5%;
  max-width: 240px;
  animation: floatHero 4s ease-in-out infinite alternate;
}
@keyframes floatHero {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-15px) rotate(4deg); }
}
.mascot-faq {
  max-width: 140px;
  animation: floatHero 6s ease-in-out infinite alternate;
  opacity: 0.8;
}
.mascot-scheduling {
  position: absolute;
  right: calc(100% + 20px);
  bottom: -20px;
  max-width: 140px;
  animation: floatContact 4s ease-in-out infinite alternate;
}

.scheduling-options-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.contact-info-minimal {
  margin-top: 2rem;
  font-size: 1rem;
  opacity: 0.9;
}

.contact-info-minimal a:hover {
  text-decoration: underline;
}

.contact-info-minimal .response-time {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .mascot-scheduling { display: none !important; }
}



/* ==============================================
   FOOTER
   ============================================== */
.footer {
  padding: 60px 5% 30px;
  background: var(--cream); color: var(--navy);
  border-top: 6px solid;
  border-image: repeating-linear-gradient(45deg, var(--coral), var(--coral) 20px, var(--teal) 20px, var(--teal) 40px, var(--mustard) 40px, var(--mustard) 60px, var(--lavender) 60px, var(--lavender) 80px) 1;
  z-index: 10;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .footer-logo img.brand-logo {
  max-width: 260px;
  margin-left: -10px;
}
.footer h4 {
  font-size: .95rem; margin-bottom: 1rem; color: var(--teal);
  font-family: var(--font-body); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.footer a {
  display: block; font-size: .9rem; opacity: .8;
  margin-bottom: .5rem; transition: opacity var(--duration); color: var(--navy);
}
.footer a:hover { opacity: 1; color: var(--coral); }
.footer-bottom {
  border-top: 1px solid rgba(27,46,91,.1);
  padding-top: 1.5rem; text-align: center;
  font-size: .8rem; opacity: .6;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==============================================
   PAPER TEXTURE OVERLAY
   ============================================== */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .3;
}

/* ==============================================
   SCATTERED BACKGROUND DECORATIONS
   ============================================== */
.bg-scatter {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.bg-scatter-item {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.bg-scatter-item.scatter-star {
  font-size: 14px;
  line-height: 1;
}
.bg-scatter-item.scatter-letter {
  font-family: var(--font-script);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.bg-scatter-item.scatter-hand svg {
  width: 22px; height: 22px;
  display: block;
}

/* Sections need relative positioning for the scatter layer */
.hero, .about, .services, .approach, .who,
.testimonials, .faq, .contact, .page-section, .page-header {
  position: relative;
  z-index: 2;
}

/* ==============================================
   MUSIC TOGGLE
   ============================================== */
.music-toggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: rgba(250, 243, 231, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 2px solid var(--coral);
  color: var(--coral);
  border-radius: 40px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 100;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s var(--ease);
}
.music-toggle:hover {
  background: var(--coral);
  color: var(--cream);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(244,135,126,0.25);
}
.music-toggle svg { width: 20px; height: 20px; }
.music-toggle.playing {
  border-color: var(--teal);
  color: var(--teal);
}
.music-toggle.playing:hover {
  background: var(--teal);
  color: var(--cream);
  box-shadow: 0 8px 25px rgba(107,196,184,0.25);
}

/* ==============================================
   SCHEDULING SECTION
   ============================================== */
.scheduling {
  padding: var(--section-pad);
  background: var(--lavender);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.scheduling::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66-3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-40-39c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm50 38c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zM21 39c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1zm56-38c.552 0 1-.448 1-1s-.448-1-1-1-1 .448-1 1 .448 1 1 1z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
}
.scheduling-content {
  position: relative; z-index: 2;
  max-width: 700px; margin: 0 auto;
}
.scheduling h2 { font-size: 2.8rem; margin-bottom: 1rem; color: #fff; }
.scheduling p { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: 0.95; font-weight: 500; }
.scheduling-options {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
}
.scheduling .btn-primary { background: #fff; color: var(--lavender); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.scheduling .btn-primary:hover { background: var(--navy); color: #fff; }
.scheduling .btn-secondary { border-color: #fff; color: #fff; }
.scheduling .btn-secondary:hover { background: #fff; color: var(--lavender); }

/* ==============================================
   MULTI-PAGE LAYOUT STYLES
   ============================================== */

.page-header {
  padding: 160px 5% 80px;
  background: var(--cream-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 1.5rem auto 0;
  opacity: 0.8;
}

.page-section {
  padding: var(--section-pad);
}
.bg-alt {
  background: #fff;
}

.split-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-content.reverse {
  grid-template-columns: 1fr 1.2fr;
}
.content-highlight .highlight-card,
.content-highlight .quote-card {
  background: var(--lavender);
  padding: 3rem;
  border-radius: var(--radius);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(184,164,212,0.2);
}
.highlight-card h3 { margin-bottom: 1rem; }
.highlight-card cite { display: block; margin-top: 1.5rem; font-style: italic; font-weight: 700; }

.credentials-grid, .program-detail-grid, .pillars-grid, .features-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.cred-item, .program-card, .pillar, .feature-item {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: transform var(--duration) var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.cred-item:hover, .program-card:hover { transform: translateY(-5px); }

.cred-icon, .program-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.pillar-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--coral);
  opacity: 0.2;
  margin-bottom: -1.5rem;
}

.benefit-list {
  margin-top: 1.5rem;
}
.benefit-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.benefit-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.nav-links a.active {
  color: var(--coral);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; width: 100%;
  height: 2px; background: var(--coral);
}

.scheduling-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}
.scheduling-card {
  background: #fff;
  padding: 4rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  text-align: center;
}
.btn-large {
  padding: 20px 48px;
  font-size: 1.1rem;
  margin-top: 2rem;
}

.mascot-center {
  max-width: 200px;
  margin: 0 auto;
  animation: floatContact 4s ease-in-out infinite alternate;
}

@media (max-width: 900px) {
  .split-content, .split-content.reverse, .scheduling-container {
    grid-template-columns: 1fr;
  }
  .page-header { padding-top: 120px; }
}

/* ==============================================
   FULL-PAGE BACKGROUND EFFECTS (REFINED)
   ============================================== */

/* The background layer container */
.bg-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* --- Option 1: The Learning Path (Approach) --- */
.path-container {
  width: 100%;
  height: 100%;
}
.path-line-long {
  stroke: #F4877E;
  stroke-width: 4;
  stroke-dasharray: 20, 20;
  fill: none;
  opacity: 0.3;
  animation: flowLine 30s linear infinite;
}
@keyframes flowLine {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

/* --- Option 2: Large Parallax Cutouts (FAQ) --- */
.parallax-blobs {
  width: 100%;
  height: 100%;
  position: relative;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  transition: transform 0.2s ease-out;
}

/* --- Option 3: Sketchbook Illustrations (About) --- */
.sketch-icon {
  position: absolute;
  width: 140px;
  height: 140px;
  opacity: 0.7;
  z-index: 1;
  animation: wiggle 8s ease-in-out infinite alternate;
}
@keyframes wiggle {
  0% { transform: rotate(-5deg) scale(0.95); }
  100% { transform: rotate(5deg) scale(1.05); }
}

/* Re-add the white backgrounds for specific sections but with transparency */
.bg-alt {
  background: rgba(255,255,255,0.6) !important;
}
.page-header {
  background: transparent !important;
}
.page-header::before {
  content: '';
  position: absolute; top:0; left:0; width:100%; height:100%;
  background: var(--cream-dark);
  z-index: -1;
  opacity: 0.5;
}


/* --- Bird Nest Animation (About Page) --- */
.nest-container {
  position: fixed;
  top: 140px; right: 3%; /* Pushed down to clear the nav bar */
  width: 180px; height: 135px; /* Significantly smaller */
  z-index: 1; /* Lower z-index so it doesn't block clicks */
  pointer-events: none;
  opacity: 1 !important;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.bird-nest-img {
  width: 100%; height: auto;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
}
.bird-img {
  position: absolute;
  width: 65px; height: auto; /* Scaled to match the new nest size */
  z-index: 2;
  opacity: 0;
  transform-origin: bottom center;
}
.bird-static-container {
  position: absolute;
  bottom: 45px;
  right: 70px;
  width: 55px;
  height: 55px;
}
.bird-static {
  position: relative;
  opacity: 1;
  bottom: 0;
  right: 0;
  width: 100%;
}

/* Pecking animation for realistic bird */
@keyframes peckRealistic {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-25deg) translateY(10px); }
}
.pecking-real {
  animation: peckRealistic 0.4s infinite;
}

/* Flying path (from top-right) */
@keyframes flyIn {
  0% { transform: translate(-500px, -200px) scale(0.5); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes flyAway {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(500px, -200px) scale(0.5); opacity: 0; }
}

/* Chirping notes */
.music-note {
  position: absolute;
  font-size: 24px;
  color: var(--coral);
  opacity: 0;
  animation: chirpNote 2.5s ease-out infinite;
}
@keyframes chirpNote {
  0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(40px, -120px) scale(1.5); opacity: 0; }
}

/* Text alignment fix for Schedule */
.scheduling-info {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

/* --- Bouncing Chicks (FAQ Page Bottom) --- */
.chicks-container {
  position: relative;
  width: 100%;
  height: 0;
  z-index: 10;
  pointer-events: none;
}
.chick-wrapper {
  position: absolute;
  bottom: 0; /* Grounded to the footer line */
  width: 35px;
  height: 35px;
  will-change: transform;
}
.chick-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
  transform-origin: bottom center;
}

/* Bouncing animation */
@keyframes chickBounce {
  0%, 100% { transform: translateY(0) scaleY(1); }
  40% { transform: translateY(-15px) scaleY(1.05); }
  60% { transform: translateY(-15px) scaleY(1.05); }
  90% { transform: translateY(0) scaleY(0.95); }
}
.chick-bounce .chick-img {
  animation: chickBounce 0.6s cubic-bezier(0.28, 0.84, 0.42, 1) infinite alternate;
}

/* Running animation */
@keyframes chickRunRight {
  from { transform: translateX(-50px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  to { transform: translateX(calc(100vw + 50px)); opacity: 0; }
}
@keyframes chickRunLeft {
  from { transform: translateX(calc(100vw + 50px)) scaleX(-1); opacity: 0; }
  10% { opacity: 1; transform: translateX(calc(100vw + 30px)) scaleX(-1); }
  90% { opacity: 1; }
  to { transform: translateX(-50px) scaleX(-1); opacity: 0; }
}
.chick-run-r {
  animation: chickRunRight 8s linear infinite;
}
.chick-run-l {
  animation: chickRunLeft 8s linear infinite;
}
/* Running chicks also bounce rapidly */
.chick-run-r .chick-img,
.chick-run-l .chick-img {
  animation: chickBounce 0.25s infinite alternate;
}

/* --- Responsive adjustments for Mobile --- */
@media (max-width: 768px) {
  /* Scale down the nest even further on phones to avoid title/nav overlap */
  .nest-container {
    top: 100px;
    right: 2%;
    width: 120px;
    height: 90px;
  }
  .bird-img {
    width: 45px;
  }
  .bird-static-container {
    bottom: 30px;
    right: 45px;
    width: 35px;
    height: 35px;
  }
  
  /* Make chicks proportionally adorable on small screens */
  .chick-wrapper {
    width: 25px;
    height: 25px;
  }
}

