/* ==========================================================================
   Little Sprout Academy - garden palette, mobile-first, no external assets
   ========================================================================== */

:root {
  --leaf: #2f6b3a;          /* deep leaf green, primary */
  --leaf-dark: #24512c;
  --leaf-soft: #4f8f57;
  --sprout: #7fb069;        /* light young-leaf green */
  --cream: #fdf8ec;         /* warm cream background */
  --cream-deep: #f6edd8;
  --sun: #f4b942;           /* sunshine accent */
  --sun-soft: #fbe3a8;
  --berry: #c65b7c;
  --sky: #6fa8c9;
  --soil: #7a5c3e;
  --ink: #2b3a2e;
  --ink-soft: #5a6b5d;
  --card: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 18px rgba(47, 107, 58, 0.10);
  --shadow-lift: 0 10px 26px rgba(47, 107, 58, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
}

img { max-width: 100%; }

a { color: var(--leaf); }

.wrap {
  width: min(1080px, 92%);
  margin: 0 auto;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 236, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--cream-deep);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--leaf-dark);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.brand span.tag { color: var(--leaf-soft); font-weight: 600; }

/* CSS-drawn sprout logo: pot-less stem with two leaves */
.sprout-logo {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
}
.sprout-logo::before,
.sprout-logo::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--sprout), var(--leaf));
}
.sprout-logo::before {
  left: 1px;
  border-radius: 0 80% 0 80%;
  transform: rotate(-18deg);
}
.sprout-logo::after {
  right: 1px;
  border-radius: 80% 0 80% 0;
  transform: rotate(18deg);
}
.sprout-logo .stem {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 4px;
  height: 15px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--leaf);
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.nav-links a:hover { color: var(--leaf); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--card);
  border: 2px solid var(--cream-deep);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle .bar {
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: var(--leaf);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* open state (class set by JS on <header>) */
.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 2px solid var(--cream-deep);
  box-shadow: var(--shadow);
  padding: 0.5rem 4%;
}

.nav-open .nav-links li a {
  display: block;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--cream-deep);
}

.nav-open .nav-links li:last-child a { border-bottom: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn-primary {
  background: var(--leaf);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--leaf-dark); color: #fff; }

.btn-sun {
  background: var(--sun);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.btn-ghost {
  border: 2px solid var(--leaf);
  color: var(--leaf);
}

.nav-cta { padding: 0.55rem 1.2rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse 120% 60% at 50% 115%, var(--sun-soft) 0%, transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.hero-inner { text-align: center; position: relative; }

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.15;
  color: var(--leaf-dark);
  margin: 0.5rem 0 1rem;
  font-weight: 800;
}

.hero h1 .sun-word { color: var(--sun); }

.hero .lede {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 auto 2rem;
}

.hero-badge {
  display: inline-block;
  background: var(--card);
  color: var(--leaf);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--sprout);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* floating CSS leaves in hero */
.float-leaf {
  position: absolute;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--sprout), var(--leaf-soft));
  border-radius: 0 70% 0 70%;
  opacity: 0.35;
  animation: sway 6s ease-in-out infinite;
}
.float-leaf.l1 { top: 8%; left: 6%; transform: rotate(15deg); }
.float-leaf.l2 { top: 20%; right: 8%; width: 26px; height: 26px; animation-delay: 1.5s; }
.float-leaf.l3 { bottom: 12%; left: 12%; width: 22px; height: 22px; animation-delay: 3s; }
.float-leaf.l4 { bottom: 20%; right: 14%; animation-delay: 2s; }

@keyframes sway {
  0%, 100% { transform: translateY(0) rotate(10deg); }
  50% { transform: translateY(-12px) rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .float-leaf { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Stats row ---------- */

.stats {
  margin-top: -2.2rem;
  position: relative;
  z-index: 5;
  padding-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 1.2rem;
}

.stat {
  text-align: center;
  padding: 0.6rem 0.3rem;
}

.stat .num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--leaf);
}

.stat .lbl {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- Sections ---------- */

.section { padding: 4rem 0; }

.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }

.section-head .eyebrow {
  display: inline-block;
  color: var(--soil);
  background: var(--sun-soft);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  color: var(--leaf-dark);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.section-head p { color: var(--ink-soft); }

/* ---------- Pillar cards ---------- */

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.pillar-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--accent, var(--leaf));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.pillar-card h3 { color: var(--leaf-dark); margin-bottom: 0.4rem; font-size: 1.15rem; }

.pillar-card p { color: var(--ink-soft); font-size: 0.95rem; }

.pillar-card .friend {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent, var(--leaf));
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent, var(--leaf));
  margin-bottom: 0.9rem;
}

