/* ===== Base & Utilities ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
  background: #065F46;
  border-radius: 3px;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal="delay-1"] { transition-delay: 0.1s; }
.reveal[data-reveal="delay-2"] { transition-delay: 0.2s; }
.reveal[data-reveal="delay-3"] { transition-delay: 0.3s; }
.reveal[data-reveal="delay-4"] { transition-delay: 0.4s; }
.reveal[data-reveal="delay-5"] { transition-delay: 0.5s; }
.reveal[data-reveal="delay-6"] { transition-delay: 0.6s; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Stat Cards ===== */
.stat-card {
  animation: float 6s ease-in-out infinite;
}
.stat-card:nth-child(2) { animation-delay: -1.5s; }
.stat-card:nth-child(3) { animation-delay: -3s; }
.stat-card:nth-child(4) { animation-delay: -4.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Navbar ===== */
.nav-scrolled {
  background: rgba(253, 251, 247, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(6, 79, 70, 0.08);
}

.nav-scrolled #nav .font-sans {
  color: #1a1a1a !important;
}

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

.mobile-menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translateY(4px);
}
.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-4px);
  width: 1.5rem;
}

/* ===== Service Cards ===== */
.service-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}
.service-card:hover {
  transform: translateY(-4px);
}

/* ===== Community Cards ===== */
.community-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.5s ease;
}
.community-card:hover {
  transform: translateY(-4px);
}

/* ===== Form Input Focus ===== */
input:focus, textarea:focus {
  border-color: #6EE7B7 !important;
}

/* ===== Selection ===== */
::selection {
  background: rgba(6, 95, 70, 0.15);
  color: #064E3B;
}

/* ===== Smooth anchor offset ===== */
section[id] {
  scroll-margin-top: 80px;
}
