/* ==========================================================================
   Kidspark Creative — Brand Stylesheet
   Colors: Navy #1E212B · Green #4D9B31 · Yellow #FFCB00 · Orange #FF9427
   Fonts: Fredoka (display) · Nunito (body)
   ========================================================================== */

:root {
  --navy: #1E212B;
  --navy-soft: #2C2F3D;
  --green: #4D9B31;
  --green-dark: #3D7C27;
  --yellow: #FFCB00;
  --orange: #FF9427;
  --orange-dark: #E97F12;
  --white: #FFFFFF;
  --cream: #FFFBF3;
  --cream-deep: #FFF3E0;
  --ink: #2A2A2E;
  --ink-soft: #5B5D6B;

  --font-display: "Fredoka", "Baloo 2", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(30, 33, 43, 0.08);
  --shadow-md: 0 12px 30px rgba(30, 33, 43, 0.12);
  --shadow-lg: 0 20px 45px rgba(30, 33, 43, 0.18);

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255, 148, 39, 0.12);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

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

.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.lede {
  max-width: 620px;
  font-size: 1.1rem;
}
.text-center .lede { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--orange);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(255, 148, 39, 0.35);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }

.btn-secondary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(30, 33, 43, 0.25);
}
.btn-secondary:hover { background: #30343F; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline.on-dark { color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline.on-dark:hover { background: var(--white); color: var(--navy); }

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(255, 203, 0, 0.35);
}
.btn-yellow:hover { background: #ffd633; transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 243, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 33, 43, 0.06);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
}
.brand img { width: 44px; height: 44px; }
.brand .spark { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 3px;
  background: var(--orange);
  border-radius: var(--radius-pill);
  transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--orange-dark); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  z-index: 110;
}
.nav-toggle span {
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 60px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--orange); }
.hero p.lede { margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div { font-family: var(--font-display); }
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--navy); }
.hero-stats span { font-size: 0.85rem; color: var(--ink-soft); font-family: var(--font-body); }

.hero-art {
  position: relative;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
}
.hero-art .blob-1 {
  width: 86%; height: 86%;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
  opacity: 0.9;
  animation: morph 12s ease-in-out infinite;
}
.hero-art .icon-hero {
  position: relative;
  width: 58%;
  filter: drop-shadow(0 18px 30px rgba(30,33,43,0.25));
  animation: float-slow 6s ease-in-out infinite;
}
.floaty {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float-slow 5s ease-in-out infinite;
}
.floaty svg { width: 60%; height: 60%; }
.f1 { width: 64px; height: 64px; top: 6%; left: 2%; color: var(--green); animation-delay: 0.2s; }
.f2 { width: 58px; height: 58px; bottom: 12%; left: -2%; color: var(--orange); animation-delay: 1.1s; }
.f3 { width: 60px; height: 60px; top: 4%; right: 0%; color: var(--yellow); animation-delay: 0.6s; }
.f4 { width: 56px; height: 56px; bottom: 6%; right: 4%; color: var(--navy); animation-delay: 1.6s; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; }
  50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
}

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--navy);
  color: var(--white);
  padding: 14px 0;
  overflow: hidden;
}
.strip-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.strip-track span { display: flex; align-items: center; gap: 12px; }
.strip-track .dot { color: var(--yellow); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Zigzag divider ---------- */
.zigzag {
  height: 22px;
  width: 100%;
  background-repeat: repeat-x;
  background-size: 44px 22px;
}
.zigzag-light {
  background-image: linear-gradient(135deg, var(--cream) 25%, transparent 25%),
    linear-gradient(225deg, var(--cream) 25%, transparent 25%);
  background-color: var(--navy);
  background-position: 0 0, 22px 0;
}
.zigzag-dark {
  background-image: linear-gradient(135deg, var(--navy) 25%, transparent 25%),
    linear-gradient(225deg, var(--navy) 25%, transparent 25%);
  background-color: var(--cream);
  background-position: 0 0, 22px 0;
}

/* ---------- Pillars / Feature cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.icon-badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 28px; height: 28px; }
.bg-orange { background: rgba(255,148,39,0.14); color: var(--orange-dark); }
.bg-green { background: rgba(77,155,49,0.14); color: var(--green-dark); }
.bg-yellow { background: rgba(255,203,0,0.18); color: #a17800; }
.bg-navy { background: rgba(30,33,43,0.08); color: var(--navy); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Section backgrounds ---------- */
.section-cream-deep { background: var(--cream-deep); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.72); }

