/* Custom styles for Down Range FL */

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

/* Navbar glass effect on scroll */
nav.scrolled {
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 20px rgba(0,0,0,0.04);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FAF5EB;
}
::-webkit-scrollbar-thumb {
  background: #E3C486;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C1694F;
}

/* Selection color */
::selection {
  background: #ECBFA8;
  color: #562821;
}

/* Mobile menu transitions */
#mobileMenu {
  animation: slideDown 0.3s ease forwards;
}
#mobileMenu.hidden {
  animation: slideUp 0.2s ease forwards;
}

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

/* Mobile link hover */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #C1694F;
  transition: width 0.3s ease;
}
.mobile-link:hover::after {
  width: 100%;
}

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

/* Image lazy loading fade */
img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(193,105,79,0.04) 1px, transparent 0);
  background-size: 24px 24px;
}

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

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

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