/* =================================================================
   Smart Start of Homestead Preschool — Stylesheet
   Brand: Orange + Green + Brown + Cream (from logo sprout)
   ================================================================= */

:root {
  --orange: #e89a47;
  --orange-dark: #d8842a;
  --orange-light: #f4b870;
  --green: #7bb342;
  --green-dark: #558b2f;
  --green-light: #aed581;
  --brown: #6b4226;
  --brown-dark: #4e2e1a;
  --cream: #fff8e7;
  --cream-soft: #faf3e0;
  --red: #d84315;
  --ink: #2e2114;
  --ink-soft: #6b5e4d;
  --muted: #968a78;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(107, 66, 38, 0.08);
  --shadow-lg: 0 20px 60px rgba(107, 66, 38, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Quicksand", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* Display font for big headings (handwritten feel matching logo) */
.display, h1, h2, .hero-tagline {
  font-family: "Fredoka", "Quicksand", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 880px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

/* ================= NAV ================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 231, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--cream-soft);
  transition: box-shadow .25s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 700;
  color: var(--brown-dark);
}
.brand-logo {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: "Pacifico", "Caveat", cursive;
  font-size: 28px; line-height: 1;
}
.brand-logo .smart { color: var(--orange); }
.brand-logo .start { color: var(--green); }
.brand-sprout { width: 28px; height: 28px; flex-shrink: 0; }
.brand-tag { font-size: 11px; color: var(--ink-soft); margin-top: 2px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

.nav-links {
  display: flex; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: 15px;
  position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-dark); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; background: var(--green); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; gap: 0;
  background: var(--cream-soft); border-radius: 999px; padding: 3px;
  border: 1px solid #e8dcc4;
}
.lang-btn {
  background: transparent; border: 0; color: var(--ink-soft);
  font: inherit; font-weight: 700; font-size: 12px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  transition: all .2s;
}
.lang-btn.active { background: var(--green); color: var(--white); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  transition: all .25s; cursor: pointer; border: 0;
  font-family: inherit;
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 154, 71, 0.4); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(123, 179, 66, 0.4); }
.btn-outline { background: transparent; color: var(--brown-dark); border: 2px solid var(--brown); }
.btn-outline:hover { background: var(--brown); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

.menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--brown); }
.menu-btn svg { width: 28px; height: 28px; }

/* Mobile drawer — hidden by default (desktop), only shown when toggled open on mobile */
.nav-mobile { display: none; }
.nav-mobile ul { list-style: none; padding: 0; margin: 0; }
.nav-mobile li { padding: 12px 0; border-bottom: 1px solid var(--cream-soft); }
.nav-mobile li:last-child { border-bottom: 0; }
.nav-mobile a { font-weight: 700; color: var(--ink); display: block; }
.nav-mobile .lang-toggle { margin-top: 14px; display: inline-flex; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-actions > .btn { display: none; }
  .nav-actions > .lang-toggle { display: none; }
  .menu-btn { display: block; }
  .nav-mobile.open {
    display: block;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream);
    border-bottom: 2px solid var(--cream-soft);
    padding: 16px 24px;
    box-shadow: var(--shadow);
  }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,154,71,0.18) 0%, transparent 70%);
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(123,179,66,0.18) 0%, transparent 70%);
  z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 2px solid var(--green-light);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--green-dark);
  margin-bottom: 18px;
}
.hero-badge .stars { color: var(--orange); }
.hero-title {
  font-size: clamp(36px, 5.5vw, 60px); line-height: 1.1;
  color: var(--brown-dark); margin: 0 0 18px;
}
.hero-title .accent { color: var(--orange); display: inline-block; }
.hero-title .accent2 { color: var(--green); display: inline-block; }
.hero-tagline {
  font-size: 19px; line-height: 1.6;
  color: var(--ink-soft); max-width: 540px;
  margin: 0 0 32px; font-weight: 500;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 32px; display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
}
.hero-trust .trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.hero-trust .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

