/* Custom styles for Canyon Creek Campground */

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

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .site-card, .amenity-card, .testimonial-card {
    transition: none !important;
  }
  .site-card img, .amenity-card, .testimonial-card {
    transition: none !important;
  }
}

/* Navbar styles */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 95, 70, 0.08);
}

/* Hero */
#hero {
  scroll-margin-top: 0;
}

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

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Site cards */
.site-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.site-card:hover {
  transform: translateY(-4px);
}

/* Amenity cards */
.amenity-card {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.amenity-card:hover {
  transform: translateY(-2px);
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #6ee7b7;
}

/* Selection color */
::selection {
  background: #a7f3d0;
  color: #064e3b;
}

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

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

/* Subtle pattern overlay for cream backgrounds */
.bg-cream-50::before,
.bg-cream-100::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(6, 95, 70, 0.03) 1px, transparent 0);
  background-size: 32px 32px;
  z-index: 0;
}
