/* =============================================
   FOOTER
   Dark background, 4-column layout
   ============================================= */

/* CTA Strip above footer */
.cta-strip {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: var(--space-12) 0;
    text-align: center;
}

.cta-strip__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.cta-strip__background img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
}

.cta-strip__background img:first-child {
    opacity: 1;
}

.cta-strip h2 {
    color: var(--color-text-white);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.cta-strip p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto var(--space-6);
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-darkest);
    background-image: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(244, 78, 18, 0.12) 0%, transparent 70%);
    color: var(--color-text-light);
    padding: var(--space-12) 0 var(--space-6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--space-4);
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.footer-heading {
    color: var(--color-text-white);
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contact li {
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.footer-contact strong {
    color: var(--color-text-white);
    font-weight: var(--font-weight-medium);
    display: block;
    margin-bottom: var(--space-1);
}

.footer-contact a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--color-primary);
}

.footer-address {
    font-style: normal;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--color-bg-card);
    color: var(--color-text-light);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-text-white);
}

.footer-reviews {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.footer-reviews a {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.footer-reviews a:hover {
    color: var(--color-primary);
}

/* Footer Reviews Strip */
.footer-reviews-strip {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    margin-top: var(--space-8);
    border-top: 1px solid var(--color-border-dark);
}

.footer-heading--reviews {
    text-align: center;
    margin-bottom: var(--space-6);
    font-size: var(--text-base);
}

.footer-reviews-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: var(--space-4);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--color-primary) var(--color-bg-dark);
    padding-bottom: var(--space-4);
}

.footer-review {
    min-width: 0;
    scroll-snap-align: start;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    margin: 0;
}

.footer-review__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-2);
}

.footer-review__text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-3);
    font-style: italic;
}

.footer-review__author {
    font-style: normal;
    font-size: var(--text-xs);
    color: var(--color-text-white);
    font-weight: var(--font-weight-semibold);
}

.footer-review__author span {
    color: var(--color-text-muted);
    font-weight: var(--font-weight-regular);
}

/* Footer Brand Logos */
.footer-brands {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-6) var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-brands__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-8) var(--space-10);
}

.footer-brands__inner img {
    height: 32px;
    width: auto;
    opacity: 1;
    transition: opacity var(--transition-fast);
}

.footer-brands__inner img:hover {
    opacity: 0.7;
}

@media (min-width: 768px) {
    .footer-brands__inner img {
        height: 100px;
    }
}

/* Footer hours */
.footer-hours {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-3);
}

/* Footer bottom bar */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border-dark);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer-bottom a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

.footer-bottom__links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-bottom__sep {
    color: var(--color-border-dark);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-reviews-grid {
        grid-auto-columns: calc((100% - var(--space-4)) / 2);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }

    .cta-strip h2 {
        font-size: var(--text-3xl);
    }

    .footer-reviews-grid {
        grid-auto-columns: calc((100% - var(--space-4) * 2) / 3);
    }
}



.footer-reviews-controls {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}
.footer-reviews-controls[hidden] { display: none; }
.footer-reviews-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-full);
    color: var(--color-text-white);
    background: var(--color-bg-dark);
    cursor: pointer;
}
.footer-reviews-controls button:disabled { opacity: 0.35; cursor: default; }
.footer-reviews-controls button:focus-visible,
.footer-reviews-grid:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
