/**
 * Product Page Hero Block
 * Synced with ACF: Product Page Hero
 */

.product-page-hero-block {
	position: relative;
	z-index: 1;
	width: 100vw !important;
	max-width: 100vw !important;
	left: 50% !important;
	right: 50% !important;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	box-sizing: border-box;
	overflow: hidden;
	isolation: isolate;
}

.e-con-inner:has(.product-page-hero-block),
.elementor-container:has(.product-page-hero-block),
main:has(.product-page-hero-block) {
	max-width: none !important;
	overflow-x: visible !important;
}

.product-page-hero {
	background-color: #000000;
	color: #ffffff;
	text-align: center;
	padding-top: 10rem;
	padding-bottom: 3rem;
}

@media (min-width: 768px) {
	.product-page-hero {
		padding-bottom: 4rem;
	}
}

@media (min-width: 1024px) {
	.product-page-hero {
		padding-bottom: 15rem;
	}
}

/* No hero image: tighter bottom spacing on all breakpoints */
.product-page-hero.product-page-hero--no-image {
	padding-bottom: 1rem;
}

.product-page-hero--no-image .product-page-hero__buttons {
	margin-bottom: 0;
}

.product-page-hero__inner {
	position: relative;
}

.product-page-hero__copy {
	position: relative;
	z-index: 2;
}

.product-page-hero__placeholder {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
}

.product-page-hero__eyebrow {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 500;
	line-height: 160%;
	letter-spacing: 2.72px;
	text-transform: uppercase;
}

.product-page-hero__headline {
	margin: 0 0 16px;
	font-size: clamp(2.25rem, 5vw, 70px);
	font-weight: 500;
	line-height: 120%;
	letter-spacing: -3.5px;
	color: #ffffff;
}

.product-page-hero__subheader {
	max-width: 52rem;
	margin: 0 auto 32px;
	font-size: clamp(1rem, 2vw, 1.25rem);
	font-weight: 400;
	line-height: 150%;
	color: #ffffff;
}

.product-page-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 1.25rem;
	margin-bottom: 40px;
}

.product-page-hero__media {
	position: relative;
	z-index: 1;
	width: min(784px, 100%);
	margin: 0 auto;
	overflow: visible;
}

.product-page-hero__spectral-light {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 0;
	width: 168%;
	max-width: none;
	height: auto;
	transform: translate(-50%, -50%);
	pointer-events: none;
	user-select: none;
	mix-blend-mode: screen;
	/* clip-path: inset(-12% -34% 18% -34%); */
}

.product-page-hero__media-frame {
	position: relative;
	z-index: 1;
	border-radius: 16px;
	overflow: hidden;
	background: #374151;
}

.product-page-hero__media-frame.has-image-gradient::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(234, 224, 255, 0) 0%, rgba(105, 33, 214, 0.41) 100%);
	pointer-events: none;
}

.product-page-hero__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Hero video: swapped in 1:1 for the image, so it sizes/looks the same. The
   overlaid play button reuses the Product Page Video interaction JS. */
.product-page-hero__video-player {
	position: relative;
	display: block;
	width: 100%;
	line-height: 0;
}

.product-page-hero__video {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.product-page-hero__play,
.product-page-hero__play:hover,
.product-page-hero__play:focus,
.product-page-hero__play:active {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0 !important;
	/* Elementor's global button styles otherwise paint a solid (black) fill
	   over the whole video, since this button is inset: 0. */
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

/* Fade overlay: matches the video's dimensions (inset: 0 on the player, which is
   sized by the video) and fades out on click via the shared video JS. */
.product-page-hero__video-player .video-gradient-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	pointer-events: none;
}

.product-page-hero__video-player .video-gradient-overlay--t {
	background-image: linear-gradient(to top,
		#000000 0%,
		rgba(0, 0, 0, 0.85) 10%,
		rgba(0, 0, 0, 0.45) 28%,
		transparent 48%,
		transparent 52%,
		rgba(0, 0, 0, 0.45) 72%,
		rgba(0, 0, 0, 0.85) 90%,
		#000000 100%);
}

.product-page-hero__video-player .video-gradient-overlay--l {
	background-image: linear-gradient(to left,
		#000000 0%,
		rgba(0, 0, 0, 0.8) 12%,
		transparent 45%,
		transparent 100%);
}

.product-page-hero__video-player .video-gradient-overlay--r {
	background-image: linear-gradient(to right,
		#000000 0%,
		rgba(0, 0, 0, 0.8) 12%,
		transparent 45%,
		transparent 100%);
}

.product-page-hero__play svg {
	width: 5rem;
	height: 5rem;
	color: #ffffff;
	opacity: 0.9;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.product-page-hero__play:hover svg {
	opacity: 1;
	transform: scale(1.1);
}

@media (min-width: 768px) {
	.product-page-hero__headline {
		margin-bottom: 20px;
	}

	.product-page-hero__subheader {
		margin-bottom: 48px;
		font-size: clamp(1.125rem, 2vw, 1.375rem);
	}

	.product-page-hero__buttons {
		margin-bottom: 48px;
	}

	.product-page-hero.product-page-hero--no-image {
		padding-bottom: 1rem;
	}

	.product-page-hero--no-image .product-page-hero__buttons {
		margin-bottom: 0;
	}
}

@media (min-width: 1024px) {
	.product-page-hero__headline {
		margin-bottom: 24px;
	}

	.product-page-hero__subheader {
		margin-bottom: 60px;
		font-size: 24px;
	}

	.product-page-hero__buttons {
		margin-bottom: 60px;
	}

	.product-page-hero.product-page-hero--no-image {
		padding-bottom: 1rem;
	}

	.product-page-hero--no-image .product-page-hero__buttons {
		margin-bottom: 0;
	}
}

@media (max-width: 767px) {
	.product-page-hero__spectral-light {
		width: 145%;
	}

	.product-page-hero__headline {
		letter-spacing: -0.06em;
	}
}
