/* =========================================================
   Hidaya Learning Academy — Global Stylesheet
   Eye-catching, kid-friendly, parent-trustworthy
   ========================================================= */

/* --------- Design tokens --------- */
:root {
  /* Brand colors */
  --teal-50:  #ecfdf5;
  --teal-100: #d1fae5;
  --teal-300: #6ee7b7;
  --teal-500: #10b981;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-900: #134e4a;

  --coral-100: #ffe4d6;
  --coral-300: #fdba74;
  --coral-500: #f97316;
  --coral-600: #ea580c;

  --sun-100: #fef3c7;
  --sun-300: #fcd34d;
  --sun-500: #f59e0b;

  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;

  --pink-300: #f9a8d4;
  --pink-500: #ec4899;

  --cream:    #fffaf0;
  --ivory:    #fef9f3;
  --paper:    #ffffff;
  --ink:      #1e293b;
  --ink-soft: #475569;
  --ink-mute: #64748b;
  --line:     #e2e8f0;

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 118, 110, 0.08);
  --shadow:    0 10px 30px rgba(15, 118, 110, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 118, 110, 0.18);

  /* Type */
  --font-display: "Fredoka", "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --------- Reset & base --------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; font-weight: 600; }
a:hover { color: var(--coral-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-900);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
p  { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

section { padding: 80px 0; position: relative; }
section.tight { padding: 56px 0; }

/* --------- Buttons --------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
  color: #fff;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 30px rgba(234, 88, 12, 0.45); }

.btn-secondary {
  background: #fff;
  color: var(--teal-700);
  border: 2px solid var(--teal-600);
}
.btn-secondary:hover { background: var(--teal-50); color: var(--teal-900); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--teal-700);
  padding: 10px 18px;
}
.btn-ghost:hover { background: var(--teal-50); }

.btn-block { width: 100%; justify-content: center; }

/* --------- Header / Nav --------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--teal-900);
  text-decoration: none;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-500), var(--indigo-600));
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-size: .72rem;
  color: var(--coral-600);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 2px;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--teal-50); color: var(--teal-700); }
.nav-links a.active { background: var(--teal-100); color: var(--teal-900); }
.nav-cta {
  margin-left: 10px;
}
.nav-toggle {
  display: none;
  background: var(--teal-50);
  border: 2px solid var(--teal-100);
  border-radius: 12px;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--teal-700);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px;
    gap: 4px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-cta { margin-left: 0; margin-top: 6px; }
}

/* --------- Hero --------- */
.hero {
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.5), rgba(252, 211, 77, 0) 70%);
  top: -120px; right: -120px;
}
.hero::after {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.45), rgba(110, 231, 183, 0) 70%);
  bottom: -200px; left: -150px;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--teal-700);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--coral-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.25);
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--coral-500), var(--sun-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px 36px;
  align-items: center;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--teal-700);
  line-height: 1;
}
.hero-stat span {
  display: block;
  font-size: .9rem;
  color: var(--ink-mute);
  margin-top: 4px;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
}
.hero-art svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
}

/* --------- Page header (interior pages) --------- */
.page-header {
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.4), transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
}
.page-header::after {
  content: ""; position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.4), transparent 70%);
  bottom: -120px; left: -120px;
  border-radius: 50%;
}
.page-header .container { position: relative; z-index: 1; max-width: 820px; text-align: center; }
.page-header .eyebrow {
  display: inline-block;
  background: #fff;
  color: var(--coral-600);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.page-header p { font-size: 1.12rem; color: var(--ink-soft); }

/* --------- Cards --------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.06);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: #fff;
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .98rem; }
.card .card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--coral-600);
  font-weight: 700;
}
.card .card-link::after { content: " →"; transition: margin .15s ease; display: inline-block; }
.card:hover .card-link::after { margin-left: 4px; }

/* Color variants for icons */
.icon-teal   { background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); }
.icon-coral  { background: linear-gradient(135deg, var(--coral-500), var(--coral-600)); }
.icon-sun    { background: linear-gradient(135deg, var(--sun-300), var(--sun-500)); }
.icon-indigo { background: linear-gradient(135deg, var(--indigo-500), var(--indigo-700)); }
.icon-pink   { background: linear-gradient(135deg, var(--pink-300), var(--pink-500)); }

