/**
 * Service hero shortcode – EcoRegent style.
 * Accent: #E16003 | Type: Poppins
 */

.service-hero {
	--service-hero-accent: #e16003;
	--service-hero-overlay: rgba(0, 0, 0, 0.62);
	--service-hero-text: #ffffff;
	--service-hero-muted: rgba(255, 255, 255, 0.82);

	position: relative;
	isolation: isolate;
	width: 100%;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #1a1a1a;
	color: var(--service-hero-text);
	font-family: Poppins, system-ui, sans-serif;
}

.service-hero__slider,
.service-hero .swiper {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
}

.service-hero .swiper-wrapper {
	height: 100%;
}

.service-hero .swiper-slide,
.service-hero__slide {
	width: 100%;
	height: 100%;
	background-color: #1a1a1a;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.service-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--service-hero-overlay);
	pointer-events: none;
}

.service-hero__content {
	position: relative;
	z-index: 2;
	width: min(920px, calc(100% - 48px));
	margin: 0 auto;
	padding: 96px 0;
	text-align: center;
}

.service-hero__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--service-hero-muted);
}

.service-hero__breadcrumb li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.service-hero__breadcrumb li:not(:last-child)::after {
	content: "/";
	opacity: 0.55;
	margin-left: 0;
}

.service-hero__breadcrumb a {
	color: var(--service-hero-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.service-hero__breadcrumb a:hover {
	color: var(--service-hero-accent);
}

.service-hero__breadcrumb .is-current {
	color: var(--service-hero-accent);
}

.service-hero__title {
	margin: 0 0 18px;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--service-hero-text);
}

.service-hero__desc {
	margin: 0 auto;
	max-width: 640px;
	font-size: clamp(1rem, 2vw, 1.125rem);
	font-weight: 400;
	line-height: 1.7;
	color: var(--service-hero-muted);
}

/* Fade fallback when Swiper is unavailable */
.service-hero--fallback .service-hero__slider,
.service-hero--fallback .swiper-wrapper {
	display: block;
	height: 100%;
}

.service-hero--fallback .service-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.9s ease;
	z-index: 0;
}

.service-hero--fallback .service-hero__slide.is-active {
	opacity: 1;
	z-index: 1;
}

@media (max-width: 767px) {
	.service-hero {
		min-height: 56vh;
	}

	.service-hero__content {
		padding: 72px 0;
	}
}
