.footer {
    background: #030814;
    border-top: 1px solid var(--border);
    color: var(--text-subtle);
}

.footer-container {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 4.5rem var(--gutter) 3.5rem;
}

.footer-brand img {
    height: 34px;
    width: auto;
    margin-bottom: 1.1rem;
}

.footer-brand p {
    max-width: 320px;
    margin-bottom: 1.5rem;
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* h2 (not h4): the footer follows the page content, so a deeper level would skip heading levels
   (Lighthouse: "heading elements are not in a sequentially-descending order"). Looks like a small label. */
.footer-heading {
    margin: 0 0 1.1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
}

.footer-section ul {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.footer-section ul li a {
    font-size: 0.93rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-strong);
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.05rem;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
    color: #fff;
    border-color: var(--border-accent);
    background: rgba(var(--accent-rgb), 0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
}

.footer-bottom__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.4rem var(--gutter);
    font-size: 0.85rem;
    color: var(--text-subtle);
}

.footer-bottom__inner a {
    color: var(--text-muted);
}

.footer-bottom__inner a:hover {
    color: var(--accent-strong);
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

/* Responsive */
@media (max-width: 1000px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 3.5rem;
    }
}
