/*
 * ParentRoute Home
 * Shared section foundations.
 */

body.home {
	--pr-home-accent: #6f8979;
	--pr-home-text: #18201c;
	--pr-home-muted: #5f6963;
	--pr-home-page-width: 1400px;
	--pr-home-radius: 34px;
}

/* Remove unwanted page-title spacing on the static home page. */

body.home .hero-section,
body.home .entry-header {
	display: none;
}

body.home .entry-content {
	margin: 0;
}

body.home .entry-content > .wp-block-shortcode {
	margin: 0;
}

.pr-section {
	position: relative;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	overflow: clip;
	background: #ffffff;
	color: var(--pr-home-text);
}

.pr-section,
.pr-section * {
	box-sizing: border-box;
}

.pr-section__inner {
	position: relative;
	z-index: 2;
	width: min(
		calc(100% - 40px),
		var(--pr-home-page-width)
	);
	margin-inline: auto;
}

.pr-section__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 18px;
	color: var(--pr-home-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.pr-section__eyebrow::before {
	width: 22px;
	height: 1.5px;
	background: currentColor;
	content: "";
}

.pr-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 15px 25px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease;
}

.pr-button:hover {
	transform: translateY(-2px);
}

.pr-button:focus-visible,
.pr-section a:focus-visible {
	outline: 2px solid var(--pr-home-accent);
	outline-offset: 4px;
}

.pr-button--primary {
	background: var(--pr-home-accent);
	color: #ffffff;
	box-shadow: 0 14px 34px rgba(78, 112, 91, 0.22);
}

.pr-button--primary:hover {
	background: #607a6a;
	color: #ffffff;
}

.pr-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition:
		opacity 650ms ease,
		transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.pr-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (max-width: 749px) {
	.pr-section__inner {
		width: min(
			calc(100% - 32px),
			var(--pr-home-page-width)
		);
	}

	.pr-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pr-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.pr-button {
		transition: none;
	}
}