/**
 * Hero (D2.6.6: compact only; the home and solution heroes are added in D4.1 / D4.3).
 * Figma: Hero 55:816, Type=Compact (Desktop 270 / Mobile 250).
 *
 * Off-white, breadcrumb, optional eyebrow, H1, subtitle (Body L muted, max 640);
 * gap 16. Padding 32 / 24 on mobile, 48 / 48 from 1024.
 *
 * Markup: template-parts/sections/hero-compact.php
 */

.mv-hero-compact {
	padding-top: var(--mv-space-6);
	padding-bottom: var(--mv-space-5);
	background: var(--mv-offwhite);
}

.mv-hero-compact__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--mv-space-4);
}

.mv-hero-compact__title,
.mv-hero-compact__subtitle {
	margin: 0;
}

.mv-hero-compact__subtitle {
	max-width: var(--mv-measure);
}

@media (min-width: 1024px) {
	.mv-hero-compact {
		padding-block: var(--mv-space-7);
	}
}

/* ---------- Home hero (D4.1.2) ----------
 * Figma: Hero 55:816 Type=Home. Mobile 886: padding 32 / 48, text then media (gap 32),
 * text group gap 24, buttons full width (gap 12), image 4:5, no steps line.
 * Desktop ≥ 1024 (751 at 1440): padding 64 / 96, 12-column grid: text 5 columns
 * (519) + media 7 (737), vertically centred; image 4:3 (radius 12), steps line
 * (14 / 22 muted, gap 32) 16 below. Subtitle in the text colour (not muted). */
.mv-hero-home {
	padding-top: var(--mv-space-6);
	padding-bottom: var(--mv-space-7);
}

.mv-hero-home__inner {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-6);
}

.mv-hero-home__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--mv-space-5);
}

.mv-hero-home__title,
.mv-hero-home__subtitle {
	margin: 0;
}

.mv-hero-home__subtitle {
	max-width: var(--mv-measure);
	color: var(--mv-text);
}

.mv-hero-home__buttons {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	gap: var(--mv-space-3);
}

.mv-hero-home__media {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-4);
	min-width: 0;
}

.mv-hero-home__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: var(--mv-radius-md);
	background: var(--mv-neutral);
}

.mv-hero-home__frame img,
.mv-hero-home__frame video,
.mv-hero-home__frame .mv-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Several photos (one per step, client revisions 2026-10-28): stacked, the active one
 * fades in (no fade with reduced motion: the duration tokens are 0). */
.mv-hero-home__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity calc(var(--mv-duration-slow) * 3) var(--mv-ease-out);
}

.mv-hero-home__slide.is-active {
	opacity: 1;
}

.mv-hero-home__pause {
	position: absolute;
	right: var(--mv-space-4);
	bottom: var(--mv-space-4);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mv-offwhite-80);
	color: var(--mv-text);
	cursor: pointer;
	transition: background-color var(--mv-duration-fast) var(--mv-ease-out);
}

.mv-hero-home__pause:hover {
	background: var(--mv-offwhite);
}

.mv-hero-home__pause:focus-visible {
	outline: var(--mv-focus-ring-width) solid var(--mv-focus-ring-color);
	outline-offset: var(--mv-focus-ring-offset);
}

.mv-hero-home__pause-icon {
	width: 20px;
	height: 20px;
}

.mv-hero-home__pause[aria-pressed="false"] .mv-hero-home__pause-icon--play,
.mv-hero-home__pause[aria-pressed="true"] .mv-hero-home__pause-icon--pause {
	display: none;
}

/* Steps as buttons (several photos): the current step is darker and underlined. */
.mv-hero-home__step {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 6px;
	transition: color var(--mv-duration-fast) var(--mv-ease-out), text-decoration-color var(--mv-duration-fast) var(--mv-ease-out);
}

.mv-hero-home__step:hover,
.mv-hero-home__step[aria-current] {
	color: var(--mv-text);
}

.mv-hero-home__step[aria-current] {
	text-decoration-color: var(--mv-sage);
}

.mv-hero-home__step:focus-visible {
	outline: var(--mv-focus-ring-width) solid var(--mv-focus-ring-color);
	outline-offset: var(--mv-focus-ring-offset);
}

.mv-hero-home__steps {
	display: none; /* desktop only (Figma mobile has none) */
	flex-wrap: wrap;
	gap: var(--mv-space-1) var(--mv-space-6);
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--mv-muted);
	font-size: var(--mv-small-size);
	line-height: var(--mv-small-line);
}

@media (min-width: 768px) {
	.mv-hero-home__buttons {
		flex-direction: row;
		align-self: flex-start;
	}

	.mv-hero-home__frame {
		aspect-ratio: 4 / 3;
	}
}

@media (min-width: 1024px) {
	.mv-hero-home {
		padding-top: var(--mv-space-8);
		padding-bottom: var(--mv-space-9);
	}

	.mv-hero-home__inner {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: center;
		gap: var(--mv-gutter);
	}

	.mv-hero-home__text {
		grid-column: span 5;
	}

	.mv-hero-home__media {
		grid-column: span 7;
	}

	.mv-hero-home__steps {
		display: flex;
	}
}

/* ---------- Solution hero (D4.4.1) ----------
 * Figma: Hero 55:816 Type=Solution. Mobile 675: padding 24 / 48, text then image
 * (gap 32), text group gap 24, buttons full width (gap 12), image 3:2 radius 12.
 * Desktop ≥ 1024 (635 at 1440): padding 48 / 96, 12 columns: text 5 (519) +
 * image 7 (737 × 491), vertically centred. */
.mv-hero-solution {
	padding-top: var(--mv-space-5);
	padding-bottom: var(--mv-space-7);
	background: var(--mv-offwhite);
}

.mv-hero-solution__inner {
	display: flex;
	flex-direction: column;
	gap: var(--mv-space-6);
}

.mv-hero-solution__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--mv-space-5);
	min-width: 0;
}

.mv-hero-solution__title,
.mv-hero-solution__subtitle {
	margin: 0;
}

.mv-hero-solution__subtitle {
	max-width: var(--mv-measure);
	color: var(--mv-text);
}

.mv-hero-solution__buttons {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	gap: var(--mv-space-3);
}

.mv-hero-solution__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: var(--mv-radius-md);
	background: var(--mv-neutral);
}

.mv-hero-solution__media img,
.mv-hero-solution__media .mv-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 768px) {
	.mv-hero-solution__buttons {
		flex-direction: row;
		align-self: flex-start;
	}
}

@media (min-width: 1024px) {
	.mv-hero-solution {
		padding-top: var(--mv-space-7);
		padding-bottom: var(--mv-space-9);
	}

	.mv-hero-solution__inner {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: center;
		gap: var(--mv-gutter);
	}

	.mv-hero-solution__text {
		grid-column: span 5;
	}

	.mv-hero-solution__media {
		grid-column: span 7;
	}
}