/* per-pillar accents */
.acc-alphabet { --accent: #2f6b3a; }
.acc-numbers  { --accent: #f4b942; }
.acc-math     { --accent: #7a5c3e; }
.acc-reading  { --accent: #c65b7c; }
.acc-science  { --accent: #6fa8c9; }
.acc-virtues  { --accent: #7fb069; }

.acc-numbers .pillar-icon { color: var(--ink); }

/* ---------- Approach ---------- */

.approach { background: var(--leaf); color: #f2f7f0; border-radius: 0; }

.approach .section-head h2 { color: #fff; }
.approach .section-head p { color: #d7e6d4; }
.approach .section-head .eyebrow { background: var(--leaf-dark); color: var(--sun-soft); }

.gate-quote {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  background: var(--leaf-dark);
  border-left: 6px solid var(--sun);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
}

.gate-quote blockquote {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.gate-quote cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-size: 0.9rem;
  color: #cfe0cb;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}

.badge .dot {
  width: 12px;
  height: 12px;
  border-radius: 0 70% 0 70%;
  background: var(--sun);
  flex: none;
}

.approach-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.approach-point {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
}

.approach-point h3 { color: var(--sun-soft); font-size: 1.02rem; margin-bottom: 0.35rem; }
.approach-point p { color: #dcead9; font-size: 0.93rem; }

/* ---------- Characters ---------- */

.friend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.friend-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.friend-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent, var(--leaf));
  position: relative;
  border: 4px solid var(--cream-deep);
}

/* little leaf sprouting off every avatar */
.friend-avatar::after {
  content: "";
  position: absolute;
  top: -10px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--sprout), var(--leaf));
  border-radius: 0 75% 0 75%;
  transform: rotate(20deg);
}

.friend-card h3 { color: var(--leaf-dark); font-size: 1.1rem; }

.friend-card .role {
  color: var(--accent, var(--leaf));
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.friend-card p { color: var(--ink-soft); font-size: 0.92rem; }

.friend-card .catchphrase {
  margin-top: 0.7rem;
  font-style: italic;
  color: var(--ink);
  font-size: 0.9rem;
}

.draft-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--sun-soft);
  color: var(--soil);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.draft-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  max-width: 34rem;
  margin: 1.6rem auto 0;
}

/* ---------- Footer CTA + footer ---------- */

.footer-cta {
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, var(--sun-soft) 0%, transparent 60%),
    var(--cream-deep);
  text-align: center;
  padding: 4.5rem 0;
}

.footer-cta h2 {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  color: var(--leaf-dark);
  margin-bottom: 0.8rem;
}

.footer-cta p { color: var(--ink-soft); max-width: 34rem; margin: 0 auto 1.8rem; }

.site-footer {
  background: var(--leaf-dark);
  color: #cfe0cb;
  padding: 2.2rem 0;
  font-size: 0.9rem;
}

.site-footer .foot-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.site-footer a { color: var(--sun-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer .brand { color: #fff; }

/* ---------- Lessons page ---------- */

.page-hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--leaf-dark);
  margin-bottom: 0.7rem;
}

.page-hero p { color: var(--ink-soft); max-width: 40rem; margin: 0 auto; }

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}

table.grid-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 720px;
  font-size: 0.88rem;
}

.grid-table th, .grid-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--cream-deep);
}

.grid-table thead th {
  background: var(--leaf);
  color: #fff;
  font-size: 0.85rem;
  position: sticky;
  top: 0;
}

.grid-table tbody th {
  background: var(--cream);
  color: var(--leaf-dark);
  white-space: nowrap;
  font-size: 0.9rem;
}

.grid-table tbody tr:last-child th,
.grid-table tbody tr:last-child td { border-bottom: none; }

.band-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.band-seedling { background: #e4f0dd; color: #3f6d33; }
.band-sprout   { background: #fdeec9; color: #8a6414; }
.band-sapling  { background: #ddeaf3; color: #33607d; }

/* pillar lesson sections */

.pillar-section { padding: 3rem 0 0.5rem; scroll-margin-top: 84px; }

.pillar-section:last-of-type { padding-bottom: 3rem; }

.pillar-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.pillar-head .pillar-icon { margin-bottom: 0; flex: none; }

.pillar-head h2 { color: var(--leaf-dark); font-size: 1.45rem; line-height: 1.25; }

.pillar-meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
}

.pillar-meta strong { color: var(--accent, var(--leaf)); }

.lesson-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.lesson-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--accent, var(--leaf));
}

.lesson-item .lesson-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.lesson-item h3 { font-size: 1rem; color: var(--ink); }

.lesson-item .echo {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: italic;
}

.lesson-item .echo strong { font-style: normal; color: var(--accent, var(--leaf)); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.series-note {
  margin-top: 1.2rem;
  background: var(--sun-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  color: var(--soil);
}

.rhythm-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 40rem;
  margin: 2rem auto 0;
}

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .friend-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-points { grid-template-columns: repeat(3, 1fr); }
  .lesson-list { grid-template-columns: repeat(2, 1fr); }
  .site-footer .foot-grid {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 900px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .friend-grid { grid-template-columns: repeat(3, 1fr); }

  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}
