/* ─── KEYFRAMES EXCLUSIVOS ───────────────────────────────── */
@keyframes ticker {
    0% {
        transform: translateX(0)
    }
    100% {
        transform: translateX(-50%)
    }
}

@keyframes expandIn {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        max-height: 600px;
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── HERO FAQ ──────────────────────────────────────────── */
.faq-hero {
    background: var(--grad-main);
    background-size: 300% 300%;
    animation: gradShift 12s ease infinite;
    padding: 5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 60% at 75% 50%, rgba(0, 168, 150, .2) 0%, transparent 70%),
        radial-gradient(ellipse 35% 45% at 15% 80%, rgba(244, 162, 97, .12) 0%, transparent 60%);
    pointer-events: none;
}

/* Herda .hero-circle do principal, mas com nomes específicos */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}

.hero-c1 {
    width: 420px;
    height: 420px;
    top: -100px;
    right: -100px;
}

.hero-c2 {
    width: 260px;
    height: 260px;
    bottom: -70px;
    left: -60px;
    border-color: rgba(0, 168, 150, .15);
}

.hero-c3 {
    width: 160px;
    height: 160px;
    top: 50%;
    right: 14%;
    border-color: rgba(244, 162, 97, .2);
    animation: float 6s ease-in-out infinite;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(0, 168, 150, .18);
    border: 1px solid rgba(0, 168, 150, .4);
    color: #5ef0e0;
    border-radius: 50px;
    padding: .35rem 1rem;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    animation: fadeDown .7s ease both;
    backdrop-filter: blur(8px);
    margin-bottom: 1.2rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #5ef0e0;
    border-radius: 50%;
    animation: blink-dot 1.2s ease-in-out infinite;
}

.faq-hero h1 {
    color: #fff;
}

.faq-hero h1 em {
    color: var(--amber);
    font-style: normal;
}

.faq-hero p.lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, .72);
    animation: fadeDown .9s ease .3s both;
    font-weight: 300;
    max-width: 500px;
    line-height: 1.7;
}

/* ___ BREADCRUMB ___ */
.faq-breadcrumb {
    margin: 0;
}

.faq-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, .6);
    font-size: .8rem;
    transition: color .2s;
}

.faq-breadcrumb .breadcrumb-item a:hover {
    color: var(--teal);
}

.faq-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, .4);
    font-size: .8rem;
}

.faq-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .3);
}

.faq-hero-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    animation: fadeDown 1s ease .2s both;
}

.faq-hero-title em {
    color: var(--amber);
    font-style: normal;
}

/* ─── SEARCH BAR ────────────────────────────────────────── */
.search-wrap {
    animation: fadeUp .9s ease .45s both;
    margin-top: 2.2rem;
}

.search-box {
    position: relative;
    max-width: 560px;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, .1);
    border: 1.5px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    padding: .9rem 1.2rem .9rem 3.2rem;
    font-family: var(--font-body);
    font-size: .95rem;
    color: #fff;
    backdrop-filter: blur(12px);
    outline: none;
    transition: border-color .25s, background .25s, box-shadow .25s;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.search-box input:focus {
    border-color: var(--teal);
    background: rgba(255, 255, 255, .15);
    box-shadow: 0 0 0 4px rgba(0, 168, 150, .2);
}

.search-box .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .5);
    font-size: 1rem;
    pointer-events: none;
    transition: color .25s;
}

.search-box input:focus~.search-icon {
    color: var(--teal);
}

.search-box .search-clear {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .4);
    font-size: .85rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.search-box.has-value .search-clear {
    opacity: 1;
    pointer-events: auto;
}

.search-count {
    margin-top: .75rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .55);
    min-height: 1.2rem;
    animation: fadeIn .3s ease;
}

.search-count strong {
    color: rgba(255, 255, 255, .85);
}

/* ─── CATEGORY PILLS ────────────────────────────────────── */
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.4rem;
    animation: fadeUp .9s ease .55s both;
}

.cat-pill {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .75);
    border-radius: 50px;
    padding: .3rem .9rem;
    font-size: .76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}

.cat-pill:hover {
    background: rgba(0, 168, 150, .2);
    border-color: var(--teal);
    color: #fff;
}

.cat-pill.active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

/* ─── STATS RÁPIDOS ─────────────────────────────────────── */
.hero-stats {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    animation: fadeUp .9s ease .65s both;
    margin-top: 2rem;
}

.hstat {
    text-align: center;
}

.hstat .num {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hstat .lbl {
    font-size: .7rem;
    color: rgba(255, 255, 255, .5);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .15rem;
}

/* ─── TICKER ────────────────────────────────────────────── */
.ticker-wrap {
    background: rgba(0, 168, 150, .12);
    border-top: 1px solid rgba(0, 168, 150, .2);
    border-bottom: 1px solid rgba(0, 168, 150, .2);
    overflow: hidden;
    padding: 1rem 0;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    gap: 3rem;
    animation: ticker 30s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 600;
    color: rgba(128, 128, 128, 0.7);
}

.ticker-item i {
    color: var(--teal);
    font-size: .7rem;
}

/* ─── LAYOUT PRINCIPAL ──────────────────────────────────── */
.faq-main {
    padding: 4.5rem 0 6rem;
}

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

.sidebar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 30, 61, .07);
}

