/* Base & Utilities */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* Scroll Reveal — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(252, 253, 251, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 94, 32, 0.08);
}

/* Mobile link fade */
.mobile-link {
  transition: color 0.2s ease;
}

/* Subtle gradient for hero image overlay */
.hero-gradient {
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.15) 0%, transparent 60%);
}

/* Custom focus styles */
*:focus-visible {
  outline: 2px solid #1B5E20;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: #a8d4a8;
  color: #0f2b0f;
}
