/* Custom styles for Valley View Campground */

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

/* Base font settings */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
  background: #9fb3c8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #627d98;
}

/* Card hover effect */
.card-hover {
  transform: translateY(0);
}
.card-hover:hover {
  transform: translateY(-4px);
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(10, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #facc15;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after {
  width: 60%;
}

/* Mobile link hover */
.mobile-link {
  display: block;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

/* Input focus */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.2);
}

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

/* Gallery image hover */
#gallery img {
  transition: transform 0.7s ease;
}
#gallery img:hover {
  transform: scale(1.05);
}

/* Gold accent line */
section > .max-w-7xl > div > .text-center > span {
  position: relative;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered reveal delays */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* Print styles */
@media print {
  #navbar, #hero, #gallery, .reveal { display: none; }
  body { color: #000; background: #fff; }
}
