/* =============================================================
   Mavo Sliders — minimal replacement for Smart Slider 3
   ============================================================= */

/* ── Container ─────────────────────────────────────────────── */
.mavo-slider {
	position: relative;
	overflow: hidden;
	display: block;
}

/* ── Track (flex row of slides) ────────────────────────────── */
.mavo-slider__track {
	display: flex;
	height: 100%;
	/* easeOutQuad, matching Smart Slider's mainanimation settings */
	transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

/* ── Individual slide ──────────────────────────────────────── */
.mavo-slider__slide {
	flex: 0 0 100%;
	position: relative;
	overflow: hidden;
}

/* Full-bleed clickable link covering the entire slide */
.mavo-slide__link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	text-decoration: none;
	color: inherit;
}

/* ── Background image (hero slides) ───────────────────────── */
.mavo-slide__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ── Title overlay (hero slides) ──────────────────────────── */
.mavo-slide__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: end;
	margin-bottom: 20px; /* bottom aligned with 20px margin */
	pointer-events: none; /* clicks pass through to the parent <a> */
}

/* Heading inside the overlay — full-width blue stripe */
.mavo-slide__heading {
	display: block;
/*	width: 100%; shows 980px if left in */
	margin: 0;
	padding: 10px;
	background: rgba(78, 116, 165, 0.5);
	font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, sans-serif;
	font-size: 225%;
	font-weight: 200;
	line-height: 1.5;
	color: #fff;
	text-align: right;
}

/* ── Header slider ─────────────────────────────────────────── */
.mavo-slider--header {
	float: left;
	width: 360px;
	max-width: 100%;
	height: 100px;
}

/* Logo image fills the logo slide exactly */
.mavo-slider--header .mavo-slide__link img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Text slide — vertically centred content, left-aligned */
.mavo-slide--text .mavo-slide__link {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 10px;
}

.mavo-slide__title {
	margin: 0;
	font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, sans-serif;
	font-size: 243.75%;
	font-weight: 200;
	line-height: 1.5;
	color: #23527c;
}

.mavo-slide__subtitle {
	margin: 0;
	font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, sans-serif;
	font-size: 75%;
	font-weight: 200;
	line-height: 1.5;
	color: #886353;
}

/* ── Hero slider ───────────────────────────────────────────── */

/* Break out of the content container to fill the full viewport width.
   calc(50% - 50vw) shifts left by exactly the amount the centred
   container is inset from the viewport edge, regardless of padding. */
.mavo-slider--hero {
/*	padding-top: 100px; /* below sticky header */
	width: 100vw;
	margin-left: calc(50% - 50vw);
	height: 400px; /* fixed cap on wide screens */
}

/* Below 960 px, scale height proportionally (400/960 = 5/12 ≈ 41.67 %) */
@media (max-width: 960px) {
	.mavo-slider--hero {
		height: calc(100vw * 5 / 12);
	}
}

/* Inner wrapper constrains the blue title stripe to content width */
.mavo-slide__overlay-inner {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
}

/* ── Responsive — font scaling ─────────────────────────────── */

/* Tablet */
@media (max-width: 1199px) and (min-width: 701px) {
	.mavo-slide__heading {
		font-size: calc(225% * 0.8);
	}
	.mavo-slide__title {
		font-size: calc(243.75% * 0.8);
	}
	.mavo-slide__subtitle {
		font-size: calc(75% * 0.8);
	}
}

/* Mobile */
@media (max-width: 700px) {
	.mavo-slider--header {
		width: 320px;
		height: 88px;
	}
	.mavo-slide__heading {
		font-size: calc(225% * 0.5);
		padding: 6px;
	}
	.mavo-slide__title {
		font-size: calc(243.75% * 0.5);
	}
	.mavo-slide__subtitle {
		font-size: calc(75% * 0.5);
	}
}
