/* Base resets and selection */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

*::selection,
::selection {
  background-color: rgba(15, 23, 42, 1);
  color: #fff;
}

/* Scroll animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .animate-spin {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Spin animation for dashboard loader */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

/* Lightbox body lock */
body.lightbox-open {
  overflow: hidden;
}

/* FAQ Accordion */
.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-bottom 0.3s ease-out;
  padding-bottom: 0;
}

.faq-item.is-open .faq-content {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-toggle:hover {
  background-color: rgba(248, 250, 252, 0.5);
}
