/*
Homepage
Only loaded on the front page.
*/

.editorial-hero {
	position: relative;
	display: grid;
	min-height: min(90vh, 680px);
	overflow: hidden;
	border-radius: var(--wt-radius-large);
	background-image: var(--hero-image);
	background-position: center;
	background-size: cover;
	color: var(--wt-color-white);
}

.editorial-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(12, 12, 14, 0.32);
}

.editorial-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	min-height: inherit;
	align-items: end;
	padding-block: var(--wt-space-12);
}

.editorial-hero__intro {
	display: grid;
	max-width: 56rem;
	gap: var(--wt-space-4);
}

.editorial-hero h1 {
	max-width: 64rem;
	color: var(--wt-color-white);
	font-size: var(--wt-step-4);
	line-height: 1.02;
}

.editorial-hero__lead {
	max-width: 42rem;
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.05rem;
}

.editorial-hero .button-secondary,
.editorial-hero .c-button--secondary {
	border-color: rgba(255, 255, 255, 0.38);
	background: rgba(255, 255, 255, 0.14);
	color: var(--wt-color-white);
}

.metric-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wt-space-3);
	margin-top: var(--wt-space-2);
}

.metric-tile {
	border: 0;
	background: transparent;
}

.metric-tile strong {
	display: block;
	color: var(--wt-color-white);
	font-size: 1.25rem;
	font-weight: 700;
}

.metric-tile span {
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--wt-step-0);
}

.marwa-hero {
	position: relative;
	display: grid;
	grid-template-rows: 1fr auto;
	min-height: min(82vh, 760px);
	overflow: hidden;
	border-radius: var(--wt-radius-large);
	background-image:
		linear-gradient(0deg, rgba(4, 8, 10, 0.74), rgba(4, 8, 10, 0.22) 46%, rgba(4, 8, 10, 0.02)),
		linear-gradient(90deg, rgba(4, 8, 10, 0.42), rgba(4, 8, 10, 0.04) 58%),
		var(--hero-image);
	background-position: center;
	background-size: cover;
	color: var(--wt-color-white);
	padding: 50px;
}

.marwa-hero__content {
	display: grid;
	align-content: end;
	gap: var(--wt-space-4);
}

.marwa-hero h1 {
	max-width: 12ch;
	align-self: end;
	color: var(--wt-color-white);
	font-size: 90px;
	line-height: 0.92;
}

.marwa-hero__side {
	display: grid;
	gap: var(--wt-space-5);
}

.marwa-hero__side p {
	max-width: 35rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: var(--wt-step-2);
	font-weight: 400;
	line-height: 1.35;
}

.marwa-hero__actions {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--wt-space-3);
	white-space: nowrap;
}

.marwa-hero__actions a {
	display: inline-flex;
	min-height: min-content;
	align-items: center;
	gap: 6px;
	color: var(--wt-color-white);
	padding: 12px 16px;
	font-size: var(--wt-step-0);
	font-weight: 400;
}

.marwa-hero__actions img {
	width: 1.1rem;
	height: 1.1rem;
}

.section-heading {
	display: grid;
	max-width: 48rem;
	gap: var(--wt-space-2);
}

.section-heading h2,
.split-story__copy h2,
.cta-banner h2 {
	font-size: var(--wt-step-3);
}

.section-heading p {
	color: var(--wt-color-muted);
}

.section-heading--inline {
	display: flex;
	max-width: none;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: var(--wt-space-4);
}

.split-story {
	display: grid;
	gap: var(--wt-space-6);
	padding: var(--wt-space-6);
}

.split-story__copy {
	display: grid;
	gap: var(--wt-space-4);
}

.media-stack {
	display: grid;
	gap: var(--wt-space-3);
}

.media-stack__item {
	min-height: 16rem;
	overflow: hidden;
	border-radius: var(--wt-radius-card);
}

.media-stack__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.quote-grid,
.faq-grid {
	display: grid;
	gap: var(--wt-space-4);
}

.guide-cta-grid {
	display: grid;
	gap: var(--wt-space-4);
}

.content-card--warm {
	border: 1px solid var(--wt-color-line);
	border-radius: var(--wt-radius-large);
	background: var(--wt-color-soft);
	padding: var(--wt-space-8);
}

.content-card--dark,
.cta-banner {
	border-radius: var(--wt-radius-large);
	background: var(--wt-color-ink);
	color: var(--wt-color-white);
	padding: var(--wt-space-8);
}

.hero-stats--single {
	display: grid;
	gap: 0.6rem;
	margin: var(--wt-space-5) 0 0;
	padding: 0;
	list-style: none;
}

.hero-stats--single li {
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--wt-radius-card);
	background: rgba(255, 255, 255, 0.08);
	padding: 0.75rem 1rem;
	color: rgba(255, 255, 255, 0.76);
}

.cta-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wt-space-5);
}

.cta-banner p {
	max-width: 50ch;
	color: rgba(255, 255, 255, 0.66);
}

.cta-banner .button,
.cta-banner .c-button {
	background: var(--wt-color-white);
	color: var(--wt-color-ink);
}

@media (max-width: 767px) {
	.marwa-hero .marwa-hero__content>h1 {
		font-size: 56px;
	}
}

@media (min-width: 768px) {
	.metric-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.quote-grid,
	.faq-grid,
	.media-stack {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.marwa-hero {
		grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
		grid-template-rows: 1fr;
	}

	.marwa-hero__content {
		align-content: end;
	}

	.marwa-hero__side {
		align-content: end;
		justify-items: end;
		text-align: right;
	}

	.marwa-hero__actions {
		justify-content: flex-end;
	}
}

@media (min-width: 1024px) {

	.quote-grid,
	.faq-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.split-story,
	.guide-cta-grid {
		grid-template-columns: 1fr 1fr;
	}
}
