/* Custom styles for Oak View Hall */

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

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

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

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

::-webkit-scrollbar-thumb {
  background: #8B1A1A;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #701515;
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(250, 248, 246, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(139, 26, 26, 0.1);
}

/* Mobile menu animations */
.menu-line {
  transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .reveal.revealed {
    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; }
}

/* Reduced motion */
@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;
  }
}

/* Date input styling fix */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}

/* Form select styling */
select option {
  background: #3a0808;
  color: white;
}

/* Image lazy loading fade */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

img[data-src].loaded {
  opacity: 1;
}
