/* ========================================== */
/* CSS DA SEÇÃO FAQ - ADICIONE AO STYLE.CSS   */
/* ========================================== */

/* Seção FAQ */
.faq-section {
    padding: 70px 0;
    background-color: var(--bg-light);
}

@media (min-width: 768px) {
    .faq-section {
        padding: 100px 0;
    }
}

.faq-subtitle {
    text-align: center;
    color: var(--text-mid);
    margin-bottom: 40px;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .faq-subtitle {
        font-size: 1.1rem;
        margin-bottom: 50px;
    }
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

/* Item FAQ */
.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    transition: background 0.2s;
}

@media (min-width: 768px) {
    .faq-question {
        padding: 22px 28px;
        font-size: 1.05rem;
    }
}

.faq-question i {
    color: var(--accent-dark);
    font-size: 1rem;
    transition: transform 0.3s ease;
    margin-left: 15px;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    padding: 0 22px;
    color: var(--text-mid);
    line-height: 1.6;
    font-size: 0.95rem;
    border-top: 1px solid transparent;
}

@media (min-width: 768px) {
    .faq-answer {
        padding: 0 28px;
    }
}

.faq-item.active .faq-answer {
    max-height: 500px; /* suficiente para o conteúdo */
    padding: 0 22px 20px 22px;
    border-top-color: rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .faq-item.active .faq-answer {
        padding: 0 28px 25px 28px;
    }
}

.faq-answer p {
    margin: 0;
}

/* Rodapé do FAQ */
.faq-footer {
    text-align: center;
    margin-top: 40px;
}

.faq-footer p {
    color: var(--text-mid);
}

.faq-footer a {
    color: var(--accent-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.faq-footer a:hover {
    color: #7ba00a;
}

/* Ajuste para responsividade */
@media (max-width: 480px) {
    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    .faq-item.active .faq-answer {
        padding: 0 18px 16px 18px;
    }
}