/* ============================================================
   BIG HEART — Playful Children's Design System
   Palette: Brand Red + Brand Blue + Brand Yellow
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --ink:      #1a365d; /* Dark navy text to compliment the logo blue */
  --red:      #e52b34; /* Exact logo red */
  --yellow:   #f4bc33; /* Exact logo spine yellow */
  --blue:     #2c6db4; /* Exact logo page blue */
  --green:    #8ac926; /* Kept for accent variety */
  --purple:   #6a4c93; /* Kept for accent variety */
  --cream:    #ffffff; /* Clean white for cards */
  --parchment:#f6f3eb; /* Logo's warm cream background */
  --sky-light:#eaf2f8; /* Soft blue background tint */

  --font-display: 'Fredoka One', cursive; 
  --font-body:    'Nunito', sans-serif;   
  --font-ui:      'Nunito', sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px; 

  --ease-bouncy: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--blue);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px; 
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

/* ── TYPOGRAPHY SCALE ───────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 1px;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); color: var(--blue); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); color: var(--red); }
h3 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); }

p { font-family: var(--font-body); font-weight: 600; color: #3a4b66; margin-bottom: 16px; }

.text-red    { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-blue   { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-green  { color: var(--green); }
.text-ink    { color: var(--ink); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 16px 32px;
  border-radius: 50px; 
  border: 4px solid transparent;
  transition: all 0.3s var(--ease-bouncy);
  white-space: nowrap;
  box-shadow: 0 6px 0 rgba(0,0,0,0.1); 
}
.btn:active {
  transform: translateY(6px);
  box-shadow: 0 0px 0 rgba(0,0,0,0.1);
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: #c72028;
}
.btn-primary:hover {
  background: #ff4049;
  transform: translateY(-4px);
  box-shadow: 0 10px 0 #c72028;
}
.btn-secondary {
  background: var(--yellow);
  color: var(--ink);
  border-color: #dca320;
}
.btn-secondary:hover {
  background: #ffcc4f;
  transform: translateY(-4px);
  box-shadow: 0 10px 0 #dca320;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 4px solid var(--sky-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.35s ease;
}
.navbar.nav-hidden {
  transform: translateY(-100%);
}
body { padding-top: 88px; }
@media (max-width: 768px) { body { padding-top: 78px; } }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 80px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 55px; 
  width: auto;
  transition: transform 0.3s var(--ease-bouncy);
}
.nav-logo-img:hover {
  transform: scale(1.05) rotate(-2deg);
}

.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }

/* ── HERO SECTION ───────────────────────────────────────── */
.hero {
  background: var(--sky-light);
  padding: 60px 0;
  text-align: center;
  border-bottom: 8px solid var(--blue);
}
.hero-h1 { margin-bottom: 24px; }
.hero-deck {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--ink);
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.hero-stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  background: var(--cream);
  padding: 24px;
  border-radius: var(--r-lg);
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 8px 0 rgba(0,0,0,0.05);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--blue);
}
.stat-label {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1rem;
}

/* ── PROGRAMS GRID ──────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.program-tile {
  background: var(--cream);
  padding: 32px;
  border-radius: var(--r-lg);
  text-align: center;
  border: 4px solid var(--parchment);
  transition: all 0.3s var(--ease-bouncy);
}
.program-tile:hover {
  transform: translateY(-10px);
  border-color: var(--yellow);
  box-shadow: 0 12px 0 var(--yellow);
}
.program-tile-icon { font-size: 3rem; margin-bottom: 16px; }
.program-tile-name, .program-tile h3 { font-size: 1.8rem; margin-bottom: 12px; color: var(--ink); }

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--blue);
  color: var(--cream);
  padding: 60px 0 20px;
  text-align: center;
}
footer a { color: var(--cream); font-weight: bold; transition: color 0.2s; }
footer a:hover { color: var(--yellow); }

/* ── HAMBURGER & MOBILE NAV ─────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  margin-left: auto;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  background: var(--ink);
  border-radius: 4px;
  transition: all 0.3s;
}

.mobile-nav {
  display: none !important;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 200;
  flex-direction: column;
  padding: 80px 40px 40px;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.mobile-nav.open { 
  display: flex !important;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
  text-align: center;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--red); }
.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
}

/* ── RESPONSIVE TWEAKS (MOBILE FIXES) ───────────────────── */
@media (max-width: 768px) {
  /* Nav Fixes */
  .nav-links, .nav-actions { display: none !important; }
  .hamburger { display: flex; margin-left: auto; }
  .nav-inner { height: 70px; gap: 0; }
  .nav-logo-img { height: 45px; }

  /* Hero Fixes */
  .hero-h1 { font-size: 2.2rem; }
  .hero-deck { font-size: 1.1rem; padding: 0 10px; }
  .hero-ctas { 
    flex-direction: column; 
    width: 100%; 
    padding: 0 20px;
  }
  .hero-ctas .btn { width: 100%; }
  
  /* Stats Bar Fix */
  .hero-stats-bar { 
    flex-direction: column; 
    gap: 16px; 
    padding: 24px; 
    width: calc(100% - 40px);
    margin: 0 auto;
  }
  .stat-block { width: 100%; text-align: center; }

  /* General Grid Fixes */
  .programs-grid { grid-template-columns: 1fr; }
  section { padding: 40px 0 !important; }
}