/* Rodapé do site (site/_rodape): estados por região, rodapé e bolha do WhatsApp.
   Usado pela home, páginas de estado/município e de resultado (presidente, governador, prefeito). */

/* ── ESTADOS POR REGIÃO ── */
.states-nav {
    background: #08080f;
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 52px 6% 44px;
    font-family: 'Montserrat', sans-serif;
}

.states-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.states-nav-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.states-nav-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .25);
}

.states-nav-year {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(243, 167, 18, .45);
}

.states-nav-regions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 20px;
}

.states-nav-region-name {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .18);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.states-nav-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.states-nav-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 4px;
    padding: 4px 10px;
    text-decoration: none;
    transition: color .18s, background .18s, border-color .18s;
    letter-spacing: .3px;
}

.states-nav-tag:hover {
    color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .14);
}

.states-nav-tag.current {
    color: #F3A712;
    background: rgba(243, 167, 18, .08);
    border-color: rgba(243, 167, 18, .28);
    font-weight: 700;
}

@media (max-width: 900px) {
    .states-nav-regions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Celular: uma região por linha, estados quebrando na largura toda (tudo visível, sem arrastar) */
@media (max-width: 640px) {
    .states-nav {
        padding: 36px 16px 32px;
    }

    .states-nav-header {
        margin-bottom: 20px;
    }

    .states-nav-regions {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .states-nav-region-name {
        margin-bottom: 10px;
    }

    .states-nav-tags {
        gap: 8px;
    }

    .states-nav-tag {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ── RODAPÉ ── */
footer.site-footer {
    background: #0f0f1e;
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding: 40px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-family: 'Montserrat', sans-serif;
}

.site-footer .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.footer-right {
    display: flex;
    gap: 28px;
    align-items: center;
}

.footer-link {
    font-size: 13px;
    color: rgba(255, 255, 255, .3);
    text-decoration: none;
    transition: color .25s;
}

.footer-link:hover {
    color: #F3A712;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, .3);
}

@media (max-width: 768px) {
    footer.site-footer {
        flex-direction: column;
        text-align: center;
        /* espaço para a bolha do WhatsApp não cobrir os links */
        padding-bottom: 96px;
    }

    .footer-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 24px;
    }
}

/* ── BOLHA DO WHATSAPP ── */
.whatsapp-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.whatsapp-bubble-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: waBubblePop .6s cubic-bezier(.34, 1.56, .64, 1) both;
    animation-delay: 1.2s;
}

.whatsapp-bubble-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 36px rgba(37, 211, 102, .65);
}

.whatsapp-bubble-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    flex-shrink: 0;
}

.whatsapp-bubble-tooltip {
    background: rgba(15, 15, 30, .95);
    border: 1px solid rgba(37, 211, 102, .3);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

.whatsapp-bubble:hover .whatsapp-bubble-tooltip {
    opacity: 1;
    transform: translateY(0);
}

@keyframes waBubblePop {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .whatsapp-bubble {
        bottom: 20px;
        right: 16px;
    }

    .whatsapp-bubble-btn {
        width: 52px;
        height: 52px;
    }
}

/* ── PRIVACIDADE E COOKIES (esquerda; a bolha do WhatsApp fica à direita) ── */
.cookie-box {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1090;
    width: min(420px, calc(100vw - 48px));
    background: rgba(26, 26, 46, .97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    padding: 18px 20px 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
    font-family: 'Montserrat', sans-serif;
    color: #fff;
}

.cookie-box[hidden] { display: none; }

.cookie-topo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cookie-icone {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(243, 167, 18, .5);
    background: rgba(243, 167, 18, .12);
    color: #F3A712;
    display: grid;
    place-items: center;
    flex: none;
}

.cookie-icone svg { width: 18px; height: 18px; }

.cookie-topo strong { font-size: 14px; font-weight: 800; flex: 1; }

.cookie-fechar {
    background: none;
    border: 0;
    color: rgba(255, 255, 255, .5);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

.cookie-fechar:hover { color: #fff; }

.cookie-box p {
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .7);
    margin: 0 0 14px;
}

.cookie-box p a { color: #F3A712; }

.cookie-ok {
    display: block;
    margin-left: auto;
    background: #F3A712;
    color: #111;
    border: 0;
    border-radius: 999px;
    padding: 10px 22px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-ok:hover { background: #dda010; }

/* Celular: ocupa a base da tela até a bolha do WhatsApp, sem cobri-la */
@media (max-width: 640px) {
    .cookie-box {
        left: 12px;
        bottom: 12px;
        width: calc(100vw - 24px - 68px);
        padding: 14px 14px 16px;
        border-radius: 14px;
    }

    .cookie-box p { font-size: 12px; }

    .cookie-ok { width: 100%; text-align: center; }
}
