/* ── Base ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdfbf5;
}
::-webkit-scrollbar-thumb {
  background: #94c89b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d8a4e;
}

/* ── Selection ── */
::selection {
  background: #c3e1c8;
  color: #193a21;
}

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid #2d6f3c;
  outline-offset: 2px;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ── Header shrink on scroll ── */
header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── Mobile menu transition ── */
#mobileMenu {
  animation: fadeIn 0.2s ease;
}

/* ── Image lazy loading placeholder ── */
img {
  background: linear-gradient(135deg, #e1f0e5 0%, #f4ecce 100%);
}

/* ── Print styles ── */
@media print {
  header, footer, #contactForm, #formSuccess {
    display: none !important;
  }
  body {
    background: white !important;
  }
}
