/* ============================================
   Little Pines Childcare — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #fefdf8; /* cream-50 */
  color: #1c5434; /* pine-700 */
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9375rem;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--pine {
  background: #1c5434;
  color: #fefdf8;
  border-color: #1c5434;
}
.btn--pine:hover {
  background: #133322;
  border-color: #133322;
  box-shadow: 0 8px 24px rgba(28,84,52,.3);
}

.btn--cream {
  background: #fdf9ed;
  color: #1c5434;
  border-color: #fdf9ed;
}
.btn--cream:hover {
  background: #faf3d6;
  border-color: #faf3d6;
  box-shadow: 0 8px 24px rgba(253,249,237,.4);
}

.btn--outline-light {
  background: transparent;
  color: #fefdf8;
  border-color: rgba(254,253,248,.6);
}
.btn--outline-light:hover {
  background: rgba(254,253,248,.12);
  border-color: #fefdf8;
}

.btn--sm { padding: .5rem 1.125rem; font-size: .8125rem; }
.btn--lg { padding: .875rem 1.75rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; padding: .875rem 1.5rem; }

/* --- Section helpers --- */
.section {
  padding: 6rem 0;
}
.section-header {
  max-width: 680px;
}
.section-header--centered {
  text-align: center;
  margin: 0 auto 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #378c5a; /* pine-500 */
  background: #dceddf;
  padding: .375rem .875rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #0a1c11; /* pine-950 */
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.0625rem;
  color: #18422b; /* pine-800 */
  line-height: 1.7;
}

/* ============================================
   NAVBAR
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(254,253,248,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28,84,52,.08);
  transition: box-shadow .3s;
}
.nav.scrolled {
  box-shadow: 0 4px 20px rgba(10,28,17,.08);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #0a1c11;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .9375rem;
  font-weight: 500;
  color: #18422b;
  transition: color .2s;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #378c5a;
  transition: width .25s;
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a:not(.btn):hover { color: #1c5434; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1c5434;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0a1c11; /* pine-950 */
  overflow: hidden;
  padding-top: 64px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('https://images.pexels.com/photos/1029243/pexels-photo-1029243.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1600&h=900') center/cover no-repeat;
  opacity: .28;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,28,17,.92) 0%, rgba(28,84,52,.82) 60%, rgba(55,140,90,.6) 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.hero-card {
  background: rgba(254,253,248,.07);
  border: 1px solid rgba(254,253,248,.12);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: #dceddf;
  background: rgba(220,237,223,.12);
  border: 1px solid rgba(220,237,223,.2);
  padding: .375rem .875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fefdf8;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(254,253,248,.78);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Floating stat cards */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stat-card {
  background: rgba(254,253,248,.1);
  border: 1px solid rgba(254,253,248,.14);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform .25s, background .25s;
}
.stat-card:hover {
  transform: translateY(-3px);
  background: rgba(254,253,248,.14);
}
.stat-card--large {
  flex-direction: row;
}
.stat-card--wide {
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
}
.stat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(220,237,223,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dceddf;
}
.stat-icon--sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fefdf8;
  line-height: 1.2;
}
.stat-label {
  font-size: .8125rem;
  color: rgba(254,253,248,.7);
  line-height: 1.4;
  margin-top: .125rem;
}
.stat-card--wide .stat-label {
  font-size: .9375rem;
  color: rgba(254,253,248,.8);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(254,253,248,.5);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: #fefdf8;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.service-card {
  background: #fdf9ed; /* cream-100 */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(28,84,52,.07);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10,28,17,.1);
}
.service-card-img {
  overflow: hidden;
  height: 200px;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.service-card:hover .service-card-img img {
  transform: scale(1.05);
}
.service-card-body {
  padding: 1.75rem;
}
.service-card-icon {
  width: 44px;
  height: 44px;
  background: #1c5434;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dceddf;
  margin-bottom: 1rem;
}
.service-card-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a1c11;
  margin-bottom: .5rem;
}
.service-card-body p {
  font-size: .9375rem;
  color: #18422b;
  line-height: 1.65;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: #f1f8f3; /* pine-50 */
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-main {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(10,28,17,.12);
}
.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-accent {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  border-radius: 14px;
  overflow: hidden;
  border: 4px solid #f1f8f3;
  box-shadow: 0 12px 32px rgba(10,28,17,.12);
}
.about-content .section-title {
  margin-top: .5rem;
}
.about-text {
  font-size: 1rem;
  color: #18422b;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.5rem;
  margin-top: 2rem;
}
.about-feature {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
  font-weight: 500;
  color: #0a1c11;
}

/* ============================================
   WHY US
   ============================================ */
.why {
  background: #fefdf8;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: #fdf9ed;
  border: 1px solid rgba(28,84,52,.07);
  border-radius: 16px;
  padding: 2rem;
  transition: transform .25s, box-shadow .25s;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(10,28,17,.08);
}
.why-card-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #dceddf;
  line-height: 1;
  margin-bottom: .75rem;
}
.why-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a1c11;
  margin-bottom: .5rem;
}
.why-card p {
  font-size: .9375rem;
  color: #18422b;
  line-height: 1.65;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: #0a1c11; /* pine-950 */
  color: #fefdf8;
}
.testimonials .section-tag {
  background: rgba(220,237,223,.12);
  color: #8fcaaa;
}
.testimonials .section-title {
  color: #fefdf8;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: rgba(254,253,248,.06);
  border: 1px solid rgba(254,253,248,.1);
  border-radius: 16px;
  padding: 2rem;
  transition: background .25s, transform .25s;
}
.testimonial-card:hover {
  background: rgba(254,253,248,.1);
  transform: translateY(-3px);
}
.testimonial-quote {
  color: #378c5a;
  margin-bottom: 1rem;
  opacity: .6;
}
.testimonial-text {
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(254,253,248,.85);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  font-size: .8125rem;
  font-weight: 600;
  color: #8fcaaa;
  letter-spacing: .04em;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  position: relative;
  background: #1c5434; /* pine-600 */
  padding: 5rem 0;
  overflow: hidden;
}
.cta-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(220,237,223,.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(254,253,248,.06) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(220,237,223,.05) 0%, transparent 40%);
  pointer-events: none;
}
.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.cta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fefdf8;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.cta-desc {
  font-size: 1.0625rem;
  color: rgba(254,253,248,.78);
  line-height: 1.65;
  max-width: 480px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: #f1f8f3; /* pine-50 */
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-desc {
  font-size: 1rem;
  color: #18422b;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: #1c5434;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dceddf;
  flex-shrink: 0;
}
.contact-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #378c5a;
  margin-bottom: .125rem;
}
.contact-value {
  font-size: .9375rem;
  color: #0a1c11;
  font-weight: 500;
}
.contact-value a {
  color: #1c5434;
  transition: color .2s;
}
.contact-value a:hover {
  color: #378c5a;
  text-decoration: underline;
}

