/* ─── BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

/* Smooth scroll offset for fixed header */
section[id] {
  scroll-margin-top: 80px;
}

a {
  text-decoration: none;
}

/* ─── SCROLL REVEAL (progressive enhancement — content visible by default) ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 1;
    transform: none;
  }
  .reveal-left {
    opacity: 1;
    transform: none;
  }
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* ─── NAV ─── */
#site-header {
  background: transparent;
}

#site-header.scrolled {
  background: rgba(10, 21, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(253, 252, 250, 0.06);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #8fbc8f;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  position: relative;
  padding: 0.5rem 0;
}

/* ─── FORM ─── */
select option {
  background: #fdfcfa;
  color: #3a2f1f;
}

/* ─── SUBTLE PATTERNS ─── */
.bg-pattern-dots {
  background-image: radial-gradient(circle, rgba(253,252,250,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ─── SELECTION ─── */
::selection {
  background: rgba(45, 92, 45, 0.2);
  color: #1a341a;
}

/* ─── FOCUS VISIBLE ─── */
:focus-visible {
  outline: 2px solid #5e9e5e;
  outline-offset: 2px;
}

/* ─── MOBILE MENU ANIMATION ─── */
#mobile-menu.open {
  max-height: 400px;
}

/* ─── HOVER TRANSITIONS ─── */
button, a {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

/* ─── IMAGE LOADING ─── */
img {
  display: block;
  max-width: 100%;
}
