/*
 * Main slider.
 */

.mds-hero-slider {
	--mds-hero-height: 740px;
	--mds-hero-overlay: rgba(0, 0, 0, 0.25);
	--mds-hero-text-color: #ffffff;
	--mds-hero-button-background: #ffffff;
	--mds-hero-button-color: #333333;
	--mds-hero-transition-duration: 800ms;
	--mds-hero-transition-timing: cubic-bezier(0.65, 0, 0.35, 1);

	position: relative;
	width: 100%;
	min-height: var(--mds-hero-height);
	overflow: hidden;
	background-color: #242424;
	box-sizing: border-box;
}

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

/*
 * Sliding track.
 */

.mds-hero-slider__slides {
	position: relative;
	width: 100%;
	min-height: var(--mds-hero-height);
}

/*
 * JavaScript converts this element into the horizontal track.
 */

.mds-hero-slider.is-initialized .mds-hero-slider__slides {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;

	width: 100%;
	min-height: var(--mds-hero-height);

	transition: none;
	transform: translate3d(0, 0, 0);
	will-change: transform;

	touch-action: pan-y pinch-zoom;
}

/*
 * Add the horizontal movement only while a transition is active.
 */

.mds-hero-slider.is-initialized
	.mds-hero-slider__slides.is-animating {
	transition:
		transform
		var(--mds-hero-transition-duration)
		var(--mds-hero-transition-timing);
}

/*
 * Individual slides.
 *
 * Before JavaScript initializes, the slides are stacked so only the
 * first slide is displayed. This prevents a horizontal row from
 * appearing while the page loads.
 */

.mds-hero-slider__slide {
	--mds-hero-image: none;
	--mds-hero-mobile-image: var(--mds-hero-image);

	position: absolute;
	z-index: 1;
	inset: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	min-height: var(--mds-hero-height);
	padding: 80px 30px 132px;

	background-color: #242424;
	background-image:
		linear-gradient(
			var(--mds-hero-overlay),
			var(--mds-hero-overlay)
		),
		var(--mds-hero-image);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;

	visibility: hidden;
}

/*
 * Display the first slide before JavaScript initializes.
 */

.mds-hero-slider__slide:first-child {
	z-index: 2;
	visibility: visible;
}

/*
 * Once initialized, every slide becomes part of the horizontal track.
 */

.mds-hero-slider.is-initialized .mds-hero-slider__slide {
	position: relative;
	z-index: 1;
	inset: auto;

	display: flex;
	flex: 0 0 100%;

	width: 100%;
	min-width: 100%;
	max-width: 100%;
	min-height: var(--mds-hero-height);

	visibility: visible;
}

/*
 * The active class remains available for accessibility state and any
 * future slide-specific styling. It does not control visibility.
 */

.mds-hero-slider.is-initialized
	.mds-hero-slider__slide.is-active {
	z-index: 2;
}

/*
 * Infinite-loop clones are visual copies only.
 */

.mds-hero-slider__slide.is-clone {
	pointer-events: none;
}

/*
 * Text content.
 */

.mds-hero-slider__content {
	position: relative;
	z-index: 3;

	width: 100%;
	max-width: 1450px;
	margin: 100px auto 0;

	color: var(--mds-hero-text-color);
	text-align: center;
}

.mds-hero-slider__title {
	margin: 0 0 20px;
	padding: 0;

	color: var(--mds-hero-text-color);

	font-family: "Roboto Slab", serif;
	font-size: clamp(42px, 3.15vw, 52px);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.6px;
	text-align: center;

	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.mds-hero-slider__text {
	max-width: 1450px;
	margin: 0 auto;
	padding: 0;

	color: var(--mds-hero-text-color);

	font-family: inherit;
	font-size: clamp(22px, 1.7vw, 28px);
	font-weight: 600;
	line-height: 1.42;
	text-align: center;

	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.mds-hero-slider__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-width: 128px;
	min-height: 44px;
	margin-top: 27px;
	padding: 12px 26px;

	border: 2px solid var(--mds-hero-button-background);
	background-color: var(--mds-hero-button-background);
	color: var(--mds-hero-button-color);

	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.7px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;

	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease,
		transform 180ms ease;
}

.mds-hero-slider__cta:hover,
.mds-hero-slider__cta:focus {
	border-color: #287181 !important;
	background: #287181 !important;
	color: #ffffff !important;
	text-decoration: none;
}

.mds-hero-slider__cta:hover {
	transform: translateY(-1px);
}

.mds-hero-slider__cta:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 4px;
}

/*
 * Pagination dots.
 */

.mds-hero-slider__pagination {
	position: absolute;
	z-index: 10;
	left: 50%;
	bottom: 67px;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;

	transform: translateX(-50%);
}

.mds-hero-slider__pagination[hidden] {
	display: none !important;
}

.mds-hero-slider__dot {
	display: block;
	flex: 0 0 auto;

	width: 13px;
	height: 13px;
	margin: 0;
	padding: 0;

	border: 1.5px solid #ffffff;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;

	font: inherit;
	cursor: pointer;
	appearance: none;

	transition:
		background-color 180ms ease,
		transform 180ms ease;
}

.mds-hero-slider__dot:hover {
	background-color: rgba(255, 255, 255, 0.45);
	transform: scale(1.08);
}

.mds-hero-slider__dot.is-active,
.mds-hero-slider__dot[aria-current="true"] {
	background-color: #ffffff;
}

.mds-hero-slider__dot:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 4px;
}

/*
 * Tablet.
 */

@media only screen and (max-width: 1024px) {
	.mds-hero-slider {
		--mds-hero-height: 610px;
	}

	.mds-hero-slider__slide {
		padding-right: 35px;
		padding-bottom: 125px;
		padding-left: 35px;
	}

	.mds-hero-slider__content {
		max-width: 920px;
	}
}

/*
 * Mobile.
 */

@media only screen and (max-width: 767px) {
	.mds-hero-slider {
		--mds-hero-height: 560px;
	}

	.mds-hero-slider__slide {
		padding: 65px 24px 115px;

		background-image:
			linear-gradient(
				var(--mds-hero-overlay),
				var(--mds-hero-overlay)
			),
			var(--mds-hero-mobile-image);
	}

	.mds-hero-slider__content {
		margin-top: 70px;
	}

	.mds-hero-slider__title {
		margin-bottom: 14px;

		font-size: clamp(34px, 9vw, 42px);
		line-height: 1.12;
	}

	.mds-hero-slider__text {
		max-width: 620px;

		font-size: clamp(18px, 5vw, 22px);
		line-height: 1.45;
	}

	.mds-hero-slider__cta {
		min-height: 44px;
		margin-top: 25px;
		padding-right: 24px;
		padding-left: 24px;
	}

	.mds-hero-slider__pagination {
		bottom: 43px;
	}
}

@media only screen and (max-width: 480px) {
	.mds-hero-slider {
		--mds-hero-height: 520px;
	}

	.mds-hero-slider__slide {
		padding-right: 20px;
		padding-bottom: 105px;
		padding-left: 20px;
	}

	.mds-hero-slider__content {
		margin-top: 55px;
	}

	.mds-hero-slider__title {
		font-size: 33px;
	}

	.mds-hero-slider__text {
		font-size: 18px;
	}

	.mds-hero-slider__pagination {
		bottom: 38px;
	}
}

/*
 * Disable animation for users who request reduced motion.
 *
 * Slide changes still work, but they occur immediately.
 */

@media (prefers-reduced-motion: reduce) {
	.mds-hero-slider__slides,
	.mds-hero-slider__cta,
	.mds-hero-slider__dot {
		transition: none !important;
	}
}