/* ===== Neri Family Child Care — Design System ===== */

:root {
  --cream: #f4fefa;
  --cream-deep: #b6fcd5;
  --white: #ffffff;
  --ink: #1c2b26;
  --ink-soft: #57685f;
  --coral: #14a97a;
  --coral-deep: #0e7d59;
  --teal: #0e6b5c;
  --teal-deep: #0a4d42;
  --yellow: #f0b429;
  --line: #d3f3e0;
  --shadow: 0 20px 45px -20px rgba(44, 38, 32, 0.25);
  --shadow-sm: 0 8px 20px -10px rgba(44, 38, 32, 0.2);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

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

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

.eyebrow {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  background: var(--cream-deep);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 600;
}

.section {
  padding: 88px 0;
}

.section--tight { padding: 56px 0; }

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

.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }

.btn--light {
  background: var(--white);
  color: var(--coral-deep);
}
.btn--light:hover { background: var(--yellow); color: var(--ink); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.logo small {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

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

.nav-links a {
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--coral);
  color: var(--white);
}

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

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

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

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

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-photo {
  position: relative;
}

.hero-photo .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 8px solid var(--white);
}

.hero-photo .frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}

.hero-badge .dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-badge strong { display: block; font-family: 'Baloo 2', sans-serif; }
.hero-badge span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Highlights strip ---------- */

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

.highlight-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.highlight-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  background: var(--cream-deep);
}

.highlight-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.highlight-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Home gallery strip ---------- */

.home-gallery-section { background: var(--cream); }

.home-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.home-gallery a {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.home-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-gallery a:hover img { transform: scale(1.06); }

.home-gallery-cta { text-align: center; margin-top: 28px; }

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

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

/* ---------- Testimonial ---------- */

.testimonial-section { background: var(--teal); color: var(--white); }
.testimonial-section .eyebrow { background: rgba(255,255,255,0.16); color: var(--white); }
.testimonial-section .section-head p { color: rgba(255,255,255,0.85); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 940px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.testimonial-card .stars { color: var(--yellow); font-size: 1.2rem; margin-bottom: 18px; letter-spacing: 3px; }
.testimonial-card blockquote { font-size: 1.15rem; margin: 0 0 20px; font-style: italic; }
.testimonial-card cite { display: block; }
.testimonial-card .review-date { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-top: 4px; font-style: normal; }

@media (max-width: 720px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}
.testimonial-card cite { font-family: 'Baloo 2', sans-serif; font-style: normal; font-weight: 600; }

/* ---------- Contact strip / cards ---------- */

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

.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.contact-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}

.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { color: var(--ink-soft); font-size: 0.98rem; }
.contact-card a:hover { color: var(--coral-deep); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--coral);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0; }

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

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 32ch; }

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: var(--yellow); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

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

.page-hero {
  padding: 56px 0 40px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.1rem); }
.page-hero p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto; font-size: 1.08rem; }

/* ---------- About page ---------- */

.about-intro .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-intro .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 8px solid var(--white);
}

.about-intro .frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.credential-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.pill {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--coral-deep);
  font-family: 'Baloo 2', sans-serif;
}

.timeline {
  max-width: 760px;
  margin: 0 auto;
}

.timeline-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-left: 5px solid var(--teal);
}

.timeline-item .role {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.timeline-item .period {
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: inline-block;
}

/* ---------- Program page ---------- */

.discount-banner {
  background: linear-gradient(120deg, var(--yellow), #ffb347);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.discount-banner .tag {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--coral-deep);
  line-height: 1;
}

.discount-banner .tag small {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
  margin-top: 6px;
}

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

.activity-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.activity-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.activity-card p { margin: 0; font-weight: 700; font-family: 'Baloo 2', sans-serif; font-size: 0.98rem; }

.schedule-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.schedule-row .time {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  color: var(--coral-deep);
  font-size: 0.98rem;
}

.schedule-row p { margin: 0; color: var(--ink-soft); }

.program-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.program-type-card {
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
}

.program-type-card:nth-child(1) { background: var(--teal); }
.program-type-card:nth-child(2) { background: var(--coral); }

.program-type-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.program-type-card h3 { color: var(--white); font-size: 1.4rem; }
.program-type-card p { color: rgba(255,255,255,0.9); margin: 0; }

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

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

.gallery-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  border: 2px dashed var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-soft);
  text-align: center;
  padding: 16px;
}

.gallery-tile .icon { font-size: 2rem; }
.gallery-tile span:last-child { font-weight: 700; font-family: 'Baloo 2', sans-serif; font-size: 0.92rem; color: var(--ink); }

img.gallery-tile {
  border: none;
  object-fit: cover;
  width: 100%;
  height: 100%;
  padding: 0;
}

button.gallery-tile {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: none;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.gallery-tile:hover,
button.gallery-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

button.gallery-tile img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

button.gallery-tile:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(20, 20, 30, 0.9);
}

.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
}

.lightbox-nav {
  width: 48px;
  height: 48px;
  font-size: 2rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .lightbox-nav {
    position: absolute;
    bottom: 24px;
  }
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
}

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.hours-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
}

.hours-row:last-of-type { border-bottom: none; }
.hours-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  background: var(--cream-deep);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

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

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.contact-method .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-method strong { display: block; font-family: 'Baloo 2', sans-serif; }
.contact-method a, .contact-method span { color: var(--ink-soft); font-size: 0.98rem; }
.contact-method a:hover { color: var(--coral-deep); }

/* ---------- Decorative blobs ---------- */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  z-index: -1;
  opacity: 0.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .container,
  .about-intro .container,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .hero-photo { order: -1; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .program-types { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta.open { display: block; margin: 8px 24px 20px; }
  .nav-toggle { display: block; }
  .hero-badge { position: static; margin-top: 16px; max-width: none; }
  .discount-banner { text-align: center; justify-content: center; }
  .cta-band { text-align: center; justify-content: center; }
  .schedule-row { grid-template-columns: 1fr; gap: 6px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
