/* =========================
   FAQ — Mobile First
========================= */

.faq {
  padding: var(--space-14) 0 var(--space-12);
  background-color: var(--bg-light);
}

/* --- Título --- */
.faq__title {
  font-family: var(--font-main);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  line-height: 1.25;
  margin-bottom: var(--space-10);
}

/* --- Lista de itens --- */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 740px;
  margin: 0 auto;
}

/* --- Item --- */
.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  overflow: hidden;
  transition: border-color var(--transition-fast) ease;
}

.faq-item--open {
  border-color: var(--primary-color);
}

/* --- Botão trigger (pergunta + ícone) --- */
.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-9);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--transition-fast) ease;
}

.faq-item--open .faq-item__trigger {
  background-color: var(--color-bg-hero-start);
}

/* Texto da pergunta */
.faq-item__question {
  font-family: var(--font-main);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  transition: color var(--transition-fast) ease;
}

.faq-item--open .faq-item__question {
  color: var(--primary-dark);
}

/* Ícone + / × */
.faq-item__icon {
  flex-shrink: 0;
  font-size: var(--fs-xl);
  font-weight: 300;
  line-height: 1;
  color: var(--primary-dark);
  transition: transform var(--transition-fast) ease;
  user-select: none;
}

.faq-item__icon::before {
  content: "+";
}

.faq-item--open .faq-item__icon::before {
  content: "×";
}

/* --- Corpo com a resposta --- */
.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease;
}

.faq-item--open .faq-item__body {
  max-height: 400px; /* generoso o suficiente para qualquer resposta */
}

.faq-item__answer {
  padding: var(--space-7) var(--space-9) var(--space-9);
  font-size: var(--fs-md);
  color: var(--text-light);
  line-height: 1.75;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* =========================
   DESKTOP (≥ 768px)
========================= */
@media (min-width: 768px) {
  .faq__title {
    font-size: var(--fs-3xl);
  }

  .faq-item__question {
    font-size: var(--fs-md);
  }
}
