/*
 * RGN homepage adaptation of the "Eventually" layout by HTML5 UP (AJ).
 * Template: https://html5up.net/eventually
 * License: https://creativecommons.org/licenses/by/3.0/
 * The original sample signup is intentionally replaced with RGN's real links.
 */

#main .home-template .home-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 600px;
	min-height: min(82vh, 840px);
	background:
		linear-gradient(90deg, rgba(8, 8, 11, .28) 0%, rgba(8, 8, 11, .48) 52%, rgba(8, 8, 11, .78) 100%),
		linear-gradient(0deg, rgba(11, 11, 14, .48), transparent 55%),
		url('/assets/homepage-banner.webp') left center / cover no-repeat;
	background-position: left center, center, 40% center;
	border-bottom: 1px solid #342023;
}

#main .home-template .hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr) auto;
	width: 100%;
	max-width: 1440px;
	min-height: inherit;
	align-items: center;
	gap: clamp(38px, 6vh, 64px);
	padding: clamp(56px, 7vw, 104px) 32px clamp(34px, 5vh, 52px);
}

#main .home-template .hero-copy {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	width: min(100%, 680px);
}

#main .home-template .hero-copy h1 {
	font-size: clamp(2.65rem, 3.15vw, 3.3rem);
	line-height: 1.08;
	letter-spacing: -.045em;
	text-shadow: 0 3px 32px rgba(0, 0, 0, .32);
}

#main .home-template .hero-copy h1 span {
	color: #ff3540;
}

#main .home-template .hero-copy > p:not(.eyebrow) {
	max-width: 58ch;
	color: #e0e0e6;
	font-size: clamp(1.05rem, 1.35vw, 1.2rem);
	line-height: 1.7;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

#main .home-template .actions {
	gap: 14px;
}

#main .home-template .actions .button {
	gap: 10px;
	min-height: 52px;
	padding: 14px 22px;
	border-radius: 2px 14px 2px 14px;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

#main .home-template .actions .button:hover {
	transform: translateY(-2px);
}

#main .home-template .actions .button.secondary {
	background: rgba(18, 18, 22, .78);
	border-color: rgba(255, 255, 255, .42);
	backdrop-filter: blur(8px);
}

#main .home-template .actions .button.secondary:hover {
	background: rgba(38, 38, 44, .9);
	border-color: #fff;
}

#main .home-template .home-scroll {
	grid-column: 1;
	grid-row: 2;
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: #f5f5f7;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

#main .home-template .home-scroll span:last-child {
	color: #ff525b;
	font-size: 1.4rem;
	line-height: 1;
}

#main .home-template .home-paths {
	padding-top: 76px;
	padding-bottom: 84px;
}

#main .home-template .home-paths .section-heading {
	max-width: 760px;
	margin-bottom: 34px;
}

#main .home-template .home-paths .section-heading h2 {
	margin-bottom: 0;
	font-size: clamp(2rem, 4vw, 3.2rem);
}

#main .home-template .split {
	gap: 20px;
}

#main .home-template .portal {
	display: flex;
	min-height: 318px;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(28px, 4vw, 42px);
	background: linear-gradient(145deg, rgba(27, 27, 32, .96), rgba(16, 16, 20, .96));
	border: 1px solid #39393f;
	border-left: 3px solid #f12632;
	border-radius: 2px 26px 2px 26px;
	transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

#main .home-template .portal:hover {
	background: linear-gradient(145deg, #24242b, #17171c);
	border-color: #5a3438;
	border-left-color: #ff525b;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
	transform: translateY(-4px);
}

#main .home-template .hosting-portal {
	background: linear-gradient(145deg, rgba(42, 22, 25, .95), rgba(18, 17, 21, .96));
}

#main .home-template .hosting-portal:hover {
	background: linear-gradient(145deg, #392126, #1a171c);
}

#main .home-template .portal h2 {
	margin: 34px 0 18px;
	font-size: clamp(2rem, 3.5vw, 3.1rem);
	line-height: 1.02;
}

#main .home-template .portal p {
	max-width: 48ch;
}

#main .home-template .portal .text-link {
	margin-top: auto;
	padding-top: 12px;
	text-decoration-color: #d32731;
	text-underline-offset: 7px;
}

#main .home-template .home-about {
	grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr);
	column-gap: clamp(32px, 7vw, 88px);
	align-items: start;
	padding-top: 52px;
	padding-bottom: 76px;
}

#main .home-template .home-about .eyebrow {
	grid-column: 1 / -1;
}

#main .home-template .home-about h2 {
	font-size: clamp(2rem, 3.4vw, 2.8rem);
}

#main .home-template .home-about > p:last-child {
	max-width: 60ch;
	font-size: 1.08rem;
}

@media (max-width: 1500px) {
	#main .home-template .home-hero {
		background:
			linear-gradient(180deg, rgba(8, 8, 11, .04) 0%, rgba(8, 8, 11, .14) 58%, rgba(11, 11, 14, .96) 100%),
			url('/assets/homepage-banner.webp') center top / 100% auto no-repeat;
	}

	#main .home-template .hero-inner {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-end;
		gap: clamp(28px, 4vh, 42px);
		padding: clamp(300px, 36vw, 520px) 32px 36px;
	}

	#main .home-template .hero-copy {
		width: min(100%, 760px);
	}

	#main .home-template .hero-copy h1 {
		font-size: clamp(2.65rem, 5vw, 4rem);
	}

	#main .home-template .home-scroll {
		margin-top: 0;
	}
}

@media (max-width: 760px) {
	#main .home-template .home-hero {
		min-height: min(82vh, 760px);
	}

	#main .home-template .hero-inner {
		padding-right: 24px;
		padding-left: 24px;
	}

	#main .home-template .home-about {
		column-gap: 30px;
	}
}

@media (max-width: 650px) {
	#main .home-template .home-hero {
		min-height: 580px;
		min-height: min(82vh, 760px);
		background:
			linear-gradient(180deg, rgba(8, 8, 11, .06) 0%, rgba(8, 8, 11, .18) 58%, rgba(11, 11, 14, .96) 100%),
			url('/assets/homepage-banner.webp') 28% top / 135% auto no-repeat;
	}

	#main .home-template .hero-inner {
		gap: 28px;
		padding: clamp(230px, 62vw, 290px) 20px 36px;
	}

	#main .home-template .hero-copy h1 {
		font-size: clamp(2.5rem, 10vw, 3.8rem);
	}

	#main .home-template .home-copy-break {
		display: none;
	}

	#main .home-template .home-paths {
		padding-top: 46px;
		padding-bottom: 50px;
	}

	#main .home-template .split,
	#main .home-template .home-about {
		grid-template-columns: 1fr;
	}

	#main .home-template .portal {
		min-height: 280px;
		padding: 28px;
	}

	#main .home-template .home-about {
		gap: 12px;
		padding-top: 40px;
		padding-bottom: 54px;
	}

	#main .home-template .home-about .eyebrow {
		grid-column: 1;
	}

	#main .home-template .home-about h2 {
		margin-bottom: 8px;
		font-size: 2.1rem;
	}
}

@media (max-width: 380px) {
	#main .home-template .hero-inner {
		padding-right: 20px;
		padding-left: 20px;
	}

	#main .home-template .hero-copy h1 {
		font-size: 2.45rem;
	}

	#main .home-template .actions .button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	#main .home-template .actions .button,
	#main .home-template .portal {
		transition: none;
	}
}