.hero-image {
  position: relative;
  border-radius: 32px; overflow: hidden;
  aspect-ratio: 1 / 1.1;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image::after {
  content: ""; position: absolute; bottom: -20px; left: -20px;
  width: 120px; height: 120px;
  background: var(--orange); border-radius: 50%;
  z-index: -1;
}
.hero-image::before {
  content: ""; position: absolute; top: -20px; right: -20px;
  width: 100px; height: 100px;
  background: var(--green); border-radius: 50%;
  z-index: -1;
}
.floating-card {
  position: absolute; bottom: 30px; left: -30px;
  background: var(--white); border-radius: 18px; padding: 16px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  max-width: 240px;
}
.floating-card .emoji { font-size: 32px; }
.floating-card-text { font-size: 13px; line-height: 1.4; }
.floating-card-text strong { display: block; color: var(--brown-dark); font-size: 15px; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { max-width: 480px; margin: 0 auto; }
  .floating-card { left: 10px; bottom: 16px; max-width: 200px; padding: 12px 14px; }
  .floating-card .emoji { font-size: 26px; }
  .floating-card-text strong { font-size: 13px; }
  .floating-card-text { font-size: 11px; }
}
@media (max-width: 560px) {
  .hero { padding: 50px 0 70px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 16px; flex-direction: column; align-items: flex-start; }
}

/* ================= SECTION ================= */
.section { padding: 80px 0; position: relative; }
.section-cream { background: var(--cream-soft); }
.section-white { background: var(--white); }
.section-green { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: var(--white); }
.section-orange { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%); color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 16px; line-height: 1.2; color: var(--brown-dark); }
.section-green .section-head h2, .section-orange .section-head h2 { color: var(--white); }
.section-head p { font-size: 17px; color: var(--ink-soft); margin: 0; }
.section-green .section-head p, .section-orange .section-head p { color: rgba(255,255,255,0.9); }

/* ================= FEATURE GRID (key benefits) ================= */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white); border-radius: 24px;
  padding: 28px 24px; text-align: center;
  border: 2px solid transparent; transition: all .3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--green-light); box-shadow: var(--shadow-lg); }
.feature-card .icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--cream-soft); display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 16px;
}
.feature-card h3 { color: var(--brown-dark); font-size: 19px; margin: 0 0 10px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ================= AGE GROUPS (programs preview) ================= */
.age-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.age-card {
  position: relative; background: var(--white); border-radius: 24px;
  padding: 28px 24px; transition: all .3s;
  border-top: 6px solid var(--orange);
  overflow: hidden;
}
.age-card:nth-child(2) { border-top-color: var(--green); }
.age-card:nth-child(3) { border-top-color: var(--brown); }
.age-card:nth-child(4) { border-top-color: var(--red); }
.age-card:nth-child(5) { border-top-color: var(--orange-dark); }
.age-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.age-emoji { font-size: 44px; margin-bottom: 10px; }
.age-name { font-size: 22px; color: var(--brown-dark); margin: 0 0 4px; font-weight: 700; }
.age-range { font-size: 13px; color: var(--orange); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; }
.age-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ================= TESTIMONIALS ================= */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: var(--white); border-radius: 24px;
  padding: 28px; position: relative;
  border: 2px solid var(--cream-soft);
}
.testimonial .stars {
  color: var(--orange); font-size: 18px; margin-bottom: 12px;
}
.testimonial blockquote {
  margin: 0 0 18px; font-size: 16px; line-height: 1.65; color: var(--ink);
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--green) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 18px;
}
.testimonial-author-meta strong { display: block; color: var(--brown-dark); font-size: 14px; }
.testimonial-author-meta span { font-size: 12px; color: var(--muted); }

/* ================= CTA STRIP ================= */
.cta-strip {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  padding: 70px 0; text-align: center;
}
.cta-strip h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; color: var(--white); }
.cta-strip p { font-size: 18px; margin: 0 0 28px; opacity: .95; }
.cta-strip .btn { background: var(--white); color: var(--orange-dark); }
.cta-strip .btn:hover { background: var(--cream); transform: translateY(-2px); }

/* ================= INFO STRIP (address/phone) ================= */
.info-strip { background: var(--brown-dark); color: var(--white); padding: 50px 0; }
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px; align-items: center;
}
.info-item { display: flex; align-items: center; gap: 14px; }
.info-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.info-item-meta strong { display: block; font-size: 16px; margin-bottom: 2px; }
.info-item-meta span, .info-item-meta a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.85);
}
.info-item-meta a:hover { color: var(--orange-light); }

/* ================= FOOTER ================= */
.footer {
  background: var(--cream-soft); padding: 60px 0 30px;
  border-top: 4px solid var(--orange);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .brand-logo { font-size: 36px; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--ink-soft); max-width: 320px; }
