/* ============================================
   WICFLOW — FAQ Section
   ============================================ */

.faq {
  background-color: var(--bg-alt);
}

.faq__heading {
  margin-bottom: 2rem;
  transition-delay: 0.1s;
}

.faq__list {
  max-width: 48rem;
}

.faq__item {
  border-top: 1px solid var(--border-subtle);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--text-muted);
}

.faq__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 1rem;
  transition: transform 0.3s var(--ease-spring);
  color: var(--text-muted);
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-spring), padding 0.35s var(--ease-spring);
}

.faq__item.active .faq__answer {
  max-height: 12rem;
}

.faq__answer-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-bottom: 1.5rem;
  max-width: 52ch;
}

@media (max-width: 640px) {
  .faq__question {
    font-size: 1.1rem;
    padding: 1.25rem 0;
  }
}
