/* =====================================================================
   Sharp Blue - Hero slider
   ===================================================================== */

/* Break out of any max-width wrapper the theme or builder puts us in.
   Inside an already-full-width container the margin resolves to ~0, so this
   is a no-op there rather than a double offset. `clip` (not `hidden`) keeps
   position:sticky working elsewhere on the page. */
html:has(.sbp-hero) { overflow-x: clip; }

.sbp-hero {
	--h-navy:   #06122A;
	--h-blue:   #007BCC;
	--h-gold:   #D4AF4F;
	--h-ease:   cubic-bezier(.22,.61,.36,1);
	--h-swap:   1100ms;

	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);

	position: relative;
	isolation: isolate;
	min-height: min(88svh, 820px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	background: var(--h-navy);
	color: #fff;

	/* Elementor's global font only loads on Elementor-built pages; pin the
	   stack here so the hero looks identical wherever it is dropped. */
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Hello Elementor underlines every link — opt this block out. */
.sbp-hero a,
.sbp-hero a:hover,
.sbp-hero a:focus {
	text-decoration: none;
}

.sbp-hero h1,
.sbp-hero p {
	font-family: inherit;
}

/* ---------- Slides ---------- */
.sbp-hero__stage { position: absolute; inset: 0; z-index: -1; }

.sbp-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--h-swap) var(--h-ease), visibility 0s linear var(--h-swap);
}
.sbp-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--h-swap) var(--h-ease), visibility 0s;
}

.sbp-hero__media { position: absolute; inset: 0; overflow: hidden; }
.sbp-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--focus, center);
	display: block;
	transform: scale(1.06);
	transition: transform 200ms linear;
}

/* Ken Burns runs only on the visible slide, so idle slides cost nothing. */
.sbp-hero__slide.is-active .sbp-hero__img {
	animation: sbp-kenburns 14s var(--h-ease) forwards;
}
@keyframes sbp-kenburns {
	from { transform: scale(1.06); }
	to   { transform: scale(1.16); }
}

.sbp-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(6,18,42,.94) 0%, rgba(6,18,42,.72) 42%, rgba(6,18,42,.28) 72%, rgba(6,18,42,.5) 100%),
		linear-gradient(to top, rgba(6,18,42,.92) 0%, transparent 45%);
}
.sbp-hero__slide[data-overlay="light"]  .sbp-hero__scrim { opacity: .78; }
.sbp-hero__slide[data-overlay="heavy"]  .sbp-hero__scrim { opacity: 1; filter: saturate(.9) brightness(.85); }

/* ---------- Layout ---------- */
.sbp-hero__inner {
	position: relative;
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding: clamp(72px, 12vh, 140px) clamp(20px, 4vw, 32px) clamp(24px, 3vw, 36px);
	display: flex;
	flex-direction: column;
	gap: clamp(28px, 4vh, 48px);
}

.sbp-hero__content { position: relative; }

/* Stacked so the tallest slide reserves the height and nothing shifts (CLS). */
.sbp-hero__text {
	grid-area: 1 / 1;
	max-width: 720px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 500ms var(--h-ease), visibility 0s linear 500ms;
}
.sbp-hero__content { display: grid; }
.sbp-hero__text.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 700ms var(--h-ease) 180ms, visibility 0s;
}

/* ---------- Type ---------- */
.sbp-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: clamp(10px, 1.1vw, 12px);
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--h-gold);
	margin: 0 0 18px;
}
.sbp-hero__eyebrow::before {
	content: "";
	width: 34px;
	height: 1px;
	background: currentColor;
	opacity: .7;
}

.sbp-hero__heading {
	font-size: clamp(32px, 5.4vw, 68px);
	line-height: 1.04;
	letter-spacing: -.03em;
	font-weight: 800;
	margin: 0 0 20px;
	color: #fff;
	text-wrap: balance;
}
.sbp-hero__hl {
	background: linear-gradient(103deg, #4FC3F7 0%, var(--h-blue) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Word-by-word stagger — transform/opacity only. */
.sbp-hero__w {
	display: inline-block;
	opacity: 0;
	transform: translateY(.5em);
}
.sbp-hero__text.is-active .sbp-hero__w {
	animation: sbp-word-in .7s var(--h-ease) forwards;
	animation-delay: calc(240ms + var(--i) * 55ms);
}
@keyframes sbp-word-in {
	to { opacity: 1; transform: none; }
}

.sbp-hero__sub {
	font-size: clamp(15px, 1.55vw, 18.5px);
	line-height: 1.62;
	color: rgba(255,255,255,.8);
	max-width: 56ch;
	margin: 0 0 30px;
	opacity: 0;
	transform: translateY(12px);
}
.sbp-hero__text.is-active .sbp-hero__sub {
	animation: sbp-word-in .7s var(--h-ease) .55s forwards;
}

/* ---------- Buttons ---------- */
.sbp-hero__cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	opacity: 0;
	transform: translateY(12px);
}
.sbp-hero__text.is-active .sbp-hero__cta {
	animation: sbp-word-in .7s var(--h-ease) .7s forwards;
}

.sbp-hero__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 30px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	overflow: hidden;
	transition: transform .25s var(--h-ease), box-shadow .25s var(--h-ease);
}
.sbp-hero__btn:hover { transform: translateY(-3px); }
.sbp-hero__btn svg { transition: transform .25s var(--h-ease); }
.sbp-hero__btn:hover svg { transform: translateX(4px); }

