/* ── Variáveis ─────────────────────────────────────────────────────────────── */
:root {
    --escuro: #0D1B2A;
    --azul:   #1E88E5;
    --verde:  #00B894;
    --fundo:  #F2F4F7;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--escuro);
    background: var(--fundo);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.home-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 2rem;
    background: rgba(13, 27, 42, .95);
    backdrop-filter: blur(8px);
}

.home-nav .nav-logo { height: 70px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    font-weight: 500;
    transition: color .2s;
}

.nav-links a:hover { color: #fff; }

.nav-entrar {
    padding: .5rem 1.25rem;
    background: var(--azul);
    color: #fff !important;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    transition: opacity .2s;
}

.nav-entrar:hover { opacity: .85; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.faq-hero {
    background: var(--escuro);
    padding: 8rem 2rem 4rem;
    text-align: center;
    color: #fff;
}

.faq-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.faq-hero p {
    color: rgba(255,255,255,.65);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Busca ─────────────────────────────────────────────────────────────────── */
.faq-busca {
    display: flex;
    justify-content: center;
    padding: 2rem 2rem 0;
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
}

.faq-busca input {
    width: 100%;
    max-width: 560px;
    padding: .85rem 1.2rem;
    border-radius: 10px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: .95rem;
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    color: var(--escuro);
}

.faq-busca input::placeholder { color: #aaa; }

/* ── Layout principal ──────────────────────────────────────────────────────── */
.faq-layout {
    max-width: 920px;
    margin: 2.5rem auto 5rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.faq-sidebar {
    position: sticky;
    top: 100px;
}

.faq-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.faq-sidebar a {
    font-size: .8rem;
    font-weight: 500;
    color: #7a8a9a;
    padding: .45rem .75rem;
    border-radius: 7px;
    border-left: 3px solid transparent;
    transition: all .18s;
    line-height: 1.4;
}

.faq-sidebar a:hover,
.faq-sidebar a.ativo {
    color: var(--azul);
    border-left-color: var(--azul);
    background: rgba(30,136,229,.07);
}

/* ── Conteúdo ──────────────────────────────────────────────────────────────── */
.faq-conteudo { min-width: 0; }

/* ── Seção ─────────────────────────────────────────────────────────────────── */
.faq-secao {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.faq-secao-titulo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--escuro);
    padding-bottom: .75rem;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1rem;
}

/* ── Item accordion ────────────────────────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid #e8edf3;
}

.faq-item.oculto { display: none; }

.faq-pergunta {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    color: var(--escuro);
    padding: 1rem .25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    line-height: 1.5;
    transition: color .18s;
}

.faq-pergunta:hover { color: var(--azul); }

.faq-pergunta .chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e8edf3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .22s, background .18s;
    font-style: normal;
    font-size: .65rem;
    color: #7a8a9a;
}

.faq-pergunta[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
    background: var(--azul);
    color: #fff;
}

.faq-resposta {
    display: none;
    padding: 0 .25rem 1rem;
    font-size: .875rem;
    color: #4a5568;
    line-height: 1.75;
}

.faq-resposta.aberta { display: block; }

.faq-resposta p + p { margin-top: .6rem; }

.faq-resposta code {
    font-family: 'Courier New', monospace;
    background: #eef2f7;
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .82rem;
    color: #2d3748;
}

/* ── Tabela ────────────────────────────────────────────────────────────────── */
.faq-tabela {
    width: 100%;
    border-collapse: collapse;
    margin: .75rem 0 .25rem;
    font-size: .82rem;
}

.faq-tabela th,
.faq-tabela td {
    border: 1px solid #dde3ec;
    padding: .5rem .75rem;
    text-align: left;
    line-height: 1.4;
}

.faq-tabela th {
    background: #f0f4fa;
    font-weight: 600;
    color: var(--escuro);
}

.faq-tabela td { color: #4a5568; }

/* ── Lista numerada ────────────────────────────────────────────────────────── */
.faq-lista {
    margin: .5rem 0 .25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.faq-lista li { font-size: .875rem; color: #4a5568; }

/* ── Badge de status ───────────────────────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: .15rem .55rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}

.status-pendente   { background: #fef3c7; color: #92400e; }
.status-andamento  { background: #dbeafe; color: #1e40af; }
.status-concluida  { background: #d1fae5; color: #065f46; }
.status-expirada   { background: #fee2e2; color: #991b1b; }

/* ── Sem resultados ────────────────────────────────────────────────────────── */
.faq-vazio {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
    font-size: .9rem;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.home-footer {
    background: #08111c;
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
}

.home-footer-empresa {
    margin-top: .35rem;
    font-size: .7rem;
    color: rgba(255, 255, 255, .25);
}

/* ── CTA final ─────────────────────────────────────────────────────────────── */
.faq-cta {
    background: var(--escuro);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.faq-cta h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: .6rem; }
.faq-cta p  { color: rgba(255,255,255,.65); margin-bottom: 1.5rem; }

.btn-cta {
    display: inline-block;
    padding: .75rem 2rem;
    background: var(--verde);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    transition: opacity .2s;
}

.btn-cta:hover { opacity: .87; }

/* ── Responsivo ────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .faq-sidebar {
        position: static;
        display: flex;
        overflow-x: auto;
        padding-bottom: .5rem;
        margin-bottom: 1.5rem;
    }

    .faq-sidebar nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: .4rem;
    }

    .faq-sidebar a {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 0;
        padding: .35rem .6rem;
    }

    .faq-sidebar a:hover,
    .faq-sidebar a.ativo {
        border-left: none;
        border-bottom-color: var(--azul);
    }

    .faq-hero h1 { font-size: 1.75rem; }
}
