/* Burkard Homepage Slider — recreates the old Revolution Slider layout:
   1240x700 grid, image zooms 100% -> 130% over 10s, heading drops in at 1s, button fades in at 1.1s. */

.bk-hero {
	--bk-zoom: 1.3;
	--bk-duration: 10000ms;
	--bk-teal: #668d8c;
	position: relative;
	width: 100%;
	aspect-ratio: 1240 / 700;
	max-height: 700px;
	min-height: 260px;
	overflow: hidden;
	background: #e7e7e7;
	container-type: inline-size;
}

.bk-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 0s linear 1s;
}

.bk-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 1s ease, visibility 0s;
	z-index: 1;
}

.bk-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	transform-origin: center center;
	will-change: transform;
}

.bk-hero__slide.is-active .bk-hero__bg {
	animation: bk-hero-kenburns var(--bk-duration) linear forwards;
}

@keyframes bk-hero-kenburns {
	from { transform: scale(1); }
	to   { transform: scale(var(--bk-zoom)); }
}

/* Content block: heading centred ~21px below the vertical middle, button 35px beneath (as in the original grid). */
.bk-hero__content {
	position: absolute;
	left: 0;
	right: 0;
	top: 48.7%;
	padding: 0 4%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: min(35px, 2.82cqw);
	text-align: center;
	z-index: 2;
}

.bk-hero__heading {
	margin: 0;
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: max(22px, min(60px, 4.84cqw));
	line-height: 1;
	color: var(--bk-teal);
	letter-spacing: min(-1px, -0.16cqw);
	text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
	text-transform: none;
	opacity: 0;
}

.bk-hero__slide.is-active .bk-hero__heading {
	animation: bk-hero-drop 300ms cubic-bezier(.68, -0.55, .27, 1.55) 1000ms forwards;
}

/* Colours, shape and hover come from the Jevelin theme's .sh-revslider-button2 (accent colour pill), as on the old slider. */
.bk-hero__button {
	display: inline-block;
	text-decoration: none !important;
	opacity: 0;
}

.bk-hero__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.bk-hero__slide.is-active .bk-hero__button {
	animation: bk-hero-fade 300ms ease-in-out 1110ms forwards;
}

@keyframes bk-hero-drop {
	from { opacity: 0; transform: translateY(-50px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes bk-hero-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.bk-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	display: flex;
	justify-content: center;
	gap: 10px;
	z-index: 3;
}

.bk-hero__dot {
	width: 13px;
	height: 13px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #e5e5e5;
	opacity: .7;
	cursor: pointer;
}

.bk-hero__dot.is-active,
.bk-hero__dot:hover {
	background: var(--bk-teal);
	opacity: 1;
}

/* Narrow screens: let the heading wrap and use a compact button so both fit inside the shorter slider. */
@container (max-width: 640px) {
	.bk-hero__content {
		top: 50%;
		transform: translateY(-50%);
		gap: 14px;
	}
	.bk-hero__heading {
		font-size: max(20px, 6cqw);
		line-height: 1.15;
		white-space: normal;
		max-width: 92%;
	}
	.bk-hero__button.sh-revslider-button2 {
		padding: 0 24px;
		font-size: 11px;
		line-height: 40px;
	}
	.bk-hero__button.sh-revslider-button2 span {
		line-height: 40px !important;
	}
	.bk-hero__button.sh-revslider-button2 i {
		font-size: 14px;
		padding-left: 10px;
	}
	.bk-hero__dots {
		bottom: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bk-hero__slide,
	.bk-hero__slide.is-active {
		transition: none;
	}
	.bk-hero__slide.is-active .bk-hero__bg,
	.bk-hero__slide.is-active .bk-hero__heading,
	.bk-hero__slide.is-active .bk-hero__button {
		animation: none;
		opacity: 1;
	}
}
