/**
 * Kubota Europe page hero (WPBakery element `vc_kbeu_page_hero`).
 *
 * Based on the Figma contact page, node 4040-2980 ("Fondo Negro"): a rounded band
 * (604px tall on the 2560px artboard, 15px corners) filled by a photo under a
 * translucent black overlay (38%), with the texts centred in white — the title
 * 70px / Medium at a tight 1.02 line height, the paragraph 24px / Light at 1.55,
 * about 1000px wide, 16px under the title. The optional eyebrow (not in that
 * mockup) is the white 24px / Light pretitle of the other photo heroes.
 *
 * The band takes the width its row gives it (the design's 52px side margins are
 * the row's) and its height follows the viewport down to a floor. Sizes are
 * `clamp()`s whose maximum is the Figma value at 2560px.
 *
 * Font family "Inter" comes from the plugin's fonts stylesheet
 * (this handle depends on `kbeu-fonts`), referenced via `--kbeu-font-principal`.
 *
 * The overlay, the corner radius and the height are tokens on the root so a
 * variant only redefines them — see `.kbeu-page-hero--image` at the end, the
 * text-less band of the single news view (`vc_kbeu_news_hero`).
 */

.kbeu-page-hero {
	--kbeu-hero-overlay: 0.38;
	--kbeu-hero-radius: 15px;
	--kbeu-hero-min-height: clamp( 260px, 23.6vw, 604px );

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

.kbeu-page-hero__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var( --kbeu-hero-min-height );
	padding: clamp( 24px, 3vw, 56px ) clamp( 16px, 5vw, 120px );
	border-radius: var( --kbeu-hero-radius );
	background-color: var( --kbeu-color-near-black );
	overflow: hidden;
	text-align: center;
}

/* The photo covers the whole band; the overlay darkens it by the element's
   opacity so the white texts stay readable on any picture. */
.kbeu-page-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

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

.kbeu-page-hero__content {
	position: relative;
	max-width: 1251px;
	margin: 0 auto;
}

/* White like the pretitle of the other photo heroes (division slider, product
   header): the turquoise of the on-white heading blocks does not read on a photo. */
.kbeu-page-hero__eyebrow {
	margin: 0 0 clamp( 10px, 0.9vw, 22px );
	font-weight: 300;
	line-height: 1.2;
	font-size: clamp( 16px, 0.94vw, 24px );
	color: #fff;
}

.kbeu-page-hero__title {
	margin: 0;
	font-family: inherit;
	font-weight: 500;
	line-height: 1.02;
	font-size: clamp( 34px, 2.75vw, 70px );
	color: #fff;
}

.kbeu-page-hero__text {
	max-width: 1000px;
	margin: clamp( 12px, 0.65vw, 16px ) auto 0;
	font-weight: 300;
	line-height: 1.55;
	font-size: clamp( 16px, 0.95vw, 24px );
	color: #fff;
}

/* Image-only variant — the news hero (Figma 3727:8448, "Rectangle 45511"): the
   1903×582px photo of the 2560px artboard, so 22.7vw tall at that width, with
   14px corners and no overlay (the element's `overlay` param, printed inline on
   the root, still wins when an editor darkens it). No text is ever printed in
   it; the inner padding only pads the empty band. */
.kbeu-page-hero--image {
	--kbeu-hero-overlay: 0;
	--kbeu-hero-radius: 14px;
	--kbeu-hero-min-height: clamp( 220px, 22.7vw, 582px );
}

/* A news with a landscape image but no featured image: the wide photo is never
   shown on phones (its 3:1 crop is useless there), so the band goes with it. */
@media ( max-width: 767px ) {
	.kbeu-page-hero--desktop-only {
		display: none;
	}
}
