/* ========================================
   FAQ - Perguntas Frequentes
   Fernanda Semijoias
   ======================================== */

/* -- Hero -- */
.faq-hero {
    position: relative;
    min-height: 340px;
    height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -2rem;
}
.faq-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102,7,165,0.92), rgba(102,7,165,0.7), rgba(198,128,227,0.55));
}
.faq-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 1rem;
    max-width: 700px;
    width: 100%;
}
.faq-hero-content h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.faq-hero-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* -- Busca -- */
.faq-search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto;
    transition: all 0.3s;
}
.faq-search-box:focus-within {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 20px rgba(102,7,165,0.3);
}
.faq-search-box .material-symbols-outlined {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
}
.faq-search-box input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    flex: 1;
    width: 100%;
}
.faq-search-box input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* -- Seção Principal -- */
.faq-section {
    padding: 2.5rem 1rem 3rem;
}
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* -- Tabs -- */
.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.faq-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border: 1.5px solid var(--border, #e0e0e0);
    border-radius: 50px;
    background: #fff;
    color: var(--text-muted, #888);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.faq-tab .material-symbols-outlined {
    font-size: 1.1rem;
}
.faq-tab-count {
    background: var(--bg-light, #f5f5f5);
    color: var(--text-muted, #888);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    min-width: 1.3rem;
    text-align: center;
}
.faq-tab:hover {
    border-color: var(--primary, #6607A5);
    color: var(--primary, #6607A5);
}
.faq-tab.active {
    background: var(--primary, #6607A5);
    color: #fff;
    border-color: var(--primary, #6607A5);
    box-shadow: 0 4px 15px rgba(102,7,165,0.25);
}
.faq-tab.active .faq-tab-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* -- Lista FAQ -- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: #fff;
    border: 1px solid rgba(102,7,165,0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.faq-item:hover {
    border-color: rgba(102,7,165,0.15);
    box-shadow: 0 4px 16px rgba(102,7,165,0.06);
}
.faq-item.open {
    border-color: var(--primary, #6607A5);
    box-shadow: 0 4px 20px rgba(102,7,165,0.1);
}
.faq-item.hidden {
    display: none;
}

/* -- Pergunta -- */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}
.faq-question:hover {
    background: rgba(102,7,165,0.02);
}
.faq-q-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.faq-q-text {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}
.faq-arrow {
    color: var(--primary, #6607A5);
    font-size: 1.5rem;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

/* -- Badge categoria -- */
.faq-cat-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.faq-cat-pedidos   { background: #e3f2fd; color: #1565c0; }
.faq-cat-pagamento { background: #e8f5e9; color: #2e7d32; }
.faq-cat-entrega   { background: #fff3e0; color: #e65100; }
.faq-cat-produtos  { background: #f3e5f5; color: #7b1fa2; }
.faq-cat-trocas    { background: #fce4ec; color: #c62828; }
.faq-cat-geral     { background: #f5f5f5; color: #616161; }

/* -- Resposta -- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.75;
    border-top: 1px solid rgba(102,7,165,0.06);
    padding-top: 1rem;
}
.faq-answer-inner p {
    margin-bottom: 0.75rem;
}
.faq-answer-inner ul,
.faq-answer-inner ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    list-style: disc !important;
}
.faq-answer-inner ol {
    list-style: decimal !important;
}
.faq-answer-inner li {
    margin-bottom: 0.35rem;
    display: list-item !important;
}

/* -- Sem resultados -- */
.faq-no-results, .faq-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted, #888);
}
.faq-no-results .material-symbols-outlined,
.faq-empty .material-symbols-outlined {
    font-size: 3.5rem;
    color: var(--primary-light, #C680E3);
    display: block;
    margin-bottom: 0.75rem;
}
.faq-no-results h3, .faq-empty h2 {
    color: #333;
    margin-bottom: 0.5rem;
}
.faq-no-results a, .faq-empty a {
    color: var(--primary, #6607A5);
    text-decoration: underline;
}

/* -- CTA -- */
.faq-cta {
    padding: 0 1rem 3rem;
}
.faq-cta-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary, #6607A5), #8b2fc9);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #fff;
    flex-wrap: wrap;
}
.faq-cta-box > .material-symbols-outlined {
    font-size: 3rem;
    opacity: 0.8;
}
.faq-cta-box h2 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.faq-cta-box p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin: 0;
}
.faq-cta-box > div:first-of-type {
    flex: 1;
    min-width: 200px;
}
.faq-cta-btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.btn-faq-contato, .btn-faq-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.btn-faq-contato {
    background: #fff;
    color: var(--primary, #6607A5);
}
.btn-faq-contato:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-faq-contato .material-symbols-outlined {
    font-size: 1.1rem;
}
.btn-faq-whatsapp {
    background: #25d366;
    color: #fff;
}
.btn-faq-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

/* -- FAQ Contato (seção resumida) -- */
.contato-faq-section {
    padding: 2.5rem 0 0;
}
.contato-faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.contato-faq-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}
.contato-faq-header h2 .material-symbols-outlined {
    color: var(--primary, #6607A5);
}
.contato-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--primary, #6607A5);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.contato-faq-link:hover {
    color: var(--primary-light, #C680E3);
}
.contato-faq-link .material-symbols-outlined {
    font-size: 1rem;
}

/* -- Responsivo -- */
@media (min-width: 768px) {
    .faq-hero-content h1 {
        font-size: 3rem;
    }
}
@media (max-width: 768px) {
    .faq-hero {
        min-height: 260px;
        height: 35vh;
    }
    .faq-hero-content h1 {
        font-size: 1.75rem;
    }
    .faq-tabs {
        gap: 0.35rem;
    }
    .faq-tab {
        padding: 0.45rem 0.85rem;
        font-size: 0.78rem;
    }
    .faq-cat-badge {
        display: none;
    }
    .faq-question {
        padding: 1rem;
    }
    .faq-q-text {
        font-size: 0.9rem;
    }
    .faq-answer-inner {
        padding: 0 1rem 1rem;
        font-size: 0.875rem;
    }
    .faq-cta-box {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    .faq-cta-btns {
        flex-direction: column;
        width: 100%;
    }
    .btn-faq-contato, .btn-faq-whatsapp {
        justify-content: center;
    }
}
