/* ERB Hero Slider
   The slider's background layer fills the WPBakery row that holds the shortcode,
   so the row keeps its own padding and height and the content below stays put. */

.erb-hero {
	--erb-accent: #00a8ec;
	--erb-navy: #0b1b2e;
	--erb-hero-font: "Nunito", "Helvetica Neue", Arial, sans-serif;
	position: relative;
	color: #fff;
	font-family: var(--erb-hero-font);
	margin: 0 !important;
	text-align: left;
}
.erb-hero *, .erb-hero *::before, .erb-hero *::after { box-sizing: border-box; }

/* ---------- Host row: take over its background ---------- */

.vc_row:has(.erb-hero),
.erb-hero-host {
	position: relative;
	overflow: hidden;
	background-image: none !important;
	background-color: var(--erb-navy, #0b1b2e);
	isolation: isolate;
}
/* Everything between the row and the slider must not create its own positioning box,
   otherwise the background would only cover the text column. */
.vc_row:has(.erb-hero) .wpb_column,
.vc_row:has(.erb-hero) .vc_column-inner,
.vc_row:has(.erb-hero) .wpb_wrapper,
.vc_row:has(.erb-hero) .wpb_text_column,
.vc_row:has(.erb-hero) .wpb_content_element,
.vc_row:has(.erb-hero) .vc_inner,
.vc_row:has(.erb-hero) .vc_raw_html,
.erb-hero-host .erb-hero-static { position: static !important; transform: none !important; }
.vc_row:has(.erb-hero) .erb-hero,
.erb-hero-host .erb-hero { position: static; }
/* Theme parallax / overlay layers inside the row */
.vc_row:has(.erb-hero) > .vc_parallax-inner,
.vc_row:has(.erb-hero) > .ut-row-overlay,
.vc_row:has(.erb-hero) > .bklyn-overlay,
.vc_row:has(.erb-hero) > .vc_video-bg { display: none !important; }
.vc_row:has(.erb-hero) .wpb_text_column .wpb_wrapper > *:last-child,
.vc_row:has(.erb-hero) .wpb_content_element { margin-bottom: 0 !important; }

/* ---------- Background stage ---------- */

.erb-hero__stage {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background: var(--erb-navy);
}
.erb-hero__bg {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--erb-hero-speed, 1200ms) ease;
	will-change: opacity;
}
.erb-hero__bg.is-active { opacity: 1; z-index: 1; }
.erb-hero__bg.is-leaving { opacity: 0; z-index: 2; }
.erb-hero__bg.is-entering { z-index: 3; }

.erb-hero .erb-hero__img {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	object-fit: cover;
	display: block;
	transform-origin: 70% 50%;
}
.erb-hero.has-kenburns .erb-hero__bg.is-active .erb-hero__img,
.erb-hero.has-kenburns .erb-hero__bg.is-leaving .erb-hero__img {
	animation: erb-hero-zoom calc(var(--erb-hero-interval, 7s) + var(--erb-hero-speed, 1200ms) + 1s) linear forwards;
}
.erb-hero.is-paused .erb-hero__img { animation-play-state: paused !important; }
@keyframes erb-hero-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Darkening: strongest behind the text on the left, light on the subject */
.erb-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 5;
	background:
		linear-gradient(90deg,
			rgba(6, 15, 28, calc(.95 * var(--erb-hero-ov, .7))) 0%,
			rgba(6, 15, 28, calc(.80 * var(--erb-hero-ov, .7))) 32%,
			rgba(6, 15, 28, calc(.30 * var(--erb-hero-ov, .7))) 62%,
			rgba(6, 15, 28, 0) 85%),
		linear-gradient(180deg, rgba(6, 15, 28, .35) 0%, rgba(6, 15, 28, 0) 22%, rgba(6, 15, 28, 0) 70%, rgba(6, 15, 28, .45) 100%);
}

/* ---------- Content ---------- */

.erb-hero__inner { position: relative; z-index: 2; }

.erb-hero__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 36px;
	margin: 0 0 10px;
}

.erb-hero .erb-hero__kicker {
	font-family: var(--erb-hero-font) !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	letter-spacing: .22em !important;
	text-transform: uppercase !important;
	color: #fff !important;
	margin: 0 !important;
	padding: 0 0 0 14px !important;
	border: 0 !important;
	border-left: 3px solid var(--erb-accent) !important;
	background: none !important;
	text-shadow: none !important;
	flex: 0 1 auto;
	width: auto !important;
	max-width: none !important;
	white-space: nowrap;
}
.erb-hero .erb-hero__kicker::before,
.erb-hero .erb-hero__kicker::after { content: none !important; }

/* All slide texts share one grid cell, so the block is always as tall as the
   tallest slide and nothing below moves when a slide changes. */
.erb-hero__texts { display: grid; }
.erb-hero__text {
	grid-area: 1 / 1;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity calc(var(--erb-hero-speed, 1200ms) * .6) ease, transform calc(var(--erb-hero-speed, 1200ms) * .6) ease;
	visibility: hidden;
}
.erb-hero__text.is-active {
	opacity: 1;
	transform: none;
	visibility: visible;
	transition-delay: calc(var(--erb-hero-speed, 1200ms) * .25);
}

