/**
 * MARA Theme — Vision, Mission, Motto & Core Values
 * Guiding Principles Journey (vertical timeline).
 */

.vm {
	--vm-primary: var(--mara-primary, #c62828);
	--vm-navy: #12263a;
	--vm-navy-deep: #0b1a2a;
	--vm-gold: var(--mara-secondary, #d4a017);
	--vm-surface: #f3f5f7;
	--vm-radius: 0.85rem;
	--vm-shadow: 0 14px 36px rgba(18, 38, 58, 0.08);
	--vm-rail: 2.75rem;
	background: #fff;
	color: var(--mara-text, #333);
	overflow-x: clip;
}

.vm__icon {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
}

.vm__eyebrow {
	display: inline-flex;
	margin: 0 0 0.65rem;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: rgba(198, 40, 40, 0.1);
	color: var(--vm-primary);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vm__eyebrow--on-dark {
	background: rgba(212, 160, 23, 0.18);
	color: var(--vm-gold);
}

.vm__section-header {
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.vm__section-header--center {
	text-align: center;
}

.vm__section-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.7rem, 3.2vw, 2.35rem);
	font-weight: 800;
	color: var(--vm-navy);
}

.vm__section-header--center .vm__section-title::after {
	content: '';
	display: block;
	width: 3rem;
	height: 3px;
	margin: 0.75rem auto 0;
	border-radius: 999px;
	background: var(--vm-gold);
}

.vm__section-intro {
	margin: 0.85rem auto 0;
	max-width: 38rem;
	line-height: 1.65;
	color: var(--mara-text-muted, #667);
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.vm__hero {
	position: relative;
	min-height: clamp(12rem, 28vh, 16rem);
	display: grid;
	align-items: end;
	color: #fff;
	isolation: isolate;
}

.vm__hero-collage {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 1fr;
	z-index: 0;
}

@media (min-width: 768px) {
	.vm__hero-collage {
		grid-template-columns: repeat(3, 1fr);
	}
}

.vm__hero-panel {
	margin: 0;
	overflow: hidden;
	min-height: 100%;
}

.vm__hero-panel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vm__hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(11, 26, 42, 0.35) 0%, rgba(11, 26, 42, 0.72) 55%, rgba(11, 26, 42, 0.88) 100%),
		linear-gradient(90deg, rgba(11, 26, 42, 0.45), transparent 40%, transparent 60%, rgba(11, 26, 42, 0.35));
	pointer-events: none;
}

.vm__hero-copy {
	position: relative;
	z-index: 2;
	padding-block: clamp(1.75rem, 4vw, 2.75rem);
	text-align: center;
	max-width: 52rem;
	margin-inline: auto;
}

.vm__hero-title {
	margin: 0 0 1rem;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.75rem, 3.8vw, 2.55rem);
	font-weight: 800;
	line-height: 1.12;
	color: #fff;
	text-wrap: balance;
}

.vm__hero-intro {
	margin: 0 auto;
	max-width: 42rem;
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
}

/* -------------------------------------------------------------------------
   Guiding Principles Journey — timeline
   ------------------------------------------------------------------------- */

.vm__journey {
	padding: clamp(2.75rem, 6vw, 4.5rem) 0;
	background: var(--vm-surface);
}

.vm__timeline {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	max-width: 52rem;
	margin-inline: auto;
}

.vm__step {
	position: relative;
	display: grid;
	grid-template-columns: var(--vm-rail) minmax(0, 1fr);
	gap: 1rem 1.25rem;
	padding-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

.vm__step:last-child {
	padding-bottom: 0;
}

.vm__step-rail {
	position: relative;
	display: flex;
	justify-content: center;
}

.vm__step-rail::before {
	content: '';
	position: absolute;
	top: 2.75rem;
	bottom: -1.5rem;
	left: 50%;
	width: 2px;
	transform: translateX(-50%);
	background: linear-gradient(
		180deg,
		rgba(198, 40, 40, 0.45),
		rgba(212, 160, 23, 0.55) 50%,
		rgba(18, 38, 58, 0.18)
	);
}

.vm__step:last-child .vm__step-rail::before {
	display: none;
}

.vm__step-node {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: #fff;
	border: 2px solid rgba(198, 40, 40, 0.28);
	color: var(--vm-primary);
	box-shadow: 0 8px 20px rgba(18, 38, 58, 0.08);
}

.vm__step--mission .vm__step-node {
	border-color: rgba(212, 160, 23, 0.45);
	color: #b8860b;
}

.vm__step--motto .vm__step-node {
	border-color: rgba(18, 38, 58, 0.22);
	color: var(--vm-navy);
}

.vm__step--values .vm__step-node {
	border-color: rgba(198, 40, 40, 0.35);
	color: var(--vm-primary);
}

.vm__step-card {
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border-radius: var(--vm-radius);
	background: #fff;
	border: 1px solid rgba(18, 38, 58, 0.07);
	box-shadow: var(--vm-shadow);
}

.vm__step-card--motto {
	background: linear-gradient(145deg, var(--vm-navy-deep), var(--vm-navy) 60%, #163047);
	border-color: transparent;
	color: #fff;
}

.vm__step-role {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--vm-primary);
}

.vm__step-card--motto .vm__step-role {
	color: var(--vm-gold);
}

.vm__step-title {
	margin: 0 0 0.75rem;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.35rem, 2.4vw, 1.7rem);
	font-weight: 800;
	color: var(--vm-navy);
}

.vm__step-card--motto .vm__step-title {
	color: #fff;
}

.vm__step-text {
	margin: 0;
	line-height: 1.7;
	color: var(--mara-text-muted, #556);
	font-size: 1.02rem;
}

.vm__step-card--values .vm__step-text {
	margin-bottom: 1.25rem;
}

.vm__motto-quote {
	margin: 0;
}

.vm__motto-quote p {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.25rem, 2.6vw, 1.75rem);
	font-weight: 800;
	line-height: 1.3;
	color: #fff;
	text-wrap: balance;
}

/* -------------------------------------------------------------------------
   Core values grid (inside journey step)
   ------------------------------------------------------------------------- */

.vm__values-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.vm__values-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.vm__timeline {
		max-width: 58rem;
	}

	.vm__values-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.vm__value-card {
	padding: 1.05rem 1.1rem;
	border-radius: calc(var(--vm-radius) - 0.15rem);
	background: var(--vm-surface);
	border: 1px solid rgba(18, 38, 58, 0.06);
	opacity: 0;
	transform: translateY(0.5rem);
	transition:
		opacity 0.4s ease var(--vm-delay, 0s),
		transform 0.4s ease var(--vm-delay, 0s),
		border-color 0.2s ease;
}

.vm__value-card.is-visible {
	opacity: 1;
	transform: none;
}

.vm__value-card:hover {
	border-color: rgba(198, 40, 40, 0.22);
	background: #fff;
}

.vm__value-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 0.65rem;
	border-radius: 0.55rem;
	background: rgba(198, 40, 40, 0.08);
	color: var(--vm-primary);
}

.vm__value-title {
	margin: 0 0 0.35rem;
	font-family: var(--mara-font-heading);
	font-size: 1rem;
	font-weight: 800;
	color: var(--vm-navy);
}

.vm__value-text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--mara-text-muted, #556);
}

