/* Range Creek Trailhead Campground — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F4F1EB;
}
::-webkit-scrollbar-thumb {
  background: #3D405B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5C5F7B;
}

/* Hero animations */
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.hero-image {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(255, 253, 249, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(61, 64, 91, 0.08);
}

.nav-scrolled .menu-line {
  background: #3D405B;
}

/* Site cards */
.site-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.site-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-card:nth-child(2) { transition-delay: 0.15s; }
.site-card:nth-child(3) { transition-delay: 0.3s; }

/* Gallery items */
.gallery-item {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}

/* Mobile menu */
.mobile-menu-open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  width: 24px;
}

/* About images */
.about-images {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-images.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-content {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-content.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Trail section items */
.trail-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.trail-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Contact section */
.contact-info {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-info.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-form-wrapper {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-form-wrapper.visible {
  opacity: 1;
  transform: translateX(0);
}

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

/* Focus visible */
:focus-visible {
  outline: 2px solid #E07A5F;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .hero-content,
  .hero-image {
    opacity: 1;
    transform: none;
  }
}
