/* --- Global Footer Styles --- */
.main-footer {
    background-color: var(--bg-secondary);
    /* #1e293b */
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    /* Increased top padding for better separation */
    margin-top: auto;
    /* Push to bottom if flex column body */
    color: var(--text-secondary);
    font-size: 0.95rem;
    width: 100%;
}

.footer-minimal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    flex-wrap: wrap;
    text-align: center;
}

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

.footer-minimal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-minimal-links a:hover {
    color: var(--text-main);
}

@media (max-width: 640px) {
    .footer-minimal-content {
        flex-direction: column;
        gap: 1rem;
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

/* Column 1: Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-slogan {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
}

/* Columns 2 & 3: Links */
.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-heading {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-light);
}

.footer-link i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Sub-footer */
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 2rem 1.5rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: var(--text-main);
}

/* Responsive */
/* Responsive Mobile Footer - Grid Layout Refactor */
@media (max-width: 768px) {
    .main-footer {
        padding: 2rem 0 1.5rem;
        /* Reduced padding */
    }

    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 Columns */
        gap: 1.5rem 1rem;
        text-align: left;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* 1. Header: Brand (Full Width) */
    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        /* Center logo */
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .footer-slogan {
        display: none;
        /* Hide slogan to save space */
    }

    /* 2. Body: Links (Side by Side) */
    .footer-links-col {
        align-items: flex-start;
    }

    /* Hide redundant headings in mobile */
    .footer-heading {
        display: none;
    }

    .footer-links-list {
        gap: 0.8rem;
    }

    .footer-link {
        font-size: 0.9rem;
    }

    /* 3. Footer Bottom: Copyright & Socials */
    .footer-bottom {
        flex-direction: column-reverse;
        /* Copyright last */
        gap: 1.25rem;
        padding-top: 1.5rem;
        margin-top: 0;
        border: none;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .copyright {
        font-size: 0.75rem;
        opacity: 0.6;
    }
}