/* --------- Section header --------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section-head .eyebrow {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-700);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* --------- Alternating split sections --------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split h2 { margin-bottom: 18px; }
.split-art {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.split-art svg { width: 100%; height: 100%; }

.bullet-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.bullet-list li {
  position: relative;
  padding: 10px 0 10px 38px;
  color: var(--ink-soft);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--teal-100) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/16px no-repeat;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .split-art { max-width: 480px; margin: 0 auto; }
}

/* --------- CTA strip --------- */
.cta-strip {
  background: linear-gradient(135deg, var(--teal-700), var(--indigo-700));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 50px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 30px;
  align-items: center;
}
.cta-strip::before {
  content: ""; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.25), transparent 70%);
  top: -100px; right: -50px;
}
.cta-strip h2 { color: #fff; margin-bottom: 8px; }
.cta-strip p { color: rgba(255,255,255,0.85); margin: 0; max-width: 600px; }
.cta-strip .btn-primary { background: #fff; color: var(--coral-600); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.cta-strip .btn-primary:hover { background: var(--cream); }

@media (max-width: 720px) {
  .cta-strip { grid-template-columns: 1fr; text-align: center; padding: 40px 28px; }
}

/* --------- Testimonials --------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid rgba(15, 118, 110, 0.06);
}
.testimonial .quote-mark {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--teal-100);
  line-height: 1;
}
.testimonial p {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 18px;
  font-style: italic;
}
.testimonial .who {
  display: flex; align-items: center; gap: 12px;
}
.testimonial .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
}
.testimonial .who strong {
  display: block;
  color: var(--teal-900);
  font-family: var(--font-display);
}
.testimonial .who span {
  display: block;
  font-size: .85rem;
  color: var(--ink-mute);
}

/* --------- Pricing / option cards --------- */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.option {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.option:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.option.featured {
  border-color: var(--coral-300);
  transform: translateY(-6px);
}
.option .badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--coral-500), var(--sun-500));
  color: #fff;
  font-family: var(--font-display);
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: .05em;
}
.option h3 { color: var(--teal-700); margin-bottom: 6px; }
.option .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--teal-900);
  line-height: 1;
  margin: 14px 0 4px;
}
.option .price small {
  font-size: 1rem;
  color: var(--ink-mute);
  font-weight: 400;
}
.option .price-desc {
  color: var(--ink-mute);
  font-size: .9rem;
  margin-bottom: 22px;
}
.option ul { list-style: none; padding: 0; margin: 0 0 24px; }
.option ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--ink-soft);
  font-size: .96rem;
}
.option ul li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 8px;
  color: var(--teal-600);
  font-weight: 700;
}

/* --------- Forms --------- */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-field { display: block; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-900);
  margin-bottom: 8px;
  font-size: .95rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--ivory);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.form-field .hint {
  display: block;
  color: var(--ink-mute);
  font-size: .82rem;
  margin-top: 6px;
}
.checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 8px 0 22px;
  color: var(--ink-soft);
  font-size: .95rem;
}
.checkbox-row input { margin-top: 4px; }

.form-success, .form-error {
  display: none;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-weight: 600;
}
.form-success {
  background: var(--teal-100);
  color: var(--teal-900);
  border-left: 4px solid var(--teal-600);
}
.form-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #dc2626;
}
.form-success.show, .form-error.show { display: block; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
}

