/* Services mega menu — 5-column flat layout + footer */

#primary-menu > li.megamenu-template-enable[data-template="74159"] > .megamenu-template,
.megamenu-template[data-template="74159"],
li#menu-item-73454 > .megamenu-template {
	width: min(1200px, calc(100vw - 48px)) !important;
	max-width: 1280px !important;
	padding: 0 !important;
	overflow: visible !important;
	border-radius: 0 0 12px 12px;
	background: transparent !important;
	/* Soft drop shadow only — avoid clipped 0 0 8px theme glow on left edge */
	box-shadow: 0 16px 40px rgba(20, 24, 30, 0.16) !important;
}

/* Center on the viewport (menu bar is only ~right half of header) */
@media (min-width: 1024px) {
	#primary-menu > li.megamenu-template-enable[data-template="74159"] > .megamenu-template,
	li#menu-item-73454 > .megamenu-template {
		position: fixed !important;
		left: 50% !important;
		right: auto !important;
		top: var(--tmc-mega-top, 120px) !important;
		margin-left: 0 !important;
		transform: translateX(-50%) !important;
	}
}

/* Kill TheGem submenu glow that paints a cut-off left edge line */
.thegem-te-menu nav.desktop-view .nav-menu.submenu-hide-border > li#menu-item-73454 ul,
li#menu-item-73454 > ul,
li#menu-item-73454 .megamenu-template ul {
	box-shadow: none !important;
}

li#menu-item-73454 > .megamenu-template .megamenu-template-container,
li#menu-item-73454 > .megamenu-template .container {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
	box-shadow: none !important;
}

.tmc-mega {
	font-family: inherit;
	color: #141414;
	background: #fff;
	font-size: 16px;
	line-height: 1.45;
	border-radius: 0 0 12px 12px;
	overflow: hidden;
}

.tmc-mega a {
	text-decoration: none !important;
}

.tmc-mega__cols {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0 28px;
	padding: 28px 32px 20px;
}

.tmc-mega__col {
	min-width: 0;
}

.tmc-mega__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 0 10px;
	margin: 0 0 12px;
	border-bottom: 1px solid #e5e7eb;
	color: #141414 !important;
	font-family: 'Geomanist Book' !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tmc-mega__head:hover {
	color: #F27B35 !important;
}

.tmc-mega__arrow {
	color: #F27B35;
	font-size: 16px;
	line-height: 1;
}

.tmc-mega__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tmc-mega__list li {
	margin: 0 0 8px !important;
	padding: 0 !important;
	list-style: none !important;
}

.tmc-mega__list li::before {
	display: none !important;
	content: none !important;
}

.tmc-mega__link {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	color: #374151 !important;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
}

.tmc-mega__link:hover {
	color: #F27B35 !important;
}

.tmc-mega__badge {
	display: inline-flex;
	align-items: center;
	padding: 1px 6px;
	border-radius: 4px;
	background: #fde3d2;
	color: #C45A1A;
	font-family: 'Geomanist Book' !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.4;
}

.tmc-mega__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 16px 32px;
	background: #f5f1ea;
	border-top: 1px solid #ebe6de;
}

.tmc-mega__foot-lead {
	margin: 0;
	color: #374151;
	font-size: 16px;
}

.tmc-mega__foot-cta {
	color: #F27B35 !important;
	font-family: 'Geomanist Book' !important;
	font-weight: 700;
}

.tmc-mega__foot-cta:hover {
	color: #C45A1A !important;
}

.tmc-mega__foot-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.tmc-mega__foot-link {
	color: #141414 !important;
	font-size: 16px;
	font-weight: 600;
}

.tmc-mega__foot-link:hover {
	color: #F27B35 !important;
}

@media (max-width: 1023px) {
	#primary-menu > li.megamenu-template-enable[data-template="74159"] > .megamenu-template,
	li#menu-item-73454 > .megamenu-template {
		width: 100% !important;
		max-width: none !important;
		border-radius: 0;
		box-shadow: none;
	}

	.tmc-mega__cols {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 20px 18px;
	}

	.tmc-mega__foot {
		flex-direction: column;
		align-items: flex-start;
		padding: 16px 18px;
	}
}
