/* ── Base ── */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F7F3E9; }
::-webkit-scrollbar-thumb { background: #065F46; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #047857; }

/* ── Selection ── */
::selection { background: #065F46; color: #FBF9F4; }

/* ── Nav active state on scroll ── */
#navbar.scrolled {
  box-shadow: 0 1px 0 rgba(2,46,34,0.08);
}

/* ── Button focus rings ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 2px;
}

/* ── Hero image parallax (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    will-change: transform;
    transition: transform 0.1s linear;
  }
}

/* ── Smooth image loading ── */
img {
  background-color: #F0E9D3;
  transition: opacity 0.3s ease;
}
img[loading="lazy"] { opacity: 0; }
img.loaded, img[data-loaded="true"] { opacity: 1; }
