/* ==========================================================================
   Footer - Fresh Ground's .fr strip system, adapted.

   Fresh Ground stacks the footer as horizontal full-bleed strips in
   alternating tones rather than one block:

     pre-footer  three lottie cards (icon + title + one-liner)
     strip 1     white  - review rating widget
     strip 2     grey   - link columns + contact column
     strip 3     black  - social icons
     strip 4     white  - logo + legal links

   Strip 1 is the one slot that carries Fresh Ground business specifics (a
   reviews.io widget). Rather than import that, the slot keeps its structural
   job and takes our own trust line: experience, no contract, no lock-in,
   24-hour reply.

   Extracted verbatim: .layout__wrapper inside the footer carries
   border-bottom 1px #d4d3d4 with 1.875rem padding block.
   ========================================================================== */

.mx-footer {
	width: 100%;
}

.mx-footer__strip {
	width: 100%;
}

.mx-footer__strip--white { background-color: var(--mx-white-bg); }
.mx-footer__strip--site  { background-color: var(--mx-site-bg); }
.mx-footer__strip--grey  { background-color: var(--mx-light-grey-bg); }
.mx-footer__strip--black { background-color: #000; color: #fff; }

.mx-footer__strip-inner {
	padding-bottom: 1.875rem;
	padding-top: 1.875rem;
}

.mx-footer__strip--rule .mx-footer__strip-inner {
	border-bottom: 1px solid var(--mx-hairline-soft);
}

/* --------------------------------------------------------------------------
   Pre-footer trio
   -------------------------------------------------------------------------- */

.mx-prefooter__inner {
	padding: 4.375rem 0;
}

@media (min-width: 48rem) {
	.mx-prefooter__inner {
		padding: 6.875rem 0;
	}
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.mx-footer__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2.5rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mx-footer__trust li {
	align-items: center;
	display: flex;
	font-size: var(--mx-text-xsmall);
	font-weight: 700;
	gap: .5rem;
	letter-spacing: .1em;
	line-height: 1;
	text-transform: uppercase;
}

.mx-footer__trust svg {
	flex-shrink: 0;
	height: 16px;
	width: 16px;
}

/* --------------------------------------------------------------------------
   Navigation strip
   -------------------------------------------------------------------------- */

.mx-footer__nav-inner {
	padding: 3.75rem 0;
}

.mx-footer__grid {
	display: grid;
	gap: var(--mx-grid-gap-row-lg) var(--mx-grid-gap);
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 64rem) {
	.mx-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 35.4375rem) {
	.mx-footer__grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

.mx-footer__heading {
	border-bottom: 1px solid rgba(0, 0, 0, .2);
	font-size: var(--mx-text-xsmall);
	font-weight: 700;
	letter-spacing: .1em;
	margin-bottom: 1rem;
	padding-bottom: .625rem;
	text-transform: uppercase;
}

.mx-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mx-footer__list a {
	color: var(--mx-text-body);
	display: block;
	font-size: var(--mx-text-small);
	line-height: 1.4;
	padding: .3125rem 0;
	text-decoration: none;
	transition: color var(--mx-motion);
}

@media (hover: hover) {
	.mx-footer__list a:hover {
		color: var(--mx-text-title);
		text-decoration: underline;
	}
}

.mx-footer__contact p {
	font-size: var(--mx-text-small);
	line-height: 1.5;
	margin-bottom: 1rem;
}

.mx-footer__contact a {
	color: var(--mx-text-body);
	text-decoration: none;
}

@media (hover: hover) {
	.mx-footer__contact a:hover {
		text-decoration: underline;
	}
}

.mx-footer__contact-item {
	align-items: flex-start;
	display: flex;
	gap: .625rem;
	margin-bottom: 1rem;
}

.mx-footer__contact-item svg {
	flex-shrink: 0;
	height: 18px;
	margin-top: 2px;
	width: 18px;
}

/* --------------------------------------------------------------------------
   Social strip
   -------------------------------------------------------------------------- */

.mx-footer__socials {
	align-items: center;
	display: flex;
	gap: 1.25rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mx-footer__socials a {
	align-items: center;
	color: #fff;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	transition: opacity var(--mx-motion);
	width: 44px;
}

.mx-footer__socials svg {
	height: 22px;
	width: 22px;
}

@media (hover: hover) {
	.mx-footer__socials a:hover {
		opacity: .7;
	}
}

.mx-footer__strip--black a:focus-visible {
	box-shadow: var(--mx-focus-ring-dark);
}

/* --------------------------------------------------------------------------
   Legal strip
   -------------------------------------------------------------------------- */

.mx-footer__legal {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	justify-content: space-between;
}

.mx-footer__legal-logo img,
.mx-footer__legal-logo svg {
	display: block;
	height: auto;
	max-height: 2.25rem;
	width: auto;
}

.mx-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mx-footer__legal-links a {
	color: var(--mx-text-body);
	font-size: var(--mx-text-xsmall);
	text-decoration: none;
	transition: color var(--mx-motion);
}

@media (hover: hover) {
	.mx-footer__legal-links a:hover {
		text-decoration: underline;
	}
}

.mx-footer__copyright {
	color: var(--mx-grey-01);
	font-size: var(--mx-text-xsmall);
	line-height: var(--mx-text-xsmall-lh);
}

@media (max-width: 48rem) {
	.mx-footer__legal {
		flex-direction: column;
		text-align: center;
	}

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