/* === Footer Section === */
footer {
    padding: 3rem 0 2rem;
    /* Reduced from 6rem to 3rem for a more compact look */
    background: linear-gradient(180deg, var(--color-primary-navy) 0%, #000000 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--color-secondary-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    /* Reduced gap from 4rem */
    margin-bottom: 3rem;
    /* Reduced margin */
}

/* Brand Column */
.footer-brand .logo {
    margin-bottom: 1rem;
    display: flex;
    /* Ensure flex behavior for alignment */
    align-items: center;
    gap: 0.5rem;
}

/* DEFENSIVE CSS: Prevent footer logo blowout */
.footer-brand .logo img {
    height: var(--logo-height-mobile);
    /* Rodapé geralmente usa versão mobile ou levemente menor */
    width: auto;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-gray-medium);
    max-width: 300px;
}

/* Links Columns */
.footer-column h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--color-gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--color-accent-green);
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--color-gray-medium);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-brand .logo {
        justify-content: center;
    }

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