/* Custom styles beyond Tailwind */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
  background: #a01d3e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #831934;
}

/* Selection color */
::selection {
  background: #a01d3e;
  color: #FFF8F5;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid rgba(109, 22, 44, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(109, 22, 44, 0.2);
}
.faq-item.active {
  border-color: rgba(109, 22, 44, 0.3);
  box-shadow: 0 4px 20px rgba(109, 22, 44, 0.08);
}
.faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: white;
  transition: background 0.3s ease;
}
.faq-question:hover {
  background: #fdf2f4;
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fdf2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.faq-item.active .faq-icon {
  background: #a01d3e;
  transform: rotate(45deg);
}
.faq-icon svg {
  color: #a01d3e;
  transition: color 0.3s ease;
}
.faq-item.active .faq-icon svg {
  color: white;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: #4b5563;
  line-height: 1.7;
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile link hover */
.mobile-link {
  position: relative;
}
.mobile-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #a01d3e;
  transition: width 0.3s ease;
}
.mobile-link:hover::after {
  width: 100%;
}

/* Reduced motion */
@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;
  }
}

/* Scroll reveal animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 0;
  transform: translateY(30px);
}

/* At media (prefers-reduced-motion: no-preference) only apply animations */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}
