/**
 * PrepMatters Page Modules.
 * Plain CSS (no build step). Breakpoints mirror ironstrap's grid:
 *   sm 768px · md 1000px · xl 1816px (container max-width), container gutter 5.5rem / 2rem < 768px.
 */

/* ------------------------------------------------------------------ masthead switch */

body.prep-no-masthead .site-masthead {
	display: none !important;
}
/* The header's 280px black fade sits over whatever follows it. */
body.prep-no-masthead .site-header::before {
	display: none;
}
/*
 * Production's theme positions the header absolutely over the masthead
 * (whose 29rem top padding clears it). With the masthead hidden, put the
 * header back in the flow so it can't cover the first module, and let the
 * spacer hold its place once it turns fixed (sticky) so the page doesn't
 * jump. No-op on themes where the header is already position: relative.
 */
@media (min-width: 1000px) {
	body.prep-no-masthead .site-header {
		position: relative;
	}
	body.prep-no-masthead.o-header-sticky_js .site-header {
		position: fixed;
	}
	body.prep-no-masthead.o-header-sticky_js .site-header-spacer {
		display: block !important;
		position: static;
	}
}

/* ------------------------------------------------------------------ shared */

body:has(.prep-mod) {
	overflow-x: clip; /* 100vw includes the scrollbar on Windows */
}

.prep-mod {
	--prep-gutter: 5.5rem;
	position: relative;
	box-sizing: border-box;
	/* Full bleed from inside the page's .container / a WPBakery column. */
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	font-family: 'Poppins', sans-serif;
}
.prep-mod *,
.prep-mod *::before,
.prep-mod *::after {
	box-sizing: border-box;
}
.prep-mod > .container {
	/* Theme .container already sets gutters + max-width; just be sure it centers. */
	margin-left: auto;
	margin-right: auto;
}
.prep-mod p:last-child,
.prep-mod blockquote:last-child {
	margin-bottom: 0;
}
@media (max-width: 767.98px) {
	.prep-mod {
		--prep-gutter: 2rem;
	}
}

/* ------------------------------------------------------------------ 1. title banner */

