/* ===== Penny's Learning World — styles ===== */
:root {
  --penny-pink: #F4A6B8;
  --penny-pink-deep: #E8718E;
  --sunny-orange: #E8924A;
  --owl-brown: #7A5C3E;
  --sky-gold: #FDE7A9;
  --meadow: #8FCB6B;
  --cream: #FFFBF2;
  --ink: #3A2E2A;
  --soft: #6E625C;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(122, 92, 62, 0.12);
  --radius: 22px;
  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
h1, h2, h3, .logo-text, .btn { font-family: var(--font-head); }
a { text-decoration: none; color: inherit; }
.hl { color: var(--penny-pink-deep); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 251, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #f0e3cf;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo-pig { font-size: 1.7rem; }
.logo-text { font-size: 1.15rem; color: var(--penny-pink-deep); }
.nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); font-weight: 700; }
.nav a { color: var(--soft); transition: color .2s; }
.nav a:hover { color: var(--penny-pink-deep); }
.nav-cta {
  background: var(--penny-pink-deep); color: var(--white) !important;
  padding: 8px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--penny-pink); }

/* ===== Hero ===== */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 30px;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 5vw, 64px);
  background: linear-gradient(160deg, var(--sky-gold) 0%, #fff6e0 60%, var(--cream) 100%);
}
.eyebrow {
  display: inline-block; font-weight: 800; color: var(--sunny-orange);
  letter-spacing: .5px; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 800; }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--soft); margin-top: 18px; max-width: 30ch; }
.tagline { font-family: var(--font-head); font-size: 1.3rem; color: var(--penny-pink-deep); margin-top: 16px; font-weight: 700; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.btn {
  display: inline-block; font-weight: 800; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s; box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--penny-pink-deep); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--penny-pink-deep); border: 2px solid var(--penny-pink); }

.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 280px; }
.hero-pig {
  font-size: clamp(8rem, 20vw, 14rem);
  filter: drop-shadow(0 16px 24px rgba(122,92,62,.25));
  animation: bob 3s ease-in-out infinite;
}
.coin { position: absolute; font-size: 2.6rem; animation: float 4s ease-in-out infinite; }
.coin-1 { top: 12%; left: 16%; animation-delay: .2s; }
.coin-2 { bottom: 18%; left: 8%; animation-delay: 1s; }
.coin-3 { top: 22%; right: 12%; animation-delay: 1.6s; font-size: 3rem; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(6deg); } }

/* ===== Value strip ===== */
.value-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 5vw, 60px);
  padding: 26px 16px; background: var(--white); border-bottom: 2px solid #f0e3cf;
}
.value { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--soft); }
.value span { font-size: 1.6rem; }

/* ===== Sections ===== */
.section { padding: clamp(50px, 7vw, 90px) clamp(16px, 5vw, 64px); }
.section-alt { background: #fff6e6; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: var(--ink); }
.section-head p { color: var(--soft); margin-top: 8px; font-size: 1.1rem; }

/* ===== Episodes ===== */
.episode-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.ep-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s; display: flex; flex-direction: column;
}
.ep-card:hover { transform: translateY(-5px); }
.ep-thumb {
  position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--white);
}
.ep-badge {
  position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.9);
  color: var(--ink); font-weight: 800; font-size: .72rem; padding: 4px 10px; border-radius: 999px;
}
.ep-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.12); opacity: 0; transition: opacity .2s;
}
.ep-card:hover .ep-play { opacity: 1; }
.ep-play span { background: rgba(255,255,255,.95); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: var(--penny-pink-deep); }
.ep-body { padding: 16px 18px 20px; }
.ep-num { font-weight: 800; color: var(--sunny-orange); font-size: .8rem; }
.ep-title { font-family: var(--font-head); font-size: 1.15rem; margin: 4px 0 6px; }
.ep-lesson { color: var(--soft); font-size: .95rem; }
.more-note { text-align: center; color: var(--soft); margin-top: 30px; font-weight: 700; }

/* ===== Characters ===== */
.char-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px; max-width: 1000px; margin: 0 auto;
}
.char-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 22px; text-align: center;
  box-shadow: var(--shadow); transition: transform .18s;
}
.char-card:hover { transform: translateY(-5px) rotate(-1deg); }
.char-emoji { font-size: 3.4rem; }
.char-card h3 { margin: 10px 0 6px; color: var(--penny-pink-deep); }
.char-card p { color: var(--soft); font-size: .95rem; }

/* ===== Printables ===== */
.printable-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; max-width: 1000px; margin: 0 auto;
}
.print-card {
  background: var(--white); border: 2px dashed var(--penny-pink); border-radius: var(--radius);
  padding: 22px; text-align: center; transition: transform .18s, background .2s;
}
.print-card:hover { transform: translateY(-4px); background: #fff0f4; }
.print-icon { font-size: 2.6rem; }
.print-card h3 { font-size: 1.05rem; margin: 8px 0; }
.print-card a { font-weight: 800; color: var(--penny-pink-deep); }

/* ===== Subscribe ===== */
.subscribe {
  padding: clamp(50px, 7vw, 90px) clamp(16px, 5vw, 64px);
  background: linear-gradient(160deg, var(--penny-pink) 0%, var(--penny-pink-deep) 100%);
  color: var(--white); text-align: center;
}
.subscribe-inner { max-width: 620px; margin: 0 auto; }
.subscribe h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.subscribe p { margin-top: 12px; font-size: 1.1rem; opacity: .95; }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.subscribe-form input {
  flex: 1 1 220px; min-width: 0; padding: 14px 18px; border-radius: 999px; border: none;
  font-family: var(--font-body); font-size: 1rem;
}
.subscribe-form .btn-primary { background: var(--owl-brown); flex: 0 0 auto; }
.subscribe-form .btn-primary:hover { background: #5e472f; }
.form-msg { margin-top: 16px; font-weight: 800; min-height: 1.4em; }
.form-note { margin-top: 10px; font-size: .85rem; opacity: .8; }

/* ===== Parents ===== */
.parents-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px; max-width: 1000px; margin: 0 auto;
}
.parent-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.parent-card h3 { color: var(--sunny-orange); margin-bottom: 8px; }
.parent-card p { color: var(--soft); }

/* ===== Footer ===== */
.site-footer { background: var(--owl-brown); color: #fff; text-align: center; padding: 44px 16px; }
.footer-brand { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; }
.footer-tag { color: var(--sky-gold); font-family: var(--font-head); margin: 6px 0 18px; }
.footer-nav { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-weight: 700; }
.footer-nav a { opacity: .85; }
.footer-nav a:hover { opacity: 1; }
.footer-copy { margin-top: 20px; font-size: .85rem; opacity: .7; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .nav a:not(.nav-cta) { display: none; }
  .hero-art { order: -1; min-height: 200px; }
}
