/* ─── Footer ─── */

.site-footer {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
    background: #2B5351; /* Muted dark teal */
    border-top: none;
    border-radius: 0;
    padding: 5rem 5% 2rem;
    position: relative;
    margin-top: 0;
}

[data-theme="dark"] .site-footer {
    background: #0d1a19;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-col h4 {
    font-family: inherit;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: normal;
    text-transform: none;
    color: #ffffff;
    margin-bottom: 2rem;
}

.footer-col:nth-child(2) {
    justify-self: center;
}

.footer-col:nth-child(3) {
    justify-self: end;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 8px;
    color: #2B5351;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .social-icon {
    background: var(--card-bg);
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0.5;
}

/* ─── Status + Copyright ─── */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border-color);
}

.footer-brand .logo {
    height: 32px;
    width: auto;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-actions .theme-toggle-btn,
.footer-actions .lang-toggle-btn {
    color: rgba(255, 255, 255, 0.75);
}

.footer-actions .theme-toggle-btn:hover,
.footer-actions .lang-toggle-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-actions .lang-dropdown {
    position: relative;
}

.footer-actions .lang-menu {
    top: auto;
    bottom: 120%;
}

.footer-copy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 6% 3rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        justify-self: start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}