/* ── Base & Utilities ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Hero Animations ── */
.hero-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards;
}
.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.25s; }
.hero-anim:nth-child(3) { animation-delay: 0.4s; }
.hero-anim:nth-child(4) { animation-delay: 0.55s; }
.hero-anim:nth-child(5) { animation-delay: 0.7s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .section-label, .section-title, .service-card, .testimonial-card, .gallery-item,
  .service-card:nth-child(1), .service-card:nth-child(2), .service-card:nth-child(3),
  .service-card:nth-child(4), .service-card:nth-child(5), .service-card:nth-child(6) {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .service-card:nth-child(1) { transition-delay: 0.05s; }
  .service-card:nth-child(2) { transition-delay: 0.1s; }
  .service-card:nth-child(3) { transition-delay: 0.15s; }
  .service-card:nth-child(4) { transition-delay: 0.2s; }
  .service-card:nth-child(5) { transition-delay: 0.25s; }
  .service-card:nth-child(6) { transition-delay: 0.3s; }

  .reveal-active .section-label { opacity: 1; transform: translateY(0); }
  .reveal-active .section-title { opacity: 1; transform: translateY(0); }
  .reveal-active .service-card { opacity: 1; transform: translateY(0); }
  .reveal-active .testimonial-card { opacity: 1; transform: translateY(0); }
  .reveal-active .gallery-item { opacity: 1; transform: translateY(0); }
}

/* ── Navbar Scroll State ── */
#site-header.scrolled {
  background: rgba(253, 249, 243, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* ── Mobile Menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Decorative Blobs ── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* ── Smooth Scroll Offset ── */
section[id] {
  scroll-margin-top: 80px;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FDF9F3; }
::-webkit-scrollbar-thumb { background: #A7F3D0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #34D399; }

/* ── Selection ── */
::selection { background: #A7F3D0; color: #064E3B; }
</style>
