/* ============================================================
   FAQ ACCORDION | css/faq.css
   Perguntas frequentes com accordion expandível
   ============================================================ */

#faq {
    position: relative;
    padding: 100px 0 120px;
    background-color: var(--bg-secondary);
    overflow: hidden;
    z-index: 2;
}

/* ─── Header ─── */
.faq-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(48px, 6vw, 80px);
}

.faq-label {
    display: inline-block;
    font-family: var(--font-code);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 5px 16px;
    border: 1px solid var(--card-border);
    border-radius: 3rem;
    background: var(--primary-glow);
}

.faq-header .section-title {
    font-size: clamp(3.2rem, 5vw, 4.8rem);
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.faq-header .accent-title-drama {
    font-family: var(--font-drama);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 0;
}

.faq-intro {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ─── Accordion Container ─── */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ─── Item ─── */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── Trigger (Pergunta) ─── */
.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.faq-trigger:hover {
    color: rgba(165, 180, 252, 0.95);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 1.6vw, 1.7rem);
    font-weight: 600;
    line-height: 1.4;
}

/* Ícone de abrir/fechar */
.faq-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s ease,
                background 0.3s ease;
}

.faq-icon svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.1);
}

.faq-item.is-open .faq-icon svg {
    color: var(--primary);
}

.faq-trigger:hover .faq-icon {
    border-color: rgba(99, 102, 241, 0.2);
}

/* ─── Content (Resposta) ─── */
.faq-content {
    overflow: hidden;
    height: 0;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-answer {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 1.4vw, 1.5rem);
    color: var(--text-muted);
    line-height: 1.75;
    padding-bottom: 24px;
    max-width: 700px;
}

/* ─── Responsividade ─── */
@media (max-width: 768px) {
    #faq {
        padding: 80px 0 100px;
    }

    .faq-trigger {
        padding: 20px 0;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 1.35rem;
    }
}
