/* =====================================================
   HERO VIDEO
   ===================================================== */

.hero-video-wrapper {
	position: relative;
	width: 100%;
	min-height: 500px;
	overflow: hidden;
	display: flex;
	align-items: center;
}

/* ─── Video & Placeholder ─── */
.hero-video__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-video__video,
.hero-video__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	position: absolute;
	inset: 0;
}

.hero-video__placeholder {
	z-index: 2;
	transition: opacity 0.6s ease;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
}

.hero-video__video {
	z-index: 1;
}

.hero-video-wrapper[data-video-ready="true"] .hero-video__placeholder {
	opacity: 0;
	pointer-events: none;
}

/* ─── Overlay ─── */
.hero-video__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.55) 0%,
		rgba(0, 0, 0, 0.25) 60%,
		transparent 100%
	);
	pointer-events: none;
}

/* ─── Content ─── */
.hero-video__content {
	position: relative;
	z-index: 4;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 80px 40px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.hero-video__heading {
	color: #fff;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
	max-width: 600px;
}

.hero-video__text {
	color: rgba(255, 255, 255, 0.85);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
	max-width: 500px;
}

.hero-video__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
	padding: 14px 32px;
	background: #24317c;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.2s ease;
}

.hero-video__button:hover {
	background: #1b2660;
	color: #fff;
	transform: translateY(-1px);
}

.hero-video__link:hover .hero-video__image img {
	transform: scale(1.05);
}

/* ─── Height control ─── */
.hero-video-wrapper[data-height="small"]  { min-height: 400px; }
.hero-video-wrapper[data-height="medium"] { min-height: 560px; }
.hero-video-wrapper[data-height="large"]  { min-height: 720px; }
.hero-video-wrapper[data-height="full"]   { min-height: 100vh; }
.hero-video-wrapper[data-height="60vh"]   { min-height: 60vh; }
.hero-video-wrapper[data-height="70vh"]   { min-height: 70vh; }
.hero-video-wrapper[data-height="80vh"]   { min-height: 80vh; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
	.hero-video__content {
		padding: 60px 30px;
	}

	.hero-video__heading {
		font-size: 38px;
	}
}

@media (max-width: 768px) {
	.hero-video-wrapper[data-height-mobile="small"]  { min-height: 400px; }
	.hero-video-wrapper[data-height-mobile="medium"] { min-height: 560px; }
	.hero-video-wrapper[data-height-mobile="large"]  { min-height: 720px; }
	.hero-video-wrapper[data-height-mobile="full"]   { min-height: 100vh; }
	.hero-video-wrapper[data-height-mobile="60vh"]   { min-height: 60vh; }
	.hero-video-wrapper[data-height-mobile="70vh"]   { min-height: 70vh; }
	.hero-video-wrapper[data-height-mobile="80vh"]   { min-height: 80vh; }

	.hero-video__content {
		padding: 50px 20px;
	}

	.hero-video__heading {
		font-size: 30px;
		max-width: 100%;
	}

	.hero-video__text {
		font-size: 15px;
		max-width: 100%;
	}

	.hero-video__button {
		padding: 12px 28px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.hero-video__heading {
		font-size: 26px;
	}

	.hero-video__content {
		padding: 40px 16px;
	}
}

/* ─── Elementor editor ─── */
.elementor-editor-active .hero-video-wrapper {
	min-height: 400px;
}

.elementor-editor-active .hero-video__video {
	pointer-events: none;
}
