/* Custom styles for Redwood Hall */

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

/* Scroll reveal base — content is VISIBLE by default for progressive enhancement */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only animate when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Navbar scroll state */
nav.scrolled {
  background: rgba(250, 249, 246, 0.95) !important;
  box-shadow: 0 1px 20px rgba(45, 78, 45, 0.08);
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle gradient for hero */
#hero {
  background: linear-gradient(135deg, #faf9f6 0%, #f0f5f0 50%, #faf9f6 100%);
}

/* Image hover zoom */
.group:hover .group-hover\\:scale-105 {
  transform: scale(1.05);
}

/* Custom focus styles */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(74, 126, 74, 0.15);
}

/* Selection color */
::selection {
  background: #b9d0b9;
  color: #1a2e1a;
}

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