/**
 * Site footer and back-to-top control.
 */

.site-footer {
	color: var(--foredoom-color-white);
	background: var(--foredoom-color-navy);
}

.site-footer__inner {
	display: flex;
	align-items: center;
	min-height: 100px;
}

.site-footer__copyright {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
}

.back-to-top {
	position: fixed;
	right: 20px;
	bottom: 11px;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--foredoom-color-yellow);
	border-radius: 0;
	color: var(--foredoom-color-navy);
	background: var(--foredoom-color-yellow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.back-to-top:hover {
	background: var(--foredoom-color-white);
}

.back-to-top svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

@media (max-width: 767px) {
	.site-footer__inner {
		justify-content: center;
		min-height: 88px;
		text-align: center;
	}

	.back-to-top {
		right: 12px;
		bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.back-to-top {
		transition: none;
	}
}
