/* ── FAQ — Art Bross ───────────────────────────── */

#perguntas-frequentes {
    width: 100%;
    max-width: 860px;
    margin: 40px auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* Contador automático */
.faq-container {
    counter-reset: faq-counter;
}

/* Item */
.duvidas-section .faq-item,
#perguntas-frequentes .faq-item,
.faq-item {
    position: relative;
    margin-bottom: 14px;
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-left: 3px solid rgba(147, 51, 234, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0535 0%, #1e0a3c 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    transition: border-left-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    counter-increment: faq-counter;
    z-index: 1;
}

#perguntas-frequentes .faq-item:hover {
    border-left-color: #9333EA;
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.25);
    transform: translateX(3px);
}

.faq-item.active {
    border-left-color: #C084FC;
    box-shadow: 0 4px 24px rgba(147, 51, 234, 0.35);
}

/* Número decorativo de fundo */
.faq-item::before {
    content: counter(faq-counter, decimal-leading-zero);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(147, 51, 234, 0.05);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    transition: color 0.3s ease;
    z-index: 0;
}

.faq-item.active::before {
    color: rgba(147, 51, 234, 0.08);
}

/* Pergunta */
.duvidas-section .faq-question,
#perguntas-frequentes .faq-question,
.faq-question {
    background: transparent;
    color: #9333EA;
    cursor: pointer;
    padding: 20px 24px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
}

.faq-question h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    color: #C084FC;
    line-height: 1.4;
    flex: 1;
    padding-right: 20px;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
    color: #ffffff;
}

/* Ícone chevron */
.faq-icon {
    margin-left: 12px;
    font-size: 0;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(147, 51, 234, 0.12);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 50%;
    transition: all 0.35s ease;
    pointer-events: auto !important;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 2;
}

/* Substituir o + por chevron via pseudo-element */
.faq-icon::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #9333EA;
    border-bottom: 2px solid #9333EA;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.35s ease, border-color 0.3s ease;
}

.faq-item.active .faq-icon {
    background: rgba(147, 51, 234, 0.25);
    border-color: #9333EA;
}

.faq-item.active .faq-icon::before {
    transform: rotate(-135deg) translateY(-2px);
    border-color: #C084FC;
}

/* Resposta */
.duvidas-section .faq-answer,
#perguntas-frequentes .faq-answer,
.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: rgba(45, 27, 71, 0.5);
    color: #CBD5E0;
    padding: 0 24px;
    transition: max-height 0.35s ease-in-out, padding 0.35s ease-in-out, opacity 0.3s ease;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    font-size: 0.925rem;
    line-height: 1.7;
    border-top: 1px solid rgba(147, 51, 234, 0.15);
    position: relative;
    z-index: 1;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 18px 24px 22px;
    opacity: 1;
    visibility: visible;
}

.faq-answer a {
    color: #C084FC;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-answer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.faq-answer ul, .faq-answer ol {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* Responsivo */
@media (max-width: 768px) {
    .faq-question h3 { font-size: 0.95rem; }
    .faq-item::before { font-size: 3rem; right: 50px; }
}

@media (max-width: 480px) {
    #perguntas-frequentes { padding: 10px; margin: 20px auto; }
    .faq-question { padding: 16px 18px; }
    .faq-question h3 { font-size: 0.9rem; padding-right: 12px; }
    .faq-item::before { display: none; }
    .faq-answer { font-size: 0.85rem; }
    .faq-item.active .faq-answer { padding: 14px 18px 18px; }
}

#perguntas-frequentes *,
#perguntas-frequentes *:before,
#perguntas-frequentes *:after {
    box-sizing: border-box;
}
