/* ===== Base & Utilities ===== */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Header scroll state ===== */
#site-header.scrolled {
  background: rgba(253, 249, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(45, 100, 70, 0.08), 0 4px 20px rgba(45, 100, 70, 0.06);
}

/* ===== Mobile link hover ===== */
.mobile-link:hover {
  color: #2e7049;
  padding-left: 0.5rem;
  transition: padding-left 0.15s ease, color 0.15s ease;
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
  background: #B0DBBF;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5BA87B;
}

/* ===== Focus visible ===== */
*:focus-visible {
  outline: 2px solid #3D8C5C;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Selection ===== */
::selection {
  background: #D5EDE0;
  color: #153321;
}
