/* Custom styles for 17 Ranch Winery */

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

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

/* Scroll reveal animations - progressive enhancement via JS */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.is-hidden {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* Navbar transition */
#navbar.scrolled {
  background: rgba(254, 253, 251, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(132, 43, 43, 0.1);
}

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

/* Selection color */
::selection {
  background: #842b2b;
  color: #fefdfb;
}
