/**
 * Congresso AVAG 2027 - Footer Styles
 * Rodapé Oficial 80 Anos (Com Cápsula de Contraste e Créditos)
 */

.site-footer {
    background: linear-gradient(180deg, var(--avag-primary) 0%, var(--avag-primary-dark) 100%);
    color: #e2e8f0;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

/* Faixa Comercial de Expositores / Patrocinadores */
.footer-cta-banner {
    background: linear-gradient(135deg, rgba(14, 43, 92, 0.95), rgba(7, 27, 59, 0.98));
    border-top: 3px solid var(--avag-gold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3.5rem 0;
    text-align: center;
    position: relative;
}

.footer-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-cta-badge {
    margin-bottom: 1rem;
}

.footer-cta-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.footer-cta-text {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.footer-cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Área Principal de Informações & Contatos (Fundo Branco / Claro) */
.footer-main {
    background-color: #ffffff;
    color: var(--text-body);
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.3fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

/* Coluna 1: Marca e Descrição */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.footer-brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer-brand-logo img {
    height: 72px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.footer-brand-desc {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Coluna 2: Canais Diretos de Atendimento */
.footer-contacts-col h4,
.footer-social-col h4 {
    color: var(--avag-primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-contacts-col h4::after,
.footer-social-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--avag-gold);
    border-radius: 2px;
}

.footer-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-contact-card:hover {
    background: #ffffff;
    border-color: var(--avag-gold);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.contact-card-info {
    display: flex;
    flex-direction: column;
}

.contact-card-title {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
}

.contact-card-name {
    font-size: 0.95rem;
    color: var(--avag-primary-dark);
    font-weight: 700;
}

.contact-card-badge {
    background: #25D366;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Coluna 3: Redes Sociais & Contatos Gerais */
.footer-social-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--avag-primary);
    transition: all 0.25s ease;
}

.footer-social-link:hover {
    background: var(--avag-primary);
    color: #ffffff;
    border-color: var(--avag-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-contact-direct {
    font-size: 0.9rem;
    color: var(--text-body);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-contact-direct strong {
    color: var(--avag-primary);
}

.footer-contact-direct a {
    color: var(--avag-primary);
    font-weight: 600;
    text-decoration: none;
}

.footer-contact-direct a:hover {
    color: var(--avag-gold);
    text-decoration: underline;
}

/* Destaque Comemorativo 80 Anos em Largura Total (100%) Centralizado (Acima das 3 Colunas) */
.footer-event-highlight-bar {
    background: linear-gradient(135deg, var(--bg-alt) 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--avag-gold);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    margin-bottom: 2.75rem;
}

.footer-event-highlight-bar .highlight-bar-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--avag-primary);
    letter-spacing: -0.01em;
}

.footer-event-highlight-bar .highlight-bar-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================================
   BARRA INFERIOR DE DIREITOS, CRÉDITOS E PRIVACIDADE
   ======================================================== */
.footer-bottom {
    background-color: #040e1f;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-bottom-copyright {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-developer-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.85rem;
}

.footer-developer-credit img {
    height: 22px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-developer-credit a:hover img {
    opacity: 0.85;
    transform: scale(1.05);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-legal-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

.legal-divider {
    color: rgba(255, 255, 255, 0.2);
}

/* Responsividade do Footer */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 640px) {
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-copyright {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-legal-links {
        justify-content: center;
    }
}
