/* Base & Typography */
html {
  scroll-behavior: smooth;
}

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

/* Mobile Menu */
.menu-open {
  display: block;
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Fallback: always visible if JS is disabled */
.reveal {
  opacity: 1;
  transform: none;
}

/* Navbar scroll state */
.nav-scrolled {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faf6f3;
}

::-webkit-scrollbar-thumb {
  background: #a11d3c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #841d37;
}

/* Selection color */
::selection {
  background: #fce4e9;
  color: #3d0a16;
}
