/* BeeFixPro homepage technician showcase refinement — v51
   Aligns the section header with the Brands typography system and
   gives the desktop team portrait group a calmer, more compact scale. */

.index-page .team-showcase {
    padding: 74px 0 68px;
}

.index-page .team-showcase__header {
    align-items: end;
    gap: clamp(28px, 4vw, 48px);
    margin-bottom: 27px;
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
}

/* Exact label language used above the Brands heading. */
.index-page .team-showcase__eyebrow {
    position: relative;
    display: inline-block;
    z-index: 1;
    margin: 0 0 13px 30px;
    padding: 0;
    border: 0;
    color: var(--bfp-v36-gold, #fdae02);
    background: transparent;
    box-shadow: none;
    font-family: var(--assimox-font-two, "Barlow", sans-serif);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.index-page .team-showcase__eyebrow::before {
    position: absolute;
    top: 8px;
    left: -30px;
    display: block;
    width: 20px;
    height: 2px;
    border: 0;
    border-radius: 0;
    background: var(--bfp-v36-gold, #fdae02);
    content: "";
    transform: none;
}

/* Exact family, scale, weight and rhythm of .brands-premium__title. */
.index-page .team-showcase__header h2 {
    max-width: 760px;
    margin: 0;
    color: var(--bfp-v36-title, #101d32);
    font-family: var(--assimox-font, "Barlow", sans-serif);
    font-size: clamp(38px, 3.1vw, 52px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
    text-transform: none;
}

/* Carry the same premium editorial note used in the Brands header. */
.index-page .team-showcase__header > p {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 0 2px;
    padding: 14px 16px 14px 18px;
    border: 1px solid rgba(218, 165, 55, .18);
    border-left: 3px solid rgba(253, 174, 2, .72);
    border-radius: 0 14px 14px 0;
    color: #686b70;
    background: linear-gradient(105deg, rgba(255, 249, 234, .84), rgba(255, 255, 255, .5));
    box-shadow: 0 10px 24px rgba(37, 35, 31, .035);
    font-family: var(--assimox-font, "Roboto", sans-serif);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.62;
    letter-spacing: 0;
    text-align: left;
}

@media (min-width: 992px) {
    .index-page .team-showcase__grid {
        width: 100%;
        max-width: 1040px;
        gap: 14px;
        margin-right: auto;
        margin-left: auto;
        padding: 14px;
        border-radius: 28px;
        box-shadow: 0 24px 58px rgba(42, 41, 36, .09), inset 0 1px 0 #fff;
    }

    .index-page .team-showcase__portrait {
        aspect-ratio: 4 / 5;
        border-radius: 21px;
        box-shadow: 0 15px 32px rgba(35, 35, 31, .14);
    }

    .index-page .team-showcase__portrait::after {
        border-width: 5px;
    }

    .index-page .team-showcase__portrait img {
        object-position: center top;
    }

    .index-page .team-showcase__number {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 11px;
    }

    .index-page .team-showcase__portrait figcaption {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }

    .index-page .team-showcase__portrait figcaption small {
        margin-bottom: 6px;
        font-size: 8px;
    }

    .index-page .team-showcase__portrait figcaption strong {
        font-size: clamp(26px, 2.35vw, 34px);
    }

    .index-page .team-showcase__portrait figcaption span {
        margin-top: 7px;
        font-size: 9px;
    }

    .index-page .team-showcase__service-rail {
        width: 100%;
        max-width: 1040px;
        gap: 18px;
        margin: 16px auto 0;
        padding: 16px 18px;
        border-radius: 20px;
    }
}

@media (min-width: 1200px) {
    .index-page .team-showcase__service-rail {
        grid-template-columns: minmax(220px, .85fr) minmax(0, 1.25fr) auto;
    }
}

@media (max-width: 991px) {
    .index-page .team-showcase {
        padding: 68px 0 64px;
    }

    .index-page .team-showcase__header > p {
        max-width: 670px;
        margin-top: 18px;
    }
}

@media (max-width: 767px) {
    .index-page .team-showcase {
        padding: 58px 0 54px;
    }

    .index-page .team-showcase__header {
        gap: 16px;
        margin-bottom: 22px;
    }

    .index-page .team-showcase__eyebrow {
        margin: 0 0 10px 30px;
        font-size: 14px;
        line-height: 18px;
        letter-spacing: .1em;
    }

    .index-page .team-showcase__header h2 {
        margin: 0;
        font-size: clamp(29px, 9vw, 36px);
        line-height: 1.06;
        letter-spacing: -.035em;
    }

    .index-page .team-showcase__header > p {
        max-width: none;
        margin-top: 4px;
        padding: 12px 13px 12px 15px;
        border-radius: 0 12px 12px 0;
        font-size: 13px;
        line-height: 1.58;
    }
}

@media (prefers-reduced-motion: reduce) {
    .index-page .team-showcase__portrait,
    .index-page .team-showcase__portrait img {
        transition: none !important;
    }
}