@media (prefers-reduced-motion: reduce) {
	.vm__value-card {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* -------------------------------------------------------------------------
   Our Promise
   ------------------------------------------------------------------------- */

.vm__promise {
	padding: clamp(3rem, 7vw, 4.75rem) 0;
	background:
		radial-gradient(ellipse 70% 60% at 20% 20%, rgba(212, 160, 23, 0.12), transparent 55%),
		radial-gradient(ellipse 60% 50% at 85% 80%, rgba(198, 40, 40, 0.12), transparent 50%),
		linear-gradient(145deg, var(--vm-navy-deep), var(--vm-navy) 55%, #163047);
	color: #fff;
	text-align: center;
}

.vm__promise-inner {
	max-width: 44rem;
	margin-inline: auto;
}

.vm__promise-title {
	margin: 0 0 1rem;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.85rem, 3.8vw, 2.65rem);
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	text-wrap: balance;
}

.vm__promise-text {
	margin: 0;
	font-size: clamp(1.02rem, 1.6vw, 1.15rem);
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.9);
}

/* -------------------------------------------------------------------------
   Final CTA
   ------------------------------------------------------------------------- */

.vm__cta {
	padding: clamp(2.75rem, 6vw, 4.25rem) 0;
	background: #fff;
	color: var(--vm-navy);
	text-align: center;
	border-top: 1px solid rgba(18, 38, 58, 0.06);
}

.vm__cta-title {
	margin: 0 0 0.75rem;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.75rem, 3.5vw, 2.4rem);
	font-weight: 800;
	color: var(--vm-navy);
}

.vm__cta-intro {
	margin: 0 auto 1.5rem;
	max-width: 36rem;
	line-height: 1.65;
	color: var(--mara-text-muted, #556);
}

.vm__cta-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.vm__btn {
	min-height: 2.85rem;
	padding-inline: 1.35rem;
	border-radius: 999px;
	font-weight: 700;
}

.vm__btn--outline {
	background: transparent;
	color: var(--vm-navy);
	border: 1.5px solid rgba(18, 38, 58, 0.28);
}

.vm__btn--outline:hover,
.vm__btn--outline:focus-visible {
	background: var(--vm-surface);
	border-color: var(--vm-navy);
	color: var(--vm-navy);
}

.vm__btn:focus-visible,
.vm__value-card:focus-within,
.vm__step-card:focus-within {
	outline: 2px solid var(--vm-gold);
	outline-offset: 3px;
}

@media (max-width: 639px) {
	.vm__cta-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.vm__cta-actions .vm__btn {
		justify-content: center;
	}

	.vm__hero-panel:nth-child(n + 2) {
		display: none;
	}

	.vm__step {
		gap: 0.85rem;
	}
}
