/* ===== Custom styles for Serenity Lodge ===== */

/* Scroll animation for scroll indicator */
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}
.animate-scroll-line {
  animation: scrollLine 1.5s ease-in-out infinite;
}

/* Mobile menu transitions */
#mobileMenu.open {
  opacity: 1;
  pointer-events: auto;
}
#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Menu button animation */
.menu-line {
  display: block;
  transition: all 0.3s ease;
}
body.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
body.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
body.menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 24px;
}

/* Nav background on scroll */
#nav.scrolled {
  background: rgba(250, 250, 246, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(62, 104, 62, 0.1);
}

/* Scroll reveal — progressive enhancement, only below the fold */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Form focus styles */
input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(62, 104, 62, 0.2);
}

/* Smooth image loading */
img {
  image-rendering: auto;
}

/* Selection color */
::selection {
  background: #c2d9c0;
  color: #121c12;
}
