/**
 * Global footer (meg-strap)
 *
 * Redesigned global footer per the "New Footer" Figma.
 * Scoped entirely under .meg-global-footer so it cannot affect the rest
 * of the site. Button styles here use dedicated class names
 * (.meg-ftr-btn / .meg-ftr-label) rather than Bootstrap's .btn so they
 * never bleed into pages that expect the stock button styling.
 */

.meg-global-footer {
	--meg-ftr-green: #00927b;
	--meg-ftr-blue: #003087;
	color: #fff;
}

.meg-global-footer *,
.meg-global-footer *::before,
.meg-global-footer *::after {
	box-sizing: border-box;
}

/* ---------- Tagline band ---------- */
.meg-ftr-tagline {
	background-color: var(--meg-ftr-green);
	text-align: center;
	padding: 14px 50px;
}

.meg-ftr-tagline img {
	/* The source PNG is blue on transparent; flip it to white for the green band. */
	filter: brightness(0) invert(1);
	height: clamp(30px, 4.5vw, 48px);
	width: auto;
	max-width: 100%;
	display: inline-block;
}

/* ---------- Main (blue) band ---------- */
.meg-ftr-body {
	background-color: var(--meg-ftr-blue);
	padding: 60px 50px;
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.meg-ftr-main {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

/* Brand column: logo, social, quote button */
.meg-ftr-brand {
	flex: 1 1 240px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	text-align: center;
}

.meg-ftr-logo {
	width: 247px;
	max-width: 100%;
	height: auto;
	display: block;
}

/* Reuse the theme's .social-icons list; recolor for the blue band */
.meg-global-footer ul.social-icons {
	margin: 0;
}

.meg-global-footer ul.social-icons > li > a,
.meg-global-footer ul.social-icons > li > a > i {
	color: var(--meg-ftr-green);
	transition: opacity 0.2s ease-in-out;
}

.meg-global-footer ul.social-icons > li > a:hover,
.meg-global-footer ul.social-icons > li > a:hover > i {
	color: var(--meg-ftr-green);
	opacity: 0.75;
}

/* Nav area: About + Solutions */
.meg-ftr-nav {
	flex: 2 1 auto;
	display: flex;
	gap: 24px;
	align-items: flex-start;
	justify-content: flex-start;
}

.meg-ftr-col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
}

.meg-ftr-col--wide {
	flex: 2 1 0;
}

/* Menu lists (About / Solutions) */
.meg-ftr-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

/* Solutions renders as two side-by-side sub-columns.
   Multi-column so menu items flow top-to-bottom down column 1, then
   column 2 (matching the design), regardless of item count. */
.meg-ftr-col--wide .meg-ftr-menu {
	display: block;
	columns: 2;
	column-gap: 24px;
}

.meg-ftr-col--wide .meg-ftr-menu li {
	margin-bottom: 20px;
	break-inside: avoid;
}

.meg-ftr-menu li {
	margin: 0;
	line-height: 1.2;
}

.meg-ftr-menu a {
	color: #fff;
	font-family: muli, "Mulish", sans-serif;
	font-weight: 800;
	font-size: 18px;
	text-transform: uppercase;
	text-decoration: none;
	transition: opacity 0.2s ease-in-out;
}

.meg-ftr-menu a:hover {
	color: #fff;
	opacity: 0.75;
	text-decoration: none;
}

/* ---------- Label pill (ABOUT / SOLUTIONS / LOCATIONS) ---------- */
.meg-ftr-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--meg-ftr-green);
	color: #fff;
	border-radius: 8px;
	padding: 10px 14px;
	font-family: pill-gothic-300mg, sans-serif;
	font-size: 17px;
	line-height: 1;
	letter-spacing: 1.7px;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---------- Divider ---------- */
.meg-ftr-divider {
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.4);
	margin: 0;
	width: 100%;
	height: 0;
	background: none;
	border-radius: 0;
}

/* ---------- Locations section ---------- */
.meg-ftr-locations {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	text-align: center;
}

.meg-ftr-locations-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
	column-count: 5;
	column-gap: 24px;
}

.meg-ftr-locations-grid li {
	margin: 0 0 20px;
	break-inside: avoid;
	text-align: left;
}

.meg-ftr-locations-grid a {
	color: #fff;
	font-family: muli, "Mulish", sans-serif;
	font-weight: 800;
	font-size: 18px;
	text-transform: uppercase;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity 0.2s ease-in-out;
}

.meg-ftr-locations-grid a:hover {
	color: #fff;
	opacity: 0.75;
	text-decoration: none;
}

/* ---------- Gradient pill buttons (footer-only classes) ---------- */
.meg-ftr-btn {
	position: relative;
	z-index: 1;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.95rem 2rem;
	border: 1px solid var(--meg-ftr-green);
	border-radius: 30px;
	background-color: var(--meg-ftr-green);
	color: #fff;
	font-family: pill-gothic-300mg, sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}

.meg-ftr-btn::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	height: calc(100% + 4px);
	width: calc(100% + 4px);
	z-index: -1;
	transform: translate(-50%, -50%);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%), var(--meg-ftr-green);
	transition: opacity 0.3s ease-in-out;
}

.meg-ftr-btn:hover,
.meg-ftr-btn:focus {
	color: #fff;
	text-decoration: none;
}

.meg-ftr-btn:hover::before,
.meg-ftr-btn:focus::before {
	opacity: 0;
}

/* ---------- Bottom (green) legal bar ---------- */
.meg-ftr-legal {
	background-color: var(--meg-ftr-green);
	padding: 12px 50px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.meg-ftr-legal-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
	font-family: muli, "Mulish", sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: #fff;
}

.meg-ftr-legal-links a {
	color: #fff;
	text-decoration: none;
	position: relative;
}

.meg-ftr-legal-links a:hover {
	color: #fff;
	opacity: 0.8;
	text-decoration: underline;
}

/* vertical separators before each link */
.meg-ftr-legal-links a::before {
	content: '';
	position: absolute;
	left: -10px;
	top: 50%;
	transform: translateY(-50%);
	height: 14px;
	width: 1px;
	background-color: rgba(255, 255, 255, 0.6);
}

.meg-ftr-legal-phone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-family: muli, "Mulish", sans-serif;
	font-weight: 800;
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
}

.meg-ftr-legal-phone:hover {
	color: #fff;
	opacity: 0.85;
	text-decoration: none;
}

.meg-ftr-legal-phone i {
	font-size: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.meg-ftr-locations-grid {
		column-count: 4;
	}
}

@media (max-width: 991px) {
	.meg-ftr-body {
		padding: 44px 24px;
		gap: 40px;
	}
	.meg-ftr-main {
		flex-direction: column;
		align-items: stretch;
	}
	.meg-ftr-brand {
		align-items: center;
	}
	.meg-ftr-nav {
		flex-wrap: wrap;
		gap: 32px 24px;
	}
	.meg-ftr-col,
	.meg-ftr-col--wide {
		flex: 1 1 220px;
	}
	.meg-ftr-locations-grid {
		column-count: 3;
	}
	.meg-ftr-tagline,
	.meg-ftr-legal {
		padding-left: 24px;
		padding-right: 24px;
	}
}

@media (max-width: 575px) {
	.meg-ftr-nav {
		flex-direction: column;
	}
	.meg-ftr-col--wide .meg-ftr-menu {
		grid-template-columns: 1fr;
	}
	.meg-ftr-locations-grid {
		column-count: 2;
	}
	.meg-ftr-legal {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}
