/* Custom styles for Pearis Mercantile */

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Scroll reveal base — content always visible by default */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden initial state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .reveal[data-reveal="hidden"] {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(254, 253, 251, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
  background: #f4a7ba;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #dc4d68;
}

/* Selection color */
::selection {
  background: #f9cfd8;
  color: #6e1a2d;
}
