/* footer.css - estilos do rodapé */

footer.footer {
    background: #e0f7e9;
    color: #0f172a;
    font-size: 0.95rem;
    padding: 2.5rem 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }
}

.footer-address h4 {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.12);
    display: grid;
    place-items: center;
    color: inherit;
    text-decoration: none;
}

.footer-social a:hover {
    background: rgba(15, 23, 42, 0.2);
}

.footer-credit {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: right;
}

.footer-credit img {
    height: 42px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    max-height: 10vw; /* escala proporcional em telas menores */
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-credit {
        align-items: center;
        text-align: center;
    }
    .footer-credit img {
        height: 36px;
        max-width: 120px;
        max-height: 18vw;
    }
}

/* Caixa inicial (balão) */
.whatsapp-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    border-radius: 15px;
    padding: 10px 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    max-width: 250px;
    animation: fadeIn 0.6s ease-in-out;
}

.whatsapp-content {
    gap: 10px;
}

.whatsapp-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.whatsapp-text p {
    font-size: 14px;
    font-weight: 600;
}

.whatsapp-text small {
    font-size: 12px;
}

/* Ícone fixo */
.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
    /* começa escondido */
    z-index: 1000;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
