/* ================================================================== */
/*  Repair & Retrofit section — sits between the deploy grid and the   */
/*  closing CTA banner on the homepage.                                */
/*                                                                    */
/*  Stacked flow: header (eyebrow + title) → description → a row of    */
/*  two features (image left, text right). The feature row drops to a  */
/*  single column on tablet, and each feature stacks image-on-top on   */
/*  mobile.                                                            */
/* ================================================================== */

.repair-section {
    background: var(--bg-soft);
    padding: clamp(64px, 8vw, 112px) 24px;
    border-top: 1px solid var(--border);
}

.repair-section__inner {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* ---------- Header ---------- */

.repair-section__head {
    /* 12px matches the title-to-text gap used by every other section
       (.cta-banner__title, .ab-cta__title, .ad-banner__title = margin 0 0 12px). */
    margin-bottom: 12px;
}

.repair-section__eyebrow {
    margin: 0 0 12px;
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
    color: var(--accent-amber);
}

.repair-section__title {
    margin: 0;
    max-width: 22ch;
    font-size: var(--fs-h1);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    text-wrap: balance;
    background-image: var(--title-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Description (full width, above the features) ---------- */

.repair-section__desc {
    margin: 0 0 clamp(32px, 4vw, 56px);
    max-width: none;
    font-size: var(--fs-body);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

/* ---------- Feature row ---------- */

.repair-section__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 48px);
}

@media (max-width: 860px) {
    .repair-section__list {
        grid-template-columns: 1fr;
    }
}

/* Each feature: image left, text right */
.repair-feature {
    display: flex;
    gap: clamp(16px, 2vw, 24px);
    align-items: flex-start;
}

.repair-feature__media {
    display: block;
    flex: 0 0 45%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.repair-feature__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dashed placeholder styling — only while there's no real image yet. */
.repair-feature__media--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--surface);
    border: 1.5px dashed var(--border-strong);
    color: var(--text-subtle);
    font-size: var(--fs-caption);
    font-weight: var(--fw-medium);
    text-align: center;
}

.repair-feature__text {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    font-size: var(--fs-body);
    line-height: var(--lh-loose);
    color: var(--text-muted);
}

.repair-feature__text strong {
    color: var(--text);
    font-weight: var(--fw-semibold);
}

/* ---------- Mobile: stack image on top within each feature ---------- */

@media (max-width: 600px) {
    .repair-feature {
        flex-direction: column;
        gap: 14px;
    }
    .repair-feature__media {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 10;
    }
}
