/* ============================================
   Bea's Lil' Munchkin Child Care Center
   Brand: Green (ring), Purple (accent), Blue (secondary)
   ============================================ */

:root {
  /* Brand colors from logo */
  --green-primary: #7cb342;
  --green-dark: #5a8f2e;
  --green-soft: #9ccc65;
  --purple-accent: #6a1b9a;
  --purple-light: #9c27b0;
  --blue-secondary: #1976d2;
  --blue-soft: #42a5f5;
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  /* UI */
  --text: var(--gray-900);
  --text-muted: var(--gray-700);
  --overlay: rgba(0, 0, 0, 0.62);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--blue-secondary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 16px;
  background: var(--purple-accent);
  color: var(--white);
  font-weight: 700;
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-business-name {
  display: none;
}

.logo img {
  width: 72px;
  height: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  width: 24px;
  height: 3px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

.nav-list a {
  color: var(--gray-800);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--purple-accent);
  text-decoration: none;
}

.nav-cta {
  background: var(--purple-accent);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--purple-light);
  text-decoration: none;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--blue-secondary) 100%);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 40%, var(--green-soft) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, var(--green-soft) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, var(--green-soft) 0%, transparent 35%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 24px 48px;
  max-width: 680px;
  margin: 0 auto;
}

.hero-headline {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subheadline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: #d4d4d4;
  margin: 0 auto 32px;
  line-height: 1.6;
  max-width: 540px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-separator {
  width: 40%;
  max-width: 200px;
  height: 2px;
  background: var(--purple-accent);
  margin: 32px auto 28px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 56px;
}

.hero-metric {
  text-align: center;
}

.hero-metric-value {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.hero-metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #b0b0b0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #b0b0b0;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color var(--transition);
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  color: var(--white);
  text-decoration: none;
}

.hero-scroll-icon {
  width: 20px;
  height: 20px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: -8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition);
  min-height: 52px;
  min-width: 160px;
}

.btn:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--purple-accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
  transform: translateY(-1px);
}

/* ========== Sections ========== */
.section {
  padding: 64px 0;
}

.section-about {
  background: var(--gray-50);
}

.section-programs {
  background: var(--white);
}

.section-reviews {
  background: var(--gray-50);
}

.section-contact {
  background: var(--white);
}

.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 12px;
  text-align: center;
}

.section-lead {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* About cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.about-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 12px;
}

.about-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--green-primary);
  border-radius: 50%;
  display: block;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center/60% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center/60% no-repeat;
}

.about-icon-play {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}

.about-icon-clock {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

/* Programs slider */
.programs-slider-wrap,
.reviews-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.programs-track,
.reviews-track {
  flex: 1;
  overflow: hidden;
}

.programs-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.program-card:hover {
  border-color: var(--green-soft);
  box-shadow: var(--shadow);
}

.program-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 8px;
}

.program-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.slider-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-size: 0;
  transition: background var(--transition), border-color var(--transition);
}

.slider-btn {
  position: relative;
}

.slider-btn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--gray-700);
  border-bottom: 2px solid var(--gray-700);
}

.slider-btn-prev::after {
  transform: translate(-40%, -50%) rotate(45deg);
}

.slider-btn-next::after {
  transform: translate(-60%, -50%) rotate(-135deg);
}

.slider-btn:hover,
.slider-btn:focus-visible {
  background: var(--green-soft);
  border-color: var(--green-primary);
}

.slider-btn:hover::after,
.slider-btn:focus-visible::after {
  border-color: var(--white);
}

.programs-cta-text,
.reviews-cta-text {
  text-align: center;
  margin: 0;
  font-size: 0.95rem;
}

/* Reviews */
.reviews-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  margin: 0;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--purple-accent);
}

.review-text {
  font-style: italic;
  color: var(--gray-800);
  margin: 0 0 16px;
}

.review-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.review-stars {
  color: #ffc107;
  margin-right: 8px;
}

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

.contact-info p {
  margin: 0 0 12px;
}

.contact-address {
  font-size: 1.05rem;
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-cta .btn-primary {
  background: var(--purple-accent);
}

.contact-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map-wrap iframe {
  display: block;
}

/* Footer */
.footer {
  background: #1e3d2e;
  color: #d4d4d4;
  padding: 64px 0 0;
}

.footer .container {
  max-width: 1100px;
  padding-left: 40px;
  padding-right: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px 80px;
  padding-bottom: 48px;
}

.footer-col-brand {
  max-width: 300px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 80px;
  height: auto;
  display: block;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: #c0c8c4;
}

.footer-heading {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e8e8e8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-links a {
  color: #c0c8c4;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--green-soft);
  text-decoration: none;
}

.footer-phone,
.footer-address {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #c0c8c4;
}

.footer-address:last-child {
  margin-bottom: 0;
}

.footer-phone a {
  color: #c0c8c4;
  font-weight: 600;
  text-decoration: none;
}

.footer-phone a:hover,
.footer-phone a:focus-visible {
  color: var(--green-soft);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px 0 36px;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca8a2;
}

/* ========== Mobile ========== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .programs-track,
  .reviews-track {
    grid-template-columns: 1fr;
    display: flex;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 8px 0;
  }

  .program-card,
  .review-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin: 0 12px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-map-wrap {
    order: -1;
  }

  .footer {
    padding-top: 48px;
  }

  .footer .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
    text-align: center;
  }

  .footer-col-brand {
    max-width: none;
  }

  .footer-col-brand .footer-desc {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-logo img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    display: inline-block;
    text-align: left;
  }

  .footer-col-contact {
    text-align: center;
  }

  .footer-bottom {
    padding: 24px 0 28px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header-brand {
    flex: 1;
    min-width: 0;
  }

  .header-business-name {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    max-width: 160px;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
  }

  .nav.is-open {
    max-height: 400px;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .hero-content {
    padding: 100px 20px 32px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-metrics {
    gap: 28px 40px;
  }

  .hero-scroll {
    bottom: 20px;
  }

  .section {
    padding: 48px 0;
  }

  .contact-cta {
    flex-direction: column;
  }

  .contact-cta .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 16px;
  }

  .header-brand {
    gap: 8px;
  }

  .header-business-name {
    font-size: 0.9rem;
    max-width: 130px;
  }

  .logo img {
    width: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
