/* Custom styles for Grand Canyon Lodge North Rim */

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

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

/* Only apply hidden state when JS is active and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Navigation scroll state */
.nav-scrolled {
  background: rgba(14, 27, 47, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

/* FAQ accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-content {
  max-height: 300px;
  padding-top: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Subtle gradient text effect for gold accents */
.text-gold-gradient {
  background: linear-gradient(135deg, #d4a017 0%, #f5e099 50%, #d4a017 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

::-webkit-scrollbar-track {
  background: #f0f4fa;
}

::-webkit-scrollbar-thumb {
  background: #1e3a5f;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4a017;
}

/* Selection color */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #0e1b2f;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #f0f4fa 0%, #dce6f5 100%);
}

/* Button focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-reveal {
    transition: none;
  }
  .scroll-reveal[data-revealed="false"] {
    opacity: 1;
    transform: none;
  }
  .faq-content {
    transition: none;
  }
  img {
    animation: none;
  }
}
