/* =========================================================
   HERO BLOCK — BEM
   Layout: bg image grid | top-right white body | bottom flex (accent + pills)
   ========================================================= */

.smartfix-hero {
    background: var(--sf-bg-white);
    padding: var(--sf-padding-section) 0;
}

.smartfix-hero__inner {
    padding: 0 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── Tag + Headline ── */
.smartfix-hero__top {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.smartfix-hero__headline {
    font-family: var(--sf-font-heading);
    font-size: var(--sf-fs-h1);
    font-weight: 700;
    line-height: var(--sf-lh-h1);
    color: var(--sf-text-dark);
    margin: 0;
    max-width: 100%;
    letter-spacing: -0.01em;
}

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

/* ── Grid: full bg image container ── */
.smartfix-hero__grid {
    position: relative;
    height: 680px;
    background-image: var(--sf-hero-bg);
    background-size: cover;
    background-position: 50% 60%;
    border-radius: 0;
    overflow: hidden;
}

/* ── Top-right: white body text box ── */
/* Height tracks the text: grows with content instead of clipping it,
   capped only by the grid so it never spills past the hero image */
.smartfix-hero__body-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: auto;
    min-height: 200px;
    background: var(--sf-bg-white);
    padding: 32px 40px 32px 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.smartfix-hero__body {
    font-family: var(--sf-font-body);
    font-size: var(--sf-fs-body-lg);
    line-height: var(--sf-lh-body-lg);
    color: var(--sf-text-muted);
    margin: 0;
    text-align: justify;
}

.smartfix-hero__cta-group {
    margin-top: 16px;
    flex-shrink: 0;
}

/* ── Bottom row (flex): accent box + pills ── */
.smartfix-hero__bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 170px;
    display: flex;
}

/* Small accent box — bottom left */
.smartfix-hero__accent {
    width: 20%;
    flex-shrink: 0;
    background: var(--sf-bg-white);
}

/* Pills wrapper — no bg, gap creates transparent breaks */
.smartfix-hero__pills {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 16px;
    background: transparent;
    align-items: stretch;
}

.smartfix-hero__pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 16px 8px;
    max-width: 210px;
    background: rgba(7, 18, 18, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.smartfix-hero__pill-number {
    font-family: var(--sf-font-heading);
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    color: var(--sf-text-white);
}

.smartfix-hero__pill-label {
    font-family: var(--sf-font-body);
    font-weight: 700;
    font-size: 11px;
    line-height: 1.4;
    color: var(--sf-text-white-72);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

@media (max-width: 1280px) {
    .smartfix-hero__headline {
        font-size: clamp(42px, 5vw, var(--sf-fs-h1));
        line-height: 1.08;
    }
}

@media (max-width: 1024px) {
    .smartfix-hero__grid {
        height: 620px;
    }

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

    .smartfix-hero__bottom {
        height: 180px;
    }
}

@media (max-width: 834px) {
    .smartfix-hero {
        padding: 48px 0;
    }

    .smartfix-hero__inner {
        padding: 0 20px;
        gap: 20px;
    }

    .smartfix-hero__headline {
        font-size: clamp(28px, 7vw, 40px);
        line-height: 1.1;
    }

    .smartfix-hero__grid {
        height: auto;
        min-height: 520px;
    }

    .smartfix-hero__body-wrap {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        max-height: none;
        height: auto;
        padding: 24px 20px;
    }

    .smartfix-hero__body {
        font-size: var(--sf-fs-body);
        text-align: left;
    }

    .smartfix-hero__bottom {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        height: auto;
    }

    .smartfix-hero__accent {
        display: none;
    }

    .smartfix-hero__pills {
        gap: 0;
        padding: 0;
    }

    .smartfix-hero__pill {
        padding: 16px 12px;
        max-width: none;
    }

    .smartfix-hero__pill-number {
        font-size: 20px;
    }

    .smartfix-hero__pill-label {
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .smartfix-hero__pills {
        flex-wrap: wrap;
    }

    .smartfix-hero__pill {
        flex-basis: 50%;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }

    .smartfix-hero__pill:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.10);
    }

    .smartfix-hero__pill:nth-child(even) {
        border-right: none;
    }
}

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

    .smartfix-hero__body-wrap {
        padding: 20px 16px;
    }
}
