/*
Footer styles — same class names and values as this project's
earlier, working theme build. The footer moves outside <x-dc> as
part of this (a standard get_footer() call, at the very end of the
document), so its hover states are real CSS :hover rules here
instead of the runtime's style-hover attribute, which the page's JS
runtime only processes for elements inside <x-dc>.
*/

.tmg-footer-link:hover {
	color: #e11b22 !important;
}

.tmg-footer-cta:hover {
	background: #111113 !important;
	color: #fff !important;
}

.tmg-footer-social:hover {
	background: #e11b22 !important;
}

.tmg-footer-legal-link:hover {
	color: #fff !important;
}

.tmg-footer {
	background: #111113;
	color: #fff;
}

.tmg-footer__cta-bar {
	background: #e11b22;
}

.tmg-footer__cta-bar-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(34px, 4vw, 52px) clamp(18px, 4vw, 48px);
	display: flex;
	align-items: center;
	gap: clamp(22px, 3vw, 44px);
	flex-wrap: wrap;
}

.tmg-footer__cta-text {
	flex: 1;
	min-width: 280px;
}

.tmg-footer__cta-title {
	font-family: 'Anton', sans-serif;
	text-transform: uppercase;
	font-size: clamp(30px, 3.4vw, 50px);
	letter-spacing: .5px;
	line-height: 1;
}

.tmg-footer__cta-subtitle {
	font-size: 16.5px;
	margin-top: 10px;
	color: #fff;
}

.tmg-footer-cta {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	color: #111113;
	font-family: 'Anton', sans-serif;
	font-size: 21px;
	letter-spacing: .5px;
	text-transform: uppercase;
	padding: 18px 30px;
	text-decoration: none;
}

.tmg-footer-cta__arrow {
	color: #e11b22;
}

.tmg-footer__divider {
	flex: none;
	width: 1px;
	align-self: stretch;
	background: rgba(255, 255, 255, .45);
}

.tmg-footer__phone {
	flex: none;
	display: flex;
	align-items: center;
	gap: 14px;
	color: #fff;
	text-decoration: none;
}

.tmg-footer__phone-icon {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tmg-footer__phone-info {
	display: flex;
	flex-direction: column;
}

.tmg-footer__phone-number {
	font-family: 'Anton', sans-serif;
	font-size: clamp(26px, 2.4vw, 36px);
	letter-spacing: 1px;
	line-height: 1;
}

.tmg-footer__phone-label {
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .22em;
	text-transform: uppercase;
	margin-top: 4px;
}

.tmg-footer__grid {
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(48px, 6vw, 72px) clamp(18px, 4vw, 48px) 48px;
	display: grid;
	grid-template-columns: 1.25fr 1.15fr .85fr 1.1fr;
	gap: clamp(28px, 3.5vw, 48px);
}

.tmg-footer__certs {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(18px, 4vw, 48px) 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(22px, 4vw, 56px);
	flex-wrap: wrap;
}

/**
 * A real widget here (e.g. Text/Custom HTML) always adds at least
 * one wrapper <div> around its content — the theme's own
 * before_widget setting adds one, and some widget types (like
 * Text/Custom HTML, which adds its own internal .textwidget wrapper
 * too) nest a second layer inside that. Without this, the flex
 * layout above only ever sees a single wrapper div as its one flex
 * item, and the actual logo images inside it just stack in normal
 * block flow instead of laying out in the intended row.
 * display:contents makes each wrapper "invisible" to layout — its
 * children act as if they were direct children of
 * .tmg-footer__certs — so the images flex correctly regardless of
 * how many wrapper layers a given widget type happens to add.
 * Targets both the outer wrapper (any direct child div) and the
 * inner .textwidget/.custom-html-widget wrapper specifically, since
 * "direct child" alone doesn't reach that second, nested layer.
 */
.tmg-footer__certs > div,
.tmg-footer__certs .textwidget,
.tmg-footer__certs .custom-html-widget {
	display: contents;
}

.tmg-footer__certs img {
	height: 64px;
	width: auto;
	opacity: .92;
}

.tmg-footer__bottom {
	border-top: 1px solid #2a2a2c;
}

.tmg-footer__bottom-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px clamp(18px, 4vw, 48px);
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
	font-size: 14px;
	color: #c9c6bf;
}

.tmg-footer__legal {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tmg-footer-legal-link {
	color: #c9c6bf;
	text-decoration: none;
}

.tmg-footer__org {
	margin-left: auto;
}

.tmg-footer-col__logo {
	height: 60px;
	width: auto;
	margin: 0 0 4px -2px;
}

.tmg-footer-col__eyebrow {
	font-weight: 900;
	font-size: 15px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #e11b22;
	margin-top: 14px;
}

.tmg-footer-col__desc {
	max-width: 300px;
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.7;
	color: #d7d3ca;
}

.tmg-footer-col__contact-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 22px;
}

.tmg-footer-link {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	font-weight: 800;
	font-size: 17px;
	text-decoration: none;
}

.tmg-footer-link__icon {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #e11b22;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tmg-footer-col__title {
	font-weight: 900;
	font-size: 15px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #e11b22;
}

.tmg-footer-col__title-bar {
	width: 36px;
	height: 3px;
	background: #e11b22;
	margin: 10px 0 22px;
}

.tmg-footer-col__list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.tmg-footer-service-link {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #fff;
	font-size: 15px;
	text-decoration: none;
}

.tmg-footer-service-link:hover {
	color: #e11b22;
}

.tmg-footer-service-link__icon {
	flex: none;
	display: inline-flex;
	width: 26px;
	justify-content: center;
}

.tmg-footer-nav-link {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-size: 15px;
	text-decoration: none;
}

.tmg-footer-nav-link:hover {
	color: #e11b22;
}

.tmg-footer-nav-link__arrow {
	color: #e11b22;
	font-weight: 900;
	font-size: 16px;
	line-height: 1;
}

.tmg-footer-col__heading {
	font-weight: 900;
	font-size: 17px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
}

.tmg-footer-phone-cta {
	display: inline-block;
	font-family: 'Anton', sans-serif;
	font-size: clamp(30px, 2.6vw, 40px);
	letter-spacing: 1px;
	color: #fff;
	margin-top: 6px;
	padding-bottom: 10px;
	border-bottom: 2px solid #e11b22;
	text-decoration: none;
}

.tmg-footer-phone-cta:hover {
	color: #e11b22;
}

.tmg-footer-col__note {
	font-size: 15px;
	color: #d7d3ca;
	margin-top: 12px;
}

.tmg-footer-col__tags {
	font-weight: 800;
	font-size: 15.5px;
	color: #fff;
	margin-top: 6px;
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
}

.tmg-footer-col__tags-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #e11b22;
}

.tmg-footer-col__mascot {
	margin-top: 18px;
}

.tmg-footer-col__mascot img {
	width: 238px;
	height: auto;
	display: block;
}

.tmg-footer-social-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tmg-footer-social {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.tmg-footer-cert {
	max-height: 64px;
	width: auto;
	opacity: .92;
}

.tmg-legal-footer {
	background: #111113;
	color: #fff;
}

.tmg-legal-footer__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px clamp(18px, 4vw, 48px);
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
	font-size: 14px;
	color: #c9c6bf;
}

.tmg-legal-footer__links {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tmg-legal-footer__link {
	color: #c9c6bf;
}

.tmg-legal-footer__link:hover {
	color: #fff;
}

.tmg-legal-footer__divider {
	width: 1px;
	height: 14px;
	background: #3a3a3c;
}

.tmg-legal-footer__org {
	margin-left: auto;
}
