/* ===== FOOTER AVILLA - MODERNO E RESPONSIVO ===== */
/* Consistente com o tema: dourado #b59855 | Identidade imobiliária */

.footer-avilla,
footer.footer-avilla {
    background-color: var(--footer-bg, #1a1a1a);
    color: var(--footer-text, #f8f9fa);
    font-family: 'Poppins', sans-serif;
}

footer {
    --footer-accent: #b59855;
    --footer-accent-hover: #9a8047;
    --footer-bg: #1a1a1a;
    --footer-text: #f8f9fa;
    --footer-text-muted: #ccc;
}

/* Links com transição suave */
footer a {
    transition: color 0.3s ease, text-decoration 0.3s ease, outline 0.2s ease;
    color: #ddd;
}

footer a:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 2px;
}

/* Efeito hover - dourado elegante */
footer .hover-accent:hover {
    color: var(--footer-accent) !important;
}

/* Cor de destaque (dourado) */
footer .text-accent {
    color: var(--footer-accent) !important;
}

/* Sublinhado suave no hover */
footer .hover-underline:hover {
    text-decoration: underline !important;
}

/* Fundo sutil para o DPO */
footer .bg-dark-light {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

/* Logo */
.footer-logo {
    height: 50px;
}

/* Descrição */
.footer-descricao {
    line-height: 1.6;
}

/* Títulos com linha decorativa */
footer h5 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--footer-accent);
}

/* Espaçamento e tipografia */
footer p,
footer li,
footer span,
footer small {
    color: var(--footer-text-muted);
}

/* Links de navegação - área de toque maior no mobile */
footer ul.list-unstyled li a {
    display: inline-block;
    padding: 0.25rem 0;
}

/* Copyright e links finais */
.footer-copyright-links a {
    padding: 0.35rem 0.5rem;
}

.footer-copyright-links a + a {
    margin-left: 0.5rem;
}

/* ===== RESPONSIVIDADE ===== */

/* Tablet (992px) */
@media (max-width: 992px) {
    footer {
        padding-top: 2.5rem !important;
        padding-bottom: 2rem !important;
    }

    footer .row.g-4 > [class*="col-"] {
        margin-bottom: 1rem;
    }
}

/* Tablet portrait (768px) */
@media (max-width: 768px) {
    .footer-brand {
        text-align: center;
    }

    .footer-brand a {
        display: inline-block;
    }

    .footer-descricao {
        text-align: center;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .social-icons {
        justify-content: center;
    }

    footer h5 {
        display: block;
        text-align: center;
    }

    footer h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .dpo {
        max-width: 400px;
        margin: 0 auto;
        text-align: center;
    }

    .dpo .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .dpo .d-flex .me-2 {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    footer ul {
        text-align: center;
    }

    footer ul.list-unstyled li {
        display: block;
        margin-bottom: 8px;
    }

    footer ul.list-unstyled li.d-flex {
        justify-content: center;
    }

    .footer-copyright-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .footer-copyright-links a + a {
        margin-left: 0;
    }
}

/* Mobile (576px) */
@media (max-width: 576px) {
    footer {
        padding-top: 2rem !important;
        padding-bottom: 1.5rem !important;
    }

    .footer-logo {
        height: 44px !important;
    }

    .footer-descricao {
        font-size: 0.875rem;
        max-width: 100%;
    }

    footer h5 {
        font-size: 1rem;
    }

    footer h5::after {
        width: 32px;
        bottom: -4px;
    }

    .dpo {
        max-width: 100%;
        padding: 1rem !important;
    }

    .footer-copyright {
        font-size: 0.8125rem;
        display: block;
    }

    .footer-copyright-links a {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Telas muito pequenas (480px) */
@media (max-width: 480px) {
    footer {
        padding-top: 1.5rem !important;
        padding-bottom: 1.25rem !important;
    }

    .footer-logo {
        height: 40px !important;
    }

    footer h5::after {
        width: 28px;
    }

    .social-icons {
        font-size: 1.25rem !important;
    }

    .social-icons a {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
