/*
 * Benefit - Hero.
 *
 * Read from cp-all-designer benefit.html:90-108, css/benefit.css:19-139,
 * 788-805 and css/app.css:350-352 (.sec).
 *
 * Colour, type, padding, the corners and the spaces between the parts arrive
 * from the Style tab and are not repeated here.
 */

.custom-benefit-hero {
	--custom-benefit-hero-wash: #FFFFFF;
	--custom-benefit-hero-brand: #CE2929;
	--custom-benefit-hero-height: 380px;
	--custom-benefit-hero-space: 28px;
	--custom-benefit-hero-radius: 20px;
	position: relative;
	overflow: hidden;
}

/* benefit.css:60-68 — the picture behind the whole band; its empty sky above
   the people is cropped away */
.custom-benefit-hero .custom-benefit-hero__picture {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.custom-benefit-hero .custom-benefit-hero__picture > img {
	object-position: 68% 78%;
}

/* benefit.css:72-82 — washed white from the left, so the words stand on it */
.custom-benefit-hero .custom-benefit-hero__picture::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		var(--custom-benefit-hero-wash) 0%,
		var(--custom-benefit-hero-wash) 22%,
		color-mix(in srgb, var(--custom-benefit-hero-wash) 92%, transparent) 34%,
		color-mix(in srgb, var(--custom-benefit-hero-wash) 60%, transparent) 48%,
		color-mix(in srgb, var(--custom-benefit-hero-wash) 12%, transparent) 62%,
		transparent 74%
	);
}

.custom-benefit-hero .custom-benefit-hero__inner {
	position: relative;
	z-index: 1;
}

/* benefit.css:139 */
.custom-benefit-hero .custom-benefit-hero__copy {
	position: relative;
	z-index: 1;
}

/* benefit.css:88-98 — the space to the heading comes from this side, so the
   heading's read-in copy lies exactly over it */
.custom-benefit-hero .custom-benefit-hero__kicker {
	margin-top: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0;
	text-transform: none;
}

/* benefit.css:99-104 — Latin letters alone, so the display face's tight line box */
.custom-benefit-hero .custom-benefit-hero__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: 0;
	text-transform: none;
}

.custom-benefit-hero .custom-benefit-hero__title strong,
.custom-benefit-hero .custom-benefit-hero__title b {
	font-weight: 700;
	color: inherit;
}

/* benefit.css:49-56, app.css:244-251 — the word set apart: upright, a step
   larger, its colour written into the heading, the site's soft bar under it */
.custom-benefit-hero .custom-benefit-hero__title em {
	position: relative;
	display: inline-block;
	font-style: normal;
	font-weight: 700;
	font-size: 108%;
}

/* -.02em and .16em of a 77.76px word */
.custom-benefit-hero .custom-benefit-hero__title em::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -2px;
	left: 0;
	height: 12px;
	border-radius: 4px;                    /* benefit.css:55 measures 3px */
	background: currentColor;
	opacity: 0.18;
}

.custom-benefit-hero .nb {
	white-space: nowrap;
}

/* benefit.css:105-109 */
.custom-benefit-hero .custom-benefit-hero__tag {
	margin-bottom: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0;
	text-transform: none;
}

/* benefit.css:110-114 */
.custom-benefit-hero .custom-benefit-hero__lead {
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 300;
	line-height: 1.75;
	letter-spacing: 0;
	text-transform: none;
}

/* benefit.css:121-125 — the brand turns red a beat after the block rises in */
.custom-benefit-hero .custom-benefit-hero__lead strong,
.custom-benefit-hero .custom-benefit-hero__lead b {
	font-weight: 700;
	color: inherit;
	white-space: nowrap;
	transition: color 500ms cubic-bezier(0.2, 0.8, 0.2, 1) 250ms;
}

.custom-benefit-hero .custom-benefit-hero__copy.is-in .custom-benefit-hero__lead strong,
.custom-benefit-hero .custom-benefit-hero__copy.is-in .custom-benefit-hero__lead b {
	color: var(--custom-benefit-hero-brand);
}

/* benefit.css:130-138 — a pale leaf */
.custom-benefit-hero .custom-benefit-hero__quote {
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;
	border: 0;
}

.custom-benefit-hero .custom-benefit-hero__quote-text {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
	line-height: 1.55;
	letter-spacing: 0;
	text-transform: none;
}

/* Elementor's sheet (frontend.min.css, `.elementor img`) comes after the plugin's
   and sets a picture's height to auto and caps its width: the slot's picture says
   its own here, heavily enough to stand */
.custom-benefit-hero .custom-benefit-hero__picture > img {
	height: 100%;
	max-width: none;
}

/* ------------------------------------------------------------------ */
/* Tablet — 768px to 1024px (benefit.css:788-805)                      */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	/* one column: the picture stands above the words as a card, inside the
	   same edges as everything else, with nothing washing over it */
	.custom-benefit-hero .custom-benefit-hero__picture {
		position: relative;
		inset: auto;
		box-sizing: border-box;
		width: 100%;
		max-width: 1920px;
		height: var(--custom-benefit-hero-height);
		margin: 0 auto var(--custom-benefit-hero-space);
		border-radius: var(--custom-benefit-hero-radius);
		box-shadow: 0 2px 6px rgba(22, 65, 140, 0.06), 0 12px 28px -12px rgba(22, 65, 140, 0.16);   /* --benf-sh, benefit.css:20 */
	}
	.custom-benefit-hero .custom-benefit-hero__picture::after {
		display: none;
	}
}

/* ------------------------------------------------------------------ */
/* Mobile — up to 767px                                                */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	/* -.02em and .16em of a 51.84px word */
	.custom-benefit-hero .custom-benefit-hero__title em::after {
		bottom: -2px;
		height: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-benefit-hero .custom-benefit-hero__lead strong,
	.custom-benefit-hero .custom-benefit-hero__lead b {
		transition: none;
	}
}
