/* Custom styles for Deer Time Ranch */

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

/* Selection color */
::selection {
  background-color: rgba(200, 168, 78, 0.2);
  color: #0a1628;
}

/* Nav transition states */
nav.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

nav.scrolled .nav-link {
  color: rgba(10, 22, 40, 0.7);
}

nav.scrolled .nav-text {
  color: #0a1628;
}

nav.scrolled .menu-line {
  background-color: #0a1628;
}

/* Mobile menu active state */
.mobile-menu-open #mobileMenu {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-open .menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.5rem;
}

/* Scroll reveal base - always visible by default */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply animation when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* Form focus styles */
input:focus,
textarea:focus {
  outline: none;
}

/* Image loading */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* Subtle hover underline animation for links */
a:not(.no-underline):hover {
  transition: all 0.3s ease;
}

/* Ensure the hero image doesn't cause layout shift */
@media (min-width: 1024px) {
  .hero-img-container {
    aspect-ratio: 7 / 9;
  }
}
