/* Custom styles for Central Nebraska Neurofeedback */

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

/* Selection color */
::selection {
  background: #ff8a6a;
  color: #ffffff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
  background: #c4c6cc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9a9da7;
}

/* Fade-in animation for elements below the fold */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    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);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Navbar scroll state */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(12, 14, 17, 0.15);
}

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

/* Service card hover */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(22, 24, 29, 0.12);
}

/* Mobile menu animation */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
#mobile-menu.hidden {
  max-height: 0;
  opacity: 0;
}
#mobile-menu:not(.hidden) {
  max-height: 400px;
  opacity: 1;
}