.sidebar-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid rgba(11, 30, 61, .07);
}

/* Nav por categoria */
.cat-nav {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.cat-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .9rem;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s;
    color: var(--navy);
}

.cat-nav-item:hover {
    background: rgba(0, 168, 150, .08);
    color: var(--teal);
}

.cat-nav-item.active {
    background: var(--teal);
    color: #fff;
}

.cat-nav-item .cat-count {
    font-size: .7rem;
    font-weight: 700;
    background: rgba(11, 30, 61, .08);
    border-radius: 50px;
    padding: .1rem .5rem;
    transition: background .2s, color .2s;
}

.cat-nav-item.active .cat-count {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

.cat-nav-item .cat-icon {
    font-size: .85rem;
    margin-right: .5rem;
}

/* Card "Não achou?" */
.no-answer-card {
    margin-top: 1.2rem;
    background: linear-gradient(135deg, rgba(0, 168, 150, .08), rgba(0, 168, 150, .03));
    border: 1px solid rgba(0, 168, 150, .2);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
}

.no-answer-card .nac-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grad-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin: 0 auto .7rem;
}

.no-answer-card h6 {
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.no-answer-card p {
    font-size: .76rem;
    color: var(--muted);
    margin-bottom: .9rem;
    line-height: 1.5;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--grad-teal);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .78rem;
    padding: .5rem 1.1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    text-decoration: none;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 150, .35);
    color: #fff;
}

/* ─── SEÇÃO DE PERGUNTAS ────────────────────────────────── */
.faq-section {
    margin-bottom: 3.5rem;
}

.faq-section-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.4rem;
}

.section-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-section-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.faq-section-header .sect-count {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

/* ─── FAQ ITEM ──────────────────────────────────────────── */
.faq-item {
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: .7rem;
    overflow: hidden;
    border: 1px solid rgba(11, 30, 61, .07);
    transition: box-shadow .25s, border-color .25s, transform .25s;
}

.faq-item:hover {
    box-shadow: var(--shadow);
    transform: translateX(3px);
}

.faq-item.open {
    border-color: rgba(0, 168, 150, .25);
    box-shadow: 0 8px 32px rgba(0, 168, 150, .1);
    transform: translateX(0);
    padding: 1rem 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    gap: 1rem;
    font-weight: 600;
    font-size: .92rem;
    transition: color .2s;
    user-select: none;
}

.faq-question:hover {
    color: var(--teal);
}

.faq-item.open .faq-question {
    color: var(--teal);
}

.faq-question .faq-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(0, 168, 150, .1);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    transition: transform .35s cubic-bezier(.22, .68, 0, 1.2), background .25s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--teal);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .42s cubic-bezier(.4, 0, .2, 1), padding .3s;
    padding: 0 1.4rem;
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.75;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: .1rem 1.4rem 1.3rem;
}

.faq-answer a {
    color: var(--teal);
    font-weight: 600;
    transition: color .2s;
}

.faq-answer a:hover {
    color: var(--teal2);
}

/* highlight da busca */
.hl {
    background: rgba(244, 162, 97, .3);
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 700;
    color: var(--navy);
}

/* ─── EMPTY STATE ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.empty-state.visible {
    display: block;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(11, 30, 61, .05);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.4rem;
}

.empty-state h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.empty-state p {
    font-size: .88rem;
    color: var(--muted);
    max-width: 320px;
    margin: 0 auto;
}

/* ─── LOAD MORE ─────────────────────────────────────────── */
.load-more-wrap {
    text-align: center;
    margin-top: 2rem;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: 2px solid var(--teal);
    color: var(--teal);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .88rem;
    padding: .7rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background .25s, color .25s, transform .25s;
}

.btn-load-more:hover {
    background: var(--teal);
    color: #fff;
    transform: translateY(-2px);
}

.btn-load-more .spinner-border {
    display: none;
}

.btn-load-more.loading .bi-arrow-down-circle {
    display: none;
}

.btn-load-more.loading .spinner-border {
    display: inline-block;
}

/* ─── CTA BOTTOM ────────────────────────────────────────── */
#faq-cta {
    background: linear-gradient(135deg, #0a2a1a 0%, #0B3D2E 50%, #0a2a1a 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

#faq-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(0, 168, 150, .25) 0%, transparent 70%);
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media(max-width:991px) {
    .faq-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media(max-width:575px) {
    .faq-hero {
        padding: 4rem 0 3rem;
    }

    .hero-stats {
        gap: 1.2rem;
    }

    .hstat .num {
        font-size: 1.4rem;
    }
}