/* =========================================================
   REPAIR & MAINTENANCE BLOCK — BEM
   TOP: copy (left 50%) | image (right 50%, full-bleed)
   BOTTOM: dark problems panel | white services panel + CTA
   ========================================================= */

.smartfix-repair {
    background: var(--sf-bg-dark-1);
    overflow: hidden;
}

/* =========================================================
   TOP ROW: copy | image
   ========================================================= */

.smartfix-repair__top {
    display: grid;
    grid-template-columns: 60% 40%;
    min-height: 380px;
}

.smartfix-repair__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 64px 48px 64px var(--sf-padding-section);
}

.smartfix-repair__tag {
    font-size: 13px;
    letter-spacing: 0.12em;
}

.smartfix-repair__headline {
    font-family: var(--sf-font-heading);
    font-weight: 700;
    font-size: var(--sf-fs-h2);
    line-height: 1.12;
    color: var(--sf-text-white);
    margin: 0;
}

.smartfix-repair__headline .sf-highlight {
    color: var(--sf-color-primary);
}

.smartfix-repair__sub {
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-body);
    line-height: var(--sf-lh-body);
    color: var(--sf-text-white-72);
    margin: 0;
}

.smartfix-repair__sub p {
    margin: 0;
}

/* Image: right half, full-bleed, no radius */
.smartfix-repair__image-wrap {
    position: relative;
    overflow: hidden;
}

.smartfix-repair__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
}

/* =========================================================
   BOTTOM PANELS WRAPPER
   ========================================================= */

.smartfix-repair__panels-wrap {
    padding: 0 var(--sf-padding-section) var(--sf-padding-section);
    max-width: var(--sf-content-max);
    margin: -90px auto 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.smartfix-repair__panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

/* =========================================================
   PANEL SHARED: heading row (icon circle + title)
   ========================================================= */

.smartfix-repair__panel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.smartfix-repair__panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sf-color-primary);
    color: var(--sf-text-white);
    flex-shrink: 0;
}

.smartfix-repair__panel-heading {
    font-family: var(--sf-font-heading);
    font-weight: 700;
    font-size: var(--sf-fs-h4);
    color: var(--sf-text-white);
    margin: 0;
    line-height: 1.2;
}

.smartfix-repair__panel-heading--dark {
    color: var(--sf-text-dark);
}

/* =========================================================
   LEFT: PROBLEMS PANEL (dark bg, teal border)
   ========================================================= */

.smartfix-repair__problems {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sf-color-primary);
    border-width: 1px;
    border-radius: 0;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.smartfix-repair__problems-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Each item: pill shape — dark bg, teal icon left, text */
.smartfix-repair__problems-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-body);
    color: var(--sf-text-white-72);
    background: var(--sf-bg-dark-1);
    border-radius: 100px;
    border: none;
}

.smartfix-repair__problems-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--sf-color-primary);
    color: var(--sf-text-white);
    flex-shrink: 0;
}

/* =========================================================
   RIGHT: SERVICES PANEL (white bg, 2-col grid, CTA inside)
   ========================================================= */

.smartfix-repair__services {
    background: var(--sf-bg-white);
    border-radius: 0;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.smartfix-repair__services-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
}

/* Grid items: each has light gray bg + rounded corners */
.smartfix-repair__services-item {
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-body);
    color: var(--sf-text-muted);
    padding: 16px 18px;
    background: var(--sf-bg-light);
    border-radius: 12px;
    line-height: var(--sf-lh-body);
}

/* CTA group — pinned to bottom of panel */
.smartfix-repair__cta-group {
    margin-top: auto;
}

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

/* Below 1400px the -90px pull-up starts colliding with the copy/sub text:
   drop the overlap and keep clear spacing between top row and panels */
@media (max-width: 1399px) {
    .smartfix-repair__panels-wrap {
        margin-top: 0;
        padding-top: 40px;
    }
}

@media (max-width: 1280px) {
    .smartfix-repair__copy {
        padding: 60px 40px 60px 40px;
    }

    .smartfix-repair__panels-wrap {
        padding: 36px 40px 60px;
    }

    .smartfix-repair__headline {
        font-size: clamp(30px, 4vw, var(--sf-fs-h2));
    }
}

@media (max-width: 1024px) {
    .smartfix-repair__top {
        grid-template-columns: 1fr 1fr;
        min-height: 320px;
    }
}

@media (max-width: 834px) {
    .smartfix-repair__top {
        grid-template-columns: 1fr;
    }

    .smartfix-repair__image-wrap {
        min-height: 260px;
        order: 1;
    }

    .smartfix-repair__copy {
        padding: 40px 20px;
        order: 2;
    }

    .smartfix-repair__panels-wrap {
        padding: 32px 20px 40px;
    }

    .smartfix-repair__panels {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .smartfix-repair__headline {
        font-size: 26px;
    }

    .smartfix-repair__services-list {
        grid-template-columns: 1fr;
    }

    .smartfix-repair__services-item:nth-last-child(-n+2) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    .smartfix-repair__services-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 375px) {
    .smartfix-repair__copy {
        padding: 36px 16px;
    }

    .smartfix-repair__panels-wrap {
        padding: 28px 16px 36px;
    }
}
