/* ===== Base Styles ===== */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --border: #e5e7eb;
}

.footer {
    background-color: var(--bg);
    padding: 2.5rem 0 1.5rem;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    border-top: 1px solid var(--border);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== Grid Layout ===== */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== Typography ===== */
.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-text {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ===== Links ===== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .footer-links a,
    .footer-contact li {
        color: var(--text-light);
        text-decoration: none;
        font-size: 0.875rem;
        transition: color 0.2s ease;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }

        .footer-links a:hover {
            color: var(--primary);
        }

/* ===== Contact ===== */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .footer-contact i {
        font-size: 1rem;
        color: var(--primary);
        margin-top: 0.125rem;
    }

/* ===== Social ===== */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

    .footer-social a {
        color: var(--text-light);
        font-size: 1.25rem;
        transition: color 0.2s ease;
    }

        .footer-social a:hover {
            color: var(--primary);
        }

/* ===== Footer Bottom ===== */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.copyright {
    color: var(--text-light);
    font-size: 0.75rem;
    order: 2;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    order: 1;
}

    .footer-legal a {
        color: var(--text-light);
        font-size: 0.75rem;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .footer-legal a:hover {
            color: var(--primary);
        }

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .copyright {
        order: 1;
    }

    .footer-legal {
        order: 2;
    }
}
