/*
 * TileMode footer (inc/footer.php). Loaded on every page.
 */

.tm-foot {
	--tm-foot-bg: var(--tm-ink);
	--tm-foot-text: rgba(255, 255, 255, 0.74);
	--tm-foot-dim: rgba(255, 255, 255, 0.56);
	--tm-foot-line: rgba(255, 255, 255, 0.14);
	position: relative;
	z-index: 1;
	font-family: var(--tm-font);
	color: var(--tm-foot-text);
}

.tm-foot :is(ul, ol) {
	--list-mb: 0;
	--li-mb: 0;
	--li-pl: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-foot li {
	margin: 0;
}

.tm-foot a {
	text-decoration: none;
	transition: color 0.15s ease;
}

/* ---- Call-to-action band ----------------------------------------------- */

.tm-foot-cta {
	border-top: 1px solid var(--tm-grout);
	background-color: var(--tm-porcelain);
	color: var(--tm-text);
}

.tm-foot-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	padding-block: clamp(36px, 4.5vw, 56px);
}

.tm-foot-cta__body {
	max-width: 620px;
}

.tm-foot .tm-foot-cta__title {
	margin: 0 0 8px;
	color: var(--tm-ink);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.tm-foot-cta__text {
	margin: 0;
	color: var(--tm-text);
	font-size: 16px;
	line-height: 1.55;
}

.tm-foot-cta .tm-btns {
	flex: none;
}

.tm-foot-cta__form {
	flex: 0 1 440px;
}

/* ---- Main block -------------------------------------------------------- */

.tm-foot__main {
	background-color: var(--tm-foot-bg);
	padding-block: clamp(48px, 6vw, 80px) clamp(40px, 5vw, 64px);
}

.tm-foot__grid {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(0, 2.4fr);
	gap: clamp(40px, 6vw, 96px);
}

.tm-foot__logo {
	display: inline-block;
	margin-bottom: 18px;
}

.tm-foot__logo img {
	display: block;
	width: 200px;
	max-width: 100%;
	height: auto;
}

.tm-foot__about {
	max-width: 300px;
	margin: 0 0 24px;
	color: var(--tm-foot-text);
	font-size: 15px;
	line-height: 1.6;
}

.tm-foot__contact {
	display: grid;
	gap: 12px;
	font-size: 15px;
}

.tm-foot__contact li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	line-height: 1.5;
}

.tm-foot__contact .tm-icon {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--tm-foot-dim);
}

.tm-foot__contact address {
	margin: 0;
	font-style: normal;
}

.tm-foot .tm-foot__contact a {
	color: #fff;
}

.tm-foot .tm-foot__contact a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tm-foot__hours {
	padding-left: 30px;
	color: var(--tm-foot-dim);
}

.tm-foot__cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px clamp(20px, 3vw, 40px);
}

.tm-foot .tm-foot__title {
	margin: 0 0 16px;
	color: #fff;
	font-family: var(--tm-font);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.3;
	text-transform: none;
}

.tm-foot__links {
	display: grid;
	gap: 10px;
}

.tm-foot .tm-foot__links a {
	color: var(--tm-foot-text);
	font-size: 15px;
	line-height: 1.4;
}

.tm-foot .tm-foot__links a:hover {
	color: #fff;
}

.tm-foot__all a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---- Bottom bar -------------------------------------------------------- */

.tm-foot__bar {
	border-top: 1px solid var(--tm-foot-line);
	background-color: var(--tm-foot-bg);
}

.tm-foot__bar-inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 28px;
	padding-block: 20px;
	font-size: 13px;
}

.tm-foot__copy {
	margin: 0;
	color: var(--tm-foot-dim);
}

.tm-foot__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
}

.tm-foot .tm-foot__legal a {
	color: var(--tm-foot-dim);
}

.tm-foot .tm-foot__legal a:hover {
	color: #fff;
}

.tm-foot__social {
	display: flex;
	gap: 4px;
	margin-left: auto;
}

.tm-foot .tm-foot__social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	color: var(--tm-foot-text);
}

.tm-foot .tm-foot__social a:hover {
	color: #fff;
}

/* ---- Tablet and phone -------------------------------------------------- */

@media (max-width: 1024px) {
	.tm-foot__grid {
		grid-template-columns: minmax(0, 1fr);
	}

}

@media (max-width: 640px) {
	.tm-foot__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tm-foot-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.tm-foot-cta .tm-btns {
		width: 100%;
	}

	.tm-foot-cta .tm-btn {
		flex: 1 1 100%;
	}

	.tm-foot__bar-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.tm-foot__social {
		margin-left: -10px;
	}
}

@media (max-width: 380px) {
	.tm-foot__cols {
		grid-template-columns: minmax(0, 1fr);
	}
}
