/* FAQ Section */
.faq {
    background-color: var(--darker-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    --light-x: 50%;
    --light-y: 50%;
}

/* Adicionando uma borda com degradê sutil na parte inferior, igual à da seção cases */
.faq::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 20%, 
        #64b5ff 50%, 
        var(--primary-color) 80%, 
        transparent 100%);
    opacity: 0.7;
    box-shadow: 0 0 8px 1px rgba(100, 181, 255, 0.4);
}

/* Elementos decorativos de fundo */
.faq::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0) 70%);
    z-index: 1;
}

.faq .container {
    position: relative;
    z-index: 2;
}

.faq .section-header p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto 50px;
}

/* Estilo para o item da FAQ */
.faq-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background-color: var(--light-color);
    display: block !important; /* Garantir que o item seja sempre exibido como bloco */
    opacity: 1 !important; /* Garantir que o item seja sempre visível */
    visibility: visible !important; /* Garantir que o item seja sempre visível */
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Estilo para o cabeçalho da pergunta */
.faq-question {
    padding: 25px 30px;
    display: flex !important; /* Garantir que o cabeçalho seja sempre exibido como flex */
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    user-select: none;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, border-radius 0.3s ease;
    opacity: 1 !important; /* Garantir que o cabeçalho seja sempre visível */
    visibility: visible !important; /* Garantir que o cabeçalho seja sempre visível */
}

.faq-question:hover {
    background-color: var(--primary-dark);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    opacity: 1 !important; /* Garantir que o título seja sempre visível */
}

.faq-question h3 .emoji {
    margin-right: 10px;
    font-size: 1.4rem;
    display: inline-block;
}

/* Adicionando o ícone de toggle */
.toggle-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    opacity: 1 !important; /* Garantir que o ícone seja sempre visível */
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.toggle-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.toggle-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Quando o item está ativo (expandido), escondemos a linha vertical para formar um "-" */
.faq-item.active .toggle-icon::after {
    transform: translateX(-50%) scaleY(0);
}

/* Adicionamos uma animação de rotação ao toggle */
.faq-item .toggle-icon {
    transform: rotate(0deg);
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

/* Ajustar o border-radius quando o item não está ativo */
.faq-item:not(.active) .faq-question {
    border-radius: var(--border-radius);
}

/* Ajustar o border-radius quando o item está ativo */
.faq-item.active .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Estilo para o conteúdo da resposta */
.faq-answer {
    background-color: var(--dark-color);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 30px;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    position: relative;
    z-index: 1;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Valor alto o suficiente para acomodar o conteúdo */
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
    padding: 25px 30px;
}

.faq-answer-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.faq-item.active .faq-answer-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.faq-answer p {
    margin: 0;
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--text-light-color);
}

.faq-cta {
    text-align: center;
    padding: 40px 0 20px;
    position: relative;
    z-index: 1;
}

/* Estilo copiado exatamente da seção cases */
.faq-cta .highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin: 30px auto;
    padding: 25px 35px;
    max-width: 90%;
    background: linear-gradient(135deg, rgba(6, 88, 246, 0.15) 0%, rgba(30, 41, 59, 0.8) 50%, rgba(6, 88, 246, 0.15) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(2deg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    --light-x: 50%;
    --light-y: 50%;
    text-align: left;
}

.faq-cta .highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            circle at var(--light-x) var(--light-y),
            rgba(255, 255, 255, 0.15) 0%,
            transparent 50%
        ),
        linear-gradient(90deg, 
            rgba(6, 88, 246, 0) 0%, 
            rgba(6, 88, 246, 0.1) 50%, 
            rgba(6, 88, 246, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    z-index: -1;
    transition: all 0.3s ease;
}

.faq-cta .highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(6, 88, 246, 0.7) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(34, 197, 94, 0.7) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    animation: borderRotate 8s linear infinite;
}

/* Animação de shimmer */
@keyframes shimmer {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Animação de rotação da borda */
@keyframes borderRotate {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 0%;
    }
}

/* Animação de pulso para o emoji */
.emoji-pulse {
    display: inline-block;
    animation: emoji-pulse 2s infinite;
    margin-right: 10px;
    font-size: 1.4rem;
}

@keyframes emoji-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.faq-cta .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .faq-question {
        padding: 20px 25px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 0 25px;
    }
    
    .faq-item.active .faq-answer {
        padding: 20px 25px;
    }
    
    .faq .section-header p {
        font-size: 1rem;
    }
    
    .faq-cta .highlight {
        padding: 20px 25px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .faq-question {
        padding: 18px 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 18px 20px;
    }
    
    .faq-cta .highlight {
        padding: 15px 20px;
        font-size: 1rem;
    }
} 