/* SG Hero Banner ------------------------------------------------------------ */
.sge-hero {
	--sge-ctrl-color: #fff;
	--sge-ctrl-bg: rgba(6, 31, 61, .45);
	--sge-ctrl-bg-hover: rgba(6, 31, 61, .75);
	--sge-arrow-size: 48px;
	--sge-dot-color: #fff;
	--sge-dot-active: #fff;
	--sge-speed: 700ms;

	position: relative;
	height: 560px;
	overflow: hidden;
	background: #061f3d;
	color: #fff;
	isolation: isolate;
}

.sge-hero__viewport { position: absolute; inset: 0; overflow: hidden; }

/* Doubled class beats Elementor's ".elementor img { height: auto; max-width: 100% }". */
.sge-hero .sge-hero__media {
	position: absolute; inset: 0;
	display: block; width: 100%; height: 100%; max-width: none;
	object-fit: cover; border: 0; border-radius: 0;
}

.sge-hero__overlay { position: absolute; inset: 0; pointer-events: none; }

/* Text on top ------------------------------------------------------------ */
.sge-hero__content {
	position: absolute; inset: 0; z-index: 2;
	display: flex; align-items: center; justify-content: flex-start;
	padding: 48px max(24px, calc((100% - 1248px) / 2));
	pointer-events: none;
}
.sge-hero__content-inner { max-width: 640px; pointer-events: auto; }
.sge-hero__heading {
	margin: 0 0 12px; color: #fff;
	font-size: clamp(28px, 4vw, 52px); font-weight: 700; line-height: 1.15;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.sge-hero__text { margin: 0 0 24px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: #fff; }
.sge-hero__button {
	display: inline-flex; align-items: center; min-height: 46px; padding: 12px 28px;
	border-radius: 999px; background: #ff8502; color: #fff; font-weight: 600;
	text-decoration: none; transition: background-color .2s;
}
.sge-hero__button:hover { background: #e67600; color: #fff; }

/* Carousel: fade ---------------------------------------------------------- */
.sge-hero--fade .sge-hero__track { position: absolute; inset: 0; }
.sge-hero--fade .sge-hero__slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity var(--sge-speed) ease, visibility 0s linear var(--sge-speed);
}
.sge-hero--fade .sge-hero__slide.is-active {
	opacity: 1; visibility: visible; z-index: 1;
	transition: opacity var(--sge-speed) ease, visibility 0s;
}

/* Carousel: slide --------------------------------------------------------- */
.sge-hero--slide .sge-hero__track {
	display: flex; height: 100%;
	transition: transform var(--sge-speed) cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
}
.sge-hero--slide .sge-hero__slide { position: relative; flex: 0 0 100%; height: 100%; }

.sge-hero.is-dragging .sge-hero__track { transition: none; }

/* Buttons (arrows, pause, sound) ---------------------------------------- */
.sge-hero__arrow,
.sge-hero__btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0; border: 0; border-radius: 50%;
	background: var(--sge-ctrl-bg); color: var(--sge-ctrl-color);
	cursor: pointer; transition: background-color .2s, opacity .2s;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.sge-hero__arrow:hover,
.sge-hero__btn:hover { background: var(--sge-ctrl-bg-hover); }
.sge-hero__arrow:focus-visible,
.sge-hero__btn:focus-visible,
.sge-hero__dot:focus-visible { outline: 2px solid #ff8502; outline-offset: 2px; }
.sge-hero__arrow[disabled] { opacity: .35; cursor: default; }

.sge-hero__arrow {
	position: absolute; top: 50%; z-index: 3;
	width: var(--sge-arrow-size); height: var(--sge-arrow-size);
	transform: translateY(-50%);
}
.sge-hero__arrow svg { width: 55%; height: 55%; }
.sge-hero__arrow--prev { left: 24px; }
.sge-hero__arrow--next { right: 24px; }

.sge-hero__btn { width: 36px; height: 36px; }
.sge-hero__btn svg { width: 18px; height: 18px; }
.sge-hero__icon-b { display: none; }
.sge-hero__btn[aria-pressed="true"] .sge-hero__icon-a { display: none; }
.sge-hero__btn[aria-pressed="true"] .sge-hero__icon-b { display: inline-flex; }
.sge-hero__icon-a, .sge-hero__icon-b { line-height: 0; }

.sge-hero__bar {
	position: absolute; left: 50%; bottom: 20px; z-index: 3;
	display: flex; align-items: center; gap: 14px;
	transform: translateX(-50%);
}
.sge-hero__bar--video { left: auto; right: 24px; transform: none; gap: 10px; }

/* Dots (match Figma: 7px outlined circles, filled when active) */
.sge-hero__dots { display: flex; align-items: center; gap: 4px; }
.sge-hero__dot {
	position: relative; width: 18px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer;
}
.sge-hero__dot::before {
	content: ""; position: absolute; inset: 5px;
	border: 1px solid var(--sge-dot-color); border-radius: 50%;
	transition: background-color .2s, transform .2s;
}
.sge-hero__dot.is-active::before { background: var(--sge-dot-active); border-color: var(--sge-dot-active); transform: scale(1.15); }

/* Video ------------------------------------------------------------------ */
.sge-hero--video { background: #000; }
.sge-hero--has-controls .sge-hero__file { object-fit: contain; }
.sge-hero .sge-hero__yt { inset: auto; top: 0; left: 0; }
.sge-hero__poster { z-index: 0; transition: opacity .6s ease; }
.sge-hero__yt { z-index: 0; }
.sge-hero.is-playing .sge-hero__poster { opacity: 0; }
.sge-hero__shield { position: absolute; inset: 0; z-index: 1; }

/* Editor notice --------------------------------------------------------- */
.sge-hero--empty {
	height: auto; min-height: 160px; display: flex; align-items: center; justify-content: center;
	background: #f4f8fb; color: #0f3557; border: 2px dashed #9fb3c8; text-align: center; padding: 24px;
}

/* Small screens --------------------------------------------------------- */
@media (max-width: 767px) {
	.sge-hero { --sge-arrow-size: 36px; }
	.sge-hero__arrow--prev { left: 10px; }
	.sge-hero__arrow--next { right: 10px; }
	.sge-hero__bar { bottom: 12px; }
	.sge-hero__bar--video { right: 12px; }
	.sge-hero__content { padding: 24px 56px; }
}

@media (prefers-reduced-motion: reduce) {
	.sge-hero { --sge-speed: 1ms; }
}
