footer {
	background-color: $dark-grey;
	color: $white;

	.footer-menu {
		* {
			color: $white;
		}
		p, a {
			font-size: 0.7rem;
			@include media-breakpoint-down(sm) {
				font-size: 1.25rem;
			}
			text-transform: uppercase;
			margin-bottom: 0.5rem;
			&:last-of-type {
				margin-bottom: 0;
			}
		}
		ul {
			margin-bottom: 0;
		}
	}

	.footer__right-social {
		text-align: right;
		svg {
			margin-left: auto;
			width: 50px;
			height: 50px;

			@include media-breakpoint-down(sm) {
				width: 35px;
				height: 35px;
			}
		}

		a:hover svg {
			opacity: 1;
		}
	}

	#copyright {
		@include media-breakpoint-down(sm) {
			font-size: 1.25rem;
		}
		text-transform: uppercase;
		font-weight: 300;
		a {
			color: $white;
		}
	}
}


#scroll {
	position: fixed;
	right: 35px;
	bottom: 10px;
	cursor: pointer;
	width: 50px;
	height: 50px;
	text-indent: -9999px;
	display: none;
	-webkit-border-radius: 60px;
	-moz-border-radius: 60px;
	border-radius: 60px;
	transition: background-color ease 0.25s;
}

#scroll span {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-left: -8px;
	margin-top: -12px;
	height: 0;
	width: 0;
	border: 8px solid transparent;
}

#scroll:hover {
	opacity: 1;
	filter: "alpha(opacity=100)";
	-ms-filter: "alpha(opacity=100)";
}

footer button {
	&::after {
		position: absolute;
		right: 10%;
		content: "▾";
		font-size: 0.9rem;
	}

	&[aria-expanded="true"]::after {
		content: "▾";
		font-size: 0.9rem;
		-moz-transform: scale(1, -1);
		-webkit-transform: scale(1, -1);
		-o-transform: scale(1, -1);
		-ms-transform: scale(1, -1);
		transform: scale(1, -1);
	}
}

.footer__right-social {
	a {
		padding: 0 0.75rem;
	}
	svg {
		margin-left: auto;
		width: 50px;
		height: 50px;
	}
	img {
		@include media-breakpoint-up(md) {
			max-width: 65px;
		}
		@include media-breakpoint-down(sm) {
			max-width: 45px;
		}
	}
}

// Landing page footer (resources/views/front/partials/landing-footer.blade.php).
// Only pages using the "Landing Page" template use this footer; the rules above are
// the original footer used by every other page.
.site-footer {
	// The site-wide "* { color: grey }" rule would turn the footer text grey.
	* { color: inherit; }

	margin-top: .5rem;
	font-family: $primary-font, sans-serif;
	font-size: .7rem;
	color: $white;

	a { color: inherit; &:hover { color: $primary; text-decoration: none; } }

	// height: auto keeps the logo's own proportions (the <img> has width/height attributes).
	&__logo img { width: 212px; height: auto; max-width: 100%; }

	&__social {
		display: flex;
		a { color: $primary; margin: 0 8px; &:hover { color: $white; } }
		svg { display: block; width: 40px; height: 40px; }
	}

	&__nav {
		display: grid;
		grid-template-columns: repeat(3, auto);
		grid-template-rows: auto 1fr;
		column-gap: 1.25rem;
		justify-content: center;
	}

	// Light grey links; the li and a inherit it, and still turn sage on hover.
	&__links { color: #C4C5C7; }
	&__links li { line-height: 1.85; }

	&__credit {
		grid-column: 1 / -1;
		align-self: end;
		margin-top: 1.5rem;
		text-align: center;
		white-space: nowrap;
		color: $primary;
		a:hover { color: $white; }
	}

	@include media-breakpoint-up(lg) {
		font-size: .85rem;
		&__social { padding-top: 45px; a { margin: 0 16px 0 0; } }
		// Three columns that always fit inside the right half (3 x 200px was wider than the
		// half-width column, so the menus spilled left past the middle). Right-aligned.
		&__nav { grid-template-columns: repeat(3, minmax(0, 150px)); column-gap: 0; justify-content: end; height: 100%; }
		&__credit { grid-column: 3; text-align: left; margin-top: 1.25rem; }
	}
}