.sbp-hero__btn--primary {
	background: var(--h-blue);
	color: #fff;
	box-shadow: 0 10px 30px rgba(0,123,204,.4);
}
.sbp-hero__btn--primary:hover { box-shadow: 0 16px 40px rgba(0,123,204,.5); color: #fff; }

/* Sheen sweep on hover. */
.sbp-hero__btn--primary::after {
	content: "";
	position: absolute;
	inset: 0 auto 0 -120%;
	width: 60%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
	transform: skewX(-18deg);
	transition: left .65s var(--h-ease);
}
.sbp-hero__btn--primary:hover::after { left: 130%; }

.sbp-hero__btn--ghost {
	background: rgba(255,255,255,.07);
	border: 1.5px solid rgba(255,255,255,.28);
	color: #fff;
	backdrop-filter: blur(8px);
}
.sbp-hero__btn--ghost:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; }

/* ---------- Nav ---------- */
.sbp-hero__nav {
	display: flex;
	align-items: center;
	gap: 14px;
}

.sbp-hero__arrow {
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1.5px solid rgba(255,255,255,.25);
	background: rgba(255,255,255,.05);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(8px);
	transition: background .22s var(--h-ease), border-color .22s var(--h-ease), transform .22s var(--h-ease);
}
.sbp-hero__arrow:hover {
	background: var(--h-blue);
	border-color: var(--h-blue);
	transform: scale(1.08);
}

.sbp-hero__dots { display: flex; gap: 9px; align-items: center; }
.sbp-hero__dot {
	position: relative;
	width: 34px;
	height: 4px;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: rgba(255,255,255,.26);
	cursor: pointer;
	overflow: hidden;
	transition: width .35s var(--h-ease), background .35s var(--h-ease);
}
.sbp-hero__dot.is-active { width: 68px; background: rgba(255,255,255,.3); }

.sbp-hero__dot-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 100%;
	background: var(--h-blue);
	transform: scaleX(0);
	transform-origin: left;
}
/* Duration is set from JS so it always matches the real autoplay interval. */
.sbp-hero__dot.is-active .sbp-hero__dot-fill {
	animation: sbp-progress var(--dur, 6500ms) linear forwards;
}
.sbp-hero.is-paused .sbp-hero__dot-fill { animation-play-state: paused; }
@keyframes sbp-progress { to { transform: scaleX(1); } }

.sbp-hero__count {
	margin-left: auto;
	font-size: 13px;
	letter-spacing: .1em;
	color: rgba(255,255,255,.55);
	font-variant-numeric: tabular-nums;
}
.sbp-hero__count b { color: #fff; font-size: 17px; font-weight: 800; }

/* ---------- Stats ---------- */
.sbp-hero__stats {
	position: relative;
	border-top: 1px solid rgba(255,255,255,.12);
	background: rgba(3,10,24,.5);
	backdrop-filter: blur(10px);
}
.sbp-hero__stats-inner {
	max-width: 1240px;
	margin-inline: auto;
	padding: clamp(18px, 2.4vw, 26px) clamp(20px, 4vw, 32px);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.sbp-hero__stat { display: grid; gap: 3px; }
.sbp-hero__stat strong {
	font-size: clamp(21px, 2.6vw, 32px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.1;
	background: linear-gradient(180deg, #fff, rgba(255,255,255,.72));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.sbp-hero__stat span {
	font-size: clamp(11px, 1.15vw, 13px);
	color: rgba(255,255,255,.6);
	line-height: 1.35;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.sbp-hero__stats-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
}

@media (max-width: 640px) {
	.sbp-hero { min-height: min(92svh, 720px); }
	.sbp-hero__inner { padding-top: clamp(56px, 10vh, 90px); }
	.sbp-hero__scrim {
		background:
			linear-gradient(to top, rgba(6,18,42,.95) 8%, rgba(6,18,42,.55) 55%, rgba(6,18,42,.75) 100%);
	}
	.sbp-hero__btn { flex: 1 1 100%; justify-content: center; }
	.sbp-hero__count { display: none; }
	.sbp-hero__arrow { width: 40px; height: 40px; }
	.sbp-hero__dot { width: 26px; }
	.sbp-hero__dot.is-active { width: 52px; }
}

/* ---------- Motion / contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	.sbp-hero__slide.is-active .sbp-hero__img { animation: none; transform: scale(1.02); }
	.sbp-hero__w,
	.sbp-hero__sub,
	.sbp-hero__cta { opacity: 1 !important; transform: none !important; animation: none !important; }
	.sbp-hero__dot-fill { animation: none !important; transform: scaleX(1); }
	.sbp-hero__slide,
	.sbp-hero__text { transition-duration: 1ms; }
}

@media (prefers-contrast: more) {
	.sbp-hero__scrim { background: rgba(6,18,42,.9); }
}
