/* Custom styles for Manchester KOA Campground */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFFBF0;
}
::-webkit-scrollbar-thumb {
  background: #047857;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #065f46;
}

/* Selection color */
::selection {
  background: #047857;
  color: #FFFBF0;
}

/* Navbar transition */
#navbar.scrolled {
  background: rgba(255, 251, 240, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(4, 120, 87, 0.08);
}

#navbar.scrolled .font-display {
  color: #047857;
}

/* Hero image parallax-like effect */
#hero img {
  will-change: transform;
}

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.fade-in-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.fade-in-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* Amenity card hover glow */
.group:hover .w-14 {
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

/* Image hover zoom */
.group img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Button press effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
  transform: scale(0.98) !important;
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in, .fade-in-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .group img {
    transition: none;
  }
  .group:hover .w-14 {
    box-shadow: none;
  }
}

/* Print styles */
@media print {
  nav, #contact, footer, .fade-in {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
