/* Canonical hero used by every RideWithPete shortcode page. */
.rwp-shared-hero {
	position: relative;
	display: grid;
	width: 100vw;
	min-height: min(850px, 90vh);
	margin-inline: calc(50% - 50vw);
	overflow: hidden;
	place-items: center;
	background: linear-gradient(135deg, #315e43, #16281e 64%, #a64820);
	color: #fff;
	isolation: isolate;
}

.rwp-shared-hero .rwp-shared-hero__image,
.rwp-shared-hero .rwp-shared-hero__fallback,
.rwp-shared-hero .rwp-shared-hero__overlay {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.rwp-shared-hero .rwp-shared-hero__image {
	z-index: -3;
	object-fit: cover;
	object-position: center;
}

.rwp-shared-hero .rwp-shared-hero__fallback {
	z-index: -3;
	background: linear-gradient(135deg, #315e43, #16281e 64%, #a64820);
}

.rwp-shared-hero .rwp-shared-hero__overlay {
	z-index: -2;
	background: linear-gradient(90deg, rgb(7 18 12 / 82%), rgb(7 18 12 / 28%) 72%);
}

.rwp-shared-hero .rwp-shared-hero__content {
	width: min(1180px, calc(100% - 3rem));
	padding-block: clamp(6rem, 13vh, 9rem);
	animation: rwp-shared-hero-enter 700ms ease both;
}

.rwp-shared-hero .rwp-shared-hero__eyebrow {
	margin: 0 0 1rem;
	color: #ed6a32;
	font: 800 0.76rem/1.4 "Open Sans", system-ui, sans-serif;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

.rwp-shared-hero .rwp-shared-hero__title {
	max-width: 950px;
	margin: 0 0 1.5rem;
	color: #fff;
	font: 700 clamp(3.4rem, 7.8vw, 7rem)/0.95 Poppins, system-ui, sans-serif;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.rwp-shared-hero .rwp-shared-hero__copy {
	max-width: 760px;
	margin: 0 0 2rem;
	color: #fff;
	font: 400 clamp(1.15rem, 2vw, 1.45rem)/1.65 "Open Sans", system-ui, sans-serif;
}

.rwp-shared-hero .rwp-shared-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	margin: 0 0 2.25rem;
	padding: 0;
	list-style: none;
}

.rwp-shared-hero .rwp-shared-hero__facts li {
	display: flex;
	align-items: center;
	font-weight: 750;
}

.rwp-shared-hero .rwp-shared-hero__facts li::before {
	width: 6px;
	height: 6px;
	margin-right: 0.7rem;
	border-radius: 50%;
	background: #ed8a55;
	content: "";
}

.rwp-shared-hero .rwp-shared-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.rwp-shared-hero .rwp-shared-hero__button {
	display: inline-flex;
	min-height: 3.35rem;
	align-items: center;
	justify-content: center;
	padding: 0.88rem 1.6rem;
	border: 2px solid transparent;
	border-radius: 4px;
	font: 800 1rem/1.2 "Open Sans", system-ui, sans-serif;
	text-align: center;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.rwp-shared-hero .rwp-shared-hero__button:hover { transform: translateY(-2px); }
.rwp-shared-hero .rwp-shared-hero__button:focus-visible { outline: 3px solid #ed8a55; outline-offset: 4px; }
.rwp-shared-hero .rwp-shared-hero__button--primary { background: #d45a24; color: #fff; }
.rwp-shared-hero .rwp-shared-hero__button--primary:hover { background: #b84718; color: #fff; }
.rwp-shared-hero .rwp-shared-hero__button--secondary { border-color: rgb(255 255 255 / 82%); color: #fff; }
.rwp-shared-hero .rwp-shared-hero__button--secondary:hover { background: #fff; color: #173c2c; }

.rwp-shared-hero .rwp-shared-hero__note {
	max-width: 760px;
	margin: 1.35rem 0 0;
	color: #e0ebe4;
	font-size: 0.9rem;
	line-height: 1.6;
}

/* Remove Kadence's page-title shell and vertical offsets only on component pages. */
body.rwp-custom-hero-page #primary {
	margin-block: 0;
}

body.rwp-custom-hero-page article.entry {
	border-radius: 0;
	box-shadow: none;
}

body.rwp-custom-hero-page article.entry > .entry-content-wrap {
	padding: 0;
}

body.rwp-custom-hero-page article.entry .entry-header,
body.rwp-custom-hero-page .page-header,
body.rwp-custom-hero-page .entry-hero-container-inner,
body.rwp-custom-hero-page .entry-hero {
	display: none;
}

body.rwp-custom-hero-page article.entry .entry-content {
	margin: 0;
}

@keyframes rwp-shared-hero-enter {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
	.rwp-shared-hero { min-height: 720px; }
	.rwp-shared-hero .rwp-shared-hero__content { width: min(100% - 2rem, 1180px); padding-block: 5rem; }
	.rwp-shared-hero .rwp-shared-hero__title { font-size: clamp(3rem, 14vw, 4.8rem); }
	.rwp-shared-hero .rwp-shared-hero__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
	.rwp-shared-hero .rwp-shared-hero__actions { display: grid; }
	.rwp-shared-hero .rwp-shared-hero__button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.rwp-shared-hero .rwp-shared-hero__content { animation: none; }
	.rwp-shared-hero .rwp-shared-hero__button { transition: none; }
	.rwp-shared-hero .rwp-shared-hero__button:hover { transform: none; }
}
