/**
 * Kubota Europe lead hero (WPBakery element `vc_kbeu_lead_hero`).
 *
 * Figma lead generation page, node 5037-4982 ("Fondo Negro"): a rounded band
 * (15px corners) filled by a photo under a 48% black overlay. On the left, the
 * pitch in white: a turquoise pill (20px / Light, 7px corners), the title 61px
 * under it (70px / Medium at 1.02, 816px wide — two lines), the paragraph
 * (24px / Light at 1.55, 894px wide) and the bullets (24px / Light, a 24px
 * turquoise check-circle 12px before each, 40px apart). On the right, a white
 * card 786px wide (41.5% of the 1896px column), 20px corners, 48px padding and
 * a soft shadow (0 16px 20px / 20%): "Enter to Win" (32px / Bold), a grey intro
 * (18px / Light, #595959), the entry form (`kbeu-contact-form--card`, see
 * `kbeu-contact-form.css`) and a 12px / Light grey note 27px under its button.
 * The card sets the band's height: 73.5px above and below it on the artboard.
 *
 * The band is the row's width; inside it the content lines up with the site's
 * content column (`--site-content-width`, 1896px) when the band is wider, and
 * keeps a gutter otherwise. Stacked (text above the card) ≤ 1024px.
 *
 * Sizes are `clamp()`s whose maximum is the Figma value at 2560px.
 */

.kbeu-lead-hero {
	--kbeu-lh-overlay: 0.48;
	--kbeu-lh-radius: 15px;
	--kbeu-lh-gutter: clamp( 20px, 4vw, 102px );

	width: 100%;
	font-family: var( --kbeu-font-principal );
}

.kbeu-lead-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( min( 100%, 440px ), 41.5% );
	align-items: center;
	column-gap: clamp( 32px, 4.7vw, 120px );
	padding-block: clamp( 32px, 2.87vw, 73.5px );
	padding-inline: max( var( --kbeu-lh-gutter ), calc( ( 100% - var( --site-content-width, 1896px ) ) / 2 ) );
	border-radius: var( --kbeu-lh-radius );
	background-color: var( --kbeu-color-near-black );
	overflow: hidden;
}

/* The photo covers the band; the overlay keeps the white texts readable. */
.kbeu-lead-hero .kbeu-lead-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.kbeu-lead-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, var( --kbeu-lh-overlay ) );
	pointer-events: none;
}

/* --- The pitch ------------------------------------------------------------- */

.kbeu-lead-hero__content {
	position: relative;
	min-width: 0;
	/* The design sits the pitch ~24px above the band's middle. */
	margin-bottom: clamp( 0px, 1.875vw, 48px );
	color: #fff;
}

.kbeu-lead-hero__tag {
	display: inline-block;
	margin: 0;
	padding: 2px clamp( 14px, 2.07vw, 53px ) 0;
	border-radius: 7px;
	background: var( --kbeu-color-teal );
	font-weight: 300;
	font-size: clamp( 14px, 0.78vw, 20px );
	line-height: 1.26;
	color: #fff;
}

.kbeu-lead-hero .kbeu-lead-hero__title {
	max-width: 11.66em;
	margin: clamp( 20px, 2.4vw, 61px ) 0 0;
	padding: 0;
	font-family: inherit;
	font-weight: 500;
	font-size: clamp( 36px, 2.73vw, 70px );
	line-height: 1.02;
	letter-spacing: 0;
	color: #fff;
}

.kbeu-lead-hero__content > .kbeu-lead-hero__title:first-child {
	margin-top: 0;
}

.kbeu-lead-hero__text {
	max-width: 37.25em;
	margin: clamp( 16px, 1.37vw, 35px ) 0 0;
	font-weight: 300;
	font-size: clamp( 16px, 0.94vw, 24px );
	line-height: 1.55;
	color: #fff;
}

.kbeu-lead-hero .kbeu-lead-hero__bullets {
	display: flex;
	flex-direction: column;
	gap: 0.12em;
	margin: clamp( 16px, 1.2vw, 31px ) 0 0;
	padding: 0;
	list-style: none;
	font-size: clamp( 16px, 0.94vw, 24px );
}

.kbeu-lead-hero .kbeu-lead-hero__bullet {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin: 0;
	padding: 0;
	font-weight: 300;
	line-height: 1.55;
	color: #fff;
}

.kbeu-lead-hero__check {
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	color: var( --kbeu-color-teal );
}

/* --- The form card --------------------------------------------------------- */

.kbeu-lead-hero__card {
	position: relative;
	min-width: 0;
	padding: clamp( 24px, 1.875vw, 48px );
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 16px 20px rgba( 0, 0, 0, 0.2 );
	color: var( --kbeu-color-ink );
}

.kbeu-lead-hero .kbeu-lead-hero__form-title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-weight: 700;
	font-size: clamp( 24px, 1.25vw, 32px );
	line-height: 1.37;
	letter-spacing: 0;
	color: var( --kbeu-color-ink );
}

.kbeu-lead-hero__form-text {
	margin: 8px 0 0;
	font-weight: 300;
	font-size: clamp( 16px, 0.7vw, 18px );
	line-height: 1.56;
	color: #595959;
}

.kbeu-lead-hero__card .kbeu-contact-form {
	margin-top: 21px;
}

.kbeu-lead-hero__card > .kbeu-contact-form:first-child {
	margin-top: 0;
}

.kbeu-lead-hero__note {
	margin: 27px 0 0;
	font-weight: 300;
	font-size: 12px;
	line-height: 1.2;
	color: var( --kbeu-color-muted );
}

/* Once sent, the form shows only its status: the note goes with the fields. */
.kbeu-lead-hero__card:has( .kbeu-contact-form.is-sent ) .kbeu-lead-hero__note {
	display: none;
}

/* --- Stacked --------------------------------------------------------------- */

@media ( max-width: 1024px ) {
	.kbeu-lead-hero__inner {
		grid-template-columns: minmax( 0, 1fr );
		row-gap: 40px;
		padding-block: 48px 24px;
	}
}

@media ( max-width: 600px ) {
	.kbeu-lead-hero__inner {
		padding-block: 36px 16px;
		padding-inline: 16px;
	}

	.kbeu-lead-hero__card {
		padding: 24px 20px;
	}
}
