/**
 * Ezzat Services Pro — clean homepage background runtime.
 * This file is loaded after the legacy stylesheet and is the only authority
 * for builder backgrounds and overlays.
 */
.ezsp-background-system {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--dhb-block-bg, transparent) !important;
    background-image: none !important;
}

/* Remove every historical pseudo veil from the builder wrapper. */
.ezsp-background-system::before,
.ezsp-background-system::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    background: none !important;
}

.ezsp-background-system > .ezsp-background-layers {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.ezsp-background-system > :not(.ezsp-background-layers) {
    position: relative;
    z-index: 2;
}

.ezsp-static-background,
.ezsp-slider-background,
.ezsp-background-overlay {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
}

.ezsp-static-background {
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.ezsp-slider-background {
    z-index: 2;
    overflow: hidden;
}

.ezsp-background-overlay {
    z-index: 5;
    background: var(--ezsp-overlay-color, #000000);
    opacity: var(--ezsp-overlay-opacity, 0);
}

/* The visible sections must never paint their own old backgrounds or gradients. */
.ezsp-background-system > .dhb-home-hero,
.ezsp-background-system > .dhb-home-cta,
.ezsp-background-system > .dhb-section {
    background-color: transparent !important;
    background-image: none !important;
}

.ezsp-background-system > .dhb-home-hero::before,
.ezsp-background-system > .dhb-home-hero::after,
.ezsp-background-system > .dhb-home-cta::before,
.ezsp-background-system > .dhb-home-cta::after,
.ezsp-background-system > .dhb-section::before,
.ezsp-background-system > .dhb-section::after {
    content: none !important;
    display: none !important;
    background: none !important;
    opacity: 0 !important;
}

/* Compatibility: old overlay elements can never display inside the new renderer. */
.ezsp-background-system .dhb-static-overlay,
.ezsp-background-system .dhb-slider-overlay {
    display: none !important;
    opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .ezsp-background-system .dhb-bg-slide {
        transition: none !important;
    }
}

/* v8.3.2 — keep service-card images perfectly centered inside their frames. */
.dhb-builder-services .dhb-service-photo,
.dhb-home-services .dhb-service-photo {
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.dhb-builder-services .dhb-service-photo picture,
.dhb-home-services .dhb-service-photo picture {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.dhb-builder-services .dhb-service-photo img,
.dhb-home-services .dhb-service-photo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
    transform: none !important;
}


/* v8.4.1 — image fills the configured frame exactly. */
.dhb-builder-services .dhb-service-photo,
.dhb-home-services .dhb-service-photo {
    padding: 0 !important;
    border-radius: var(--dhb-service-image-radius, 17px) !important;
}

.dhb-builder-services .dhb-service-photo picture,
.dhb-home-services .dhb-service-photo picture,
.dhb-builder-services .dhb-service-photo img,
.dhb-home-services .dhb-service-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: inherit !important;
}
