/* Site footer. Sizes follow the footer module in the Figma file at 1440px. */

.nw-footer {
	overflow: clip;
	background: var(--nw-teal-night);
	color: var(--nw-light);
}

.nw-footer__inner {
	max-width: calc(1300px + 2 * var(--nw-footer-gutter));
	margin-inline: auto;
	padding: 56px var(--nw-footer-gutter) 100px;

	--nw-footer-gutter: 70px;
}

.nw-footer a {
	color: inherit;
	text-decoration: none;
}
.nw-footer a:hover { text-decoration: underline; }
.nw-footer a:focus-visible {
	outline: 2px solid var(--nw-gold);
	outline-offset: 3px;
}

.nw-footer__main {
	display: grid;
	grid-template-columns: 300px minmax(0, 820px);
	justify-content: space-between;
	column-gap: 40px;
	padding-bottom: 50px;
}

.nw-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.nw-footer__logo { display: block; width: 300px; }
.nw-footer__logo svg { display: block; width: 100%; height: auto; }

.nw-footer__socials {
	display: flex;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nw-footer__socials a {
	display: block;
	color: var(--nw-sand);
}
.nw-footer__socials svg { display: block; width: 26px; height: 25px; }
.nw-footer__socials a:hover { color: var(--nw-gold); }

.nw-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 21px;
	margin: 0;
	padding: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	list-style: none;
}
.nw-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 7px;
}
.nw-footer__contact svg {
	flex: none;
	width: 15px;
	height: auto;
	margin-top: 4px;
	color: var(--nw-gold);
}
.nw-footer__contact address { font-style: normal; }

.nw-footer__columns {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 175px));
	justify-content: space-between;
	gap: 40px;
}

.nw-footer__heading {
	margin: 0 0 30px;
	color: var(--nw-gold);
	font-size: 20px;
	font-weight: 700;
	line-height: 27px;
}

.nw-footer__links {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	color: var(--nw-sand);
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	list-style: none;
}

.nw-footer__below {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 30px;
	padding-top: 20px;
	color: var(--nw-sand);
	font-size: 14px;
	font-weight: 500;
	line-height: 19px;
}
.nw-footer__below::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 100vw;
	height: 1px;
	background: color-mix(in srgb, var(--nw-sand) 10%, transparent);
	translate: -50% 0;
}
.nw-footer__copyright,
.nw-footer__legal { opacity: 0.5; }
.nw-footer__copyright { margin: 0; }
.nw-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (width <= 1199px) {
	.nw-footer__main {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 56px;
	}
}

@media (width <= 899px) {
	.nw-footer__inner {
		padding-block: 64px;

		--nw-footer-gutter: 24px;
	}
	.nw-footer__logo { width: 220px; }
	.nw-footer__columns {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 24px;
	}
	.nw-footer__heading { margin-bottom: 20px; }
	.nw-footer__below { flex-direction: column; }
}
