/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Reveal on Scroll (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(40px);
  }
}

/* ── Navbar Scroll State ── */
#navbar.scrolled {
  background: rgba(253, 251, 247, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 94, 32, 0.1);
}

#navbar.scrolled .font-serif,
#navbar.scrolled a:not([href^="tel"]) {
  color: #3a2b1f;
}

#navbar.scrolled .mobile-link {
  color: #3a2b1f;
}

/* ── Selection ── */
::selection {
  background: rgba(27, 94, 32, 0.2);
  color: #1a4a24;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #faf5eb; }
::-webkit-scrollbar-thumb { background: #bce0c2; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8ec79a; }

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid #1B5E20;
  outline-offset: 2px;
}