.prep-banner {
	background-color: var(--prep-bg, #4e4d4d);
	color: #fff;
	padding: 4rem 0 3.75rem;
}
.prep-banner .prep-banner__title {
	color: #fff;
	font-size: 3.75rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
}
.prep-banner__bar {
	display: block;
	width: 9.6875rem;   /* 155px */
	height: 1.3125rem;  /* 21px */
	margin: 1.25rem 0 2.25rem;
	background-color: var(--prep-bar, #c24a4d);
}
.prep-banner__text {
	max-width: 54rem;
	font-size: 1.125rem;
	line-height: 1.667;
	color: #fff;
}
.prep-banner__text a {
	color: #fff;
	text-decoration: underline;
}
@media (max-width: 999.98px) {
	.prep-banner .prep-banner__title {
		font-size: 2.75rem;
	}
}
@media (max-width: 767.98px) {
	.prep-banner {
		padding: 2.5rem 0;
	}
	.prep-banner .prep-banner__title {
		font-size: 2.25rem;
	}
	.prep-banner__bar {
		width: 6rem;
		height: 0.875rem;
		margin: 1rem 0 1.5rem;
	}
}

/* ------------------------------------------------------------------ 2. icon columns */

.prep-features {
	background-color: var(--prep-grad-end, #bd474a);
	background-image: linear-gradient(90deg, var(--prep-grad-start, #7c2933) 0%, var(--prep-grad-end, #bd474a) 68%);
	color: #fff;
	padding: 4rem 0 4.5rem;
}
.prep-features__grid {
	display: grid;
	grid-template-columns: repeat(var(--prep-cols, 4), minmax(0, 1fr));
	gap: 3rem 2rem;
}
.prep-features__icon {
	height: 4rem;
	margin-bottom: 1.25rem;
	color: #fff;
}
.prep-features__icon svg,
.prep-features__icon img {
	display: block;
	width: auto;
	height: 100%;
	max-width: 100%;
}
.prep-features__icon svg {
	width: 4rem;
}
.prep-features .prep-features__title {
	color: #fff;
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 1.5rem;
}
.prep-features__text {
	font-size: 1.125rem;
	line-height: 1.667;
	color: #fff;
}
@media (min-width: 1000px) and (max-width: 1599.98px) {
	.prep-features .prep-features__title {
		font-size: 1.625rem;
	}
}
@media (max-width: 999.98px) {
	.prep-features__grid {
		grid-template-columns: repeat(var(--prep-cols-md, 2), minmax(0, 1fr));
	}
}
@media (max-width: 767.98px) {
	.prep-features {
		padding: 3rem 0;
	}
	.prep-features__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.5rem;
	}
	.prep-features .prep-features__title {
		font-size: 1.625rem;
		margin-bottom: 0.75rem;
	}
}

/* ------------------------------------------------------------------ 3. content + image */

.prep-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	background-color: var(--prep-bg, #fff);
}
.prep-split__content {
	align-self: center;
	/* Line the text up with the site container's left edge. */
	padding: 5rem 4rem 5rem max(var(--prep-gutter), calc((100vw - 1816px) / 2 + var(--prep-gutter)));
}
.prep-split--image-left .prep-split__content {
	order: 2;
	padding: 5rem max(var(--prep-gutter), calc((100vw - 1816px) / 2 + var(--prep-gutter))) 5rem 4rem;
}
.prep-split .prep-split__title {
	color: #484848;
	font-size: 2.625rem;
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 1.75rem;
}
.prep-split__text {
	font-size: 1.125rem;
	line-height: 1.667;
	color: #000;
}
.prep-split__cta {
	margin: 2.5rem 0 0;
}
.prep-split__media {
	position: relative;
	min-height: 29.625rem; /* 474px, the design's image height */
}
.prep-split__media .prep-split__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (max-width: 999.98px) {
	.prep-split {
		grid-template-columns: minmax(0, 1fr);
	}
	.prep-split__content,
	.prep-split--image-left .prep-split__content {
		order: 0;
		padding: 3.5rem var(--prep-gutter);
	}
	.prep-split__media {
		min-height: 0;
		aspect-ratio: 2 / 1;
	}
	.prep-split .prep-split__title {
		font-size: 2.25rem;
	}
}
@media (max-width: 767.98px) {
	.prep-split__content,
	.prep-split--image-left .prep-split__content {
		padding: 2.5rem var(--prep-gutter);
	}
	.prep-split .prep-split__title {
		font-size: 1.875rem;
	}
	.prep-split__media {
		aspect-ratio: 3 / 2;
	}
}

/* ------------------------------------------------------------------ 4. quotes */

.prep-quotes {
	background-color: var(--prep-bg, #f3f0e9);
	padding: 3.75rem 0 5.5rem;
}
.prep-quotes .prep-quotes__title {
	color: #484848;
	font-size: 2.625rem;
	font-weight: 400;
	line-height: 1.25;
	text-align: center;
	margin: 0 0 3.75rem;
}
.prep-quotes__grid {
	display: grid;
	grid-template-columns: repeat(var(--prep-cols, 2), minmax(0, 1fr));
	gap: 3rem 4rem;
	max-width: 90rem;
	margin: 0 auto;
}
.prep-quotes__item {
	margin: 0;
	text-align: center;
}
.prep-quotes .prep-quotes__quote {
	margin: 0 auto;
	padding: 0;
	border: 0;
	max-width: 42rem;
	font-size: 1.375rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.55;
	color: #000;
}
.prep-quotes__author {
	margin-top: 2.5rem;
	font-size: 1.125rem;
	font-weight: 400;
	color: #000;
}
@media (max-width: 767.98px) {
	.prep-quotes {
		padding: 3rem 0;
	}
	.prep-quotes .prep-quotes__title {
		font-size: 1.875rem;
		margin-bottom: 2.5rem;
	}
	.prep-quotes__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.prep-quotes__author {
		margin-top: 1rem;
	}
}

/* ------------------------------------------------------------------ 5. info cards */

.prep-cards {
	background-color: var(--prep-bg, #fff);
	padding: 5.25rem 0 5.5rem;
}
.prep-cards__grid {
	display: grid;
	grid-template-columns: repeat(var(--prep-cols, 3), minmax(0, 1fr));
	gap: 1.625rem;
}
.prep-cards__card {
	background-color: var(--prep-card-bg, #e8f4f5);
	border: 2px solid var(--prep-border, #3a949e);
	border-radius: 0.875rem;
	padding: 2.75rem 3.25rem 3.25rem;
}
.prep-cards .prep-cards__title {
	color: #000;
	font-size: 2.5rem;
	font-weight: 400;
	line-height: 1.18;
	margin: 0 0 2.25rem;
}
.prep-cards .prep-cards__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.prep-cards .prep-cards__list li {
	position: relative;
	margin: 0 0 0.5rem;
	padding-left: 1.5rem;
	font-size: 1.125rem;
	line-height: 1.556;
	color: #000;
}
.prep-cards .prep-cards__list li:last-child {
	margin-bottom: 0;
}
/* Our own triangle — overrides the theme's green `ul li::before`. */
.prep-cards .prep-cards__list li::before {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0.3125rem 0 0.3125rem 0.6875rem;
	border-color: transparent transparent transparent var(--prep-bullet, #c24b4d);
	background: none;
}
.prep-cards .prep-cards__list li::marker {
	content: none;
}
.prep-cards__note {
	margin-top: 3.25rem;
	text-align: center;
	font-size: 1.125rem;
	color: #000;
}
@media (min-width: 1000px) and (max-width: 1599.98px) {
	.prep-cards__card {
		padding: 2.25rem 2.25rem 2.5rem;
	}
	.prep-cards .prep-cards__title {
		font-size: 2rem;
	}
}
@media (max-width: 999.98px) {
	.prep-cards__grid {
		grid-template-columns: repeat(var(--prep-cols-md, 2), minmax(0, 1fr));
	}
}
@media (max-width: 767.98px) {
	.prep-cards {
		padding: 3rem 0;
	}
	.prep-cards__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.prep-cards__card {
		padding: 2rem 1.75rem;
	}
	.prep-cards .prep-cards__title {
		font-size: 1.75rem;
		margin-bottom: 1.25rem;
	}
	.prep-cards__note {
		margin-top: 2rem;
	}
}
