/* ==========================================================================
   Hero Video Slider  –  dark navy + electric blue
   ========================================================================== */

.hvs-hero {
	--hvs-navy: #050b1f;
	--hvs-navy-2: #0a1530;
	--hvs-blue: #1e6bff;
	--hvs-cyan: #27d3ff;
	--hvs-text: #eef3ff;
	--hvs-muted: #aebbdc;
	--hvs-overlay-opacity: 70; /* 0–100, set from the widget */

	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--hvs-navy);
	color: var(--hvs-text);
	box-sizing: border-box;
}

.hvs-hero *,
.hvs-hero *::before,
.hvs-hero *::after {
	box-sizing: border-box;
}

.hvs-height-full {
	min-height: 100vh;
	min-height: 100svh;
}

.hvs-height-custom {
	min-height: 720px;
}

/* --------------------------------------------------------------------------
   Background media (video + fallback + overlay)
   -------------------------------------------------------------------------- */
.hvs-media {
	position: absolute;
	inset: 0;
	z-index: -3;
	overflow: hidden;
	background: var(--hvs-navy);
}

.hvs-fallback,
.hvs-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hvs-video {
	opacity: 0;
	transition: opacity 0.9s ease;
}

.hvs-video-ready .hvs-video {
	opacity: 1;
}

.hvs-overlay {
	position: absolute;
	inset: 0;
	opacity: calc(var(--hvs-overlay-opacity) / 100);
	background:
		radial-gradient(60% 70% at 85% 35%, rgba(30, 107, 255, 0.28), transparent 70%),
		linear-gradient(100deg, rgba(5, 11, 31, 0.97) 0%, rgba(5, 11, 31, 0.82) 42%, rgba(8, 22, 62, 0.55) 100%),
		linear-gradient(0deg, rgba(5, 11, 31, 0.9) 0%, transparent 35%);
}

