/* ==========================================================================
   Services — Hero
   Scoped to .el-svh. One wide illustration behind the whole hero.
   1100px+: the art box is anchored bottom-right at height --el-svh-h (never
   stretched; width follows its 1790:879 ratio). Its light left area sits
   behind the live text; white fades on its left and top edges remove any
   seam. Below 1100px: copy first, then the scene underneath, fading in
   from white.
   ========================================================================== */

.el-svh {
	position: relative;
	isolation: isolate;
	color: var(--el-ink, #070816);
}

.el-svh p,
.el-svh h1 {
	margin: 0;
}

.el-svh__text {
	position: relative;
	z-index: 1;
	max-width: var(--el-wide, 1240px);
	margin: 0 auto;
	padding: clamp(7.5rem, 15vh, 9rem) var(--el-gutter, 1.25rem) clamp(3rem, 6vw, 4.5rem);
	box-sizing: content-box;
}

.el-svh__text > * {
	max-width: 34rem;
}

.el-svh__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.25rem !important;
	color: var(--el-muted, #555a6b);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.el-svh__eyebrow span {
	width: 28px;
	height: 2px;
	background-color: var(--el-ink, #070816);
}

/* Sized so "Connected support." stays on one line at desktop widths */
.el-svh__title {
	font-size: clamp(2.5rem, 4.1vw, 3.75rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.045em;
}

.el-svh__line {
	display: block;
}

.el-svh__lead {
	max-width: 30rem;
	margin-top: clamp(1.125rem, 2vw, 1.5rem) !important;
	font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
	font-weight: 500;
	line-height: 1.5;
}

.el-svh__lead-close {
	display: block;
	margin-top: 0.3em;
}

.el-svh__lead strong {
	font-weight: 700;
}

.el-svh__cta {
	margin-top: clamp(1.5rem, 2.6vw, 2rem);
}

.el-svh__actions .wp-block-button__link,
.el-svh__actions .wp-block-button__link:hover {
	background-color: var(--el-ink, #070816);
	color: #fff;
}

.el-svh__note {
	margin-top: 1rem !important;
	color: var(--el-muted, #555a6b);
	font-size: 0.875rem;
	font-style: italic;
	font-weight: 700;
}

.el-svh__note a {
	color: inherit;
	white-space: nowrap;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.el-svh__note a:hover {
	color: var(--el-ink, #070816);
}

/* ---------- The illustration ---------- */

.el-svh__art {
	position: relative;
	pointer-events: none;
}

.el-svh__art img {
	display: block;
	width: 100%;
	height: 100%;
}

/* White fades over the art's edges: no seam with the page */
.el-svh__art::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* ---------- Desktop: art behind the whole hero ---------- */

@media (min-width: 1100px) {
	.el-svh.has-art {
		/* Art height: the light area stays clear of the text column */
		--el-svh-h: clamp(400px, calc((100vw - 40rem) / 1.33), 760px);
		min-height: var(--el-svh-h);
		display: flex;
		align-items: center;
	}

	.el-svh.has-art .el-svh__text {
		flex: 1;
	}

	.el-svh__art {
		position: absolute;
		right: 0;
		bottom: 0;
		z-index: 0;
		height: var(--el-svh-h);
		aspect-ratio: 1790 / 879;
	}

	.el-svh__art::after {
		background:
			linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.85) 18%, rgba(255, 255, 255, 0) 38%),
			linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 16%);
	}
}

/* ---------- Below 1100px: copy first, scene underneath ---------- */

@media (max-width: 1099px) {
	.el-svh__text {
		padding-bottom: 0.5rem;
	}

	.el-svh__art {
		margin-top: -1.5rem;
		aspect-ratio: 1000 / 692;
	}

	.el-svh__art::after {
		background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.6) 14%, rgba(255, 255, 255, 0) 32%);
	}
}

@media (max-width: 900px) {
	.el-svh__title {
		font-size: clamp(2.375rem, 10.5vw, 3.25rem);
	}

	.el-svh__actions .wp-block-button,
	.el-svh__actions .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}

	.el-svh__note {
		text-align: center;
	}
}
