/* ===== ESTILOS DO FOOTER ===== */

/* Footer fixo estilo app */
:root {
    --footer-h: 70px;
}

/* Body reserva espaço para footer */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom));
}

/* Footer fixo */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-h);
    width: 100%;
    background: #222;
    color: #fff;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Links do footer (ícone + texto) */
footer a {
    color: #aaa;
    text-decoration: none;
    text-align: center;
    font-size: 0.75rem;
    flex: 1;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Ícones do footer */
footer a i {
    font-size: 1.4rem;
    line-height: 1;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

/* Estado ativo/hover */
footer a:hover {
    color: var(--primary);
    transform: scale(1.1);
}