/* ==========================================================================
   Future Generation Daycare — Design Tokens
   Palette: cream base, ink navy text, coral / sunbeam / sky / leaf accents
   Type: Baloo 2 (display), Nunito (body), Caveat (handwritten accents)
   ========================================================================== */

:root {
  --cream:        #FFF8E9;
  --cream-deep:   #FFF0CE;
  --ink:          #22314F;
  --ink-soft:     #4A5A7C;
  --coral:        #FF6B6B;
  --coral-deep:   #E8514F;
  --sunbeam:      #FFC93C;
  --sky:          #3DA9E0;
  --leaf:         #5FB85C;
  --white:        #FFFFFF;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body:    "Nunito", system-ui, sans-serif;
  --font-hand:    "Caveat", cursive;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;

  --shadow-sticker: 0 6px 0 rgba(34, 49, 79, 0.15);
  --shadow-soft: 0 12px 30px rgba(34, 49, 79, 0.08);

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--coral-deep); text-decoration: none; }

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

.eyebrow {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--coral-deep);
  display: inline-block;
  margin-bottom: 0.2em;
  transform: rotate(-2deg);
}

/* Visible focus ring for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-sticker);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sticker);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(34, 49, 79, 0.15);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
}

.logo .dot {
  color: var(--coral);
}

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

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--sunbeam);
}

.nav-links .btn {
  margin-left: 6px;
  padding: 10px 20px;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 3px solid var(--ink);
  border-radius: 10px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 20px;
    border-bottom: 3px solid var(--ink);
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-links a, .nav-links .btn { text-align: center; margin-left: 0; }
}

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

.hero {
  padding: 72px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
}

.hero-tagline {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

@media (max-width: 860px) {
  .hero-tagline { margin-left: auto; margin-right: auto; }
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero-cta { justify-content: center; }
}

.hero-art svg { width: 100%; height: auto; }

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

section { padding: 70px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.alt-bg { background: var(--white); }

/* ---------------------------- Journey path (signature element) ---------------------------- */

.journey {
  position: relative;
}

.journey-path {
  width: 100%;
  height: auto;
  margin-bottom: -40px;
}

.journey-stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .journey-stops { grid-template-columns: 1fr; gap: 20px; }
  .journey-path { display: none; }
}

.stop-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sticker);
}

.stop-card .stop-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
}

.stop-card .stop-age {
  font-family: var(--font-hand);
  color: var(--coral-deep);
  font-size: 1.15rem;
}

/* ---------------------------- Cards / grids ---------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 940px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sticker);
  transition: transform 0.15s ease;
}

.card:hover { transform: translateY(-4px); }

.card .card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
}

/* ---------------------------- Testimonials ---------------------------- */

.testimonial {
  background: var(--sky);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  position: relative;
}

.testimonial p {
  color: var(--white);
  font-family: var(--font-hand);
  font-size: 1.6rem;
  line-height: 1.4;
}

.testimonial .who {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
}

/* ---------------------------- CTA banner ---------------------------- */

.cta-banner {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}

.cta-banner h2 { color: var(--white); }
.cta-banner p { color: var(--cream-deep); }

/* ---------------------------- Footer ---------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 50px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer h4 {
  color: var(--sunbeam);
  font-size: 1rem;
  margin-bottom: 12px;
}

.site-footer a { color: var(--cream); opacity: 0.9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }

.site-footer .logo { color: var(--white); }

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
}

/* ---------------------------- Page header (interior pages) ---------------------------- */

.page-header {
  padding: 56px 0 48px;
  text-align: center;
}

.page-header .eyebrow { display: block; margin-bottom: 8px; }

/* ---------------------------- Forms ---------------------------- */

.form-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  max-width: 760px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.field .required { color: var(--coral-deep); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 110px; }

.field .error-msg {
  color: var(--coral-deep);
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--coral-deep);
}

.field.invalid .error-msg { display: block; }

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.form-success {
  display: none;
  background: var(--leaf);
  color: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 24px;
}

.form-success.show { display: block; }

/* ---------------------------- Gallery ---------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  border: 3px solid var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  text-align: center;
  padding: 10px;
  transition: transform 0.15s ease;
  overflow: hidden;
  position: relative;
}

.gallery-item:hover { transform: scale(1.03) rotate(-1deg); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(34, 49, 79, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 560px;
  text-align: center;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--coral);
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--white);
}

/* ---------------------------- Utility ---------------------------- */

.center { text-align: center; }
.mt-lg { margin-top: 48px; }

.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
}

.info-strip {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  text-align: left;
  margin-top: 10px;
}

.info-strip .item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.map-frame {
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pricing-table th, .pricing-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--cream-deep);
}

.pricing-table th {
  background: var(--sunbeam);
  font-family: var(--font-display);
}

.pricing-table tr:last-child td { border-bottom: none; }

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 860px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .staff-grid { grid-template-columns: 1fr; } }

.staff-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  margin: 0 auto 14px;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 620px) { .values-list { grid-template-columns: 1fr; } }
