/*
 * miniOrange site footer (FAQ site), as on www.miniorange.com. Printed by
 * the Manual theme's footer.php through mo_faq_theme_footer(). Colours and
 * sizes come from mo-tokens.css. Every selector is scoped to .mo-ft, and the
 * Bootstrap 3 / theme defaults for ul, p, h2 and a are reset inside it.
 */

/* ---- resets inside the footer (theme/Bootstrap defaults) ---- */
.mo-ft *,
.mo-ft *::before,
.mo-ft *::after {
	box-sizing: border-box;
}

/* Class-level specificity: the theme/Bootstrap style bare ul, p, h2, a. */
.mo-ft ul,
.mo-ft ol,
.mo-ft p,
.mo-ft h2 {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mo-ft a,
.mo-ft a:hover,
.mo-ft a:focus {
	text-decoration: none;
}

.mo-ft a:focus-visible {
	outline: 0.18rem solid var(--mo-focus);
	outline-offset: 0.25rem;
	border-radius: var(--mo-radius-sm);
}

@media print {
	.mo-ft {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mo-ft * {
		transition-duration: 0.01ms !important;
	}
}

/* ==================================================================
 * Footer — same design as the www.miniorange.com footer (dark in both
 * themes): #272727 body, #3d3d3d bottom bar, white links with 0.8px
 * tracking. Sizes are set for the FAQ pages (links 15px, headings 18px).
 * ================================================================== */

.mo-ft {
	margin-top: auto;
	background: #272727;
	color: #ffffff;
	font-family: var(--mo-font);
	font-size: var(--mo-fs-ft-link);
	line-height: 2;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.mo-ft__main {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 3.2rem 2.4rem;
	padding: 4.8rem 2rem 4rem;
}

.mo-ft__brand {
	grid-column: 1 / -1;
}

@media (min-width: 600px) {
	.mo-ft__main {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		padding-left: 4rem;
		padding-right: 4rem;
	}
}

/* Desktop: brand a quarter of the width, then 5 / 2 / 2 / 3 twelfths. */
@media (min-width: 1000px) {
	.mo-ft__main {
		grid-template-columns: 3fr 3.75fr 1.5fr 1.5fr 2.25fr;
		column-gap: 2.4rem;
		padding: 6.6rem 7rem 5.6rem;
	}

	.mo-ft__brand {
		grid-column: auto;
	}
}

.mo-ft a.mo-ft__logo {
	display: inline-block;
}

.mo-ft__logo img {
	display: block;
	width: 19.6rem;
	max-width: 100%;
	height: auto;
}

.mo-ft__contact {
	display: flex;
	align-items: flex-start;
	gap: 1.4rem;
	margin-top: 1.6rem;
}

.mo-ft__contact .mo-icon {
	width: 2rem;
	height: 2rem;
	margin-top: 0.5rem;
	color: #ffffff;
}

.mo-ft .mo-ft__phones,
.mo-ft .mo-ft__email {
	margin: 0;
	font-size: var(--mo-fs-ft-link);
	line-height: 2;
	letter-spacing: 1px;
}

.mo-ft .mo-ft__phones a {
	color: #ffffff;
}

.mo-ft .mo-ft__email a,
.mo-ft .mo-ft__email a:hover {
	color: #ffffff;
	text-decoration: underline !important; /* theme removes link underlines */
	text-underline-offset: 0.3rem;
	letter-spacing: 0;
}

.mo-ft a.mo-ft__btn {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	margin-top: 2.4rem;
	padding: 1rem 2.4rem;
	border-radius: 0.5rem;
	background: #eb5424;
	color: #ffffff;
	font-size: var(--mo-fs-ft-link);
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.2rem;
	transition: background-color var(--mo-speed) var(--mo-ease);
}

.mo-ft a.mo-ft__btn:hover {
	background: #d94514;
	color: #ffffff;
}

.mo-ft__btn .mo-icon {
	width: 1.8rem;
	height: 1.8rem;
}

.mo-ft .mo-ft__overline {
	margin: 3.2rem 0 1.2rem;
	color: #ffffff;
	font-size: var(--mo-fs-ft-over);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.13rem;
}

.mo-ft__social {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.mo-ft__social a {
	display: inline-block;
	opacity: 0.95;
	transition: opacity var(--mo-speed) var(--mo-ease);
}

.mo-ft__social a:hover {
	opacity: 1;
}

.mo-ft__social img {
	display: block;
	width: 1.6rem;
	height: 2rem;
}

.mo-ft h2.mo-ft__heading {
	margin: 0 0 1.8rem;
	padding: 0;
	color: #f6f1e7;
	font-family: var(--mo-font);
	font-size: var(--mo-fs-ft-head);
	font-weight: 600;
	line-height: 3rem;
	letter-spacing: 1px;
	text-transform: none;
}

.mo-ft .mo-ft__links + h2.mo-ft__heading {
	margin-top: 4rem;
}

.mo-ft__links li {
	margin: 0.6rem 0;
	line-height: 2;
}

.mo-ft__links a,
.mo-ft__links a:hover {
	color: #ffffff;
	font-size: var(--mo-fs-ft-link);
	font-weight: 400;
	letter-spacing: 0.08rem;
}

.mo-ft__links a:hover {
	text-decoration: underline;
}

.mo-ft__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
	padding: 2rem;
	background: #3d3d3d;
	color: #d8d6d6;
	font-size: var(--mo-fs-ft-small);
	line-height: 1.6;
	text-align: center;
}

@media (min-width: 1020px) {
	.mo-ft__bottom {
		flex-direction: row;
		justify-content: space-around;
	}
}

.mo-ft .mo-ft__copy {
	margin: 0;
	color: #d8d6d6;
	font-size: var(--mo-fs-ft-small);
}

.mo-ft__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.8rem 2.4rem;
}

.mo-ft__legal a,
.mo-ft__legal a:hover {
	color: #ffffff;
	font-size: var(--mo-fs-ft-small);
	font-weight: 500;
}

.mo-ft__legal a:hover {
	text-decoration: underline;
}

