/* ============================================
   RoboKids — stylesheet
   Theme: playful + bold, with refined typography
   ============================================ */

:root {
  --c-yellow: #FFC93C;
  --c-coral:  #FF6B6B;
  --c-teal:   #4ECDC4;
  --c-pink:   #FF4FAB;
  --c-dark:   #1A1B41;
  --c-cream:  #FFF8E7;
  --c-paper:  #FFFDF7;
  --c-line:   #1A1B41;

  --font-display: "Bagel Fat One", "Fredoka", system-ui, sans-serif;
  --font-head:    "Fredoka", system-ui, sans-serif;
  --font-body:    "Nunito", system-ui, sans-serif;

  --radius-sm: 12px;
  --radius:    20px;
  --radius-lg: 28px;

  --shadow-soft: 0 10px 30px rgba(26,27,65,0.10);
  --shadow-pop:  6px 6px 0 var(--c-dark);
  --shadow-pop-sm: 4px 4px 0 var(--c-dark);

  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--c-paper);
  color: var(--c-dark);
  line-height: 1.55;
  font-weight: 500;
  overflow-x: hidden;
}

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

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

/* ================ NAV ================ */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--c-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-dark);
}

.logo-bot { transform: rotate(-4deg); transition: transform .3s ease; }
.logo:hover .logo-bot { transform: rotate(4deg) scale(1.05); }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}
.logo-accent { color: var(--c-coral); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--c-dark);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  transition: color .2s;
}
.nav-links a:not(.btn):hover { color: var(--c-coral); }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 3px;
  background: var(--c-coral);
  border-radius: 3px;
  transition: width .25s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: var(--c-yellow);
  border: 3px solid var(--c-dark);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 3px;
  background: var(--c-dark);
  border-radius: 2px;
}

/* ================ BUTTONS ================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 3px solid var(--c-dark);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  background: #fff;
  color: var(--c-dark);
}
.btn-primary {
  background: var(--c-coral);
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--c-dark);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--c-dark);
}
.btn-ghost {
  background: transparent;
}
.btn-ghost:hover {
  background: var(--c-yellow);
}
.btn-pill {
  background: var(--c-dark);
  color: var(--c-yellow);
  padding: 10px 18px;
  font-size: 0.95rem;
}
.btn-pill:hover {
  background: var(--c-coral);
  color: #fff;
}
.btn-full { width: 100%; justify-content: center; }

/* ================ DECOR ================ */

.floaties {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.floatie {
  position: absolute;
  font-size: 28px;
  opacity: 0.35;
  animation: drift 12s ease-in-out infinite;
}
.f1 { top: 12%;  left: 6%;  animation-delay: 0s; }
.f2 { top: 70%;  left: 4%;  animation-delay: 2s; }
.f3 { top: 22%;  right: 8%; animation-delay: 1s; font-size: 32px; }
.f4 { top: 55%;  right: 5%; animation-delay: 3s; }
.f5 { top: 88%;  right: 14%; animation-delay: 4s; }

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

/* ================ HERO ================ */

.hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,201,60,0.35), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(78,205,196,0.30), transparent 50%),
    radial-gradient(circle at 60% 90%, rgba(255,79,171,0.20), transparent 50%),
    var(--c-paper);
  padding: 70px 0 140px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-block;
  background: var(--c-dark);
  color: var(--c-yellow);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: -0.5px;
}
.hl {
  display: inline-block;
  padding: 0 12px;
  border-radius: 14px;
  transform: rotate(-1.5deg);
}
.hl-yellow {
  background: var(--c-yellow);
  box-shadow: 4px 4px 0 var(--c-dark);
}
.hl-pink {
  background: var(--c-pink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--c-dark);
  transform: rotate(1.5deg);
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 32px;
  color: #2a2c5a;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 3px dashed var(--c-dark);
}
.hero-meta > div {
  display: flex;
  flex-direction: column;
}
.hero-meta strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--c-coral);
  line-height: 1;
}
.hero-meta span {
  font-size: 0.95rem;
  color: #555;
  font-weight: 600;
}

/* Hero art */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mascot {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 14px 28px rgba(26,27,65,0.18));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.spark {
  position: absolute;
  font-size: 26px;
  animation: twinkle 3s ease-in-out infinite;
}
.sp1 { top: 8%;  left: 10%; animation-delay: 0s; }
.sp2 { top: 20%; right: 6%; animation-delay: 0.6s; font-size: 32px; }
.sp3 { bottom: 18%; left: 4%; animation-delay: 1.2s; }
.sp4 { bottom: 30%; right: 10%; animation-delay: 1.8s; font-size: 30px; }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 0.6; }
  50%      { transform: scale(1.3) rotate(15deg); opacity: 1; }
}

.wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
}

/* ================ SECTION ================ */

