/* ════════════════════════════════════════════════════════════════
   DOBRA 08 · FAQ (.faq-) — escopo próprio.
   Fundo gelo #e9ebef (padrão do site) · texto #0c0e14 · secundário
   rgba(12,14,20,0.62) · acento violeta do design system.
   Desktop: 2 colunas (categorias + contato | acordeons).
   Mobile: empilhado, categorias em scroll horizontal.
   ════════════════════════════════════════════════════════════════ */

.faq {
  position: relative;
  background: #e9ebef;
  color: #0c0e14;
  padding: clamp(72px, 10vw, 128px) 0;
  overflow: clip; /* nada vaza horizontalmente no mobile */
}

.faq-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  /* minmax(0,1fr): impede que conteúdo interno alargue a coluna além
     da viewport (causa do corte lateral no mobile) */
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}
.faq-inner > * { min-width: 0; }
@media (min-width: 1024px) {
  .faq-inner {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: 64px;
  }
}

/* ---------- coluna esquerda: header + categorias + contato ---------- */
.faq-title {
  margin-top: 16px;
  font-family: var(--f-section);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #0c0e14;
  max-width: 18ch;
}
.faq-title em {
  font-style: normal;
  background: linear-gradient(135deg, #9b5cff 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.faq-sub {
  margin-top: 16px;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(12, 14, 20, 0.62);
  max-width: 46ch;
}

/* categorias: lista vertical no desktop · OCULTAS no mobile
   (a lista mostra todas as perguntas direto) */
.faq-cats {
  margin-top: 32px;
  display: none;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.faq-cats::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .faq-cats {
    display: flex;
    flex-direction: column;
    overflow: visible;
    max-width: 280px;
  }
}
.faq-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  white-space: nowrap;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(12, 14, 20, 0.08);
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(12, 14, 20, 0.65);
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.faq-cat:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(124, 58, 237, 0.3);
  color: #0c0e14;
}
.faq-cat .n {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(12, 14, 20, 0.65);
}
.faq-cat.is-active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(124, 58, 237, 0.45);
  color: #0c0e14;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 28px rgba(12, 14, 20, 0.08);
}
.faq-cat.is-active .n { color: var(--purple-dark); }

/* card de contato */
.faq-contact {
  display: none;
  margin-top: 28px;
  padding: 26px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(12, 14, 20, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(12, 14, 20, 0.06),
    0 24px 64px rgba(12, 14, 20, 0.07);
  max-width: 320px;
}
@media (min-width: 1024px) {
  .faq-contact { display: block; }
}
.faq-contact h3 {
  font-family: var(--f-section);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0c0e14;
}
.faq-contact p {
  margin-top: 8px;
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(12, 14, 20, 0.62);
}
.faq-contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--f-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--purple-dark);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.2s ease;
}
.faq-contact-cta svg { width: 15px; height: 15px; }
.faq-contact-cta:hover { gap: 12px; color: var(--purple-brand); }

/* ---------- coluna direita: acordeons ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(12, 14, 20, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(12, 14, 20, 0.05);
  overflow: hidden;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.faq-item:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(124, 58, 237, 0.28);
}
.faq-item.is-open {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 30px rgba(12, 14, 20, 0.08);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-section);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0c0e14;
}

/* seta que gira ao abrir */
.faq-chev {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.08);
  color: var(--purple-dark);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.3s ease;
}
.faq-chev svg { width: 14px; height: 14px; }
.faq-item.is-open .faq-chev {
  transform: rotate(180deg);
  background: rgba(124, 58, 237, 0.16);
}

/* abertura suave via grid-rows (anima sem max-height mágico) */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; }
.faq-a-in p {
  padding: 0 22px 22px;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(12, 14, 20, 0.62);
  max-width: 60ch;
}

/* contato compacto no fim da lista (mobile, onde o card lateral some) */
.faq-contact--mobile {
  display: block;
  margin-top: 16px;
  max-width: none;
}
@media (min-width: 1024px) {
  .faq-contact--mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-a, .faq-chev, .faq-item, .faq-cat, .faq-contact-cta {
    transition: none !important;
  }
}
