/* ==========================================================================
   CDA — Perguntas Frequentes (frontend)
   ========================================================================== */

.cda-faqs,
.cda-faqs *,
.cda-faqs *::before,
.cda-faqs *::after { box-sizing: border-box; }

.cda-faqs {
    --cda-faq-acento: #2C6E49;
    --cda-faq-texto:  #1a1a1a;
    --cda-faq-fundo:  #ffffff;
    --cda-faq-bola:   #1a1a1a;
    --cda-faq-bola-acento: var(--cda-faq-acento);

    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: inherit;
    color: var(--cda-faq-texto);
}

/* ── Título ─────────────────────────────────────────────── */
.cda-faqs__titulo {
    text-align: center;
    color: var(--cda-faq-acento);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 1.8rem;
    line-height: 1.2;
}

/* ── Lista ──────────────────────────────────────────────── */
.cda-faqs__lista {
    display: flex;
    flex-direction: column;
}

/* ── Item ───────────────────────────────────────────────── */
.cda-faq-item {
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Cabeçalho clicável */
.cda-faq-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    background: var(--cda-faq-fundo);
    border: 1px solid #ececea;
    border-radius: 4px;
    padding: 1.2rem 1.5rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    margin-top: 4px;
}
.cda-faq-item:first-child .cda-faq-item__head { margin-top: 0; }

.cda-faq-item__head:hover { background: #f6f6f5; }
.cda-faq-item__head:focus-visible {
    outline: 2px solid var(--cda-faq-acento);
    outline-offset: 2px;
}

/* Título da pergunta */
.cda-faq-item__titulo {
    font-weight: 700;
    color: var(--cda-faq-texto);
    transition: color .15s;
    flex: 1;
}

/* Bolinha com chevron */
.cda-faq-item__icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cda-faq-bola);
    color: #fff;
    flex-shrink: 0;
    transition: background .2s ease, transform .25s ease;
}

/* Estado ATIVO */
.cda-faq-item.is-open .cda-faq-item__titulo {
    color: var(--cda-faq-acento);
}
.cda-faq-item.is-open .cda-faq-item__icone {
    background: var(--cda-faq-bola-acento);
    transform: rotate(180deg);
}

/* Corpo da resposta — fora do bloco branco */
.cda-faq-item__corpo {
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease;
}
.cda-faq-item.is-open .cda-faq-item__corpo {
    /* JS define o max-height: scrollHeight, depois 'none' após transição */
}
.cda-faq-item__corpo[hidden] { display: none; }

.cda-faq-item__resposta {
    padding: 1.4rem 1.5rem 1.6rem;
    color: var(--cda-faq-texto);
    font-size: .95rem;
    line-height: 1.65;
}
.cda-faq-item__resposta p:first-child { margin-top: 0;text-align: left!important }
.cda-faq-item__resposta p:last-child  { margin-bottom: 0;text-align: left!important }
.cda-faq-item__resposta a {
    color: var(--cda-faq-acento);
    text-decoration: underline;
	
}
.cda-faq-item__resposta a:hover { text-decoration: none; }
.cda-faq-item__resposta strong  { font-weight: 700; }

/* ── Estado vazio ───────────────────────────────────────── */
.cda-faqs--empty {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 2rem;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 600px) {
    .cda-faqs { padding: 1.5rem .8rem; }
    .cda-faq-item__head {
        padding: 1rem 1.2rem;
        font-size: .95rem;
        gap: .6rem;
    }
    .cda-faq-item__icone {
        width: 28px;
        height: 28px;
    }
    .cda-faq-item__resposta {
        padding: 1.1rem 1.2rem 1.4rem;
        font-size: .9rem;
    }
}
