/* Homestead Elementary - Footer Refresh
---------------------------------------------------------------------------- */

:root {
	--homestead-green: #00664e;
	--homestead-green-dark: #004b3a;
	--homestead-blue: #70b7df;
	--homestead-navy: #18243d;
	--homestead-soft: #eff8fc;
	--homestead-white: #fff;
}

/* Pre-footer CTA
---------------------------------------------------------------------------- */
.homestead-prefooter {
	position: relative;
	margin: 0;
	background: linear-gradient(100deg, #f4fbfe 0%, #e9f6fb 100%);
	overflow: hidden;
}

.homestead-prefooter__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: 1440px;
	min-height: 360px;
	margin: 0 auto;
}

.homestead-prefooter--with-image .homestead-prefooter__layout {
	grid-template-columns: minmax(0, 54%) minmax(360px, 46%);
}

.homestead-prefooter__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	max-width: 760px;
	padding: 68px 20px;
}

.homestead-prefooter:not(.homestead-prefooter--with-image) .homestead-prefooter__content {
	align-items: center;
	margin: 0 auto;
	text-align: center;
}

.homestead-prefooter__eyebrow,
.site-footer .homestead-footer__heading {
	margin: 0 0 18px;
	color: var(--homestead-green);
	font-family: 'Raleway', sans-serif;
	font-size: 12px;
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 2.4px;
	line-height: 1.4;
	text-transform: uppercase;
}

.homestead-prefooter__eyebrow::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 14px;
	background: var(--homestead-blue);
}

.homestead-prefooter:not(.homestead-prefooter--with-image) .homestead-prefooter__eyebrow::after {
	margin-right: auto;
	margin-left: auto;
}

.homestead-prefooter h2 {
	max-width: 700px;
	margin: 0 0 18px;
	color: var(--homestead-navy);
	font-size: 40px;
	font-size: 4rem;
	font-weight: 400;
	line-height: 1.15;
}

.homestead-prefooter__copy {
	max-width: 640px;
	margin: 0 0 28px;
	color: #394754;
	font-size: 17px;
	font-size: 1.7rem;
	line-height: 1.65;
}

.homestead-prefooter__actions {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.homestead-prefooter:not(.homestead-prefooter--with-image) .homestead-prefooter__actions {
	justify-content: center;
}

.homestead-prefooter__button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 24px;
	border: 2px solid var(--homestead-green);
	background: var(--homestead-green);
	color: #fff;
	font-family: 'Raleway', sans-serif;
	font-size: 12px;
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: 1.5px;
	line-height: 1;
	text-transform: uppercase;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.homestead-prefooter__button:hover,
.homestead-prefooter__button:focus {
	border-color: var(--homestead-green-dark);
	background: var(--homestead-green-dark);
	color: #fff;
}

.homestead-prefooter__button--outline {
	background: transparent;
	color: var(--homestead-green);
}

.homestead-prefooter__button--outline:hover,
.homestead-prefooter__button--outline:focus {
	background: var(--homestead-green);
	color: #fff;
}

.homestead-prefooter__media {
	position: relative;
	min-height: 360px;
	overflow: hidden;
}

/* Left edge */
.homestead-prefooter__media::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	z-index: 1;
	width: 18%;
	background: linear-gradient(
		90deg,
		#eaf6fb 0%,
		rgba(234, 246, 251, 0) 100%
	);
	pointer-events: none;
}

/* Right edge */
.homestead-prefooter__media::after {
	content: "";
	position: absolute;
	inset: 0 0 0 auto;
	z-index: 1;
	width: 12%;
	background: linear-gradient(
		90deg,
		rgba(234, 246, 251, 0) 0%,
		#eaf6fb 100%
	);
	pointer-events: none;
}

.homestead-prefooter__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 360px;
	margin: 0;
	object-fit: cover;
	object-position: center;
}

