/* === BASE === */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

::selection {
  background: #1B4332;
  color: #FDFFF9;
}

/* === MARQUEE === */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* === SCROLL REVEAL (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

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

  /* Stagger children */
  .reveal-group > .reveal:nth-child(1) { transition-delay: 0s; }
  .reveal-group > .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal-group > .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal-group > .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* === NAV SCROLLED STATE === */
#nav.scrolled {
  background: rgba(253, 255, 249, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

#nav.scrolled .font-display,
#nav.scrolled .text-forest-800,
#nav.scrolled a:not(.bg-forest-800):not(.bg-mustard-400) {
  color: #1B4332;
}

/* === MOBILE MENU === */
.mobile-link {
  display: block;
}

/* === IMAGE TRANSITIONS === */
img {
  transition: transform 0.5s ease;
}

/* === FOCUS VISIBLE === */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #E9C46A;
  outline-offset: 2px;
  border-radius: 4px;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF9F0;
}
::-webkit-scrollbar-thumb {
  background: #1B4332;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2E7D32;
}
