/* Custom styles for Marcy at the Market */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fefdfb;
}
::-webkit-scrollbar-thumb {
  background: #d43554;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a11a3b;
}

/* Selection color */
::selection {
  background: #f9cdd8;
  color: #5c1329;
}

/* Prevent scroll-reveal flash — content is visible by default */
/* JS adds animation classes progressively */
@media (prefers-reduced-motion: no-preference) {
  .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);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Navbar scrolled state */
nav.scrolled {
  background: rgba(254, 253, 251, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(92, 19, 41, 0.08);
}

/* Button focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid #c9264e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu transitions */
#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

/* Image loading placeholder */
img {
  background-color: #fce7eb;
}
