/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Scroll Reveal (progressive enhancement) ───── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── Navbar transition ──────────────────────────── */
#navbar.scrolled {
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(6, 78, 59, 0.08);
}
#navbar.scrolled .nav-text-color {
  color: #064e3b;
}
#navbar.scrolled .nav-link {
  color: #064e3b;
}

/* ── Custom scrollbar ───────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #FFF9EC; }
::-webkit-scrollbar-thumb { background: #059669; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #047857; }

/* ── Selection ──────────────────────────────────── */
::selection { background: #059669; color: #FFFDF7; }
