/* Custom styles for Tony's Panaderia */

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

/* Scroll indicator animation */
@keyframes scroll-indicator {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.animate-scroll-indicator {
  animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .animate-scroll-indicator {
    animation: none;
  }
}

/* Default state for reveal elements - visible */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
.navbar-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Selection color */
::selection {
  background-color: rgba(61, 98, 51, 0.15);
  color: #1a2e16;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #3d6233;
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #98bf8e;
}

/* Mobile menu transition */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobileMenu.open {
  max-height: 400px;
}
