/* ==========================================
   Site Footer Styles
   ========================================== */

.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}

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

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

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem 0;
}

.footer-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    width: fit-content;
}

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

.footer-link.active {
    color: var(--primary);
    font-weight: 500;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    border-top: 1px solid var(--border);
    margin-top: 2.5rem;
    text-align: center;
}

.footer-copyright,
.footer-powered {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.footer-powered {
    font-weight: 500;
}

/* ==========================================
   Responsive Layouts
   ========================================== */

/* Tablet: 2-column grid */
@media (max-width: 768px) {
    .site-footer {
        margin-top: 3rem;
        padding: 2.5rem 0 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        padding: 1.5rem 1.5rem 0;
        margin-top: 2rem;
    }
}

/* Mobile: Stack all sections */
@media (max-width: 480px) {
    .site-footer {
        margin-top: 2rem;
        padding: 2rem 0 1rem;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .footer-section:first-child {
        grid-column: auto;
    }

    .footer-title {
        font-size: 1.125rem;
    }

    .footer-description {
        font-size: 0.875rem;
    }

    .footer-heading {
        font-size: 0.9375rem;
    }

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

    .footer-bottom {
        padding: 1.25rem 1rem 0;
        margin-top: 1.5rem;
    }

    .footer-copyright,
    .footer-powered {
        font-size: 0.8125rem;
    }
}
