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

:root {
  --primary: #1b75bc;
  --primary-light: #e6f3fc;
  --accent: #f9a825;
  --dark: #13334c;
  --text: #334e68;
  --bg: #ffffff;
  --muted: #f4f6f8;
  --radius: 10px;
  --shadow: 0 4px 12px rgba(15, 35, 52, 0.12);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header / Nav */
header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.logo-text {
  font-weight: 700;
  color: var(--dark);
}

.logo-sub {
  font-size: 0.75rem;
  color: #7b8ba5;
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 999px;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  padding: 0.4rem 0.2rem;
  border-radius: 4px;
}

.nav-links a.nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.nav-links a:hover {
  background: var(--primary-light);
}

.nav-links a.nav-cta:hover {
  background: #155d93;
}

/* Hero / Page header */
.hero {
  background: linear-gradient(135deg, var(--primary-light), #fff);
  padding: 2.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.hero-title {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.hero-text {
  margin-bottom: 1rem;
}

.hero-list {
  list-style: none;
  margin-bottom: 1.25rem;
}

.hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.hero-list li span {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
  line-height: 18px;
}

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

/* Forms */
.form-section-title {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

form {
  display: grid;
  gap: 0.75rem;
}

.form-row {
  display: grid;
  gap: 0.75rem;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #ccd7e0;
  font: inherit;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-light);
  border-color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary-light);
}

.btn:hover {
  background: #155d93;
}

.btn-secondary:hover {
  background: var(--primary-light);
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-title {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6b7b93;
  margin-bottom: 1.75rem;
}

/* Grids */
.features-grid,
.programs-grid,
.two-col {
  display: grid;
  gap: 1rem;
}

.feature-card {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary-light);
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 0.3rem;
}

/* Lists */
.simple-list {
  list-style: none;
  font-size: 0.95rem;
}

.simple-list li {
  margin-bottom: 0.25rem;
}

/* Table-like price rows */
.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed #dde4ec;
}

/* Footer */
footer {
  background: var(--muted);
  padding: 1.5rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #6b7b93;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  color: #6b7b93;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Utility */
.tagline {
  font-size: 0.9rem;
  color: #6b7b93;
}

/* Page header (inner pages) */
.page-header {
  padding: 1.75rem 0 1.25rem;
  background: var(--primary-light);
}

.page-title {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: #6b7b93;
}

/* Responsive */
@media (min-width: 640px) {
  .nav-toggle {
    display: none;
  }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin-top: 0;
  }

  .hero-grid {
    grid-template-columns: 3fr 2fr;
    align-items: center;
  }

  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid,
  .programs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: 3fr 2fr;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* --- Fun background shapes for kids --- */
.kid-shapes {
  position: relative;
  overflow: hidden;
}

.kid-shape {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 25px;
  opacity: 0.18;
  z-index: -1;
  animation: float 9s ease-in-out infinite;
}

.kid-shape--blue {
  background: #5bb0ff;
  top: -20px;
  right: -35px;
}

.kid-shape--yellow {
  background: #ffd15c;
  bottom: -25px;
  left: -30px;
  animation-duration: 11s;
}

.kid-shape--pink {
  background: #ff9ac8;
  top: 45%;
  left: 55%;
  animation-duration: 13s;
}

/* Gentle floating animation for shapes and icons */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* --- Hero attention animation (small up/down) --- */
.hero-title {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
  position: relative;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 75px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd15c, #ff9ac8);
  opacity: 0.85;
}

/* --- Card hover: soft lift and shadow --- */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 35, 52, 0.18);
}

/* Feature cards: playful hover color shift */
.feature-card {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary-light);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 35, 52, 0.18);
  border-color: #ffd15c;
}

/* Feature icons: floating for fun */
.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  animation: float 7s ease-in-out infinite;
}

/* --- Buttons: gentle wiggle on hover --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 10px rgba(15, 35, 52, 0.2);
}

.btn:hover {
  background: #155d93;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 18px rgba(15, 35, 52, 0.26);
}

/* --- Hero badge: soft fade-in + float --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  animation: heroFadeUp 0.9s ease-out both;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-item figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  color: #5a6a83;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(15, 35, 52, 0.2);
}

/* More columns on larger screens */
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
