/* Homepage Discovery Engine */

.home .site-main {
	padding: 0;
}

.home-discovery {
	--home-ink: #203228;
	--home-green: #315a40;
	--home-green-dark: #1d3e2b;
	--home-sage: #dfe8dc;
	--home-cream: #f6f2e8;
	--home-sand: #e7dbc5;
	--home-rust: #b86835;
	color: var(--home-ink);
	background: var(--home-cream);
}

.home-shell {
	width: min(1180px, calc(100% - 2rem));
	margin-inline: auto;
}

.home-eyebrow {
	margin: 0 0 0.8rem;
	color: var(--home-rust);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.home-hero {
	position: relative;
	isolation: isolate;
	min-height: 680px;
	overflow: hidden;
	background:
		radial-gradient(circle at 76% 20%, rgba(255, 255, 255, 0.72), transparent 24%),
		linear-gradient(145deg, #f8f3e7 0%, #e8eadb 52%, #c7d5c4 100%);
}

.home-hero::before,
.home-hero::after {
	position: absolute;
	z-index: -1;
	border: 1px solid rgba(49, 90, 64, 0.17);
	border-radius: 50%;
	content: "";
}

.home-hero::before {
	top: -24rem;
	right: -13rem;
	width: 47rem;
	height: 47rem;
}

.home-hero::after {
	top: -18rem;
	right: -7rem;
	width: 35rem;
	height: 35rem;
}

.home-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	min-height: 590px;
	flex-direction: column;
	justify-content: center;
	padding-block: 5rem 9rem;
}

.home-hero__title {
	max-width: 780px;
	margin: 0;
	color: var(--home-green-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3rem, 8vw, 6.75rem);
	font-weight: 700;
	letter-spacing: -0.055em;
	line-height: 0.94;
}

.home-hero__subtitle {
	max-width: 620px;
	margin: 1.65rem 0 0;
	color: #4e5d52;
	font-size: clamp(1rem, 2vw, 1.22rem);
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: 2rem;
}

.home-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: 0.1rem 1.45rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 800;
	text-decoration: none;
	transition: transform 160ms ease, background-color 160ms ease;
}

.home-button:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.home-button:focus-visible,
.home-text-link:focus-visible,
.home-route-list a:focus-visible,
.home-atlas__map-card:focus-visible {
	outline: 3px solid #d59a62;
	outline-offset: 3px;
}

.home-button--primary {
	background: var(--home-green-dark);
	color: #fff;
}

.home-button--primary:hover {
	background: #112b1c;
}

.home-button--secondary {
	border-color: rgba(29, 62, 43, 0.35);
	background: rgba(255, 255, 255, 0.42);
	color: var(--home-green-dark);
}

.home-hero__landscape {
	position: absolute;
	right: -5%;
	bottom: -3rem;
	left: -5%;
	height: 16rem;
	background:
		linear-gradient(153deg, transparent 36%, #819b80 36% 54%, transparent 54%) 52% 0 / 54% 100% no-repeat,
		linear-gradient(26deg, #54745a 0 42%, transparent 42%) 0 0 / 58% 100% no-repeat,
		linear-gradient(-22deg, #365a41 0 48%, transparent 48%) 100% 0 / 62% 100% no-repeat;
	clip-path: polygon(0 32%, 13% 45%, 28% 18%, 42% 53%, 60% 12%, 75% 44%, 89% 24%, 100% 42%, 100% 100%, 0 100%);
	opacity: 0.98;
}

.home-discovery-nav,
.home-featured,
.home-confidence {
	padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.home-atlas {
	padding-block: clamp(4rem, 7vw, 6.5rem);
	background: var(--home-green-dark);
	color: #f7f2e8;
}

.home-atlas__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.home-atlas__copy {
	min-width: 0;
}

.home-atlas__copy h2 {
	max-width: 700px;
	margin: 0;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.3rem, 5vw, 4.8rem);
	letter-spacing: -0.05em;
	line-height: 0.98;
}

.home-atlas__copy > p:not(.home-eyebrow) {
	max-width: 650px;
	margin: 1.3rem 0 0;
	color: #c8d4c9;
}

.home-atlas__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.7rem;
	margin: 2rem 0 0;
}

.home-atlas__stats div {
	display: flex;
	min-width: 0;
	flex-direction: column-reverse;
	gap: 0.3rem;
	padding: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.05);
}

.home-atlas__stats dt {
	color: #b8c7ba;
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1.25;
}

.home-atlas__stats dd {
	margin: 0;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2rem;
	font-weight: 700;
}

.home-atlas__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.3rem;
	align-items: center;
	margin-top: 2rem;
}

.home-atlas .home-button--primary {
	background: #f3e7d3;
	color: var(--home-green-dark);
}

.home-atlas .home-button--primary:hover {
	background: #fff;
}

.home-atlas .home-text-link {
	color: #e8c9a9;
}

.home-atlas__map-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 390px;
	overflow: hidden;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.5rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 1.4rem;
	background:
		radial-gradient(circle at 18% 24%, rgba(226, 193, 150, 0.22), transparent 22%),
		linear-gradient(145deg, #52735a, #294c36 62%, #1c3928);
	color: #fff;
	text-decoration: none;
	box-shadow: 0 2rem 5rem rgba(8, 24, 14, 0.28);
}

.home-atlas__map-card:hover {
	color: #fff;
	text-decoration: none;
}

.home-atlas__map-card::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 50%, rgba(9, 27, 16, 0.78));
	content: "";
}