.erb-hero .erb-hero__title {
	font-family: var(--erb-hero-font) !important;
	font-size: 48px !important;
	font-weight: 200 !important;
	line-height: 1.15 !important;
	letter-spacing: -.005em !important;
	color: #fff !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
	text-transform: none !important;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
	max-width: 15em;
}
.erb-hero .erb-hero__sub {
	font-family: var(--erb-hero-font) !important;
	font-size: 16px !important;
	line-height: 1.55 !important;
	font-weight: 400 !important;
	color: rgba(255, 255, 255, .88) !important;
	margin: 0 0 26px !important;
	padding: 0 !important;
	max-width: 40em;
}

/* ---------- Buttons: identical on every slide ---------- */

.erb-hero__buttons {
	display: grid;
	grid-template-columns: repeat(var(--erb-hero-btns, 4), minmax(0, 1fr));
	gap: 14px;
}
.erb-hero a.erb-hero__btn,
.erb-hero a.erb-hero__btn:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 54px;
	padding: 12px 18px !important;
	margin: 0 !important;
	font-family: var(--erb-hero-font) !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: .08em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	color: #fff !important;
	background: rgba(6, 15, 28, .28) !important;
	border: 2px solid rgba(255, 255, 255, .92) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	backdrop-filter: blur(2px);
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.erb-hero a.erb-hero__btn:hover,
.erb-hero a.erb-hero__btn:focus-visible {
	background: var(--erb-accent) !important;
	border-color: var(--erb-accent) !important;
	color: #fff !important;
}
.erb-hero :focus-visible { outline: 3px solid var(--erb-accent); outline-offset: 3px; }

/* ---------- Controls: pause, numbered progress, arrows ---------- */

.erb-hero__controls {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}
.erb-hero button {
	font: inherit;
	margin: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	min-width: 0;
	min-height: 0;
	width: auto;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.erb-hero .erb-hero__pause,
.erb-hero .erb-hero__arrow {
	width: 34px !important;
	height: 34px !important;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff !important;
	background: rgba(255, 255, 255, .08) !important;
	border: 1px solid rgba(255, 255, 255, .45) !important;
	border-radius: 50% !important;
	transition: background .15s ease, border-color .15s ease;
}
.erb-hero .erb-hero__pause:hover,
.erb-hero .erb-hero__arrow:hover { background: rgba(255, 255, 255, .2) !important; border-color: #fff !important; }
.erb-hero__pause svg { width: 13px; height: 13px; fill: currentColor; }
.erb-hero__arrow svg { width: 15px; height: 15px; }
.erb-hero__ico-play { display: none; }
.erb-hero.is-paused .erb-hero__ico-play { display: block; }
.erb-hero.is-paused .erb-hero__ico-pause { display: none; }

.erb-hero__dots { display: flex; align-items: center; gap: 4px; margin: 0 4px; }
.erb-hero .erb-hero__dot {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 4px !important;
	background: none !important;
	border: 0 !important;
	color: rgba(255, 255, 255, .55) !important;
	font-family: var(--erb-hero-font) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .08em;
	line-height: 1 !important;
	border-radius: 2px !important;
}
.erb-hero .erb-hero__dot.is-active,
.erb-hero .erb-hero__dot:hover { color: #fff !important; }
.erb-hero__bar {
	position: relative;
	display: block;
	width: 38px;
	height: 2px;
	background: rgba(255, 255, 255, .28);
	overflow: hidden;
}
.erb-hero__fill {
	position: absolute;
	inset: 0;
	background: var(--erb-accent);
	transform-origin: left center;
	transform: scaleX(var(--p, 0));
}
.erb-hero__dot.is-done .erb-hero__fill { --p: 0; }

.erb-hero__sr {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Standalone use (not inside a WPBakery row) ---------- */

.erb-hero.is-standalone { padding: 80px 24px 120px; }

/* ---------- Height matching ----------
   The header row's height comes from its padding plus this content. These minimums
   reproduce the height of the original title + intro + buttons on erb.org.bw, so the
   quick-link cards below sit exactly where they did. Buttons are pinned to the bottom.
   Change the variables if the row's padding is ever changed in WPBakery. */

@media (min-width: 768px) {
	.erb-hero__inner { display: flex; flex-direction: column; min-height: var(--erb-hero-minh, 261px); }
	.erb-hero__texts { flex: 1 0 auto; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.erb-hero__inner { min-height: var(--erb-hero-minh-tab, clamp(278px, calc(278px + (1024px - 100vw) * .088), 302px)); }
	.erb-hero__buttons { gap: 10px; }
	.erb-hero a.erb-hero__btn { padding: 10px !important; font-size: 12.5px !important; }
	.erb-hero__bar { width: 26px; }
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
	.erb-hero__buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.erb-hero .erb-hero__title { font-size: clamp(30px, 8.4vw, 40px) !important; }
	.erb-hero__bar { width: 26px; }
}
@media (max-width: 600px) {
	.erb-hero__top { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
	.erb-hero .erb-hero__kicker { font-size: 12px !important; }
	.erb-hero .erb-hero__sub { margin-bottom: 22px !important; }
	.erb-hero a.erb-hero__btn { min-height: 50px; font-size: 12.5px !important; padding: 10px 12px !important; }
	.erb-hero__shade {
		background:
			linear-gradient(180deg, rgba(6, 15, 28, calc(.55 * var(--erb-hero-ov, .7))) 0%, rgba(6, 15, 28, calc(.85 * var(--erb-hero-ov, .7))) 55%, rgba(6, 15, 28, calc(.95 * var(--erb-hero-ov, .7))) 100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.erb-hero__bg, .erb-hero__text { transition-duration: .01ms !important; transition-delay: 0s !important; }
	.erb-hero .erb-hero__img { animation: none !important; }
}
