/* ── Base & Utilities ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* ── Scroll-triggered animations ────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Service cards ──────────────────────────────────── */
.service-card {
  border: 1px solid rgba(6, 95, 70, 0.08);
}
.service-card:hover {
  border-color: rgba(6, 95, 70, 0.2);
}

/* ── Header scroll state ────────────────────────────── */
#site-header.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

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

/* ── Custom scrollbar ───────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #fefdf8; }
::-webkit-scrollbar-thumb { background: #065f46; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #047857; }

/* ── Focus visible ──────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Selection ──────────────────────────────────────── */
::selection { background: #d1fae5; color: #064e3b; }

/* ── Responsive tweaks ──────────────────────────────── */
@media (max-width: 640px) {
  .font-serif { line-height: 1.1; }
}
