/* ============================================
   PÁGINA FAQ - Impacto Designer
   ============================================ */

/* Hero/Topo da página FAQ */
.faq-hero {
    background: linear-gradient(135deg, #4c74e0 0%, #062886 100%);
    color: white;
    padding: 8rem 0 3rem;
    margin-top: 10px;
    text-align: center;
}

.faq-hero h2 {
    color: #fff;
    font-size: 2.5rem;
    text-shadow: 4px 4px 4px #121213;
    margin-bottom: 0.5rem;
}

.faq-hero p {
    color: #bfdbfe;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 2px 2px 4px #000;
}

/* Seção principal do FAQ */
.faq-section {
    padding: 3rem 0;
    background: white;
}

/* Cabeçalho de cada categoria */
.faq-category {
    margin-bottom: 2.5rem;
}

.faq-category-title {
    font-size: 1.5rem;
    color: var(--cor-primaria);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--cor-orange);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-shadow: 1px 1px 4px #fff;
}

.faq-category-title i {
    color: var(--cor-orange);
}

/* ============================================
   ACCORDION
   ============================================ */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Item individual do accordion */
.faq-item {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    background: #fff;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Item aberto */
.faq-item.active {
    border-color: var(--cor-primaria);
    box-shadow: 0 4px 16px rgba(61, 95, 192, 0.15);
}

/* Botão da pergunta */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    text-align: left;
    font-family: inherit;
    transition: all 0.3s ease;
    line-height: 1.4;
}

/* Hover na pergunta */
.faq-question:hover {
    background: rgb(215, 222, 236);
    color: var(--cor-primaria);
}

/* Item aberto - pergunta destacada */
.faq-item.active .faq-question {
    background: var(--cor-primaria);
    color: white;
}

/* Ícone +/- na pergunta */
.faq-question .faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cor-primaria);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Ícone quando aberto */
.faq-item.active .faq-question .faq-icon {
    background: white;
    color: var(--cor-primaria);
    transform: rotate(180deg);
}

/* Área da resposta (inicialmente oculta) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #fff;
}

/* Resposta visível */
.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Conteúdo da resposta */
.faq-answer-inner {
    padding: 1rem 1.2rem;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid #e5e7eb;
}

.faq-answer-inner p {
    margin-bottom: 0.6rem;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner ul {
    margin: 0.4rem 0;
    padding-left: 1.2rem;
}

.faq-answer-inner li {
    margin-bottom: 0.3rem;
}

.faq-answer-inner strong {
    color: var(--cor-primaria);
}

/* Link CTA dentro da resposta */
.faq-answer-inner .faq-cta {
    display: inline-block;
    margin-top: 0.5rem;
    background: var(--cor-orange);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.faq-answer-inner .faq-cta:hover {
    background: var(--cor-primaria);
    transform: translateY(-1px);
}

/* Botão "Ver todos" / CTA final */
.faq-cta-final {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.faq-cta-final p {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .faq-hero {
        padding: 7rem 0 2rem;
    }

    .faq-hero h2 {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .faq-answer-inner {
        padding: 0.8rem 1rem;
        font-size: 0.88rem;
    }

    .faq-category-title {
        font-size: 1.2rem;
    }
}
