/* Specialist heroes only. No changes to the original four headers. */
.sr-specialist-hero {
    --hero-position-desktop: center center;
    --hero-position-tablet: center center;
    --hero-position-mobile: center 42%;
    background: #000; /* suppress inherited original image to avoid redundant downloads */
    position: relative;
    isolation: isolate;
}
.sr-specialist-hero__artwork {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.sr-specialist-hero__artwork img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-position-desktop);
}
.sr-specialist-hero .banner-text { position: relative; z-index: 1; }
/* Adjust these percentages independently to fine-tune each composition. */
.sr-hero-custom-php-development { --hero-position-desktop: 35% 50%; --hero-position-mobile: 45% 42%; }
.sr-hero-mysql-database-development { --hero-position-desktop: 75% 50%; --hero-position-mobile: 55% 45%; }
.sr-hero-white-label-web-development { --hero-position-desktop: 30% 50%; --hero-position-mobile: 45% 45%; }
.sr-hero-website-modernization { --hero-position-desktop: 70% 50%; --hero-position-mobile: 55% 45%; }
.sr-hero-technical-seo-services { --hero-position-desktop: 60% 50%; --hero-position-mobile: 50% 30%; }
.sr-hero-website-performance-optimization { --hero-position-desktop: 60% 50%; --hero-position-mobile: 50% 55%; }
.sr-hero-case-study-seochorus { --hero-position-desktop: 50% 50%; --hero-position-mobile: 50% 10%; }
@media (max-width: 840px) {
    .sr-specialist-hero__artwork img { object-position: var(--hero-position-tablet); }
    .sr-specialist-hero .banner-text h1 { max-width: 100%; box-sizing: border-box; }
}
@media (max-width: 480px) {
    .sr-specialist-hero__artwork img { object-position: var(--hero-position-mobile); }
    .sr-specialist-hero .banner-text { box-sizing: border-box; padding: 0 16px 14px; }
    .sr-specialist-hero .banner-text h1 { font-size: clamp(1.75rem, 6.3vw, 2.15rem); line-height: 1.16; margin: 0 0 12px; padding: 16px 0 0; max-width: 100%; overflow-wrap: anywhere; }
    .sr-specialist-hero .banner-text .lp-lead { font-size: clamp(1.15rem, 4.5vw, 1.4rem); line-height: 1.45; margin: 14px 0 22px; min-width: 0; max-width: 100%; }
    .sr-specialist-hero .banner-text .lp-cta-row { margin: 14px 0 20px; gap: 10px; }
    .sr-specialist-hero .banner-text .lp-button-secondary { font-size: 1rem; max-width: 100%; box-sizing: border-box; }
}
