/*
 * Homepage hero slider — diagonal split layout: photo on the left, colour panel with
 * title/intro/button on the right, per the client's mockup.
 */

.shc-hero-slider {
	position: relative;
	overflow: hidden;
	min-height: 520px;
	transition: height 0.4s ease;
}

.shc-hero-slide {
	position: absolute;
	inset: 0;
	background-color: var(--global-palette3, #2f6fb5);
	background-size: cover;
	background-position: center;
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.shc-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

/* Staggered fade-up entrance for the panel content on the active slide, instead of
   everything just popping in with the crossfade */
.shc-hero-slide__title,
.shc-hero-slide__intro,
.shc-hero-slide__button {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.shc-hero-slide.is-active .shc-hero-slide__title {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.25s;
}

.shc-hero-slide.is-active .shc-hero-slide__intro {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.4s;
}

.shc-hero-slide.is-active .shc-hero-slide__button {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.55s;
}

/* Diagonal colour panel over the right portion of the photo — semi-transparent so the
   background photo still shows through a little behind the title/intro/button text */
.shc-hero-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	left: 45%;
	background-color: rgba(47, 111, 181, 0.82);
	clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
}

.shc-hero-slide__panel {
	position: relative;
	z-index: 1;
	margin-left: 55%;
	padding: 4rem 4rem 4rem 3rem;
	color: #fff;
	max-width: 640px;
}

.shc-hero-slide__title {
	font-size: 48px;
	color: #ffffff;
	margin-bottom: 1rem;
}

.shc-hero-slide__intro {
	font-size: 22px;
	margin-bottom: 1.5rem;
}

.shc-hero-slide__button {
	display: inline-block;
	padding: 0.75rem 1.75rem;
	background-color: #fff;
	color: var(--global-palette3, #2f6fb5);
	font-weight: 700;
	text-decoration: none;
	border-radius: 2px;
}

.shc-hero-slider__dots {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: 0.5rem;
}

.shc-hero-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.shc-hero-slider__dot.is-active {
	background: #fff;
}

@media (max-width: 782px) {
	.shc-hero-slider {
		/* Sensible floor only — actual height tracks each slide's real content via JS
		   (hero-slider.js), so short slides don't leave a large empty gap below the button. */
		min-height: 380px;
	}

	.shc-hero-slide::before {
		left: 0;
		clip-path: none;
		background-color: rgba(20, 45, 75, 0.72);
	}

	.shc-hero-slide__panel {
		margin-left: 0;
		padding: 2.5rem 1.25rem 3.5rem;
		max-width: none;
	}

	.shc-hero-slide__title {
		font-size: 30px;
		margin-bottom: 0.75rem;
	}

	.shc-hero-slide__intro {
		font-size: 16px;
		margin-bottom: 1.25rem;
	}

	.shc-hero-slide__button {
		padding: 0.65rem 1.5rem;
	}

	.shc-hero-slider__dots {
		bottom: 1rem;
	}
}

@media (max-width: 400px) {
	.shc-hero-slide__title {
		font-size: 26px;
	}
}