section { position: relative; z-index: 1; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 14px 0 14px;
  line-height: 1.1;
}
.section-head p {
  font-size: 1.1rem;
  color: #4a4c80;
  margin: 0;
}
.section-head.light h2,
.section-head.light p { color: #fff; }
.section-head.light .eyebrow {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.eyebrow {
  display: inline-block;
  background: var(--c-yellow);
  color: var(--c-dark);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ================ GAMES ================ */

.games {
  background: var(--c-cream);
  padding: 90px 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  background: #fff;
  border: 3px solid var(--c-dark);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-pop);
  transition: transform .25s ease, box-shadow .25s ease;
}
.game-card:hover {
  transform: translate(-4px, -4px) rotate(-1deg);
  box-shadow: 10px 10px 0 var(--c-dark);
}
.game-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 14px 0 8px;
  letter-spacing: 0.2px;
}
.game-card p {
  margin: 0;
  font-size: 0.98rem;
  color: #3a3c70;
}
.game-icon {
  width: 76px; height: 76px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--c-dark);
}
.c-yellow .game-icon { background: var(--c-yellow); }
.c-pink   .game-icon { background: var(--c-pink); }
.c-teal   .game-icon { background: var(--c-teal); }
.c-coral  .game-icon { background: var(--c-coral); }
.c-purple .game-icon { background: #B991FF; }

/* ================ CENTERS ================ */

.centers {
  background: var(--c-dark);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.centers::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,201,60,0.10) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.6;
}

.centers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  position: relative;
}

.center-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--c-dark);
  box-shadow: var(--shadow-pop);
  transition: transform .25s ease;
}
.center-card:hover { transform: translateY(-8px); }

.center-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--c-dark);
}
.center-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  color: var(--c-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 2px solid var(--c-dark);
}

.center-body { padding: 24px; color: var(--c-dark); }
.center-body h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 6px;
}
.center-loc {
  font-size: 0.92rem;
  color: var(--c-coral);
  font-weight: 700;
  margin: 0 0 12px;
}
.center-body p {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: #3a3c70;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips li {
  background: var(--c-cream);
  border: 2px solid var(--c-dark);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ================ GALLERY ================ */

.gallery {
  padding: 90px 0;
  background: var(--c-paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.g-item {
  border: 3px solid var(--c-dark);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: var(--shadow-pop-sm);
}
.g-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--c-dark);
}
.g-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.g-photo:hover img { transform: scale(1.06); }
.g-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--c-dark);
  color: var(--c-yellow);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid var(--c-yellow);
}

.g-1 { grid-column: span 2; grid-row: span 2; }
.g-2 { grid-column: span 2; }
.g-3 { grid-column: span 1; }
.g-4 { grid-column: span 1; }

.gallery-note {
  text-align: center;
  margin: 30px 0 0;
  font-size: 0.9rem;
  color: #777;
}
.gallery-note code {
  background: var(--c-cream);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-family: monospace;
}

/* ================ PARENTS ================ */

.parents {
  background: var(--c-cream);
  padding: 100px 0;
}

.parents-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}

.parents-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 14px 0 16px;
  line-height: 1.1;
}
.lead {
  font-size: 1.1rem;
  color: #3a3c70;
  margin-bottom: 36px;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.feature {
  background: #fff;
  border: 3px solid var(--c-dark);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-pop-sm);
}
.feat-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.feature h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 0 0 4px;
}
.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: #4a4c80;
}

.parents-card {
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 3px solid var(--c-dark);
  box-shadow: var(--shadow-pop);
  position: sticky;
  top: 100px;
}
.parents-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 22px;
  color: var(--c-yellow);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  counter-reset: step;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-weight: 600;
}
.steps li span {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
}

/* ================ CONTACT ================ */

.contact {
  padding: 100px 0;
  background: var(--c-paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 14px 0 16px;
  line-height: 1.1;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}
.contact-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  padding: 16px 0;
  border-bottom: 2px dashed var(--c-dark);
}
.contact-list strong {
  font-family: var(--font-head);
  color: var(--c-coral);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-list a {
  color: var(--c-dark);
  text-decoration: none;
  font-weight: 700;
}
.contact-list a:hover { color: var(--c-coral); }

.contact-form {
  background: #fff;
  border: 3px solid var(--c-dark);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--c-dark);
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 2px solid var(--c-dark);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--c-cream);
  color: var(--c-dark);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: 4px 4px 0 var(--c-yellow);
}

/* ================ FOOTER ================ */

.footer {
  background: var(--c-dark);
  color: #fff;
  padding: 70px 0 24px;
  border-top: 5px solid var(--c-yellow);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer h5 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin: 0 0 16px;
  color: var(--c-yellow);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer ul li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #c8c9e8;
}
.footer ul li a {
  color: #c8c9e8;
  text-decoration: none;
  transition: color .2s;
}
.footer ul li a:hover { color: var(--c-yellow); }

.footer-tag {
  margin-top: 16px;
  color: #c8c9e8;
  font-size: 0.95rem;
  max-width: 280px;
}

.logo-footer .logo-text { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: #9a9ec3;
}

/* ================ RESPONSIVE ================ */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-art  { order: -1; }
  .mascot    { max-width: 280px; }
  .parents-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .parents-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .g-1 { grid-column: span 2; grid-row: span 1; }
  .g-2 { grid-column: span 2; }
  .g-3, .g-4 { grid-column: span 1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--c-paper);
    border-bottom: 3px solid var(--c-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
  }
  .nav-links.open {
    max-height: 600px;
    padding: 16px 24px 24px;
  }
  .nav-links li { padding: 12px 0; border-bottom: 1px dashed rgba(26,27,65,0.2); }
  .nav-links li:last-child { border-bottom: none; padding-top: 16px; }
  .nav-links .btn-pill { width: 100%; justify-content: center; }

  .hero { padding: 50px 0 100px; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-meta { gap: 20px; }
  .hero-meta strong { font-size: 1.6rem; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ================ SCROLL REVEAL ================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ================ PRINT / REDUCED MOTION ================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
