.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(5, 14, 18, 0.82);
    color: #dbe5e9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    padding: 34px 0 22px;
}

.footer-brand {
    color: var(--gold);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-text {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 16px;
}

.site-footer h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.site-footer li a {
    color: #dbe5e9;
}

.site-footer li a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--muted);
    font-size: 15px;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 28px 0 18px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 18px;
    }
}

/* Light mode - strong override */
html[data-theme="light"] .site-footer {
    background: #ffffff !important;
    background-image: none !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .site-footer .footer-brand {
    color: var(--gold) !important;
}

html[data-theme="light"] .site-footer .footer-text,
html[data-theme="light"] .site-footer .footer-bottom {
    color: #64748b !important;
}

html[data-theme="light"] .site-footer h3,
html[data-theme="light"] .site-footer strong,
html[data-theme="light"] .site-footer b {
    color: #0f172a !important;
}

html[data-theme="light"] .site-footer li a {
    color: #0f172a !important;
}

html[data-theme="light"] .site-footer li a:hover {
    color: var(--gold) !important;
}

html[data-theme="light"] .site-footer .footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}
