/* Custom styles for Accurate Tax and Accounting Services */

:root {
  --scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Selection color */
::selection {
  background-color: rgba(13, 148, 136, 0.15);
  color: #0f766e;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0fdfa;
}
::-webkit-scrollbar-thumb {
  background: #99f6e0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5eead4;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(13, 148, 136, 0.08), 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.25s ease-out;
}
#mobile-menu.hidden {
  animation: slideUp 0.2s ease-in 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); }
}

/* FAQ animations */
.faq-icon {
  transition: transform 0.25s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-content {
  max-height: 300px;
}

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

/* Print styles */
@media print {
  #navbar, #back-to-top, .faq-toggle, button {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  a {
    color: black !important;
    text-decoration: underline !important;
  }
}

/* Service card hover image */
.group:hover .group-hover\:bg-teal-500 {
  background-color: #0d9488;
}
.group:hover .group-hover\:bg-teal-600 {
  background-color: #0f766e;
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
