/**
 * Our Story page template
 */

.mivida-our-story {
	padding-bottom: 0;
}

/* ── Hero ─────────────────────────────────── */
.mivida-story-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(300px, 52vh, 520px);
	padding: 100px 24px 48px;
	margin: 0;
	background: linear-gradient(145deg, #ebe4dc 0%, #d9cfc3 45%, #c9bba8 100%);
	background-size: cover;
	background-position: center;
}

.mivida-story-hero--has-bg {
	background-image: linear-gradient(to bottom, rgba(20, 20, 22, 0.5), rgba(20, 20, 22, 0.62)), var(--mivida-story-hero-bg);
}

.mivida-story-hero__overlay {
	display: none;
}

.mivida-story-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
}

.mivida-story-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
}

.mivida-story-hero--has-bg .mivida-story-hero__eyebrow {
	color: rgba(255, 255, 255, 0.95);
}

.mivida-story-hero:not(.mivida-story-hero--has-bg) .mivida-story-hero__eyebrow {
	color: #6b5d4f;
}

.mivida-story-hero__leaf {
	display: inline-flex;
	opacity: 0.95;
}

.mivida-story-hero:not(.mivida-story-hero--has-bg) .mivida-story-hero__leaf svg {
	stroke: #8a7359;
}

.mivida-story-hero__title {
	margin: 0;
	max-width: 18ch;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #1d2327;
}

.mivida-story-hero--has-bg .mivida-story-hero__title {
	color: #ffffff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* ── Body sections ───────────────────────── */
.mivida-story-body {
	background: #ffffff;
}

.mivida-story-container {
	max-width: 1100px;
	margin: 0 auto;
	padding-left: 28px;
	padding-right: 28px;
}

.mivida-story-section {
	padding: 56px 0;
}

.mivida-story-section--intro {
	padding-top: 48px;
	padding-bottom: 24px;
}

.mivida-story-section--intro-split {
	padding-bottom: 32px;
}

.mivida-story-intro-split {
	align-items: center;
}

.mivida-story-intro-split__text p {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.75;
	color: #3c434a;
}

.mivida-story-intro-split__figure-only {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

.mivida-story-prose {
	max-width: 680px;
	margin: 0 auto;
}

.mivida-story-prose p {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.75;
	color: #3c434a;
}

.mivida-story-prose--center {
	text-align: center;
}

.mivida-story-prose--center p {
	font-size: 1.2rem;
	color: #50575e;
}

.mivida-story-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	font-size: clamp(1.35rem, 3vw, 1.65rem);
	font-weight: 600;
	color: #1d2327;
	line-height: 1.25;
}

.mivida-story-heading--center {
	justify-content: center;
	text-align: center;
	flex-wrap: wrap;
	margin-bottom: 36px;
}

.mivida-story-heading__icon {
	display: inline-flex;
	flex-shrink: 0;
}

/* ── Split image / text ──────────────────── */
.mivida-story-split__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px 56px;
	align-items: center;
}

.mivida-story-split--reverse .mivida-story-split__grid {
	direction: rtl;
}

.mivida-story-split--reverse .mivida-story-split__text,
.mivida-story-split--reverse .mivida-story-split__figure {
	direction: ltr;
}

.mivida-story-split__text p {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #50575e;
}

.mivida-story-split__figure {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.mivida-story-split__img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
	object-fit: cover;
	aspect-ratio: 4/3;
}

/* ── Cream band + cards ─────────────────── */
.mivida-story-section--cream {
	background: linear-gradient(180deg, #faf8f6 0%, #ffffff 100%);
	padding-top: 64px;
	padding-bottom: 64px;
}

.mivida-story-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 48px;
}

.mivida-story-card {
	margin: 0;
	padding: 24px 22px;
	background: #ffffff;
	border: 1px solid #ebe8e4;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mivida-story-card:hover {
	border-color: #d4c4b0;
	box-shadow: 0 8px 28px rgba(186, 158, 130, 0.15);
}

.mivida-story-card__title {
	margin: 0 0 10px;
	font-size: 1.05rem;
	font-weight: 600;
	color: #1d2327;
}

.mivida-story-card p {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.6;
	color: #50575e;
}

.mivida-story-banner {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.07);
}

.mivida-story-banner img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 360px;
	object-fit: cover;
}

/* ── Promise band ───────────────────────── */
.mivida-story-promise {
	background: #f7f5f2;
	padding-top: 64px;
	padding-bottom: 64px;
}

.mivida-story-promise__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 48px;
	align-items: center;
}

.mivida-story-promise__figure {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.mivida-story-promise__figure img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
}

.mivida-story-promise__text p {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #50575e;
}

/* ── CTA strip ─────────────────────────── */
.mivida-story-cta {
	padding: 56px 28px;
	background: linear-gradient(135deg, #3a3532 0%, #2c2826 100%);
	color: #fff;
	text-align: center;
}

.mivida-story-cta .mivida-story-container {
	max-width: 640px;
}

.mivida-story-cta__title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 3vw, 1.85rem);
	font-weight: 600;
	color: #ffffff;
}

.mivida-story-cta__lead {
	margin: 0 0 28px;
	font-size: 1.05rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.88);
}

.mivida-story-cta__contacts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
}

.mivida-story-cta__contacts li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: center;
}

.mivida-story-cta__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #BA9E82;
}

.mivida-story-cta__link {
	font-size: 1.125rem;
	font-weight: 500;
	color: #ffffff;
	text-decoration: none;
	border-bottom: 1px solid rgba(186, 158, 130, 0.5);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.mivida-story-cta__link:hover,
.mivida-story-cta__link:focus {
	color: #e8dcc8;
	border-bottom-color: #BA9E82;
}

/* ── Outro + extra ─────────────────────── */
.mivida-story-outro {
	padding-top: 40px;
	padding-bottom: 56px;
}

.mivida-story-extra {
	padding-top: 0;
	padding-bottom: 64px;
}

.mivida-story-extra__content {
	max-width: 720px;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.65;
	color: #50575e;
}

/* ── Layout offsets (header) ───────────── */
.mivida-our-story-page .mivida-story-hero {
	margin-top: 0;
	padding-top: calc(72px + 48px);
}

.admin-bar .mivida-our-story-page .mivida-story-hero {
	padding-top: calc(72px + 32px + 48px);
}

@media (max-width: 900px) {
	.mivida-story-split__grid,
	.mivida-story-promise__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.mivida-story-split--reverse .mivida-story-split__grid {
		direction: ltr;
	}

	.mivida-story-cards {
		grid-template-columns: 1fr;
	}

	.mivida-story-promise__figure {
		order: -1;
	}
}

@media (max-width: 600px) {
	.mivida-story-container {
		padding-left: 18px;
		padding-right: 18px;
	}

	.mivida-story-section {
		padding: 40px 0;
	}

	.mivida-story-hero {
		padding-left: 18px;
		padding-right: 18px;
		min-height: 280px;
	}
}