/* Site footer
---------------------------------------------------------------------------- */
.site-footer {
	position: relative;
	z-index: 1;
	width: 100%;
	min-height: 0;
	padding: 0;
	background: linear-gradient(135deg, #00664e 0%, #004b3a 100%);
	color: rgba(255,255,255,.88);
	line-height: 1.5;
	overflow: hidden;
}

.site-footer .wrap {
	position: static;
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	background: none;
	text-align: left;
}

.site-footer .wrap::before,
.site-footer .wrap::after {
	display: none;
	content: none;
}

.site-footer .homestead-footer {
	position: relative;
	z-index: 2;
	max-width: 1440px;
	margin: 0 auto;
	padding: 58px 20px 0;
}

/* Subtle reuse of Homestead's existing mountain/tree artwork. */
.site-footer::after {
	content: none;
}

.homestead-footer__main {
	display: grid;
	grid-template-columns: 24% 43% 33%;
	gap: 42px;
	align-items: center;
	padding-bottom: 50px;
}

.homestead-footer__brand {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.homestead-footer__logo {
	display: block;
	width: 178px;
	max-width: 100%;
	height: auto;
	margin: 0;
	border: 1px solid #fff;
	border-radius: 50%;
}

.homestead-footer__logo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 155px;
	height: 155px;
	border: 4px solid rgba(255,255,255,.85);
	border-radius: 50%;
	color: #fff;
	font-family: 'Raleway', sans-serif;
	font-size: 42px;
	font-size: 4.2rem;
	font-weight: 600;
}

.site-footer .homestead-footer__identity h2 {
	margin: 0 0 6px;
	color: #fff;
	font-size: 27px;
	font-size: 2.7rem;
	font-weight: 500;
	line-height: 1.25;
}

.site-footer .homestead-footer__tagline {
	margin: 0 0 20px;
	color: var(--homestead-blue);
	font-size: 16px;
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.4;
}

.homestead-footer__identity address {
	margin: 0;
	color: rgba(255,255,255,.84);
	font-size: 14px;
	font-size: 1.4rem;
	font-style: normal;
	line-height: 1.6;
}

.homestead-footer__contact {
	display: grid;
	gap: 7px;
	margin-top: 16px;
}

.site-footer .homestead-footer__contact a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	color: rgba(255,255,255,.88);
	font-size: 14px;
	font-size: 1.4rem;
}

.homestead-footer__contact i {
	width: 16px;
	color: #fff;
	text-align: center;
}

.homestead-footer__links {
	justify-self: end;
	min-width: 235px;
	padding-left: 42px;
	border-left: 1px solid rgba(255,255,255,.22);
}

.site-footer .homestead-footer__heading {
	margin-bottom: 12px;
	color: #fff;
}

.homestead-footer__links ul {
	margin: 0 0 22px;
	padding: 0;
}

.homestead-footer__links li {
	float: none;
	display: block;
	margin: 0 0 6px;
	padding: 0;
	text-align: left;
}

.site-footer .homestead-footer__links a {
	padding: 0;
	color: rgba(255,255,255,.88);
	font-size: 14px;
	font-size: 1.4rem;
	line-height: 1.5;
}

.site-footer .homestead-footer__links a:hover,
.site-footer .homestead-footer__links a:focus,
.site-footer .homestead-footer__contact a:hover,
.site-footer .homestead-footer__contact a:focus {
	color: var(--homestead-blue);
}

.homestead-footer__instagram {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.homestead-footer__instagram-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #cf3f86;
	color: #fff;
}

.homestead-footer__instagram i {
	font-size: 17px;
	font-size: 1.7rem;
}

.homestead-footer__legal {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 15px 0;
	border-top: 0;
}

.homestead-footer__legal {
	position: relative;
	border-top: 0;
}

/* Treeline always sits immediately above legal footer */
.homestead-footer__legal::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 100%;
	z-index: 1;
	width: 100vw;
	height: 122px;
	background: url('../images/bg-footer-mtns.png') repeat-x center bottom;
	background-size: auto 122px;
	opacity: .30;
	transform: translateX(-50%);
	pointer-events: none;
}