/* --------- FAQ --------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.06);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--teal-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--coral-500);
  line-height: 1;
  transition: transform .2s ease;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  color: var(--ink-soft);
}
.faq-item.open .faq-a { padding: 0 24px 22px; max-height: 500px; }

/* --------- Footer --------- */
.site-footer {
  background: linear-gradient(135deg, var(--teal-900), #0c2a2b);
  color: #cbd5e1;
  padding: 60px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: linear-gradient(135deg, var(--coral-500), var(--sun-500)); }
.site-footer p { color: #94a3b8; font-size: .95rem; }
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin: 8px 0; }
.site-footer ul a { color: #cbd5e1; font-weight: 500; font-size: .95rem; }
.site-footer ul a:hover { color: var(--sun-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: #94a3b8;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------- Misc --------- */
.divider-wave {
  display: block;
  width: 100%;
  height: 60px;
}

.bg-cream  { background: var(--cream); }
.bg-paper  { background: #fff; }
.bg-tealmist { background: linear-gradient(180deg, var(--ivory), var(--teal-50)); }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }

/* Floating decorative shapes */
.float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .6;
  pointer-events: none;
  z-index: 0;
}

/* Accessibility */
:focus-visible {
  outline: 3px solid var(--coral-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  background: var(--teal-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; color: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   SCRAPBOOK LAYER — personality, doodles, stickers, tape
   ========================================================= */
:root {
  --font-hand: "Caveat", "Bradley Hand", "Comic Sans MS", cursive;
  --paper-shadow: 0 6px 0 rgba(15, 23, 42, 0.08);
}

/* Paper-textured body */
body {
  background-color: var(--ivory);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(253, 224, 71, 0.18) 0, transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(110, 231, 183, 0.18) 0, transparent 35%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.97  0 0 0 0 0.93  0 0 0 0 0.85  0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
}

/* Display utilities */
.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: .98;
  letter-spacing: -0.025em;
  color: var(--teal-900);
}
.hand {
  font-family: var(--font-hand);
  font-weight: 600;
  font-style: italic;
}
.hand-accent {
  font-family: var(--font-hand);
  font-weight: 700;
  color: var(--coral-500);
  font-size: 1.25em;
  line-height: .9;
  display: inline-block;
  transform: rotate(-3deg);
}

/* Hand-drawn underline (SVG squiggle) */
.scribble {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.scribble::after {
  content: "";
  position: absolute;
  left: -4%;
  bottom: -14px;
  width: 108%;
  height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'><path d='M2 12 Q 30 2 60 10 T 150 10 T 240 8 T 298 12' stroke='%23f97316' stroke-width='5' fill='none' stroke-linecap='round'/></svg>") no-repeat center/100% 100%;
  pointer-events: none;
}
.scribble.teal::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'><path d='M2 12 Q 30 2 60 10 T 150 10 T 240 8 T 298 12' stroke='%230d9488' stroke-width='5' fill='none' stroke-linecap='round'/></svg>");
}
.scribble.indigo::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'><path d='M2 12 Q 30 2 60 10 T 150 10 T 240 8 T 298 12' stroke='%234f46e5' stroke-width='5' fill='none' stroke-linecap='round'/></svg>");
}

/* Circled emphasis (hand-drawn oval around a word) */
.circled {
  position: relative;
  display: inline-block;
  padding: 0 .15em;
}
.circled::before {
  content: "";
  position: absolute;
  inset: -10% -10%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' preserveAspectRatio='none'><path d='M30 12 Q 100 -4 178 14 Q 196 38 175 60 Q 100 80 22 64 Q 4 38 30 12 Z' stroke='%23f97316' stroke-width='4' fill='none' stroke-linecap='round' stroke-dasharray='1000' stroke-dashoffset='0'/></svg>") no-repeat center/100% 100%;
  pointer-events: none;
}

/* Stickers — small tilted badges */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: var(--teal-900);
  box-shadow: 0 4px 0 rgba(15, 23, 42, 0.08), 0 8px 18px rgba(15, 23, 42, 0.1);
  border: 2px solid currentColor;
  color: var(--teal-700);
  transform: rotate(-4deg);
  transition: transform .2s ease;
}
.sticker:hover { transform: rotate(0) scale(1.05); }
.sticker .emoji { font-size: 1.1rem; }
.sticker.coral { color: var(--coral-600); }
.sticker.indigo { color: var(--indigo-600); }
.sticker.sun { color: var(--sun-500); background: var(--sun-100); }
.sticker.pink { color: var(--pink-500); }
.sticker.tilt-r { transform: rotate(5deg); }
.sticker.tilt-l { transform: rotate(-7deg); }
.sticker.tilt-rr { transform: rotate(8deg); }

/* Tape strip — looks like washi tape holding something in place */
.tape {
  position: absolute;
  width: 90px; height: 22px;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.85), rgba(252, 211, 77, 0.55));
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  z-index: 2;
  pointer-events: none;
}
.tape::before, .tape::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(transparent, rgba(0,0,0,0.05), transparent);
}
.tape::before { left: 0; }
.tape::after { right: 0; }
.tape.coral { background: linear-gradient(135deg, rgba(253, 186, 116, 0.85), rgba(249, 115, 22, 0.5)); }
.tape.teal  { background: linear-gradient(135deg, rgba(110, 231, 183, 0.85), rgba(16, 185, 129, 0.5)); }
.tape.pink  { background: linear-gradient(135deg, rgba(249, 168, 212, 0.85), rgba(236, 72, 153, 0.5)); }
.tape.top-left  { top: -10px; left: 10%; transform: rotate(-8deg); }
.tape.top-right { top: -10px; right: 10%; transform: rotate(7deg); }
.tape.top-center { top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg); }

/* Scrapbook page block — like a piece of paper pinned to a board */
.paper {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05), 0 6px 0 rgba(15, 23, 42, 0.06), var(--shadow);
  position: relative;
}