/* Form */
.contact-form-wrap {
  background: #fefdf8;
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(28,84,52,.08);
  box-shadow: 0 16px 48px rgba(10,28,17,.07);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: #18422b;
  margin-bottom: .375rem;
  letter-spacing: .02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  color: #0a1c11;
  background: #fdf9ed;
  border: 1.5px solid rgba(28,84,52,.15);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8fcaaa;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #378c5a;
  box-shadow: 0 0 0 3px rgba(55,140,90,.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #dceddf;
  border-radius: 10px;
  font-size: .9375rem;
  font-weight: 500;
  color: #0a1c11;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0a1c11; /* pine-950 */
  color: rgba(254,253,248,.7);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand {
  max-width: 300px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fefdf8;
  margin-bottom: .75rem;
}
.footer-tagline {
  font-size: .9375rem;
  line-height: 1.65;
  color: rgba(254,253,248,.55);
}
.footer-nav h4,
.footer-contact h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fefdf8;
  margin-bottom: 1rem;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-nav a {
  font-size: .9375rem;
  color: rgba(254,253,248,.6);
  transition: color .2s;
}
.footer-nav a:hover { color: #8fcaaa; }
.footer-contact p {
  font-size: .9375rem;
  line-height: 1.7;
  margin-bottom: .25rem;
}
.footer-contact a {
  color: rgba(254,253,248,.6);
  transition: color .2s;
}
.footer-contact a:hover { color: #8fcaaa; }

.footer-bottom {
  border-top: 1px solid rgba(254,253,248,.08);
  padding: 1.5rem 0;
}
.footer-bottom p {
  font-size: .8125rem;
  color: rgba(254,253,248,.35);
  text-align: center;
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Fallback: ensure content is visible if JS is disabled */
.no-js .reveal,
.js .reveal {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stat-card { flex: 1; min-width: 160px; }
  .stat-card--wide { flex: 2; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-img-accent {
    right: 1rem;
    bottom: -1.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cta-actions { justify-content: center; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(254,253,248,.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid rgba(28,84,52,.08);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .hero-card { padding: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .stat-card--wide { flex: 1; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}