.hvs-grid-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(39, 211, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(39, 211, 255, 0.06) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse at 72% 40%, #000 0%, transparent 70%);
	mask-image: radial-gradient(ellipse at 72% 40%, #000 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.hvs-container {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(32px, 5vw, 76px);
	align-items: center;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(96px, 13vh, 150px) clamp(20px, 4vw, 48px) clamp(88px, 12vh, 130px);
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */
.hvs-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px 7px 12px;
	border: 1px solid rgba(39, 211, 255, 0.28);
	border-radius: 999px;
	background: rgba(30, 107, 255, 0.12);
	color: #bfe7ff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.hvs-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hvs-cyan);
	box-shadow: 0 0 0 0 rgba(39, 211, 255, 0.6);
	animation: hvs-pulse 2.2s infinite;
}

.hvs-heading {
	margin: 22px 0 0;
	color: #fff;
	font-size: clamp(2.15rem, 4.9vw, 4.1rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.hvs-desc {
	max-width: 560px;
	margin: 22px 0 0;
	color: var(--hvs-muted);
	font-size: clamp(1rem, 1.35vw, 1.15rem);
	line-height: 1.7;
}

.hvs-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

.hvs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 28px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hvs-btn svg {
	width: 18px;
	height: 18px;
	transition: transform 0.25s ease;
}

.hvs-btn-primary {
	color: #fff;
	background: linear-gradient(135deg, var(--hvs-blue), #0f4fe0);
	box-shadow: 0 10px 30px -8px rgba(30, 107, 255, 0.7);
}

.hvs-btn-primary:hover {
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -10px rgba(30, 107, 255, 0.9);
}

.hvs-btn-primary:hover svg {
	transform: translateX(4px);
}

.hvs-btn-ghost {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.22);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.hvs-btn-ghost:hover {
	color: #fff;
	transform: translateY(-3px);
	background: rgba(39, 211, 255, 0.12);
	border-color: rgba(39, 211, 255, 0.6);
}

/* Entrance animation */
.hvs-content > * {
	animation: hvs-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hvs-content > :nth-child(2) { animation-delay: 0.08s; }
.hvs-content > :nth-child(3) { animation-delay: 0.16s; }
.hvs-content > :nth-child(4) { animation-delay: 0.24s; }

/* --------------------------------------------------------------------------
   Right image slider
   -------------------------------------------------------------------------- */
.hvs-slider-wrap {
	position: relative;
	animation: hvs-float 8s ease-in-out infinite;
}

.hvs-slider-wrap::before {
	content: "";
	position: absolute;
	inset: -6% -4% -8% 6%;
	z-index: -1;
	border-radius: 40px;
	background: radial-gradient(closest-side, rgba(30, 107, 255, 0.55), transparent);
	filter: blur(30px);
	opacity: 0.8;
}

.hvs-slider {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid rgba(130, 170, 255, 0.28);
	border-radius: 24px;
	background: var(--hvs-navy-2);
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
	touch-action: pan-y;
	transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.hvs-slider:hover {
	transform: translateY(-6px) scale(1.01);
	border-color: rgba(39, 211, 255, 0.55);
	box-shadow: 0 40px 90px -20px rgba(30, 107, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hvs-track {
	position: absolute;
	inset: 0;
}

.hvs-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: scale(1.06);
	transition:
		opacity var(--hvs-speed, 700ms) ease,
		transform calc(var(--hvs-speed, 700ms) * 1.8) ease,
		visibility 0s linear var(--hvs-speed, 700ms);
}

.hvs-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
	transition-delay: 0s;
}

.hvs-slide-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-user-drag: none;
	user-select: none;
}

.hvs-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(0deg, rgba(5, 11, 31, 0.92) 0%, rgba(5, 11, 31, 0.35) 38%, transparent 62%);
}

.hvs-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 120px 58px 24px;
}

.hvs-caption strong {
	color: #fff;
	font-size: clamp(1rem, 1.6vw, 1.3rem);
	font-weight: 700;
}

.hvs-caption span {
	color: var(--hvs-muted);
	font-size: 0.92rem;
}

/* Slide effect (instead of fade) */
.hvs-effect-slide .hvs-track {
	display: flex;
	transition: transform var(--hvs-speed, 700ms) cubic-bezier(0.65, 0, 0.35, 1);
}

.hvs-effect-slide .hvs-slide {
	position: relative;
	inset: auto;
	flex: 0 0 100%;
	height: 100%;
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: none;
}

/* Arrows */
.hvs-arrows {
	position: absolute;
	right: 18px;
	bottom: 16px;
	z-index: 3;
	display: flex;
	gap: 8px;
}

.hvs-arrow {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: rgba(8, 18, 48, 0.55);
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hvs-arrow svg {
	width: 20px;
	height: 20px;
}

.hvs-arrow:hover {
	background: var(--hvs-blue);
	border-color: var(--hvs-blue);
	transform: scale(1.08);
}

/* Dots */
.hvs-dots {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 3;
	display: flex;
}

.hvs-dot-btn {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.hvs-dot-btn span {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.4);
	transition: width 0.35s ease, background 0.35s ease;
}

.hvs-dot-btn:hover span {
	background: rgba(255, 255, 255, 0.8);
}

.hvs-dot-btn[aria-current="true"] span {
	width: 26px;
	background: var(--hvs-cyan);
}

/* --------------------------------------------------------------------------
   Video controls (play / pause, optional sound)
   -------------------------------------------------------------------------- */
.hvs-vc {
	position: absolute;
	left: clamp(20px, 4vw, 48px);
	bottom: 28px;
	z-index: 5;
	display: flex;
	gap: 10px;
}

.hvs-vc-btn {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	background: rgba(8, 18, 48, 0.55);
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hvs-vc-btn svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.hvs-vc-btn:hover {
	background: var(--hvs-blue);
	border-color: var(--hvs-blue);
	transform: scale(1.08);
}

/* Icon swaps */
.hvs-i-pause,
.hvs-i-sound {
	display: none;
}
.hvs-i-play,
.hvs-i-muted {
	display: grid;
}

.hvs-video-playing .hvs-i-play { display: none; }
.hvs-video-playing .hvs-i-pause { display: grid; }

.hvs-vc-sound[data-state="on"] .hvs-i-muted { display: none; }
.hvs-vc-sound[data-state="on"] .hvs-i-sound { display: grid; }

.hvs-video-failed .hvs-vc {
	display: none;
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
.hvs-hero a:focus-visible,
.hvs-hero button:focus-visible {
	outline: 3px solid var(--hvs-cyan);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hvs-container {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.hvs-slider-wrap {
		width: 100%;
		max-width: 680px;
	}
}

@media (max-width: 767px) {
	.hvs-container {
		padding-top: 88px;
		padding-bottom: 104px;
	}

	.hvs-actions {
		flex-direction: column;
	}

	.hvs-btn {
		width: 100%;
	}

	.hvs-slider {
		aspect-ratio: 16 / 11;
		border-radius: 18px;
	}

	.hvs-caption {
		padding: 0 104px 52px 18px;
	}

	.hvs-arrow {
		width: 38px;
		height: 38px;
	}

	.hvs-vc {
		bottom: 20px;
	}

	.hvs-vc-btn {
		width: 42px;
		height: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hvs-slider-wrap,
	.hvs-dot,
	.hvs-content > * {
		animation: none;
	}

	.hvs-slide,
	.hvs-effect-slide .hvs-track,
	.hvs-video,
	.hvs-slider {
		transition-duration: 0.01ms !important;
	}
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes hvs-rise {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: none; }
}

@keyframes hvs-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-10px); }
}

@keyframes hvs-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(39, 211, 255, 0.6); }
	70%  { box-shadow: 0 0 0 10px rgba(39, 211, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(39, 211, 255, 0); }
}

/* ==========================================================================
   Theme-proof button reset
   Themes / Elementor kits style every <button> (white bg, padding, min-width,
   hover colours). `all: unset` + a higher-specificity selector wins over them.
   ========================================================================== */
.hvs-hero .hvs-arrow,
.hvs-hero .hvs-dot-btn,
.hvs-hero .hvs-vc-btn {
	all: unset;
	box-sizing: border-box;
	display: grid;
	place-items: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
}

/* Arrows */
.hvs-hero .hvs-arrow {
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(8, 18, 48, 0.62);
	color: #fff;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hvs-hero .hvs-arrow svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	color: #fff;
}

.hvs-hero .hvs-arrow:hover,
.hvs-hero .hvs-arrow:focus-visible {
	background: var(--hvs-blue);
	border-color: var(--hvs-blue);
	color: #fff;
	transform: scale(1.08);
}

/* Dots */
.hvs-hero .hvs-dot-btn {
	width: 24px;
	height: 24px;
	background: none;
	border: 0;
}

.hvs-hero .hvs-dot-btn span {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.45);
	transition: width 0.35s ease, background 0.35s ease;
}

.hvs-hero .hvs-dot-btn:hover span {
	background: rgba(255, 255, 255, 0.85);
}

.hvs-hero .hvs-dot-btn[aria-current="true"] span {
	width: 26px;
	background: var(--hvs-cyan);
}

/* Video play / sound buttons */
.hvs-hero .hvs-vc-btn {
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(8, 18, 48, 0.62);
	color: #fff;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hvs-hero .hvs-vc-btn svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
	color: #fff;
}

.hvs-hero .hvs-vc-btn:hover,
.hvs-hero .hvs-vc-btn:focus-visible {
	background: var(--hvs-blue);
	border-color: var(--hvs-blue);
	color: #fff;
	transform: scale(1.08);
}

/* Keep icon-swap spans centred inside the reset buttons */
.hvs-hero .hvs-vc-btn .hvs-i-play,
.hvs-hero .hvs-vc-btn .hvs-i-muted { display: grid; place-items: center; }
.hvs-hero .hvs-vc-btn .hvs-i-pause,
.hvs-hero .hvs-vc-btn .hvs-i-sound { display: none; }
.hvs-hero.hvs-video-playing .hvs-vc-btn .hvs-i-play { display: none; }
.hvs-hero.hvs-video-playing .hvs-vc-btn .hvs-i-pause { display: grid; place-items: center; }
.hvs-hero .hvs-vc-sound[data-state="on"] .hvs-i-muted { display: none; }
.hvs-hero .hvs-vc-sound[data-state="on"] .hvs-i-sound { display: grid; place-items: center; }

.hvs-hero .hvs-arrow:focus-visible,
.hvs-hero .hvs-dot-btn:focus-visible,
.hvs-hero .hvs-vc-btn:focus-visible {
	outline: 3px solid var(--hvs-cyan);
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.hvs-hero .hvs-arrow { width: 38px; height: 38px; }
	.hvs-hero .hvs-vc-btn { width: 42px; height: 42px; }
}

/* Some themes force button backgrounds with !important – match it. */
.hvs-hero .hvs-arrow,
.hvs-hero .hvs-vc-btn {
	background-color: rgba(8, 18, 48, 0.62) !important;
	color: #fff !important;
}

.hvs-hero .hvs-arrow:hover,
.hvs-hero .hvs-arrow:focus-visible,
.hvs-hero .hvs-vc-btn:hover,
.hvs-hero .hvs-vc-btn:focus-visible {
	background-color: var(--hvs-blue) !important;
	color: #fff !important;
}

.hvs-hero .hvs-dot-btn,
.hvs-hero .hvs-dot-btn:hover,
.hvs-hero .hvs-dot-btn:focus {
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.hvs-hero .hvs-arrow svg,
.hvs-hero .hvs-vc-btn svg {
	fill: none;
}
.hvs-hero .hvs-vc-btn svg { fill: currentColor; }