.footer-col h4 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin: 0 0 18px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink-soft); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid #e8dcc4; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.social-links a:hover { background: var(--orange-dark); transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ================= INNER PAGE HEADER ================= */
.page-header {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-soft) 100%);
  padding: 80px 0 60px; text-align: center;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ""; position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123,179,66,0.1) 0%, transparent 60%);
  z-index: 0;
}
.page-header h1 {
  position: relative; z-index: 1;
  font-size: clamp(34px, 5vw, 52px); color: var(--brown-dark); margin: 0 0 14px;
}
.page-header p {
  position: relative; z-index: 1;
  font-size: 18px; color: var(--ink-soft); max-width: 640px; margin: 0 auto;
}

/* ================= CONTENT BLOCK ================= */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--ink); margin: 0 0 18px; }
.prose h3 { color: var(--brown-dark); font-size: 24px; margin: 36px 0 14px; }
.prose ul { font-size: 16px; line-height: 1.8; color: var(--ink); padding-left: 24px; }
.prose li { margin-bottom: 8px; }

/* Two-col content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: 24px; box-shadow: var(--shadow); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 30px; } }

/* ================= GALLERY GRID ================= */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-item {
  aspect-ratio: 1; border-radius: 18px; overflow: hidden;
  cursor: pointer; transition: transform .3s;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1/2; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }

/* ================= CONTACT FORM ================= */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { background: var(--white); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.contact-form .field { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 13px; font-weight: 700; color: var(--brown-dark); margin-bottom: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px;
  background: var(--cream); border: 2px solid var(--cream-soft);
  border-radius: 12px; font-family: inherit; font-size: 15px;
  color: var(--ink); transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--green);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-info { padding: 32px; background: var(--cream-soft); border-radius: 24px; }
.contact-info h3 { color: var(--brown-dark); margin: 0 0 18px; }
.contact-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #e8dcc4; }
.contact-row:last-child { border-bottom: 0; }
.contact-row .info-icon { width: 40px; height: 40px; font-size: 18px; }
.contact-row strong { display: block; font-size: 14px; color: var(--brown-dark); }
.contact-row a, .contact-row span { display: block; font-size: 14px; color: var(--ink-soft); }

/* ================= MAP ================= */
.map-wrap { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); margin-top: 30px; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ================= REVEAL ANIMATIONS ================= */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ================= LIGHTBOX ================= */
.lightbox { position: fixed; inset: 0; background: rgba(46,33,20,0.9); z-index: 100; display: none; align-items: center; justify-content: center; padding: 4vw; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* ================= GLOBAL MOBILE TIGHTENING ================= */
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 28px !important; }
  .page-header { padding: 60px 0 40px; }
  .page-header h1 { font-size: 32px; }
  .hero-title { font-size: 36px !important; }
  .feature-grid, .age-grid, .testimonials-grid, .step-grid, .info-grid { gap: 16px; }
  .feature-card, .age-card, .testimonial, .step-card { padding: 22px 18px; }
  .info-strip { padding: 36px 0; }
  .info-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta-strip { padding: 56px 0; }
  .footer { padding: 44px 0 24px; }
  .footer-grid { gap: 28px; margin-bottom: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  /* Schedule table — horizontal scroll on small screens */
  .schedule-table { font-size: 13px; }
  .schedule-table th, .schedule-table td { padding: 10px 12px; }
  /* FAQ items tighter */
  .faq-item { padding: 16px 20px; }
  .faq-item summary { font-size: 15px; }
  /* Programs page */
  .program { padding: 22px !important; gap: 24px !important; }
  .program h2 { font-size: 24px !important; }
  /* Floating card hides on tiny screens to avoid clipping */
}
@media (max-width: 420px) {
  .floating-card { display: none; }
  .container { padding: 0 14px; }
  .nav-row { gap: 8px; }
  .brand-logo { font-size: 22px; }
  .brand-tag { display: none; }
}
/* Make horizontal-scroll containers work nicely */
.schedule-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.schedule-wrap .schedule-table { min-width: 540px; }
/* Tap targets — 44px min on all interactive */
button, a.btn, .nav-links a, .nav-mobile a, .lang-btn { min-height: 44px; }
/* Prevent horizontal page scroll from any rogue element */
body { overflow-x: hidden; }
