/**
 * Kubota Europe product header (WPBakery element `vc_kbeu_product_header`).
 *
 * Based on the Figma design 4040-2125: a full-bleed cover media (image or
 * video) with a dark overlay and a centered text block — the product's first
 * category as a small light label over the product title.
 *
 * Font family "Helvetica Neue LT Pro" is provided by the plugin's fonts
 * stylesheet (this handle depends on `kbeu-fonts`); we reference it through the
 * `--kbeu-font-principal` variable declared there.
 */

.kbeu-product-header {
	position: relative;
	width: 100%;
	aspect-ratio: 1896 / 735;
	min-height: 360px;
	overflow: hidden;
	color: #fff;
	background: #1a1a1a;
	/* border radius top left and top right */
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;

}

.kbeu-product-header[data-height="tall"] {
	aspect-ratio: auto;
	height: 80vh;
	min-height: 480px;
}

.kbeu-product-header[data-height="fullscreen"] {
	aspect-ratio: auto;
	height: 100vh;
	min-height: 480px;
}

/* --- Cover media ------------------------------------------------------ */

.kbeu-product-header__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

.kbeu-product-header__picture {
	display: block;
}

.kbeu-product-header__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kbeu-product-header__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, var( --kbeu-ph-overlay, 0.23 ) );
	pointer-events: none;
}

/* --- Centered text ---------------------------------------------------- */

.kbeu-product-header__text {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	text-align: center;
}

.kbeu-product-header__category {
	margin: 0;
	font-family: var( --kbeu-font-principal );
	font-weight: 300;
	line-height: 1.55;
	font-size: clamp( 16px, 1.7vw, 24px );
}

.kbeu-product-header__title {
	margin: 0;
	font-family: var( --kbeu-font-principal );
	font-weight: 500;
	line-height: 1.02;
	font-size: clamp( 34px, 5vw, 70px );
	color: #fff;
	padding-top: 0;
}

/* --- Video play/pause toggle ------------------------------------------ */

.kbeu-product-header__toggle {
	position: absolute;
	right: clamp( 16px, 2.5vw, 40px );
	bottom: clamp( 16px, 2.5vw, 40px );
	z-index: 3;
	width: clamp( 44px, 4vw, 56px );
	height: clamp( 44px, 4vw, 56px );
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.kbeu-product-header__toggle:hover,
.kbeu-product-header__toggle:focus-visible {
	opacity: 1;
	transform: scale( 1.05 );
}

.kbeu-product-header__icon {
	display: none;
}

.kbeu-product-header__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.kbeu-product-header__toggle.is-playing .kbeu-product-header__icon--pause,
.kbeu-product-header__toggle.is-paused .kbeu-product-header__icon--play {
	display: block;
}
