/* Base */
html {
  scroll-behavior: smooth;
}

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

/* Scroll reveal — progressive enhancement via JS */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Nav */
#nav {
  background: transparent;
}

#nav.scrolled {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(45, 94, 45, 0.1);
}

/* Mobile menu */
#mobile-menu.open {
  display: block;
}

#mobile-menu ul {
  display: flex;
  flex-direction: column;
}

/* Form inputs focus styles */
input:focus,
textarea:focus {
  outline: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #faf9f6;
}

::-webkit-scrollbar-thumb {
  background: #bcd3bc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8fb88f;
}
