/* Base & utilities */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal — progressive enhancement, respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered delays */
  .scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
  .scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
  .scroll-reveal[data-delay="3"] { transition-delay: 0.3s; }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(253, 248, 240, 0.92) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
  background: #A7F3D0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6EE7B7;
}

/* Selection color */
::selection {
  background: #A7F3D0;
  color: #064E3B;
}
