/* Seção de FAQ */
.faq {
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
    padding: var(--spacing-xxl) 0;
    display: flex;
    justify-content: center;
}

.faq-container {
    max-width: 1228px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.faq-header {
    text-align: center;
    width: 100%;
}

.faq-title {
    font-family: var(--font-secondary);
    font-weight: 400; /* Regular */
    color: var(--color-blue-brand);
    font-size: clamp(32px, 4vw, 47.2px);
    line-height: 1;
    letter-spacing: -2.08px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.faq-title span {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 300; /* Light */
    color: var(--color-text);
    font-size: clamp(36px, 4.5vw, 52px);
    letter-spacing: -0.52px;
}

.faq-accordion {
    width: 100%;
    max-width: 724px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--color-white);
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 14px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 10px;
}

.faq-question span {
    flex: 1;
    font-weight: 500;
    font-size: 18.6px;
    line-height: 30px;
    letter-spacing: -0.4px;
    color: var(--color-text);
}

/* Ícone de + / - animado usando CSS puro */
.faq-icon {
    flex-shrink: 0;
    width: 30px;
    height: 28.8px;
    background-color: var(--color-primary);
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-white);
    border-radius: 1px;
}

/* Traço horizontal do + / - */
.faq-icon::before {
    width: 12px;
    height: 2px;
}

/* Traço vertical do + */
.faq-icon::after {
    width: 2px;
    height: 12px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    background-color: var(--color-text); /* Muda cor no estado ativo se desejado */
}

/* Quando ativo, esconde o traço vertical para virar apenas um - */
.faq-item.active .faq-icon::after {
    transform: scaleY(0);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 18px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.6;
    color: #4A4A4A;
    padding-bottom: 18px;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Grande o suficiente para o texto */
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
    .faq {
        padding: var(--spacing-xl) 0;
    }
    
    .faq-title {
        flex-direction: column;
        gap: 4px;
    }
    
    .faq-question span {
        font-size: 16px;
        line-height: 1.4;
    }
}