/* Full-width separator line */
.homestead-footer__legal::after {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
	width: 100vw;
	height: 1px;
	background: rgba(255, 255, 255, 0.22);
	transform: translateX(-50%);
	pointer-events: none;
}

.site-footer .homestead-footer__legal p {
	margin: 0;
	color: rgba(255,255,255,.72);
	font-size: 11px;
	font-size: 1.1rem;
	line-height: 1.5;
}

.homestead-footer__legal-links {
	display: flex;
	gap: 18px;
}

.site-footer .homestead-footer__legal-links a {
	color: rgba(255,255,255,.72);
	font-size: 11px;
	font-size: 1.1rem;
}

.site-footer .homestead-footer__legal-links a:hover,
.site-footer .homestead-footer__legal-links a:focus {
	color: #fff;
}

@media only screen and (max-width: 1024px) {
	.homestead-prefooter--with-image .homestead-prefooter__layout {
		grid-template-columns: minmax(0, 58%) minmax(300px, 42%);
	}

	.homestead-prefooter__content {
		padding: 58px 36px;
	}

	.homestead-prefooter h2 {
		font-size: 34px;
		font-size: 3.4rem;
	}

	.site-footer .homestead-footer {
		padding-right: 28px;
		padding-left: 28px;
	}

	.homestead-footer__main {
		grid-template-columns: 24% 44% 32%;
		gap: 28px;
	}

	.homestead-footer__logo {
		width: 145px;
	}

	.homestead-footer__links {
		padding-left: 28px;
	}
}

@media only screen and (max-width: 760px) {
	.homestead-prefooter__layout,
	.homestead-prefooter--with-image .homestead-prefooter__layout {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.homestead-prefooter__content {
		align-items: center;
		order: 1;
		width: 100%;
		max-width: none;
		padding: 50px 24px;
		text-align: center;
	}

	.homestead-prefooter__eyebrow::after {
		margin-right: auto;
		margin-left: auto;
	}

	.homestead-prefooter h2 {
		font-size: 30px;
		font-size: 3rem;
	}

	.homestead-prefooter__copy {
		font-size: 16px;
		font-size: 1.6rem;
	}

	.homestead-prefooter__actions {
		justify-content: center;
		width: 100%;
	}

	.homestead-prefooter__button {
		justify-content: center;
		width: min(100%, 390px);
	}

	.homestead-prefooter__media {
		order: 2;
		min-height: 260px;
	}

	.homestead-prefooter__media::before,
	.homestead-prefooter__media::after {
		display: none;
	}

	.homestead-prefooter__media img {
		min-height: 260px;
		max-height: 360px;
	}

	.site-footer .homestead-footer {
		padding: 48px 24px 0;
		text-align: center;
	}

	.homestead-footer__main {
		display: block;
		padding-bottom: 34px;
	}

	.homestead-footer__brand {
		justify-content: center;
		margin-bottom: 22px;
	}

	.homestead-footer__logo {
		width: 145px;
	}

	.homestead-footer__identity {
		margin-bottom: 32px;
	}

	.site-footer .homestead-footer__identity h2 {
		font-size: 25px;
		font-size: 2.5rem;
	}

	.homestead-footer__contact {
		justify-items: center;
	}

	.homestead-footer__links {
		min-width: 0;
		padding: 28px 0 0;
		border-top: 1px solid rgba(255,255,255,.18);
		border-left: 0;
	}

	.homestead-footer__links li {
		display: inline-block;
		margin: 0 7px 9px;
		text-align: center;
	}

	.homestead-footer__instagram {
		justify-content: center;
	}

	.homestead-footer__legal {
		flex-direction: column;
		gap: 8px;
		padding: 17px 0 19px;
	}

	.homestead-footer__legal-links {
		justify-content: center;
	}

	.site-footer::after {
		height: 94px;
		background-size: auto 94px;
	}
}
