/* ============================================
   Footer Magic — Cornmill Agentics theme
   Dark bio-mimetic aesthetic with green accent
   ============================================ */

.fm-footer {
    background: #0a0f0d;
    color: #9aaa9f;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-top: 1px solid rgba(78, 203, 113, 0.15);
    padding: 4rem 0 0;
    margin-top: 5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.fm-footer *,
.fm-footer *::before,
.fm-footer *::after {
    box-sizing: border-box;
}

.fm-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.fm-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.fm-footer-section h3 {
    color: #e8ede9;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1.25rem;
}

.fm-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fm-footer-section li {
    margin-bottom: 0.625rem;
}

.fm-footer-section a {
    color: #9aaa9f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fm-footer-section a:hover {
    color: #4ecb71;
}

.fm-footer-section p {
    margin: 0 0 0.75rem;
    color: #9aaa9f;
}

.fm-footer-section p strong {
    color: #6b7e72;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fm-contact-section a {
    color: #9aaa9f;
}

.fm-contact-section a:hover {
    color: #4ecb71;
}

.fm-social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.fm-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(78, 203, 113, 0.15);
    border-radius: 6px;
    color: #9aaa9f;
    transition: all 0.2s ease;
}

.fm-social-links a:hover {
    border-color: rgba(78, 203, 113, 0.4);
    color: #4ecb71;
    background: rgba(78, 203, 113, 0.08);
}

.fm-social-links svg {
    width: 16px;
    height: 16px;
}

.fm-footer-bottom {
    border-top: 1px solid rgba(78, 203, 113, 0.1);
    padding: 1.5rem 0 2rem;
    text-align: center;
}

.fm-footer-bottom p {
    margin: 0;
    color: #6b7e72;
    font-size: 0.8125rem;
}

.fm-footer-bottom a {
    color: #9aaa9f;
    text-decoration: none;
    margin: 0 0.25rem;
    transition: color 0.2s ease;
}

.fm-footer-bottom a:hover {
    color: #4ecb71;
}

@media (max-width: 640px) {
    .fm-footer {
        padding-top: 3rem;
        margin-top: 3rem;
    }
    .fm-footer-content {
        gap: 2rem;
        padding-bottom: 2rem;
    }
}
