/*
 * Oprafix Hero Slides (Elementor widget "opx-hero-slider").
 * The widget fills its hero container as a background layer; the container's other widgets sit on top.
 * Colours, overlay, timing and pagination position come from the widget's Elementor controls (CSS variables).
 */

/* The widget is a full-size background layer of its container. */
.elementor-widget-opx-hero-slider {
	position: absolute !important;
	inset: 0;
	z-index: 0;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}
.elementor-widget-opx-hero-slider > .elementor-widget-container { height: 100%; }
.e-con:has(> .elementor-widget-opx-hero-slider),
.e-con:has(> .e-con-inner > .elementor-widget-opx-hero-slider) {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	touch-action: pan-y;
}
.e-con-inner:has(> .elementor-widget-opx-hero-slider) { position: static; }
.elementor-widget-opx-hero-slider ~ .elementor-element { position: relative; z-index: 1; }

.opx-hs {
	--opx-hs-ov-a: rgba(7, 26, 69, 0.86);
	--opx-hs-ov-b: rgba(7, 26, 69, 0.10);
	--opx-hs-active: #02b441;
	--opx-hs-track: rgba(255, 255, 255, 0.35);
	--opx-hs-label: #fff;
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #071a45;
}
.opx-hs--empty { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }

/* Slides: stacked, cross-fading. */
.opx-hs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--opx-hs-speed, 1200ms) ease, visibility 0s linear var(--opx-hs-speed, 1200ms);
}
.opx-hs-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity var(--opx-hs-speed, 1200ms) ease, visibility 0s;
}
.opx-hs-slide picture { display: block; width: 100%; height: 100%; }
.opx-hs-slide img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: var(--px, 50%) var(--py, 50%);
}
/* Slow zoom-out on the active slide. */
.opx-hs.has-zoom .opx-hs-slide img {
	transform: scale(1.08);
	transition: transform calc(var(--opx-hs-interval, 5000ms) + var(--opx-hs-speed, 1200ms)) ease-out;
}
.opx-hs.has-zoom .opx-hs-slide.is-active img { transform: scale(1); }

/* Readability overlay (direction and stops are responsive controls), plus a soft bottom shade for the pagination. */
.opx-hs-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(var(--opx-hs-angle, 90deg), var(--opx-hs-ov-a) var(--opx-hs-ov-a-stop, 30%), var(--opx-hs-ov-b) var(--opx-hs-ov-b-stop, 72%));
}
.opx-hs-overlay::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 160px;
	background: linear-gradient(0deg, rgba(7, 26, 69, 0.55), rgba(7, 26, 69, 0));
}

/* Pagination: labelled progress segments aligned with the page content (boxed 1200px). */
.opx-hs-nav {
	position: absolute;
	z-index: 3;
	bottom: var(--opx-hs-nav-bottom, 32px);
	left: max(24px, calc((100% - 1200px) / 2));
	display: flex;
	align-items: flex-end;
	gap: 14px;
}
.opx-hs .opx-hs-dot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 168px;
	margin: 0;
	padding: 10px 0 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--opx-hs-label);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	opacity: 0.72;
	box-shadow: none;
	text-transform: none;
	transition: opacity .25s ease;
}
.opx-hs .opx-hs-dot:hover, .opx-hs .opx-hs-dot:focus, .opx-hs .opx-hs-dot.is-active { background: none; color: var(--opx-hs-label); opacity: 1; }
.opx-hs-bar { position: relative; display: block; width: 100%; height: 3px; overflow: hidden; border-radius: 3px; background: var(--opx-hs-track); }
.opx-hs-bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--opx-hs-active); transform: scaleX(0); transform-origin: left center; }
.opx-hs .opx-hs-dot.is-active .opx-hs-bar i { animation: opx-hs-progress var(--opx-hs-interval, 5000ms) linear forwards; }
.opx-hs.is-paused .opx-hs-dot.is-active .opx-hs-bar i { animation-play-state: paused; }
.opx-hs.no-autoplay .opx-hs-dot.is-active .opx-hs-bar i,
.opx-hs.is-user-paused .opx-hs-dot.is-active .opx-hs-bar i { animation: none; transform: scaleX(1); }
@keyframes opx-hs-progress { to { transform: scaleX(1); } }
.opx-hs.no-labels .opx-hs-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.opx-hs .opx-hs-pause {
	position: relative;
	flex: none;
	width: 34px;
	height: 34px;
	margin: 0 0 -6px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: rgba(7, 26, 69, 0.35);
	color: #fff;
	cursor: pointer;
}
.opx-hs .opx-hs-pause:hover, .opx-hs .opx-hs-pause:focus { background: rgba(7, 26, 69, 0.6); color: #fff; }
/* Pause icon (two bars); play icon (triangle) when paused by the visitor. */
.opx-hs-ico { position: absolute; top: 50%; left: 50%; width: 10px; height: 12px; transform: translate(-50%, -50%); border-left: 3px solid #fff; border-right: 3px solid #fff; }
.opx-hs.is-user-paused .opx-hs-ico { width: 0; height: 0; margin-left: 1px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }

/* Phones and portrait tablets: 9:16 images with their own focal point. */
@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
	.opx-hs-slide img { object-position: var(--pxm, 50%) var(--pym, 50%); }
}
@media (max-width: 1024px) {
	.opx-hs .opx-hs-dot { width: 150px; }
}
/* Phones: compact bars (labels kept for screen readers), clear of the floating WhatsApp icon. */
@media (max-width: 767px) {
	.opx-hs-nav { left: 16px; right: 88px; gap: 8px; align-items: center; }
	.opx-hs .opx-hs-dot { flex: 1 1 0; width: auto; min-width: 0; padding: 10px 0; }
	.opx-hs-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.opx-hs .opx-hs-pause { width: 32px; height: 32px; margin: 0; }
}

/* Reduced motion: no zoom, quick fade (autoplay is also off, see oprafix-hero.js). */
@media (prefers-reduced-motion: reduce) {
	.opx-hs.has-zoom .opx-hs-slide img { transform: none; transition: none; }
	.opx-hs-slide, .opx-hs-slide.is-active { transition-duration: .2s, 0s; }
	.opx-hs .opx-hs-dot.is-active .opx-hs-bar i { animation: none; transform: scaleX(1); }
}
