/* Custom styles for Lincoln Tax Service */

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

/* Selection color */
::selection {
  background-color: #3d663d;
  color: #fdfcf8;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #3d663d;
  outline-offset: 2px;
}

/* Navbar scroll effect */
.navbar-scrolled {
  box-shadow: 0 1px 12px rgba(45, 82, 50, 0.08);
}

/* Fade-in animations for scroll reveal */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #8fb88f;
}

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

.faq-content.open {
  max-height: 300px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in-up {
    animation: none;
  }
  .faq-content {
    transition: none;
  }
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.25s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 400px;
  }
}
