/* KWL Hero Slider — replacement for Slider Revolution's [rev_slider alias="home-2024-new"].
 * Sizing/colors/fonts/timing taken from prod's actual stored slide config
 * and a live inspection, not guessed. See kwl-hero-slider.php header comment.
 */

.kwl-hero-slider {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh; /* mobile browser-chrome-aware viewport height, matches RevSlider's own live behavior */
	overflow: hidden;
	background-color: #e7e7e7; /* matches RevSlider's own bg_color fallback for image slides */
}

.kwl-hero-slider__slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.kwl-hero-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms ease;
	z-index: 1;
}

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

.kwl-hero-slide__content {
	max-width: 900px;
	padding: 0 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

/* Keep the PRINT artwork open and use a slide-specific shadow to separate the
 * heading from both the pale page and the dark book spines behind it. */
.kwl-hero-slide--print .kwl-hero-heading {
	color: #fff;
	text-shadow:
		0 2px 2px rgba(0, 0, 0, 0.92),
		0 6px 18px rgba(0, 0, 0, 0.78);
}

.kwl-hero-slide--print .kwl-hero-badge,
.kwl-hero-slide--print .kwl-hero-btn--solid {
	box-shadow: 0 5px 16px rgba(0, 0, 0, 0.34);
}

/* Entrance animation for text content, staggered per element -- approximates
 * RevSlider's own scale+fade-in cascade (see investigation notes) without a
 * JS tweening dependency. */
.kwl-hero-slide.is-active .kwl-hero-badge,
.kwl-hero-slide.is-active .kwl-hero-heading,
.kwl-hero-slide.is-active .kwl-hero-subtitle,
.kwl-hero-slide.is-active .kwl-hero-buttons {
	animation: kwl-hero-fade-in 700ms cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.kwl-hero-slide.is-active .kwl-hero-heading { animation-delay: 100ms; }
.kwl-hero-slide.is-active .kwl-hero-subtitle { animation-delay: 200ms; }
.kwl-hero-slide.is-active .kwl-hero-buttons { animation-delay: 300ms; }

@keyframes kwl-hero-fade-in {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.kwl-hero-slide.is-active .kwl-hero-badge,
	.kwl-hero-slide.is-active .kwl-hero-heading,
	.kwl-hero-slide.is-active .kwl-hero-subtitle,
	.kwl-hero-slide.is-active .kwl-hero-buttons {
		animation: none;
	}
}

.kwl-hero-badge {
	display: inline-block;
	background-color: #000;
	color: #fff;
	font-family: Raleway, sans-serif;
	font-weight: 900;
	font-size: 20px;
	letter-spacing: 1px;
	border-radius: 50px;
	padding: 10px 25px;
}

.kwl-hero-heading {
	font-family: Raleway, sans-serif;
	font-weight: 900;
	font-size: 45px;
	line-height: 1.15;
	color: #0a0a0a;
	margin: 0;
	letter-spacing: 1px;
}

.kwl-hero-heading--playfair {
	font-family: "Playfair Display", serif;
	font-weight: 400;
	color: #349932;
	letter-spacing: normal;
}

.kwl-hero-subtitle {
	font-family: Raleway, sans-serif;
	font-weight: 400;
	font-size: 18px;
	letter-spacing: 2px;
	color: #000;
	margin: 0;
}

.kwl-hero-buttons {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: center;
}

.kwl-hero-btn {
	display: inline-block;
	font-family: Raleway, sans-serif;
	font-weight: 600;
	font-size: 17px;
	letter-spacing: 2px;
	padding: 12px 35px;
	border: 2px solid transparent;
	text-decoration: none;
	transition: opacity 200ms ease;
}

.kwl-hero-btn:hover,
.kwl-hero-btn:focus-visible {
	opacity: 0.85;
}

.kwl-hero-btn--solid {
	background-color: rgb(51, 153, 51);
	color: #fff;
}

.kwl-hero-btn--outline {
	background-color: transparent;
	border-color: #fff;
	color: #fff;
}

.kwl-hero-slider__bullets {
	position: absolute;
	left: 50%;
	bottom: 15px;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 5px;
}

.kwl-hero-bullet {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: none;
	background-color: rgba(255, 255, 255, 0.5);
	padding: 0;
	cursor: pointer;
	transition: background-color 200ms ease;
}

.kwl-hero-bullet:hover,
.kwl-hero-bullet.is-active {
	background-color: #fff;
}

/* Bullets hidden under 600px, matching RevSlider's own hide_onmobile/hide_under:600 config */
@media (max-width: 600px) {
	.kwl-hero-slider__bullets {
		display: none;
	}
}

@media (max-width: 778px) {
	.kwl-hero-heading {
		font-size: 32px;
	}
	.kwl-hero-heading--playfair {
		font-size: 40px;
	}
	.kwl-hero-badge {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.kwl-hero-heading {
		font-size: 24px;
	}
	.kwl-hero-heading--playfair {
		font-size: 28px;
	}
	.kwl-hero-slide__content {
		gap: 14px;
	}
}
