/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5f3ee; }
::-webkit-scrollbar-thumb { background: #8fba90; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5e9660; }

/* Scroll reveal base — content is visible by default, JS adds .revealed */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
.navbar-scrolled #navbar {
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(46, 97, 52, 0.08), 0 4px 24px rgba(46, 97, 52, 0.06);
}

/* Hero text is visible on load — no animation gating */
.hero-content { opacity: 1; transform: none; }

/* Mobile menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open {
  max-height: 400px;
}

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

/* Selection */
::selection {
  background: #bcd7bd;
  color: #1f3f22;
}