/* ---------- Product / Shop cards ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-thumb {
  height: 190px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-thumb svg { width: 86px; height: 86px; }
.product-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { margin-bottom: 8px; }
.product-body p { font-size: 0.95rem; margin-bottom: 18px; }
.product-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed rgba(30,33,43,0.12);
}
.price { font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.price span { font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; font-family: var(--font-body); }

.badge {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-soon { background: var(--navy); color: var(--white); }
.badge-free { background: var(--green-dark); color: var(--white); }
.badge-popular { background: var(--yellow); color: var(--navy); }

/* ---------- Testimonial / Quote ---------- */
.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote-card .stars { color: var(--yellow); margin-bottom: 14px; display: flex; gap: 4px; }
.quote-card .stars svg { width: 18px; height: 18px; }
.quote-card footer { margin-top: 18px; font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.quote-card footer span { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(120deg, var(--orange), var(--yellow));
  border-radius: var(--radius-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
  color: var(--navy);
  position: relative;
  overflow: hidden;
}
.newsletter h2 { color: var(--navy); margin-bottom: 10px; }
.newsletter p { color: rgba(30,33,43,0.78); }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 15px 20px;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}
.newsletter-form input::placeholder { color: var(--ink-soft); }
.form-note { font-size: 0.8rem; margin-top: 10px; color: rgba(30,33,43,0.65); }
.form-success { display: none; font-family: var(--font-display); font-weight: 600; color: var(--navy); background: rgba(255,255,255,0.6); padding: 14px 18px; border-radius: var(--radius-md); }
.form-success.show { display: block; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.78); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer .brand { color: var(--white); margin-bottom: 16px; }
.footer-about p { color: rgba(255,255,255,0.6); font-size: 0.95rem; max-width: 280px; }
.footer h4 { color: var(--white); font-family: var(--font-display); font-size: 1rem; margin-bottom: 18px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: color 0.2s ease; }
.footer ul a:hover { color: var(--yellow); }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--orange); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  flex-wrap: wrap; gap: 10px;
}
.footer-mini-form { display: flex; gap: 8px; }
.footer-mini-form input {
  padding: 11px 16px; border-radius: var(--radius-pill); border: none;
  background: rgba(255,255,255,0.1); color: var(--white); font-family: var(--font-body);
  min-width: 180px;
}
.footer-mini-form input::placeholder { color: rgba(255,255,255,0.5); }

/* ---------- Contact / Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-display); font-size: 0.9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(30,33,43,0.14);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,148,39,0.14);
}
.field textarea { resize: vertical; min-height: 130px; }

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); }
.contact-row { display: flex; gap: 14px; margin-top: 22px; align-items: flex-start; }
.contact-row .icon-badge { flex-shrink: 0; margin-bottom: 0; background: rgba(255,255,255,0.1); color: var(--yellow); }
.contact-row strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 0.95rem; }
.contact-row span { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

.partner-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  font-size: 0.88rem; margin: 4px 6px 4px 0;
}

/* ---------- Page header (About/Shop/Contact) ---------- */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 150px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header h1 { color: var(--white); margin-bottom: 14px; }
.page-header p { color: rgba(255,255,255,0.72); max-width: 600px; margin: 0 auto; }
.page-header .blob { opacity: 0.5; }

/* ---------- Misc utilities ---------- */
.mt-lg { margin-top: 64px; }
.divider-space { height: 1px; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.timeline { border-left: 3px dashed rgba(30,33,43,0.18); padding-left: 28px; display: flex; flex-direction: column; gap: 32px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute; left: -38px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--cream);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .grid-3, .shop-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; text-align: center; }
  .newsletter-form { justify-content: center; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px; left: 0; right: 0;
    background: var(--cream);
    padding: 24px 28px 30px;
    gap: 20px;
    box-shadow: var(--shadow-md);
  }
  .grid-2, .grid-3, .grid-4, .shop-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .page-header { padding: 130px 0 60px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
