/* Forest Lake State Forest Campground — Custom Styles */

/* Base reset & smooth scrolling */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Selection color */
::selection {
  background-color: rgba(51, 196, 145, 0.2);
  color: inherit;
}

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

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

/* Scroll reveal animations — progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Reveal hidden state — applied by JS */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* Nav transition states */
.nav-scrolled {
  background-color: rgba(6, 17, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled .nav-link-text {
  color: #ffffff;
}

.nav-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

.nav-scrolled .nav-link:hover {
  color: #ffffff;
}

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

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

::-webkit-scrollbar-track {
  background: #0a1e2e;
}

::-webkit-scrollbar-track:hover {
  background: #0f2a40;
}

::-webkit-scrollbar-thumb {
  background: #1a4a6e;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2d5f8a;
}

/* Light background scrollbar */
.light-scroll::-webkit-scrollbar-track {
  background: #f5f8fa;
}

.light-scroll::-webkit-scrollbar-thumb {
  background: #d4dfe8;
}

.light-scroll::-webkit-scrollbar-thumb:hover {
  background: #a8bdd4;
}

/* Button hover micro-interactions */
button, a {
  transition-property: color, background-color, border-color, transform, box-shadow;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-duration: 300ms;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #f0f4f8 inset !important;
  -webkit-text-fill-color: #0f2a40 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Image aspect ratio helpers */
.img-cover {
  object-fit: cover;
}

/* Thin decorative line animation */
@keyframes line-grow {
  from {
    width: 0;
  }
  to {
    width: 48px;
  }
}

.reveal-on-scroll .w-12.h-px {
  animation: line-grow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Print styles */
@media print {
  nav, #contact-form, button {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
  }
}
