/* Footer Styles - Unified across all pages */
.footer {
    padding: 4rem 0 2rem;
    background: var(--footer-bg, #f1f5f9);
    color: var(--footer-text, #475569);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: var(--font-size-xl, 1.25rem);
    color: var(--text-hi, #0f172a);
}

.footer-logo img {
    height: 40px;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    font-size: var(--font-size-lg, 1.125rem);
    margin-bottom: 1.25rem;
    color: var(--text-hi, #0f172a);
}

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

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

.footer-section a {
    text-decoration: none;
    color: var(--text-md, #475569);
    transition: color .2s;
}

.footer-section a:hover {
    color: var(--primary-dark, #1e40af);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border, #e2e8f0);
    font-size: .875rem;
    color: var(--text-lo, #64748b);
}

.footer-social {
    display: flex;
    gap: .75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--card-border, #e2e8f0);
    color: var(--text-md, #475569);
    transition: .2s;
}

.footer-social a:hover {
    background: var(--primary, #3b82f6);
    color: #fff;
}

.legal-links {
    display: flex;
    gap: 1.25rem;
}

.legal-links a {
    color: var(--text-lo, #64748b);
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--primary-dark, #1e40af);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-sections {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .legal-links {
        justify-content: center;
    }
}

/* Force readable text & neutralize opacity/blend */
body .footer {
    background: #ffffff !important;
    color: #1e293b !important;
    isolation: isolate;
}

body .footer * {
    color: #1e293b !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    -webkit-text-fill-color: currentColor !important;
}

/* Headings high contrast */
body .footer h1,
body .footer h2,
body .footer h3,
body .footer h4,
body .footer h5,
body .footer h6 {
    color: #0f172a !important;
}

/* Link colors on light bg */
body .footer a {
    color: #2563eb !important;
}

body .footer a:hover {
    color: #1e40af !important;
}