/* Big bold display hero (replaces .hero) */
.hero-scrap {
  position: relative;
  padding: 80px 0 100px;
  overflow: visible;
}
.hero-scrap .stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
}
.hero-scrap .scribble-eyebrow {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--coral-500);
  transform: rotate(-2deg);
  margin-bottom: 8px;
}
.hero-scrap h1 {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: .98;
  letter-spacing: -0.025em;
  margin: 6px 0 22px;
}
.hero-scrap h1 .hand {
  color: var(--coral-500);
  font-size: 1.1em;
  display: inline-block;
  transform: rotate(-3deg) translateY(8px);
  margin: 0 .05em;
}
.hero-scrap p.lede {
  font-size: 1.2rem;
  max-width: 540px;
  color: var(--ink);
}

.sticker-cluster {
  position: relative;
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Hero collage — overlapping illustrated tiles */
.collage {
  position: relative;
  aspect-ratio: 1 / 1.05;
  width: 100%;
}
.collage > * {
  position: absolute;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.collage-tile {
  background: #fff;
  border: 4px solid #fff;
  overflow: hidden;
  display: grid; place-items: center;
}
.collage-tile.tile-1 {
  top: 0; left: 5%;
  width: 56%; aspect-ratio: 1;
  transform: rotate(-4deg);
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  z-index: 2;
}
.collage-tile.tile-2 {
  top: 38%; right: 0;
  width: 52%; aspect-ratio: 4/5;
  transform: rotate(5deg);
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  z-index: 3;
}
.collage-tile.tile-3 {
  bottom: 0; left: 0;
  width: 42%; aspect-ratio: 1;
  transform: rotate(-7deg);
  background: linear-gradient(135deg, #ffe4d6, #fdba74);
  z-index: 4;
}
.collage-doodle {
  position: absolute;
  pointer-events: none;
  z-index: 5;
}
.collage-doodle.arrow-1 {
  top: 24%; right: 38%;
  width: 90px; height: 90px;
}
.collage-doodle.star-1 { top: -8px; right: -4px; width: 60px; height: 60px; z-index: 6; }
.collage-doodle.heart-1 { bottom: 24%; left: 32%; width: 50px; height: 50px; z-index: 6; }

/* Floating shapes */
.float-blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
@keyframes drift {
  0%,100% { transform: translateY(0) rotate(0); }
  50%     { transform: translateY(-14px) rotate(6deg); }
}
@keyframes wiggle {
  0%,100% { transform: rotate(-4deg); }
  50%     { transform: rotate(4deg); }
}
@keyframes float-up {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
.animate-drift  { animation: drift 6s ease-in-out infinite; }
.animate-wiggle { animation: wiggle 3s ease-in-out infinite; }
.animate-float  { animation: float-up 4s ease-in-out infinite; }

@media (max-width: 900px) {
  .hero-scrap .stage { grid-template-columns: 1fr; gap: 30px; }
  .collage { max-width: 460px; margin: 0 auto; }
}

/* =========================================================
   BENTO PROGRAMS GRID — asymmetric, characterful
   ========================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}
.bento .tile {
  position: relative;
  padding: 30px 28px;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 0 rgba(15,23,42,.06), 0 10px 28px rgba(15, 118, 110, 0.1);
}
.bento .tile:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 4px 0 rgba(15,23,42,.08), 0 20px 40px rgba(15, 118, 110, 0.18);
}
.bento .tile h3 {
  font-size: 1.6rem;
  margin: 0 0 6px;
  color: inherit;
}
.bento .tile p {
  margin: 0;
  font-size: .98rem;
  color: inherit;
  opacity: .95;
}
.bento .tile.cream p { color: var(--ink-soft); opacity: 1; }
.bento .tile .label {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  position: absolute;
  top: 18px; right: 22px;
  opacity: .8;
}
.bento .tile .deco {
  position: absolute;
  pointer-events: none;
  opacity: .25;
}

/* Sizing variants */
.bento .span-3 { grid-column: span 3; }
.bento .span-2 { grid-column: span 2; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.bento .row-2 { grid-row: span 2; }

/* Color block variants */
.tile.teal   { background: linear-gradient(135deg, #0f766e, #115e59); color: #fff; }
.tile.teal h3 { color: #fff; }
.tile.coral  { background: linear-gradient(135deg, #fb923c, #f97316); color: #fff; }
.tile.coral h3 { color: #fff; }
.tile.sun    { background: linear-gradient(135deg, #fcd34d, #fbbf24); color: #422006; }
.tile.sun h3 { color: #422006; }
.tile.indigo { background: linear-gradient(135deg, #6366f1, #4338ca); color: #fff; }
.tile.indigo h3 { color: #fff; }
.tile.cream  { background: #fff; color: var(--ink); border: 2px dashed var(--teal-300); }
.tile.cream h3 { color: var(--teal-700); }
.tile.pink   { background: linear-gradient(135deg, #f9a8d4, #ec4899); color: #fff; }
.tile.pink h3 { color: #fff; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .span-3, .bento .span-2, .bento .span-4, .bento .span-6 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .span-3, .bento .span-2, .bento .span-4, .bento .span-6 { grid-column: span 1; }
}

/* =========================================================
   MARQUEE / ticker
   ========================================================= */
.marquee-strip {
  background: var(--teal-900);
  color: var(--sun-300);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  border-top: 4px solid var(--coral-500);
  border-bottom: 4px solid var(--coral-500);
}
.marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
  width: max-content;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -.01em;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.marquee span::after {
  content: "★";
  color: var(--coral-500);
  font-size: 1.2rem;
  margin-left: 28px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   POLAROID testimonials
   ========================================================= */
.polaroid-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 38px;
  padding: 30px 0;
}
.polaroid {
  background: #fff;
  padding: 14px 14px 26px;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 6px 0 rgba(0,0,0,.04), 0 20px 40px rgba(15, 118, 110, .12);
  transition: transform .25s ease;
}
.polaroid:nth-child(odd)  { transform: rotate(-2.5deg); }
.polaroid:nth-child(even) { transform: rotate(2deg); }
.polaroid:nth-child(3n)   { transform: rotate(-1deg); }
.polaroid:hover { transform: rotate(0) scale(1.03); z-index: 5; }
.polaroid .photo {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  background: var(--teal-100);
  position: relative;
  overflow: hidden;
}
.polaroid .photo svg { width: 100%; height: 100%; }
.polaroid blockquote {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
.polaroid .caption {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--teal-900);
  margin-top: 10px;
  display: block;
  text-align: center;
}
.polaroid .caption small {
  display: block;
  font-family: var(--font-body);
  font-size: .82rem;
  color: var(--ink-mute);
  margin-top: 2px;
}

/* =========================================================
   COLOR BLOCK SECTION (full-width bold band)
   ========================================================= */
.block-band {
  background: var(--teal-700);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.block-band.coral { background: linear-gradient(135deg, var(--coral-500), var(--coral-600)); }
.block-band.indigo { background: linear-gradient(135deg, var(--indigo-600), var(--indigo-700)); }
.block-band.sun { background: linear-gradient(135deg, var(--sun-300), var(--sun-500)); color: #422006; }
.block-band h2, .block-band h3 { color: inherit; }
.block-band p { color: rgba(255,255,255,.92); }
.block-band.sun p { color: #6b3a05; }

/* Decorative scattered dots/shapes inside */
.block-band .scatter {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle 4px at 10% 20%, rgba(255,255,255,.25), transparent),
    radial-gradient(circle 6px at 80% 30%, rgba(255,255,255,.2), transparent),
    radial-gradient(circle 5px at 25% 80%, rgba(255,255,255,.25), transparent),
    radial-gradient(circle 4px at 70% 70%, rgba(255,255,255,.2), transparent),
    radial-gradient(circle 6px at 50% 10%, rgba(255,255,255,.25), transparent);
}

/* =========================================================
   STAT badges (numbers w/ scribble underline)
   ========================================================= */
.stat-pile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}
.stat {
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  display: inline-block;
}
.stat .scrib {
  display: block;
  height: 12px;
  margin: 6px auto 12px;
  width: 70%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M5 8 Q 40 0 80 6 T 150 5 T 195 8' stroke='%23f97316' stroke-width='4' fill='none' stroke-linecap='round'/></svg>") no-repeat center/100% 100%;
}
.stat p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

@media (max-width: 600px) {
  .stat-pile { grid-template-columns: 1fr; }
}

/* Arrow doodle utility */
.arrow-doodle {
  display: inline-block;
  width: 50px; height: 28px;
  vertical-align: middle;
  margin: 0 8px;
}

/* CTA refinement — more personality */
.btn-primary { box-shadow: 0 4px 0 rgba(180, 60, 0, .4), 0 12px 24px rgba(234, 88, 12, .35); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(180, 60, 0, .4); }

/* Subtle pin (drawing pin / thumbtack) */
.pin {
  position: absolute;
  width: 22px; height: 22px;
  background: radial-gradient(circle at 35% 35%, #fca5a5, #dc2626 60%, #7f1d1d);
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,.25), inset 0 -3px 6px rgba(0,0,0,.2);
}
.pin.top { top: 12px; left: 50%; transform: translateX(-50%); }

/* Section spacing override (the new design wants more air) */
section.scrap { padding: 100px 0; }
@media (max-width: 720px) { section.scrap { padding: 60px 0; } }

