/* ==========================================================================
   SEÇÃO FAQ - CSS OTIMIZADO PARA CONVERSÃO
   ========================================================================== */

.faq {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 50%, rgba(42,91,127,0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(102,124,77,0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Header do FAQ */
.faq-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.faq-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.faq-header .section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 15px;
}

.faq-header .section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Container do FAQ */
.faq-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Item do FAQ */
.faq-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(42,91,127,0.15);
}

/* Pergunta */
.faq-question {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(42,91,127,0.02);
}

.faq-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-right: 20px;
    flex-shrink: 0;
}

.faq-question h3 {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    line-height: 1.4;
}

.faq-toggle {
    width: 30px;
    height: 30px;
    background: rgba(42,91,127,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-toggle i {
    font-size: 16px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    background: var(--primary);
}

.faq-item.active .faq-toggle i {
    color: white;
    transform: rotate(45deg);
}

/* Resposta */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.faq-answer p strong {
    color: var(--dark);
}

.faq-extra {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(42,91,127,0.05) 0%, rgba(102,124,77,0.05) 100%);
    border-radius: 10px;
    margin-top: 15px;
}

.faq-extra i {
    color: var(--success);
    font-size: 18px;
}

.faq-extra span {
    font-size: 14px;
    color: var(--dark);
    font-weight: 600;
}

/* Extra Box - OTIMIZADO: Removida animação rotate */
.faq-extra-box {
    background: linear-gradient(135deg, var(--primary) 0%, #1a4058 100%);
    border-radius: 30px;
    padding: 50px;
    color: white;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* OTIMIZAÇÃO: Gradiente estático ao invés de animado */
.faq-extra-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.extra-box-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.extra-box-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.extra-box-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.extra-box-content p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.95;
}

/* OTIMIZAÇÃO: Sombras reduzidas */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25D366;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37,211,102,0.25);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.3);
    background: #22c55e;
}

.btn-whatsapp i {
    font-size: 24px;
}

/* FAQ CTA - OTIMIZADO */
.faq-cta {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.faq-cta h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark);
}

.faq-cta p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
}

/* OTIMIZAÇÃO: Sombras reduzidas */
.btn-cta-faq {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--secondary) 0%, #ff3b30 100%);
    color: white;
    padding: 25px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(217,102,71,0.25);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.btn-cta-faq:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(217,102,71,0.35);
}

.btn-cta-faq .btn-subtitle {
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    opacity: 0.95;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.security-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
}

.security-badges i {
    color: var(--primary);
}

/* Responsividade */
@media (max-width: 1024px) {
    .faq-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 60px 0;
    }
    
    .faq-header {
        margin-bottom: 40px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-right: 15px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-extra-box {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }
    
    .extra-box-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
        margin-bottom: -35px;
    }
    
    .faq-cta {
        padding: 40px 20px;
    }
    
    .btn-whatsapp {
        width: max-content;
        justify-content: center;
    }
}

/* OTIMIZAÇÃO: Animação removida para performance */
/* A animação rotate foi removida completamente */

/* OTIMIZAÇÃO: Reduce Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* OTIMIZAÇÃO: Touch targets para mobile */
@media (max-width: 768px) {
    .faq-question {
        min-height: 44px;
    }
    
    .faq-toggle {
        width: 44px;
        height: 44px;
    }
    
    .btn-whatsapp,
    .btn-cta-faq {
        min-height: 44px;
        width: max-content;
        padding: 10px 20px;
    }
    .faq-item.active .faq-answer {
        max-height: none !important;   /* tira o teto */
        overflow: visible !important;  /* evita cortar o bloco extra */
        padding-bottom: 16px;          /* dá respiro para o .faq-extra */
    }
    .faq-extra {
        margin-top: 12px;
    }
}