/* stylelint-disable selector-class-pattern -- Match the existing Rapid Pumps component names. */

/* December agency feedback: photo first on phones; retain desktop crops. */
.gl-hero__mobile-photo { display: none; }

/* RP-04: the homepage uses a white content panel. Keep the second line blue. */
.rp-home-page .rp-industries-section__title-top { color: var(--rp-text); }

/* RP-29: the same soft fade as On-Site Services, behind both paragraphs. */
.gl-hero--about:not([data-rs-background]) {
    background-image: linear-gradient(90deg, #fff 0%, #fff 31%, rgb(255 255 255 / 94%) 41%, rgb(255 255 255 / 58%) 53%, rgb(255 255 255 / 0%) 63%), var(--rp-about-hero-image) !important;
}

.gl-hero--about::before,
.gl-hero--about::after { display: none; }

@media (width <= 700px) {
    .gl-hero[data-rp-mobile-hero] {
        background: var(--rp-mobile-surface, #fff) !important;
        min-height: 0;
        padding: 0 !important;
    }

    .gl-hero[data-rp-mobile-hero]::before,
    .gl-hero[data-rp-mobile-hero]::after,
    .gl-hero[data-rp-mobile-hero] .gl-hero__chevron { display: none; }

    .gl-hero[data-rp-mobile-hero] > .gl-hero__mobile-photo {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        background-position: right center;
        background-size: cover;
        background-repeat: no-repeat;
    }
    .gl-hero[data-rp-mobile-hero] > .gl-hero__mobile-photo--blue-pumps { aspect-ratio: 13 / 10; }

    .gl-hero[data-rp-mobile-hero] > .gl-hero__inner {
        min-height: 0;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: var(--rs-mobile-top, var(--rs-padding-top, 32px)) 20px var(--rs-mobile-bottom, var(--rs-padding-bottom, 40px));
    }

    .gl-hero[data-rp-mobile-hero] .gl-hero__panel {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }
    .gl-hero[data-rp-mobile-hero] .gl-hero__body { max-width: none; }

    .gl-hero[data-rp-mobile-hero] .gl-hero__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .gl-hero[data-rp-mobile-hero] .gl-hero__button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}
