/* ── Base & Reset ── */
*, *::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; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; color: inherit; }

/* ── Hero Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation-name: fadeUp;
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
}
@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Navbar ── */
#nav { transition: background-color 0.4s ease, box-shadow 0.4s ease; }
#nav.scrolled {
  background-color: rgba(15, 26, 19, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Mobile Menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}
.mobile-link {
  transition: opacity 0.3s ease;
}
.mobile-link:hover {
  opacity: 0.7;
}

/* ── Selection ── */
::selection {
  background-color: rgba(74, 124, 86, 0.3);
  color: inherit;
}

/* ── Focus ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid #8fb896;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── Smooth Scroll Offset for Anchors ── */
section[id] {
  scroll-margin-top: 80px;
}
