/* ==========================================================================
   MSA Hero
   ========================================================================== */

.msa-hero {
	--msa-crimson: #C42031;
	--msa-white: #FFFFFF;
	--msa-ink: #1A1A1A;
	--msa-grey: #414141;
	/* #8A8A85 failed WCAG AA as type on every surface; see msa-site.css. */
	--msa-muted: #616161;

	--msa-display: "Bebas Neue", Impact, sans-serif;
	--msa-body: "Roboto", Arial, sans-serif;

	--msa-width: 1240px;
	--msa-gutter: 20px;
	--msa-pill: 999px;

	--msa-hero-min-h: 620px;
	--msa-hero-overlay: 0.78;
	--msa-hero-edge: 46px;

	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--msa-hero-min-h);
	overflow: hidden;
	background-color: #17181C;
	border-radius: 0 0 50% 50% / 0 0 var(--msa-hero-edge) var(--msa-hero-edge);
	font-family: var(--msa-body);
	color: var(--msa-white);
}

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

.elementor-widget-msa_hero {
	flex: 1 1 100%;
	width: 100%;
}

.msa-hero .msa-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

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

.msa-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.msa-hero__video,
.msa-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.msa-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(10, 11, 14, var(--msa-hero-overlay)) 0%,
		rgba(10, 11, 14, calc(var(--msa-hero-overlay) * 0.7)) 52%,
		rgba(10, 11, 14, calc(var(--msa-hero-overlay) * 0.42)) 100%
	);
}

/* ------------------------------------------------------------ Layout */

.msa-hero .msa-container,
.msa-hero__inner {
	width: 100%;
	max-width: var(--msa-width);
	margin-inline: auto;
	padding-inline: var(--msa-gutter);
}

.msa-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-block: 104px 92px;
}

.msa-hero__flag {
	display: inline-block;
	margin: 0 0 24px;
	padding: 7px 16px 6px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: var(--msa-pill);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--msa-white);
}

/* ------------------------------------------------------------ Slides */

.msa-hero__slides {
	position: relative;
	width: 100%;
}

.msa-hero__slide[hidden] {
	display: none;
}

.msa-hero__slide.is-active {
	animation: msa-hero-in 0.45s ease both;
}

@keyframes msa-hero-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.msa-hero__eyebrow {
	margin: 0 0 6px;
	font-size: 17px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.92);
}

.msa-hero__title {
	margin: 0;
	max-width: 22ch;
	font-family: var(--msa-display);
	font-size: clamp(38px, 4.4vw, 64px);
	font-weight: 400;
	line-height: 0.96;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--msa-white);
}

.msa-hero__sub {
	margin: 14px 0 0;
	font-size: 17px;
	color: rgba(255, 255, 255, 0.92);
}

.msa-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 30px;
}

.msa-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 30px;
	border: 1px solid transparent;
	border-radius: var(--msa-pill);
	font-family: var(--msa-display);
	font-size: 19px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.msa-hero__btn--crimson {
	background: var(--msa-crimson);
	color: var(--msa-white);
}

.msa-hero__btn--crimson:hover {
	background: #A81A29;
	color: var(--msa-white);
}

.msa-hero__btn--ghost {
	background: var(--msa-white);
	color: var(--msa-ink);
}

.msa-hero__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.82);
	color: var(--msa-ink);
}

/* ---------------------------------------------------------- Controls */

.msa-hero__controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.msa-hero__toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.msa-hero__toggle:hover {
	background: rgba(255, 255, 255, 0.16);
	border-color: var(--msa-white);
}

.msa-hero__toggle-pause {
	display: block;
	width: 8px;
	height: 10px;
	border-left: 3px solid var(--msa-white);
	border-right: 3px solid var(--msa-white);
}

.msa-hero__toggle-play {
	display: none;
	width: 0;
	height: 0;
	margin-left: 3px;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 9px solid var(--msa-white);
}

.msa-hero.is-paused .msa-hero__toggle-pause {
	display: none;
}

.msa-hero.is-paused .msa-hero__toggle-play {
	display: block;
}

.msa-hero__progress {
	display: block;
	width: 62px;
	height: 4px;
	border-radius: var(--msa-pill);
	background: rgba(255, 255, 255, 0.28);
	overflow: hidden;
}

.msa-hero__progress-fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: var(--msa-pill);
	background: var(--msa-crimson);
}

.msa-hero__next {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	padding: 4px 6px;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--msa-body);
	font-size: 12px;
	cursor: pointer;
	text-align: left;
	transition: color 0.2s ease;
}

.msa-hero__next:hover {
	color: var(--msa-white);
}

.msa-hero__next-label {
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	white-space: nowrap;
}

.msa-hero__next-text {
	font-size: 13px;
}

/* ------------------------------------------------------------ Search */

.msa-hero__search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 520px;
	margin-top: 30px;
}

.msa-hero__search input {
	width: 100%;
	height: 58px;
	padding: 0 70px 0 26px;
	border: 0;
	border-radius: var(--msa-pill);
	background: var(--msa-white);
	font-family: var(--msa-body);
	font-size: 16px;
	color: var(--msa-grey);
	appearance: none;
	-webkit-appearance: none;
}

.msa-hero__search input::placeholder {
	color: var(--msa-muted);
	opacity: 1;
}

.msa-hero__search input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.msa-hero__search button {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--msa-crimson);
	color: var(--msa-white);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.msa-hero__search button:hover {
	background: #A81A29;
}

.msa-hero__search svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
}

/* ------------------------------------------------------------- Focus */

.msa-hero a:focus-visible,
.msa-hero button:focus-visible,
.msa-hero input:focus-visible {
	outline: 2px solid var(--msa-white);
	outline-offset: 3px;
}

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

@media (max-width: 1024px) {
	.msa-hero {
		--msa-hero-min-h: 540px;
		--msa-hero-edge: 34px;
	}

	.msa-hero__inner {
		padding-block: 84px 72px;
	}
}

@media (max-width: 767px) {
	.msa-hero {
		--msa-hero-min-h: 0px;
		--msa-hero-edge: 24px;
	}

	.msa-hero__inner {
		padding-block: 60px 52px;
	}

	.msa-hero__scrim {
		background: linear-gradient(
			180deg,
			rgba(10, 11, 14, calc(var(--msa-hero-overlay) * 0.7)) 0%,
			rgba(10, 11, 14, var(--msa-hero-overlay)) 100%
		);
	}

	.msa-hero__title {
		max-width: none;
	}

	.msa-hero__actions {
		width: 100%;
	}

	.msa-hero__btn {
		flex: 1 1 100%;
	}

	.msa-hero__next {
		flex-direction: column;
		gap: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.msa-hero__slide.is-active {
		animation: none;
	}

	.msa-hero__btn,
	.msa-hero__toggle,
	.msa-hero__next,
	.msa-hero__search button {
		transition: none;
	}
}
