/* ==========================================================================
   FAQ — Dúvidas frequentes sobre o TW Direction
   ========================================================================== */

.faq {
    padding: var(--space-section) 0;
    background-color: var(--color-bg);
}

.faq__container {
    max-width: 1216px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */

.faq__header {
    text-align: center;
    margin-bottom: clamp(28px, calc(14.29px + 1.34vw), 40px);
}

.faq__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: #252B37;
}

.faq__badge img {
    width: 16px;
    height: 16px;
}

.faq__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-h1);
    line-height: 1.2;
    color: var(--color-dark);
    letter-spacing: -0.02em;
    margin-top: 20px;
}

.faq__subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 16px auto 0;
}

/* ===== Accordion ===== */

.faq__accordion {
    max-width: 1216px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 0;
    background: var(--color-white);
    border: 1px solid #E2E8E2;
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq__item--active {
    background: #AECA37;
    border-color: #E2E8E2;
    gap: 8px;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: var(--font-card-title-size);
    font-weight: 500;
    line-height: 32px;
    color: #181D27;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq__item--active .faq__question {
    color: #181D27;
}

/* ===== Ícone +/- ===== */

.faq__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 44px;
    border: 1px solid #E2E8E2;
    background: transparent;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.faq__icon-minus {
    display: none;
}

.faq__item--active .faq__icon {
    background: var(--color-white);
    border-color: transparent;
}

.faq__item--active .faq__icon-plus {
    display: none;
}

.faq__item--active .faq__icon-minus {
    display: block;
}

/* ===== Resposta (collapse/expand) ===== */

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0;
    padding-right: 68px;
}

.faq__item--active .faq__answer {
    padding-right: 68px;
}

.faq__answer p {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text-body);
}

.faq__item:not(.faq__item--active) .faq__answer p {
    color: var(--color-text-muted);
}

/* ===== CTA ===== */

.faq__cta-wrapper {
    text-align: center;
    margin-top: var(--space-gap-xl);
}

.faq__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 28px;
    background-color: var(--color-button);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    text-decoration: none;
}

.faq__cta:hover {
    background-color: #0f1d36;
}

.faq__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-white);
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--color-dark);
}

.faq__cta-icon svg {
    width: 18px;
    height: 18px;
}

/* ===== Mobile ===== */

@media (max-width: 768px) {
    .faq__title {
        font-size: clamp(20px, 4.5vw, 26px);
    }

    .faq__title br {
        display: none;
    }

    .faq__subtitle {
        font-size: 15px;
    }

    .faq__question {
        font-size: clamp(14px, 2.5vw, 16px);
        padding: 14px 16px;
        gap: 12px;
    }

    .faq__icon {
        width: 32px;
        height: 32px;
    }

    .faq__icon svg {
        width: 16px;
        height: 16px;
    }

    .faq__answer {
        padding: 0 16px;
    }

    .faq__item--active .faq__answer {
        padding: 0 16px 14px;
    }

    .faq__answer p {
        font-size: 14px;
    }

    .faq__cta-wrapper {
        margin-top: 36px;
    }
}
