/* =====================================================
    RODAPÉ — Recomendo Sites
    Um só rodapé para a home, a página Sobre e o blog.
    Não depende do estilo.css nem do blog.css.
===================================================== */

/* Página curta (ex.: /contato/, /assinar/): o rodapé fica colado no fim da tela, sem faixa clara embaixo. Só vale
   onde o rodapé é filho direto do body; o resto da página não muda de lugar (conferido em 03/12/2026). */
body:has(> footer.site-footer) {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body:has(> footer.site-footer) > footer.site-footer {
    margin-top: auto;
}

.site-footer {
    background: #0f172a;
    color: #fff;
    padding: 45px 0 25px;
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

.site-footer .footer-container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer p {
    margin: 0;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-brand p {
    color: #94a3b8;
    font-size: 13px;
    max-width: 350px;
    margin-top: 15px;
}

.site-footer .footer-title {
    font-size: 14px;
    margin-bottom: 15px;
}

.site-footer .footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
    color: #fff;
}

.site-footer .footer-bottom {
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #64748b;
    font-size: 12px;
}

/* Espaço à direita para o botão flutuante do WhatsApp não cobrir o texto */
@media (min-width: 651px) {
    .site-footer .footer-bottom {
        padding-right: 80px;
    }
}

@media (max-width: 950px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .site-footer .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    /* Espaço para o botão flutuante do WhatsApp não cobrir o texto final */
    .site-footer {
        padding: 40px 0 100px;
    }

    /* Marca em cima; Navegação e Empresa lado a lado, e Serviços na linha de baixo */
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        padding-bottom: 28px;
    }

    .site-footer .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 26px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-footer .footer-brand p {
        max-width: none;
        margin-top: 12px;
        font-size: 14px;
    }

    .site-footer .footer-title {
        margin-bottom: 6px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .site-footer .footer-links {
        gap: 0;
        font-size: 14px;
        color: #cbd5e1;
    }

    /* Área de toque de 44 px no celular */
    .site-footer .footer-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding-top: 20px;
        text-align: center;
    }
}
