/* ═══════════════════════════════════════════════════════════
   faq.css — Seção 7 (FAQ) de /criacao-de-sites.
   Accordion vertical, exclusivo (só 1 resposta aberta por vez).
   Altura animada via grid-template-rows 0fr→1fr (sem JS medindo
   pixel de altura). Sem card, sem ícone de biblioteca — só
   chevron próprio, linha divisória fina entre perguntas.
═══════════════════════════════════════════════════════════ */

.faq {
  padding: 104px 0;
}

.faq-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.faq-head {
  text-align: center;
  margin-bottom: 56px;
}

.faq-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-q {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  min-height: 64px;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-trigger span:first-child {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .2s ease;
}

.faq-icon svg {
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.faq-item.is-open .faq-icon {
  background: var(--text);
  color: #fff;
}

.faq-item.is-open .faq-icon svg {
  transform: rotate(180deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.16, 1, .3, 1);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text2);
  padding: 0 4px 24px;
  max-width: 70ch;
}

.faq-panel a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  .faq-panel,
  .faq-icon,
  .faq-icon svg {
    transition-duration: .01ms;
  }
}

@media (max-width: 720px) {
  .faq {
    padding: 64px 0;
  }

  .faq-head {
    margin-bottom: 40px;
  }

  .faq-trigger span:first-child {
    font-size: 15.5px;
  }
}
