/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ── Nav ─────────────────────────────────────────── */
#nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#nav.scrolled {
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}
.nav-link {
  color: rgba(27, 67, 50, 0.7);
  transition: color 0.25s ease;
}
.nav-link:hover { color: #1B4332; }
#nav.scrolled .nav-link { color: rgba(27, 67, 50, 0.7); }
#nav.scrolled .nav-link:hover { color: #1B4332; }
#nav:not(.scrolled) .nav-link { color: rgba(255,255,255,0.8); }
#nav:not(.scrolled) .nav-link:hover { color: #fff; }
.nav-logo { transition: transform 0.3s ease; }
.nav-logo:hover { transform: rotate(-8deg) scale(1.05); }

/* ── Reveal on Scroll ────────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-reveal-delay] { transition-delay: attr(data-reveal-delay); }

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

/* ── Mobile Menu ─────────────────────────────────── */
#mobile-menu a {
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
}
#mobile-menu a:last-child {
  border-bottom: none;
}

/* ── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f3efe6; }
::-webkit-scrollbar-thumb { background: #b9d1bc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8fb893; }

/* ── Selection ───────────────────────────────────── */
::selection { background: #dce8df; color: #1B4332; }
