/* ============================================================
   Site footer (Views/Shared/Components/Footer): link columns and the red bar with "back to top".
   ============================================================ */

.ds-footer {
    background: var(--ds-surface);
    border-top: 3px solid var(--ds-red);
    padding: 64px 0 0;
}

.ds-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.ds-footer-brand img {
    height: 36px;
    width: auto;
}

.ds-footer-brand h3 {
    font-size: 16px;
    margin: 18px 0 8px;
}

.ds-footer-brand p {
    font-size: 14px;
    line-height: 2;
    color: var(--ds-muted);
    max-width: 440px;
}

.ds-footer h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ds-ink);
    margin-bottom: 14px;
}

    .ds-footer h4::before {
        content: "";
        width: 14px;
        height: 3px;
        border-radius: 3px;
        background: var(--ds-red);
    }

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

.ds-footer li {
    margin-bottom: 8px;
}

.ds-footer li a {
    font-size: 14px;
    color: var(--ds-text);
    transition: color .2s ease;
}

    .ds-footer li a:hover {
        color: var(--ds-red);
    }

/* the red bar at the very bottom */
.ds-footer-bar {
    margin-top: 48px;
    background: radial-gradient(ellipse 60% 140% at 50% 0%, #D8261B 0%, var(--ds-red) 45%, var(--ds-red-dark) 100%);
}

.ds-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px var(--ds-gutter);
    font-size: 13px;
    color: #FFDCD9;
}

    .ds-footer-bottom a {
        color: #FFF;
        font-weight: 700;
    }

.ds-footer-bar-logo {
    height: 26px;
    width: auto;
}

.ds-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    color: #FFF;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

    .ds-top:hover {
        background: #FFF;
        color: var(--ds-red);
    }

:root[data-theme="dark"] .ds-footer-bar {
    background: linear-gradient(180deg, #1F1214 0%, #140D0F 100%);
    border-top: 2px solid var(--ds-red);
}

:root[data-theme="dark"] .ds-footer-bottom {
    color: var(--ds-muted);
}

    :root[data-theme="dark"] .ds-footer-bottom a {
        color: var(--ds-red);
    }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
    .ds-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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