/* SEÇÃO 13 — Dúvidas =======================================================
   Usa <details>/<summary> nativos: funciona sem JavaScript, é acessível
   por padrão e o conteúdo continua indexável pelo Google. */

.faq__lista {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__pergunta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  line-height: 1.3;
  color: var(--text);
  transition: color var(--dur-base) var(--ease-out);
}

.faq__pergunta::-webkit-details-marker {
  display: none;
}

.faq__pergunta:hover {
  color: var(--amber-700);
}

/* Sinal de + que vira − quando aberto */
.faq__pergunta::after {
  content: '';
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background:
    linear-gradient(var(--amber-600), var(--amber-600)) center / 100% 2px no-repeat,
    linear-gradient(var(--amber-600), var(--amber-600)) center / 2px 100% no-repeat;
  transition: transform var(--dur-base) var(--ease-out);
}

.faq__item[open] .faq__pergunta::after {
  background:
    linear-gradient(var(--amber-600), var(--amber-600)) center / 100% 2px no-repeat;
  transform: rotate(180deg);
}

.faq__resposta {
  padding-bottom: var(--sp-5);
  padding-right: var(--sp-8);
}

.faq__resposta p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-soft);
  text-wrap: pretty;
}

/* Abertura suave — só onde o navegador suporta animar altura automática */
@supports (interpolate-size: allow-keywords) {
  .faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size var(--dur-base) var(--ease-out),
      content-visibility var(--dur-base) allow-discrete;
  }

  .faq__item[open]::details-content {
    block-size: auto;
  }
}

@media (max-width: 29.99rem) {
  .faq__pergunta {
    font-size: var(--text-base);
  }

  .faq__resposta {
    padding-right: 0;
  }
}
