/* ==========================================================================
   Site Footer — global, loads on every template
   Shares --sd-navy etc. from model-review.css :root.
   Driving car strip CSS below is self-contained (duplicated from the
   hero's version in homepage.css) rather than depending on it, since
   this file loads on every page and homepage.css only loads on the
   homepage — footer can't assume homepage.css is present.
   ========================================================================== */

.site-footer {
    background: var(--sd-navy);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

/* ---------- Driving car strip: continuous one-direction loop ---------- */
.driving-car-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 24px;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.driving-car-icon {
    position: absolute;
    top: 0;
    width: 56px;
    height: 24px;
    opacity: 0.4;
    animation: sd-drive-loop 9s linear infinite;
}

@keyframes sd-drive-loop {
    from { left: -60px; }
    to   { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .driving-car-strip {
        display: none;
    }
}

.site-footer-content {
    position: relative;
    z-index: 1;
}

.site-footer-inner {
    max-width: 1400px; /* was 1100px — widened alongside header/homepage */
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-brand img {
    display: block;
    width: 130px; /* was 88px — switched to the full lockup logo, same
        legibility reasoning as the header. Slightly smaller than the
        header's 150px since the footer has a fixed layout with less
        room to grow, but still substantially bigger than the old icon */
    height: 130px;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    color: #C7D2E0;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 26rem;
    margin: 0;
}

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

.footer-links-col h4 {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

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

.footer-links-col li {
    margin-bottom: 0.5rem;
}

.footer-links-col a {
    color: #C7D2E0;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links-col a:hover {
    color: #fff;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem 1.5rem;
    max-width: 1400px; /* was 1100px — widened alongside header/homepage */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.site-footer-bottom p {
    margin: 0;
    font-size: 0.78rem;
    color: #8A9AB5;
}

.site-footer-bottom a {
    color: #8A9AB5;
    text-decoration: underline;
}

/* ==========================================================================
   Tablet and up
   ========================================================================== */
@media (min-width: 640px) {
    .site-footer-inner {
        grid-template-columns: 1fr 2fr;
    }

    .site-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}