.home-atlas__map-card strong,
.home-atlas__map-card small,
.home-atlas__map-label {
	position: relative;
	z-index: 2;
}

.home-atlas__map-card strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.home-atlas__map-card small {
	margin-top: 0.35rem;
	color: #d7e2d8;
	font-size: 0.9rem;
}

.home-atlas__map-label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	padding: 0.45rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 999px;
	background: rgba(22, 57, 36, 0.78);
	font-size: 0.75rem;
	font-weight: 800;
}

.home-atlas__map-lines {
	position: absolute;
	inset: 12% -8% 22%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 48% 52% 39% 61%;
	transform: rotate(-12deg);
}

.home-atlas__map-lines::before,
.home-atlas__map-lines::after {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	content: "";
}

.home-atlas__map-lines::before {
	inset: 12% 8% 18% -4%;
}

.home-atlas__map-lines::after {
	inset: -12% 24% 8% 16%;
}

.home-atlas__marker {
	position: absolute;
	z-index: 1;
	width: 1rem;
	height: 1rem;
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 0;
	background: var(--home-rust);
	box-shadow: 0 0 0 5px rgba(184, 104, 53, 0.22);
	transform: rotate(-45deg);
}

.home-atlas__marker--one {
	top: 27%;
	left: 25%;
}

.home-atlas__marker--two {
	top: 44%;
	right: 27%;
}

.home-atlas__marker--three {
	top: 18%;
	right: 15%;
}

.home-discovery-nav {
	background: #fffdf8;
}

.home-section-heading {
	display: grid;
	gap: 1rem;
	margin-bottom: 2.5rem;
}

.home-section-heading h2 {
	max-width: 720px;
	margin: 0;
	color: var(--home-green-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.2rem, 5vw, 4.25rem);
	letter-spacing: -0.045em;
	line-height: 1;
}

.home-section-heading > p {
	max-width: 430px;
	margin: 0;
	color: #667067;
}

.home-discovery-groups {
	display: grid;
	gap: 2.5rem;
}

.home-route-group {
	min-width: 0;
}

.home-route-group__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.home-route-group__heading h3 {
	margin: 0;
	color: var(--home-green-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.45rem, 3vw, 2rem);
}

.home-route-group__heading p {
	max-width: 430px;
	margin: 0;
	color: #68736a;
	font-size: 0.9rem;
}

.home-route-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-route-list a {
	display: flex;
	min-width: 0;
	min-height: 6.5rem;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid #e1ded4;
	border-radius: 0.9rem;
	background: linear-gradient(150deg, #eef1e7, #e4e8dc);
	color: var(--home-green-dark);
	text-decoration: none;
	transition: border-color 160ms ease, transform 160ms ease;
}

.home-route-list--terrain li:nth-child(3n + 2) a {
	background: linear-gradient(150deg, #f2e9d8, #e8dcc5);
}

.home-route-list--terrain li:nth-child(3n + 3) a {
	background: linear-gradient(150deg, #e0e9e1, #cfdccf);
}

.home-route-list--country a {
	min-height: 4.5rem;
	background: #fff;
}

.home-route-list a:hover {
	transform: translateY(-2px);
	border-color: #9aac9a;
	text-decoration: none;
}

.home-route-list span {
	min-width: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.35rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.home-route-list small {
	flex: 0 0 auto;
	color: #68756b;
}

.home-discovery-nav__empty,
.home-featured__empty {
	padding: 2rem;
	border: 1px dashed #b9c2b7;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.5);
	color: #667067;
	text-align: center;
}

.home-discovery-nav__empty p,
.home-featured__empty p {
	margin: 0;
}

.home-featured {
	background: var(--home-cream);
}

.home-section-heading--featured {
	align-items: end;
}

.home-text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	width: fit-content;
	color: var(--home-green);
	font-weight: 800;
}

.home-text-link span {
	font-size: 1.15rem;
}

.home-featured__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.home-confidence {
	background: #fffdf8;
}

.home-confidence__grid {
	display: grid;
	gap: 1rem;
}

.home-confidence__grid article {
	min-width: 0;
	padding: clamp(1.3rem, 3vw, 2rem);
	border: 1px solid #dfddd4;
	border-radius: 1rem;
	background: #fff;
}

.home-confidence__grid article > span {
	display: inline-flex;
	width: 2.3rem;
	height: 2.3rem;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--home-sage);
	color: var(--home-green-dark);
	font-size: 0.75rem;
	font-weight: 800;
}

.home-confidence__grid h3 {
	margin: 1.4rem 0 0;
	color: var(--home-green-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.45rem;
}

.home-confidence__grid p {
	margin: 0.65rem 0 0;
	color: #5c675f;
}

@media (min-width: 700px) {
	.home-shell {
		width: min(1180px, calc(100% - 4rem));
	}

	.home-section-heading {
		grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
		align-items: end;
	}

	.home-route-list,
	.home-featured__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-section-heading--featured .home-text-link {
		justify-self: end;
	}

	.home-atlas__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
	}

	.home-route-list--country {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

@media (min-width: 1040px) {
	.home-route-list--terrain {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.home-route-list--country {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

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

@media (max-width: 480px) {
	.home-hero__actions,
	.home-button {
		width: 100%;
	}

	.home-atlas__stats {
		grid-template-columns: 1fr;
	}

	.home-atlas__actions,
	.home-atlas__actions .home-text-link {
		width: 100%;
	}

	.home-atlas__map-card {
		min-height: 330px;
	}

	.home-route-group__heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.home-route-list {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-button,
	.home-route-list a {
		transition: none;
	}
}
