/**
Theme Name: Main Graphics
Author: Main Graphics
Author URI: https://www.maingraphics.net/
Description: Astra child theme recreating (and refining) the Main Graphics YOOtheme EAT design with modern PHP 8 / Gutenberg.
Version: 1.8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: main-graphics
Template: astra
*/

/* ==========================================================================
   Self-hosted Raleway (500 / 600 / 700) — eliminates external Google Fonts requests
   ========================================================================== */
@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('./assets/fonts/raleway-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('./assets/fonts/raleway-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('./assets/fonts/raleway-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('./assets/fonts/raleway-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('./assets/fonts/raleway-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('./assets/fonts/raleway-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--mg-blue: #1e5480;
	--mg-blue-dark: #153d61;
	--mg-blue-border: #1a4b72;
	--mg-ink: #23282d;
	--mg-muted: #666666;
	--mg-soft: #4a4a4a;
	--mg-line: rgba(200, 200, 200, 0.45);
	--mg-bg: #f6f7f9;
	--mg-white: #ffffff;
	--mg-black: #111111;
	--mg-header-h: 90px;
	--mg-nav-h: 52px;
	--mg-hero-h: 893px;
	--mg-blue-bar: 175px;
	--mg-overlap: -250px;
	--mg-content: 1140px;
	--mg-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
	--mg-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--mg-display: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Base / Astra resets (homepage-focused polish)
   ========================================================================== */
body {
	font-family: var(--mg-font);
	color: var(--mg-ink);
	background: var(--mg-bg);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography hierarchy — Raleway display + system body
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.ast-archive-title {
	font-family: var(--mg-display);
	color: var(--mg-ink);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

h1, .entry-title { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.65em; }
h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 0.55em; }
h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5em; }

p, li, td, th, dd {
	line-height: 1.7;
}

/* ==========================================================================
   Modern spacing — generous breathing room
   ========================================================================== */
.ast-container {
	padding-left: 28px;
	padding-right: 28px;
}

#primary {
	padding-top: 32px;
	padding-bottom: 48px;
}

.entry-content > *:not(.alignfull):not(.alignwide):not(.mg-page-card) {
	margin-bottom: 1.5em;
}

/* ==========================================================================
   Smooth transitions — all interactive elements
   ========================================================================== */
a,
button,
input[type="submit"],
.wp-block-button__link,
.menu-link,
.ast-menu-toggle,
.mg-btn,
.uk-button-primary,
.mg-svc-card,
.mg-cert-logo,
.mg-map {
	transition: all 0.2s ease-in-out;
}

a:hover {
	color: var(--mg-blue);
}

/* Menu items — subtle lift on hover */
.ast-below-header-bar .main-header-menu > .menu-item > .menu-link:hover,
.ast-below-header-bar .main-header-menu > .current-menu-item > .menu-link {
	opacity: 1;
}

.ast-primary-header-bar .menu-link:hover {
	color: var(--mg-blue) !important;
}

.home.ast-normal-title-enabled .entry-header,
.home .entry-header,
.home .ast-single-post .entry-header {
	display: none !important;
}

/* Full-bleed content shell: remove boxed padding on home + premium HP */
.home #content,
.home .site-content,
.home .ast-container,
.mg-premium-hp #content,
.mg-premium-hp .site-content,
.mg-premium-hp .ast-container {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.home .site-content > .ast-container,
.mg-premium-hp .site-content > .ast-container {
	display: block !important;
}

.home #primary,
.home .ast-plain-container.ast-no-sidebar #primary,
.mg-premium-hp #primary,
.mg-premium-hp .ast-plain-container.ast-no-sidebar #primary {
	margin: 0 !important;
	padding: 0 !important;
}

.home .entry-content,
.mg-premium-hp .entry-content {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.home .entry-content > *,
.mg-premium-hp .entry-content > * {
	max-width: none;
}

.mg-premium-hp .entry-header,
.page-id-23444 .entry-header {
	display: none !important;
}

/* Underline links only in prose, not CTAs */
.home .entry-content a:not(.wp-block-button__link):not(.uk-button-primary):not(.mg-svc-list a),
.mg-premium-hp .entry-content a:not(.wp-block-button__link):not(.uk-button-primary):not(.mg-svc-list a):not(.mgv2-feature-row__link a) {
	text-decoration: none;
}

/* ==========================================================================
   Header — dual row, premium clean (inspired by live, refined for Astra)
   ========================================================================== */
.site-header {
	position: relative !important;
	top: auto !important;
	z-index: 1000 !important;
	background: var(--mg-white) !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.3s ease;
}

.ast-primary-header-bar {
	background: var(--mg-white) !important;
	min-height: var(--mg-header-h) !important;
	border-bottom: 1px solid #f0f0f0 !important;
}

.site-primary-header-wrap {
	min-height: var(--mg-header-h) !important;
	display: flex !important;
	align-items: center !important;
	max-width: 1200px !important;
	margin: 0 auto !important;
	padding: 12px 24px !important;
	width: 100% !important;
}

.ast-primary-header-bar .ast-builder-grid-row {
	width: 100% !important;
	align-items: center !important;
	justify-content: space-between !important;
}

.site-header-primary-section-left {
	justify-content: flex-start !important;
}

.site-header-primary-section-right {
	justify-content: flex-end !important;
	margin-left: auto !important;
}

.custom-logo-link img,
.site-logo-img img,
.ast-site-identity img.custom-logo {
	max-height: 110px !important;
	width: auto !important;
	height: auto !important;
	display: block !important;
}

.site-title {
	display: none !important; /* logo only */
}

/* FTP upload widget */
.header-ftp-upload {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	justify-content: flex-end !important;
}

.header-ftp-upload p {
	margin: 0 !important;
	font-size: 13px !important;
	line-height: 1.25 !important;
	color: var(--mg-muted) !important;
	font-weight: 500 !important;
}

.header-ftp-upload a.uk-button-primary,
.header-ftp-upload .uk-button-primary {
	display: inline-block !important;
	margin-top: 6px !important;
	padding: 7px 14px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	background: var(--mg-blue) !important;
	color: #fff !important;
	border: 1px solid var(--mg-blue-border) !important;
	border-radius: 2px !important;
	text-decoration: none !important;
	line-height: 1.2 !important;
	min-height: 0 !important;
	height: auto !important;
	transition: background 0.25s ease !important;
}

.header-ftp-upload a.uk-button-primary:hover {
	background: var(--mg-blue-dark) !important;
	color: #fff !important;
}

.header-ftp-upload img {
	width: 96px !important;
	height: auto !important;
	display: block !important;
}

/* Below header = main nav (full-bleed white bar, sticky) */
.ast-below-header-wrap {
	width: 100% !important;
	background: #ffffff !important;
}

.ast-below-header-bar,
#masthead .ast-below-header-bar,
.ast-desktop .ast-below-header-bar {
	background-color: #ffffff !important;
	background-image: none !important;
	border-bottom: 1px solid #e5e5e5 !important;
	min-height: var(--mg-nav-h) !important;
	width: 100% !important;
	max-width: none !important;
}

.site-below-header-wrap.ast-container,
.ast-below-header-bar .site-below-header-wrap {
	min-height: var(--mg-nav-h) !important;
	max-width: 1200px !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 0 16px !important;
	display: flex !important;
	align-items: center !important;
	background: transparent !important;
}

.ast-below-header-bar .ast-builder-grid-row {
	width: 100% !important;
	justify-content: center !important;
	background: transparent !important;
}

.ast-below-header-bar .site-header-below-section-left {
	flex: 1 1 auto !important;
	justify-content: center !important;
}

.ast-below-header-bar .main-header-menu {
	justify-content: center !important;
	width: 100% !important;
}

.ast-below-header-bar .main-header-menu .menu-link,
.ast-below-header-bar .main-header-menu > .menu-item > .menu-link {
	color: #555555 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	padding: 0 18px !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
	background: transparent !important;
}

.ast-below-header-bar .main-header-menu .menu-link:hover,
.ast-below-header-bar .main-header-menu .current-menu-item > .menu-link {
	color: var(--mg-blue) !important;
}

@media (min-width: 922px) {
	.ast-below-header-bar {
		box-shadow: none !important;
	}
}

/* ==========================================================================
   HERO — full-viewport video with centered teaser + blue base bar
   ========================================================================== */
.entry-content .wp-block-cover.tm-fullscreen,
.wp-block-cover.tm-fullscreen {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-direction: column !important;
	width: 100vw !important;
	max-width: 100vw !important;
	min-height: var(--mg-hero-h) !important;
	height: var(--mg-hero-h) !important;
	margin: 0 !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	background: #1a1a1a !important;
	isolation: isolate;
}

/* Kill Astra / core cover quirks that break video */
.tm-fullscreen.wp-block-cover,
.tm-fullscreen.wp-block-cover.has-background-dim:not([class*="background-color"]),
.tm-fullscreen.alignfull {
	aspect-ratio: auto !important;
}

.tm-fullscreen .wp-block-cover__background,
.tm-fullscreen .wp-block-cover__image-background,
.tm-fullscreen .wp-block-cover__gradient-background {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background-color: rgba(0, 0, 0, 0.38) !important;
	opacity: 1 !important;
	z-index: 2 !important;
}

/* THE critical fix: video must be absolute full-bleed cover */
.tm-fullscreen video.wp-block-cover__video-background,
.tm-fullscreen .wp-block-cover__video-background {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center center !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	z-index: 1 !important;
	transform: none !important;
	flex: none !important;
	align-self: auto !important;
}

/* CLS prevention — lock cover dimensions before video loads */
.wp-block-cover {
	contain: layout style;
	overflow: hidden !important;
}

.wp-block-cover__video-background,
.wp-block-cover video {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	aspect-ratio: 16 / 9;
}

@media (max-width: 767px) {
	.wp-block-cover.tm-fullscreen,
	.entry-content .wp-block-cover.tm-fullscreen {
		contain: layout style;
		min-height: var(--mg-hero-h) !important;
		height: var(--mg-hero-h) !important;
		aspect-ratio: auto !important;
	}

	.wp-block-cover.tm-fullscreen .wp-block-cover__video-background,
	.wp-block-cover.tm-fullscreen video {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		min-width: 100% !important;
		min-height: 100% !important;
		object-fit: cover !important;
		aspect-ratio: 16 / 9;
	}

	#mep_0,
	.mejs-container,
	.mejs-mediaelement {
		position: absolute !important;
		inset: 0 !important;
		width: 100% !important;
		height: 100% !important;
		overflow: hidden !important;
	}
}

/* Inner content layered above dim */
.tm-fullscreen .wp-block-cover__inner-container {
	position: relative !important;
	z-index: 3 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	max-width: 920px !important;
	margin: 0 auto !important;
	padding: 40px 24px calc(var(--mg-blue-bar) + 40px) !important;
	box-sizing: border-box !important;
	text-align: center !important;
}

.tm-fullscreen .tm-teaser {
	width: 100% !important;
	max-width: 860px !important;
	margin: 0 auto !important;
	text-align: center !important;
}

.tm-fullscreen .tm-teaser h1,
.tm-fullscreen h1.wp-block-heading {
	color: #ffffff !important;
	font-size: 30px !important;
	line-height: 1.25 !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
	margin: 0 0 16px !important;
	padding: 0 !important;
}

.tm-fullscreen .tm-teaser-subtitle-small,
.tm-fullscreen p.tm-teaser-subtitle-small {
	color: #ffffff !important;
	font-size: 18px !important;
	line-height: 1.55 !important;
	font-weight: 400 !important;
	max-width: 780px !important;
	margin: 0 auto 8px !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

/*
 * Blue base bar — drawn on .tm-fullscreen (full bleed), not on the
 * constrained inner-container. Hide the in-content .blue-block so it
 * cannot shrink to content width.
 */
.tm-fullscreen .blue-block {
	display: none !important;
}

.tm-fullscreen::after {
	content: "" !important;
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: var(--mg-blue-bar) !important;
	background: var(--mg-blue) !important;
	z-index: 2 !important;
	pointer-events: none !important;
	display: block !important;
}

/* ==========================================================================
   Hero outline buttons (Ujarak / Codrops style)
   ========================================================================== */
.tm-fullscreen .fullscreen-btn,
.tm-fullscreen .wp-block-buttons.fullscreen-btn {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 18px !important;
	margin: 28px auto 0 !important;
	width: auto !important;
	max-width: 480px !important;
	padding: 0 !important;
}

.tm-fullscreen .wp-block-button.button,
.tm-fullscreen .button.button--ujarak {
	position: relative !important;
	display: inline-block !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 160px !important;
	max-width: none !important;
	background: transparent !important;
	border: 1px solid #ffffff !important;
	border-radius: 0 !important;
	overflow: hidden !important;
	z-index: 4 !important;
	transition: border-color 0.4s ease !important;
}

.tm-fullscreen .wp-block-button.button::before,
.tm-fullscreen .button--ujarak::before {
	content: "" !important;
	position: absolute !important;
	inset: 0 !important;
	background: #ffffff !important;
	opacity: 0 !important;
	transform: scale3d(0.7, 1, 1) !important;
	transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.2, 1, 0.3, 1) !important;
	z-index: 0 !important;
}

.tm-fullscreen .wp-block-button.button .wp-block-button__link,
.tm-fullscreen .button--ujarak .wp-block-button__link {
	position: relative !important;
	z-index: 1 !important;
	display: block !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: var(--mg-display) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	padding: 14px 34px !important;
	line-height: 1.2 !important;
	transition: color 0.35s ease !important;
}

.tm-fullscreen .wp-block-button.button:hover::before,
.tm-fullscreen .button--ujarak:hover::before {
	opacity: 1 !important;
	transform: scale3d(1, 1, 1) !important;
}

.tm-fullscreen .wp-block-button.button:hover .wp-block-button__link,
.tm-fullscreen .button--ujarak:hover .wp-block-button__link {
	color: #575757 !important;
	background: transparent !important;
}

/* ==========================================================================
   Overlapping content card (tm-page effect)
   ========================================================================== */
.home .entry-content > .mg-page-card,
.entry-content .wp-block-group.mg-page-card,
.mg-page-card {
	position: relative !important;
	z-index: 5 !important;
	max-width: var(--mg-content) !important;
	width: calc(100% - 40px) !important;
	margin: var(--mg-overlap) auto 0 !important;
	padding: 56px 48px 40px !important;
	background: var(--mg-white) !important;
	box-shadow: var(--mg-shadow), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
	box-sizing: border-box !important;
}

/* Kill constrained layout max-width fighting the card */
.mg-page-card.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: none !important;
}

/* Intro heading */
.tm-heading-underline {
	position: relative !important;
	display: block !important;
	padding: 0 0 36px !important;
	margin: 0 auto !important;
	font-size: 26px !important;
	font-weight: 700 !important;
	line-height: 1.45 !important;
	color: var(--mg-ink) !important;
	text-align: center !important;
	text-transform: none !important;
	max-width: 920px;
}

.tm-heading-underline::after {
	content: "";
	display: block;
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 220px;
	margin-left: -110px;
	border-top: 4px solid var(--mg-line);
}

.tm-heading-italic,
span.tm-heading-italic {
	display: block;
	color: var(--mg-soft) !important;
	font-family: "Times New Roman", Times, Georgia, serif !important;
	font-style: italic !important;
	font-weight: 400 !important;
	font-size: 22px !important;
	line-height: 1.55 !important;
	text-transform: none !important;
	margin-bottom: 18px;
}

/* ==========================================================================
   Feature columns (uk-panel-space)
   ========================================================================== */
.mg-features,
.entry-content > .wp-block-columns.mg-features,
.entry-content .wp-block-columns.alignwide.mg-features {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 28px !important;
	max-width: var(--mg-content);
	margin: 0 auto 20px !important;
	padding: 10px 0 30px !important;
	align-items: stretch !important;
}

.mg-page-card .mg-features {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.mg-features > .wp-block-column,
.wp-block-column.uk-panel-space {
	flex: 1 1 280px !important;
	min-width: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
	padding: 28px 22px 24px !important;
	background: #fff !important;
	border: 1px solid #eef1f4 !important;
	border-radius: 4px !important;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
	transition: transform 0.28s ease, box-shadow 0.28s ease !important;
}

.wp-block-column.uk-panel-space:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.uk-panel-space figure,
.uk-panel-space .wp-block-image {
	margin: 0 0 18px !important;
}

.uk-panel-space img {
	height: 72px !important;
	width: auto !important;
	max-width: 100% !important;
	object-fit: contain !important;
	margin: 0 auto !important;
	display: block !important;
}

.uk-panel-space h2,
.uk-panel-space h2.wp-block-heading {
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	line-height: 1.35 !important;
	color: var(--mg-ink) !important;
	margin: 0 0 14px !important;
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center !important;
}

.uk-panel-space p {
	font-size: 14px !important;
	line-height: 1.65 !important;
	color: var(--mg-muted) !important;
	margin: 0 0 22px !important;
	flex-grow: 1;
	text-align: center !important;
}

/* Primary pill buttons in cards */
.uk-button-primary,
.wp-block-button.uk-button-primary .wp-block-button__link,
a.uk-button-primary {
	display: inline-block !important;
	background: var(--mg-blue) !important;
	background-image: linear-gradient(to bottom, #266a9a, #266a9a) !important;
	color: #ffffff !important;
	border: 1px solid var(--mg-blue-border) !important;
	border-radius: 2px !important;
	padding: 10px 18px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	transition: background 0.25s ease !important;
}

.uk-button-primary:hover,
.wp-block-button.uk-button-primary .wp-block-button__link:hover,
a.uk-button-primary:hover {
	background: var(--mg-blue-dark) !important;
	background-image: none !important;
	color: #fff !important;
}

.wp-block-button.uk-button-primary {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
}

.uk-panel-space .wp-block-buttons {
	margin-top: auto !important;
	justify-content: center !important;
}

/* ==========================================================================
   Logo carousel band
   ========================================================================== */
.mg-logo-band {
	max-width: var(--mg-content);
	margin: 0 auto;
	padding: 20px 24px 40px;
}

.mg-page-card + .mg-logo-band,
.mg-page-card .mg-logo-band {
	padding-left: 0;
	padding-right: 0;
}

#lcs_logo_carousel_wrapper {
	padding: 10px 0 0;
}

#lcs_logo_carousel_slider .lcs_logo_container img {
	max-height: 64px;
	width: auto;
	margin: 0 auto;
	filter: grayscale(15%);
	opacity: 0.9;
	transition: opacity 0.25s ease, filter 0.25s ease;
}

#lcs_logo_carousel_slider .lcs_logo_container:hover img {
	opacity: 1;
	filter: none;
}

/* ==========================================================================
   Site-wide services + contact — modern redesign
   ========================================================================== */

/* Shared band shell */
.mg-band {
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

.mg-band__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 28px;
	box-sizing: border-box;
}

.mg-band__header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 48px;
}

.mg-band__header--compact {
	margin-bottom: 36px;
}

.mg-band__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mg-blue);
}

.mg-band__title {
	margin: 0 0 12px !important;
	font-size: 1.75rem !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em;
	color: var(--mg-ink) !important;
	text-transform: none !important;
}

.mg-band__lead {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--mg-muted);
}

/* —— Services —— */
.mg-band--services {
	padding: 72px 0 56px;
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30, 84, 128, 0.07), transparent 70%),
		linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
}

.mg-svc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	align-items: stretch;
}

.mg-svc-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 28px 20px 24px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -12px rgba(15, 23, 42, 0.1);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.mg-svc-card:hover {
	transform: translateY(-6px);
	border-color: rgba(30, 84, 128, 0.28);
	box-shadow: 0 12px 36px -10px rgba(15, 23, 42, 0.16);
}

.mg-svc-card__media {
	width: 112px;
	height: 112px;
	margin: 0 auto 18px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(145deg, #f0f5f9, #ffffff);
	box-shadow:
		0 0 0 6px rgba(30, 84, 128, 0.08),
		0 8px 20px rgba(15, 23, 42, 0.1);
}

.mg-svc-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.mg-svc-card:hover .mg-svc-card__media img {
	transform: scale(1.06);
}

.mg-svc-card__title {
	margin: 0 0 10px !important;
	padding: 0 4px;
	font-size: 0.92rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--mg-ink) !important;
	min-height: 2.6em;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mg-svc-card__rule {
	display: block;
	width: 48px;
	height: 3px;
	margin: 0 auto 16px;
	border-radius: 2px;
	background: linear-gradient(90deg, transparent, var(--mg-blue), transparent);
}

.mg-svc-card__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	text-align: left;
	flex: 1;
}

.mg-svc-card__list li {
	margin: 0 !important;
	padding: 0 !important;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.mg-svc-card__list li:last-child {
	border-bottom: 0;
}

.mg-svc-card__list a {
	display: block;
	padding: 8px 4px;
	font-size: 13px;
	line-height: 1.4;
	color: #5a6470 !important;
	text-decoration: none !important;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.mg-svc-card__list a:hover {
	color: var(--mg-blue) !important;
	padding-left: 8px;
}

/* —— Contact —— */
.mg-band--contact {
	padding: 64px 0 72px;
	background: #fff;
	border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.mg-contact-panel {
	display: grid;
	grid-template-columns: 1fr 1fr 1.15fr;
	gap: 0;
	background: #f8fafc;
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 16px 48px -24px rgba(15, 23, 42, 0.18);
}

.mg-contact-panel__col {
	padding: 32px 28px;
	box-sizing: border-box;
}

.mg-contact-panel__col--info {
	background: #fff;
	border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.mg-contact-panel__col--certs {
	background: #fff;
	border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.mg-contact-panel__col--map {
	background: linear-gradient(165deg, #f0f6fa 0%, #e8f0f6 100%);
}

.mg-contact-panel__heading {
	margin: 0 0 18px !important;
	font-size: 0.8rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	color: var(--mg-ink) !important;
	position: relative;
	padding-bottom: 12px;
}

.mg-contact-panel__heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 3px;
	border-radius: 2px;
	background: var(--mg-blue);
}

.mg-contact-panel__text {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--mg-muted);
}

.mg-contact-panel__foot {
	margin: 20px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: #8a939e;
}

/* Contact facts list */
.mg-contact-facts {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.mg-contact-facts__item {
	margin: 0 0 16px !important;
	padding: 0 !important;
}

.mg-contact-facts__label {
	display: block;
	margin-bottom: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9aa3ad;
}

.mg-contact-facts__value {
	display: block;
	font-size: 14.5px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--mg-ink) !important;
	text-decoration: none !important;
}

a.mg-contact-facts__value:hover {
	color: var(--mg-blue) !important;
}

.mg-contact-facts__value--lg {
	font-size: 1.35rem !important;
	letter-spacing: -0.01em;
	color: var(--mg-blue) !important;
}

.mg-contact-facts__note {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	line-height: 1.45;
	color: #8a939e;
	font-weight: 400;
}

/* Cert checks + logos */
.mg-cert-checks {
	list-style: none !important;
	margin: 0 0 22px !important;
	padding: 0 !important;
}

.mg-cert-checks li {
	position: relative;
	margin: 0 0 8px !important;
	padding: 0 0 0 22px !important;
	font-size: 14px;
	font-weight: 500;
	color: #3d4650;
	line-height: 1.4;
}

.mg-cert-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: rgba(30, 84, 128, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%231e5480' d='M4.5 8.5L2 6l.7-.7L4.5 7.1 9.3 2.3l.7.7z'/%3E%3C/svg%3E") center/10px no-repeat;
}

.mg-cert-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
	padding-bottom: 4px;
}

.mg-cert-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 14px;
	min-width: 78px;
	min-height: 78px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	text-decoration: none !important;
}

.mg-cert-logo:hover {
	transform: translateY(-3px);
	border-color: rgba(30, 84, 128, 0.35);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.mg-cert-logo img {
	display: block;
	max-height: 56px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.mg-cert-logo--fsc img {
	max-height: 68px;
}

/* Map card */
.mg-map {
	position: relative;
	display: block;
	border-radius: 12px;
	overflow: hidden;
	background: #dce6ee;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
	text-decoration: none !important;
	aspect-ratio: 16 / 11;
}

.mg-map__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease, filter 0.3s ease;
}

.mg-map:hover .mg-map__img {
	transform: scale(1.04);
	filter: brightness(0.92);
}

.mg-map__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	padding: 16px 12px 14px;
	background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.55) 100%);
	opacity: 1;
	transition: background 0.3s ease;
}

.mg-map:hover .mg-map__overlay {
	background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.62) 100%);
}

.mg-map__pin {
	display: none;
}

.mg-map:hover .mg-map__pin {
	display: block;
	position: absolute;
	top: 42%;
	left: 50%;
	margin-left: -9px;
}

.mg-map__pin {
	width: 18px;
	height: 18px;
	border-radius: 50% 50% 50% 0;
	background: var(--mg-blue);
	transform: rotate(-45deg);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	/* positioned on hover via rules above */
}

.mg-map__cta {
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--mg-blue);
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.mg-map__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.mg-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 11px 18px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	border-radius: 6px !important;
	border: 1px solid transparent !important;
	line-height: 1.2 !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease !important;
}

.mg-btn:hover {
	transform: translateY(-1px);
}

.mg-btn--solid {
	background: var(--mg-blue) !important;
	color: #fff !important;
	border-color: var(--mg-blue-border) !important;
}

.mg-btn--solid:hover {
	background: var(--mg-blue-dark) !important;
	color: #fff !important;
}

.mg-btn--ghost {
	background: #fff !important;
	color: var(--mg-ink) !important;
	border-color: rgba(15, 23, 42, 0.12) !important;
}

.mg-btn--ghost:hover {
	border-color: var(--mg-blue) !important;
	color: var(--mg-blue) !important;
}

/* Feature icons in homepage cards */
.mg-feature-icon img,
.uk-panel-space .mg-feature-icon img {
	height: 72px !important;
	width: auto !important;
	max-width: 100% !important;
	object-fit: contain !important;
}

/* ==========================================================================
   Footer polish
   ========================================================================== */
.site-footer {
	background: #0f1114 !important;
	color: #c9cdd2 !important;
}

.site-footer a {
	color: #e8eaed !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.mg-svc-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.mg-contact-panel {
		grid-template-columns: 1fr 1fr;
	}

	.mg-contact-panel__col--map {
		grid-column: 1 / -1;
		border-right: 0;
		border-top: 1px solid rgba(15, 23, 42, 0.06);
	}
}

@media (max-width: 767px) {
	:root {
		--mg-hero-h: 560px;
		--mg-blue-bar: 0px;
		--mg-overlap: 0px;
		--mg-header-h: 70px;
		--mg-nav-h: 44px;
	}

	.ast-container {
		padding-left: 18px;
		padding-right: 18px;
	}

	#primary {
		padding-top: 24px;
		padding-bottom: 32px;
	}

	h1, .entry-title { font-size: 1.6rem; }
	h2 { font-size: 1.35rem; }
	h3 { font-size: 1.15rem; }

	.custom-logo-link img,
	.site-logo-img img,
	.ast-site-identity img.custom-logo {
		max-height: 44px !important;
	}

	.tm-fullscreen .blue-block,
	.tm-fullscreen::after {
		display: none !important;
	}

	.tm-fullscreen .wp-block-cover__inner-container {
		padding: 48px 20px 48px !important;
	}

	.tm-fullscreen .tm-teaser h1,
	.tm-fullscreen h1.wp-block-heading {
		font-size: 22px !important;
	}

	.tm-fullscreen .tm-teaser-subtitle-small {
		font-size: 15px !important;
	}

	.tm-fullscreen .fullscreen-btn {
		flex-direction: column !important;
		width: 100% !important;
	}

	.tm-fullscreen .wp-block-button.button {
		width: min(280px, 100%) !important;
	}

	.mg-page-card {
		margin-top: 0;
		padding: 36px 18px 24px;
		box-shadow: none;
	}

	.tm-heading-italic,
	span.tm-heading-italic {
		font-size: 18px !important;
	}

	.tm-heading-underline {
		font-size: 20px !important;
	}

	.mg-band--services {
		padding: 48px 0 36px;
	}

	.mg-band--contact {
		padding: 40px 0 48px;
	}

	.mg-band__inner {
		padding: 0 18px;
	}

	.mg-band__title {
		font-size: 1.4rem !important;
	}

	.mg-svc-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mg-svc-card {
		padding: 22px 18px;
	}

	.mg-contact-panel {
		grid-template-columns: 1fr;
		border-radius: 14px;
	}

	.mg-contact-panel__col--info,
	.mg-contact-panel__col--certs {
		border-right: 0;
		border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	}

	.mg-contact-panel__col {
		padding: 24px 20px;
	}

	.mg-map__actions {
		flex-direction: column;
	}

	.mg-map__actions .mg-btn {
		width: 100%;
	}

	.header-ftp-upload img {
		display: none !important;
	}

	.site-primary-header-wrap {
		padding: 10px 16px !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	:root {
		--mg-hero-h: 720px;
		--mg-overlap: -160px;
		--mg-blue-bar: 140px;
	}

	.mg-page-card {
		padding: 44px 28px 32px;
		margin-left: 20px;
		margin-right: 20px;
	}
}

/* ==========================================================================
   Service pages — logo carousel band + contact sidebar
   ========================================================================== */

/* Full-width logo band (inner pages) — fix zero-width Owl measure */
.mg-page-logo-band {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 28px 0 18px;
	box-sizing: border-box;
	background: #fff;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.mg-page-logo-band__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 28px 4px;
	box-sizing: border-box;
	width: 100%;
}

.mg-page-logo-band #lcs_logo_carousel_wrapper {
	position: relative;
	width: 100% !important;
	max-width: 100% !important;
	padding: 12px 36px 8px !important;
	box-sizing: border-box;
	min-height: 90px;
}

.mg-page-logo-band #lcs_logo_carousel_slider,
.mg-page-logo-band .owl-carousel {
	width: 100% !important;
	display: block !important;
}

.mg-page-logo-band .owl-stage-outer {
	width: 100% !important;
	overflow: hidden;
}

.mg-page-logo-band .lcs_logo_container {
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	padding: 8px;
	margin: 0 !important;
}

.mg-page-logo-band .lcs_logo_container img,
.mg-page-logo-band #lcs_logo_carousel_slider .lcs_logo_container img {
	max-height: 56px !important;
	max-width: 140px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
	margin: 0 auto !important;
	display: block !important;
	opacity: 0.9;
	filter: grayscale(10%);
	transition: opacity 0.25s ease, filter 0.25s ease;
}

.mg-page-logo-band .lcs_logo_container:hover img {
	opacity: 1;
	filter: none;
}

/* Nav arrows inside band (plugin defaults place them outside / off-screen) */
.mg-page-logo-band #lcs_logo_carousel_wrapper .owl-nav {
	position: static !important;
	margin: 0 !important;
}

.mg-page-logo-band #lcs_logo_carousel_wrapper .owl-nav button,
.mg-page-logo-band #lcs_logo_carousel_wrapper .owl-nav div,
.mg-page-logo-band .owl-prev,
.mg-page-logo-band .owl-next {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 32px !important;
	height: 32px !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 30px !important;
	font-size: 22px !important;
	color: #5a6470 !important;
	background: #fff !important;
	border: 1px solid #d9e1e8 !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
	opacity: 1 !important;
	z-index: 5 !important;
}

.mg-page-logo-band .owl-prev,
.mg-page-logo-band #lcs_logo_carousel_wrapper .owl-nav .owl-prev {
	left: 0 !important;
	right: auto !important;
}

.mg-page-logo-band .owl-next,
.mg-page-logo-band #lcs_logo_carousel_wrapper .owl-nav .owl-next {
	right: 0 !important;
	left: auto !important;
}

/* Content + sidebar proportion closer to live 3/5 + 2/5 */
.mg-has-service-sidebar.ast-right-sidebar #primary {
	width: 62% !important;
}

.mg-has-service-sidebar.ast-right-sidebar #secondary {
	width: 34% !important;
	padding-left: 0 !important;
}

@media (max-width: 921px) {
	.mg-has-service-sidebar.ast-right-sidebar #primary,
	.mg-has-service-sidebar.ast-right-sidebar #secondary {
		width: 100% !important;
	}
}

/* ==========================================================================
   Professional CF7 form design (CSS only — fields unchanged)
   Sidebar + main contact + newsletter
   ========================================================================== */

/* —— Sidebar card shell —— */
.mg-sidebar-contact {
	margin: 0 0 24px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.mg-sidebar-contact__inner {
	background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 18px;
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 18px 48px -20px rgba(15, 23, 42, 0.22);
	padding: 0;
	position: sticky;
	top: calc(var(--mg-header-h) + var(--mg-nav-h) + 20px);
	overflow: hidden;
}

.mg-sidebar-contact__header {
	padding: 24px 24px 16px;
	background:
		radial-gradient(ellipse 90% 80% at 0% 0%, rgba(30, 84, 128, 0.12), transparent 55%),
		linear-gradient(180deg, #f3f8fc 0%, #ffffff 100%);
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.mg-sidebar-contact__eyebrow {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
	background: var(--mg-blue);
	border-radius: 999px;
}

.mg-sidebar-contact__title {
	margin: 0 0 8px !important;
	font-size: 1.4rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	color: var(--mg-ink) !important;
	text-transform: none !important;
	letter-spacing: -0.02em !important;
}

.mg-sidebar-contact__lead {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--mg-muted);
}

.mg-sidebar-contact__form {
	padding: 20px 24px 8px;
}

.mg-sidebar-contact__form .wpcf7 {
	margin: 0;
}

.mg-sidebar-contact__form .wpcf7-form > p,
.mg-sidebar-contact__form .wpcf7-form p {
	margin: 0 0 14px !important;
}

.mg-sidebar-contact__form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

/* Shared professional field look */
.mg-sidebar-contact__form input[type="text"],
.mg-sidebar-contact__form input[type="email"],
.mg-sidebar-contact__form input[type="tel"],
.mg-sidebar-contact__form input[type="url"],
.mg-sidebar-contact__form input[type="number"],
.mg-sidebar-contact__form select,
.mg-sidebar-contact__form textarea,
.mg-sidebar-contact__form .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	min-height: 46px !important;
	padding: 12px 14px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	color: var(--mg-ink) !important;
	background: #fff !important;
	border: 1.5px solid #d5dee7 !important;
	border-radius: 10px !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.mg-sidebar-contact__form select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4.3L6 4.9 10.6.3 12 1.7 6 7.7 0 1.7z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	padding-right: 36px !important;
	cursor: pointer !important;
}

.mg-sidebar-contact__form textarea {
	min-height: 110px !important;
	resize: vertical !important;
	padding-top: 12px !important;
}

.mg-sidebar-contact__form input::placeholder,
.mg-sidebar-contact__form textarea::placeholder {
	color: #9aa6b2 !important;
	opacity: 1 !important;
	font-weight: 400 !important;
}

.mg-sidebar-contact__form input:hover,
.mg-sidebar-contact__form select:hover,
.mg-sidebar-contact__form textarea:hover {
	border-color: #b7c5d2 !important;
}

.mg-sidebar-contact__form input:focus,
.mg-sidebar-contact__form select:focus,
.mg-sidebar-contact__form textarea:focus {
	outline: none !important;
	border-color: var(--mg-blue) !important;
	box-shadow: 0 0 0 4px rgba(30, 84, 128, 0.18) !important;
	background: #fff !important;
}

/* Labels / helper lines between fields */
.mg-sidebar-contact__form .wpcf7-form > p:not(:has(input)):not(:has(textarea)):not(:has(select)):not(:has(.wpcf7-submit)) {
	margin: 4px 0 8px !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	color: #5a6570 !important;
}

.mg-sidebar-contact__form input[type="submit"],
.mg-sidebar-contact__form .wpcf7-submit {
	width: 100% !important;
	min-height: 48px !important;
	margin-top: 6px !important;
	padding: 14px 20px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	color: #fff !important;
	background: linear-gradient(180deg, #2d6f99 0%, var(--mg-blue) 100%) !important;
	border: 1px solid var(--mg-blue-border) !important;
	border-radius: 10px !important;
	cursor: pointer !important;
	box-shadow: 0 6px 16px rgba(30, 84, 128, 0.35) !important;
	transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.mg-sidebar-contact__form input[type="submit"]:hover,
.mg-sidebar-contact__form .wpcf7-submit:hover {
	background: linear-gradient(180deg, var(--mg-blue) 0%, var(--mg-blue-dark) 100%) !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(21, 61, 97, 0.4) !important;
}

.mg-sidebar-contact__form input[type="submit"]:active,
.mg-sidebar-contact__form .wpcf7-submit:active {
	transform: translateY(0);
}

.mg-sidebar-contact__form .wpcf7-not-valid-tip {
	font-size: 12px !important;
	margin-top: 6px !important;
	color: #c0392b !important;
}

.mg-sidebar-contact__form .wpcf7-response-output {
	margin: 12px 0 0 !important;
	padding: 10px 12px !important;
	border-radius: 8px !important;
	font-size: 13px !important;
}

.mg-sidebar-contact__phone {
	margin: 0;
	padding: 14px 24px 18px;
	border-top: 1px solid rgba(15, 23, 42, 0.06);
	font-size: 13px;
	color: var(--mg-muted);
	text-align: center;
	background: #fafbfc;
}

.mg-sidebar-contact__phone a {
	display: inline-block;
	margin-left: 4px;
	font-weight: 700;
	color: var(--mg-blue) !important;
	text-decoration: none !important;
}

/* —— Main contact page form (content area) —— */
.page-id-797 .entry-content .wpcf7,
.page-slug-contact-us .entry-content .wpcf7,
.contact-us .entry-content .wpcf7 {
	max-width: 640px;
	margin: 24px 0 32px;
	padding: 28px 28px 24px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 16px;
	box-shadow: 0 12px 36px -16px rgba(15, 23, 42, 0.18);
}

.page-id-797 .entry-content .wpcf7 input[type="text"],
.page-id-797 .entry-content .wpcf7 input[type="email"],
.page-id-797 .entry-content .wpcf7 input[type="tel"],
.page-id-797 .entry-content .wpcf7 select,
.page-id-797 .entry-content .wpcf7 textarea,
.page-id-797 .entry-content .wpcf7 .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]) {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	min-height: 48px !important;
	padding: 12px 16px !important;
	font-size: 15px !important;
	color: var(--mg-ink) !important;
	background: #f8fafc !important;
	border: 1.5px solid #d5dee7 !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.page-id-797 .entry-content .wpcf7 textarea {
	min-height: 130px !important;
}

.page-id-797 .entry-content .wpcf7 input:focus,
.page-id-797 .entry-content .wpcf7 select:focus,
.page-id-797 .entry-content .wpcf7 textarea:focus {
	outline: none !important;
	border-color: var(--mg-blue) !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(30, 84, 128, 0.16) !important;
}

.page-id-797 .entry-content .wpcf7 input[type="submit"],
.page-id-797 .entry-content .wpcf7 .wpcf7-submit {
	min-height: 50px !important;
	padding: 14px 28px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	color: #fff !important;
	background: linear-gradient(180deg, #2d6f99 0%, var(--mg-blue) 100%) !important;
	border: 1px solid var(--mg-blue-border) !important;
	border-radius: 10px !important;
	cursor: pointer !important;
	box-shadow: 0 6px 16px rgba(30, 84, 128, 0.3) !important;
}

.page-id-797 .entry-content .wpcf7 input[type="submit"]:hover,
.page-id-797 .entry-content .wpcf7 .wpcf7-submit:hover {
	background: var(--mg-blue-dark) !important;
}

/* Generic CF7 polish on service page content (if any) */
.mg-has-service-sidebar #primary .wpcf7 input[type="text"],
.mg-has-service-sidebar #primary .wpcf7 input[type="email"],
.mg-has-service-sidebar #primary .wpcf7 textarea {
	border-radius: 10px;
}

/* Cert logos — clean pair, no stretch */
.mg-cert-logo--g7 img,
.mg-cert-logo--fsc img {
	max-height: 88px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain !important;
}

.mg-cert-logo--g7 {
	padding: 10px 16px !important;
}

/* Newsletter band */
.mg-band--newsletter {
	padding: 48px 0 56px;
	background: linear-gradient(135deg, #1a2330 0%, #243447 55%, #2c4a63 100%);
	color: #e8eef4;
}

.mg-newsletter {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 32px;
	align-items: center;
}

.mg-band--newsletter .mg-band__eyebrow {
	color: #6dadd4;
}

.mg-newsletter__title {
	margin: 0 0 10px !important;
	font-size: 1.55rem !important;
	font-weight: 700 !important;
	color: #fff !important;
	line-height: 1.25 !important;
}

.mg-newsletter__lead {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.55;
	color: #b7c5d3;
}

.mg-newsletter__form .wpcf7-form p {
	margin: 0 0 10px;
}

.mg-newsletter__form input[type="text"],
.mg-newsletter__form input[type="email"] {
	width: 100% !important;
	box-sizing: border-box !important;
	padding: 12px 14px !important;
	border-radius: 8px !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	background: rgba(255, 255, 255, 0.08) !important;
	color: #fff !important;
}

.mg-newsletter__form input[type="text"]::placeholder,
.mg-newsletter__form input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.mg-newsletter__form input[type="submit"],
.mg-newsletter__form .wpcf7-submit {
	width: 100% !important;
	padding: 13px 18px !important;
	border-radius: 8px !important;
	border: 0 !important;
	background: var(--mg-blue) !important;
	color: #fff !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	cursor: pointer !important;
}

.mg-newsletter__form label {
	color: #c5d2de;
	font-size: 13px;
}

@media (max-width: 921px) {
	.mg-sidebar-contact__inner {
		position: static;
		margin-top: 28px;
	}

	.mg-newsletter {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.mg-page-logo-band {
		padding: 18px 16px 4px;
	}
}


/* ==========================================================================
   Premium Homepage V2 — totally new layout + contact modal
   ========================================================================== */

/* —— Shared section primitives —— */
.mg-premium-hp .mgv2-eyebrow {
	margin: 0 0 12px !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	color: var(--mg-blue) !important;
}

.mg-premium-hp .mgv2-eyebrow--light {
	color: #7eb6d9 !important;
}

.mg-premium-hp .mgv2-section-head {
	text-align: center;
	margin: 0 auto 48px !important;
	max-width: 640px;
}

.mg-premium-hp .mgv2-section-title {
	margin: 0 !important;
	font-size: clamp(1.75rem, 3vw, 2.35rem) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em !important;
	color: var(--mg-ink) !important;
	text-transform: none !important;
}

.mg-premium-hp .mgv2-section-title--light {
	color: #fff !important;
}

/* —— HERO: full-viewport video with baked-in text; CTAs bottom-left —— */
.mg-premium-hp .mgv2-hero.wp-block-cover {
	position: relative !important;
	display: flex !important;
	align-items: flex-end !important;
	justify-content: flex-start !important;
	width: 100vw !important;
	max-width: 100vw !important;
	min-height: 100vh !important;
	min-height: 100dvh !important;
	height: auto !important;
	margin: 0 !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	background: #0a0e14 !important;
	isolation: isolate;
}

.mg-premium-hp .mgv2-hero .wp-block-cover__video-background {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 100% !important;
	min-height: 100% !important;
	object-fit: cover !important;
	object-position: center center !important;
	z-index: 1 !important;
}

/* Video already tinted — kill HTML dim overlay completely */
.mg-premium-hp .mgv2-hero .wp-block-cover__background,
.mg-premium-hp .mgv2-hero .wp-block-cover__gradient-background,
.mg-premium-hp .mgv2-hero .has-background-dim {
	background: transparent !important;
	background-color: transparent !important;
	opacity: 0 !important;
	pointer-events: none !important;
	z-index: 2 !important;
}

.mg-premium-hp .mgv2-hero .wp-block-cover__inner-container {
	position: relative !important;
	z-index: 3 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-end !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 100vh !important;
	min-height: 100dvh !important;
	margin: 0 !important;
	padding: 0 32px 10vh !important;
	box-sizing: border-box !important;
	text-align: left !important;
}

.mg-premium-hp .mgv2-hero__inner,
.mg-premium-hp .mgv2-hero__inner--cta-only {
	width: 100% !important;
	max-width: 560px !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	text-align: left !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: flex-end !important;
}

/* Compact hero copy — sits above CTAs, left-aligned, won’t dominate video text */
.mg-premium-hp .mgv2-hero__eyebrow {
	display: inline-flex !important;
	align-items: center !important;
	margin: 0 0 12px !important;
	padding: 5px 12px !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.16em !important;
	text-transform: uppercase !important;
	color: #b7d4ea !important;
	background: rgba(15, 23, 32, 0.45) !important;
	border: 1px solid rgba(158, 197, 224, 0.35) !important;
	border-radius: 999px !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	text-shadow: none !important;
}

.mg-premium-hp .mgv2-hero__title {
	display: block !important;
	margin: 0 0 12px !important;
	max-width: 18ch !important;
	color: #fff !important;
	font-size: clamp(1.45rem, 2.4vw, 1.9rem) !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.02em !important;
	text-transform: none !important;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55) !important;
}

.mg-premium-hp .mgv2-hero__sub {
	display: block !important;
	margin: 0 0 22px !important;
	max-width: 36em !important;
	color: rgba(255, 255, 255, 0.92) !important;
	font-size: clamp(0.9rem, 1.3vw, 1rem) !important;
	line-height: 1.55 !important;
	font-weight: 400 !important;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5) !important;
}

.mg-premium-hp .mgv2-hero__actions {
	display: flex !important;
	flex-wrap: wrap !important;
	justify-content: flex-start !important;
	align-items: center !important;
	gap: 12px !important;
	margin: 0 !important;
	width: auto !important;
	max-width: 100% !important;
}

.mg-premium-hp .mgv2-btn .wp-block-button__link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 52px !important;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

/* Primary CTA — site blue #4f8eb7 */
.mg-premium-hp .mgv2-btn--solid .wp-block-button__link {
	background: #4f8eb7 !important;
	color: #ffffff !important;
	border: 2px solid #4f8eb7 !important;
	border-radius: 999px !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28) !important;
	font-weight: 700 !important;
}

.mg-premium-hp .mgv2-btn--solid .wp-block-button__link:hover {
	background: #3d7aa0 !important;
	border-color: #3d7aa0 !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35) !important;
}

/* Secondary CTA — white outline */
.mg-premium-hp .mgv2-btn--ghost .wp-block-button__link {
	background: transparent !important;
	color: #fff !important;
	border: 2px solid rgba(255, 255, 255, 0.85) !important;
	border-radius: 999px !important;
}

.mg-premium-hp .mgv2-btn--ghost .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.14) !important;
	border-color: #fff !important;
	color: #fff !important;
	transform: translateY(-2px) !important;
}

.mg-premium-hp .mgv2-btn--link .wp-block-button__link {
	background: transparent !important;
	color: var(--mg-blue) !important;
	border: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	letter-spacing: 0.02em !important;
	box-shadow: none !important;
}

.mg-premium-hp .mgv2-btn--link .wp-block-button__link:hover {
	color: var(--mg-blue-dark) !important;
	transform: translateX(4px) !important;
}

/* —— Trust bar —— */
.mg-premium-hp .mgv2-trust {
	background: #0f1720 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.mg-premium-hp .mgv2-trust__grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 0 !important;
	max-width: 1180px !important;
	margin: 0 auto !important;
	padding: 0 16px !important;
}

.mg-premium-hp .mgv2-trust__grid > .wp-block-column {
	padding: 36px 24px !important;
	text-align: center !important;
	border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.mg-premium-hp .mgv2-trust__grid > .wp-block-column:last-child {
	border-right: 0 !important;
}

.mg-premium-hp .mgv2-trust__num {
	margin: 0 0 6px !important;
	font-family: var(--mg-display) !important;
	font-size: clamp(1.6rem, 2.5vw, 2rem) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	color: #fff !important;
	line-height: 1.1 !important;
}

.mg-premium-hp .mgv2-trust__label {
	margin: 0 !important;
	font-size: 0.85rem !important;
	line-height: 1.4 !important;
	color: rgba(255, 255, 255, 0.55) !important;
}

/* —— Story split —— */
.mg-premium-hp .mgv2-story {
	background: #fff !important;
	padding: 96px 32px !important;
	margin: 0 !important;
}

.mg-premium-hp .mgv2-story__grid {
	display: flex !important;
	gap: 64px !important;
	align-items: flex-start !important;
	max-width: 1180px !important;
	margin: 0 auto !important;
}

.mg-premium-hp .mgv2-story__title {
	margin: 0 0 24px !important;
	font-size: clamp(1.85rem, 3vw, 2.5rem) !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.025em !important;
	color: var(--mg-ink) !important;
	text-transform: none !important;
}

.mg-premium-hp .mgv2-story__text {
	margin: 0 0 1.25em !important;
	font-size: 1.125rem !important;
	line-height: 1.75 !important;
	color: #4a5560 !important;
}

.mg-premium-hp .mgv2-story__text:last-child {
	margin-bottom: 0 !important;
	font-style: italic;
	color: var(--mg-muted) !important;
}

/* —— Alternating feature rows —— */
.mg-premium-hp .mgv2-features {
	background: var(--mg-bg) !important;
	padding: 88px 32px !important;
	margin: 0 !important;
}

.mg-premium-hp .mgv2-feature-row {
	display: flex !important;
	align-items: center !important;
	gap: 56px !important;
	max-width: 1100px !important;
	margin: 0 auto 28px !important;
	padding: 40px 44px !important;
	background: #fff !important;
	border: 1px solid rgba(15, 23, 42, 0.06) !important;
	border-radius: 24px !important;
	box-shadow: 0 16px 48px -28px rgba(15, 23, 42, 0.18) !important;
	box-sizing: border-box !important;
}

.mg-premium-hp .mgv2-feature-row--reverse {
	flex-direction: row-reverse !important;
}

.mg-premium-hp .mgv2-feature-row:last-child {
	margin-bottom: 0 !important;
}

.mg-premium-hp .mgv2-feature-row__media {
	flex: 0 0 180px !important;
	width: 180px !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.mg-premium-hp .mgv2-feature-row__media img {
	width: 140px !important;
	height: 140px !important;
	object-fit: contain !important;
	padding: 28px !important;
	background: linear-gradient(145deg, #f0f5f9, #e8eff6) !important;
	border-radius: 28px !important;
	box-shadow: 0 0 0 1px rgba(30, 84, 128, 0.08), 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

.mg-premium-hp .mgv2-feature-row__content {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	max-width: none !important;
}

.mg-premium-hp .mgv2-feature-row__title {
	margin: 0 0 12px !important;
	font-size: 1.35rem !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.015em !important;
	color: var(--mg-ink) !important;
	text-transform: none !important;
}

.mg-premium-hp .mgv2-feature-row__text {
	margin: 0 0 16px !important;
	font-size: 1.02rem !important;
	line-height: 1.7 !important;
	color: var(--mg-muted) !important;
}

.mg-premium-hp .mgv2-feature-row__link {
	margin: 0 !important;
}

.mg-premium-hp .mgv2-feature-row__link a {
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	color: var(--mg-blue) !important;
	text-decoration: none !important;
	letter-spacing: 0.01em;
	transition: color 0.2s ease, transform 0.2s ease;
	display: inline-block;
}

.mg-premium-hp .mgv2-feature-row__link a:hover {
	color: var(--mg-blue-dark) !important;
	transform: translateX(4px);
}

/* —— Connect band (4 CTA cards) —— */
.mg-premium-hp .mgv2-connect {
	background:
		radial-gradient(ellipse 80% 70% at 50% 0%, rgba(45, 111, 153, 0.35), transparent 60%),
		linear-gradient(165deg, #0f1720 0%, #152536 50%, #1a3348 100%) !important;
	padding: 88px 32px !important;
	margin: 0 !important;
	color: #fff !important;
}

.mg-premium-hp .mgv2-connect__lead {
	margin: 12px 0 0 !important;
	color: rgba(255, 255, 255, 0.65) !important;
	font-size: 1.05rem !important;
	line-height: 1.55 !important;
}

.mg-premium-hp .mgv2-connect__grid {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 18px !important;
	max-width: 1180px !important;
	margin: 0 auto !important;
	align-items: stretch !important;
}

.mg-premium-hp .mgv2-connect__card {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
	padding: 28px 18px 24px !important;
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 18px !important;
	backdrop-filter: blur(10px);
	transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease !important;
}

.mg-premium-hp .mgv2-connect__card:hover {
	transform: translateY(-4px) !important;
	background: rgba(255, 255, 255, 0.09) !important;
	border-color: rgba(255, 255, 255, 0.22) !important;
}

.mg-premium-hp .mgv2-connect__card--accent {
	background: linear-gradient(160deg, rgba(30, 84, 128, 0.55), rgba(30, 84, 128, 0.25)) !important;
	border-color: rgba(126, 182, 217, 0.35) !important;
}

.mg-premium-hp .mgv2-connect__card-title {
	margin: 0 0 8px !important;
	font-size: 1.1rem !important;
	font-weight: 700 !important;
	color: #fff !important;
	text-transform: none !important;
}

.mg-premium-hp .mgv2-connect__card-text {
	margin: 0 0 18px !important;
	font-size: 0.9rem !important;
	line-height: 1.45 !important;
	color: rgba(255, 255, 255, 0.6) !important;
	flex-grow: 1;
}

.mg-premium-hp .mgv2-connect__btn .wp-block-button__link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 42px !important;
	padding: 10px 18px !important;
	font-size: 0.8rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	color: #fff !important;
	background: transparent !important;
	border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
	border-radius: 999px !important;
	text-decoration: none !important;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.mg-premium-hp .mgv2-connect__btn .wp-block-button__link:hover {
	background: #fff !important;
	color: var(--mg-blue) !important;
	border-color: #fff !important;
}

.mg-premium-hp .mgv2-connect__btn--accent .wp-block-button__link {
	background: #fff !important;
	color: var(--mg-blue) !important;
	border-color: #fff !important;
}

.mg-premium-hp .mgv2-connect__btn--accent .wp-block-button__link:hover {
	background: #e8f2f9 !important;
}

/* —— Logos —— */
.mg-premium-hp .mgv2-logos {
	background: #fff !important;
	padding: 56px 28px 64px !important;
	margin: 0 !important;
	text-align: center !important;
}

.mg-premium-hp .mgv2-logos .mgv2-eyebrow {
	margin-bottom: 24px !important;
}

/* ==========================================================================
   Contact Modal + FAB
   ========================================================================== */

html.mg-cmodal-open,
body.mg-cmodal-open {
	overflow: hidden !important;
}

.mg-cmodal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.mg-cmodal[hidden],
.mg-cmodal[aria-hidden="true"]:not(.is-open) {
	display: none !important;
}

.mg-cmodal.is-open,
.mg-cmodal[aria-hidden="false"] {
	display: flex !important;
}

.mg-cmodal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 18, 0.62);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	cursor: pointer;
}

.mg-cmodal__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: min(92vh, 760px);
	overflow: auto;
	background: #fff;
	border-radius: 22px;
	box-shadow:
		0 0 0 1px rgba(15, 23, 42, 0.06),
		0 32px 80px -20px rgba(0, 0, 0, 0.45);
	padding: 28px 28px 32px;
	box-sizing: border-box;
	animation: mgCmodalIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes mgCmodalIn {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.mg-cmodal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #f3f5f7;
	color: #3d4650;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.mg-cmodal__close:hover {
	background: #e6ebf0;
	color: #111;
}

.mg-cmodal__back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 12px;
	padding: 6px 0;
	border: 0;
	background: transparent;
	color: var(--mg-blue);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.mg-cmodal__back:hover {
	color: var(--mg-blue-dark);
}

.mg-cmodal__header {
	margin: 0 0 22px;
	padding-right: 36px;
}

.mg-cmodal__eyebrow {
	margin: 0 0 8px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mg-blue);
}

.mg-cmodal__title {
	margin: 0 0 8px !important;
	font-size: 1.45rem !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.02em !important;
	color: var(--mg-ink) !important;
	text-transform: none !important;
}

.mg-cmodal__lead {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--mg-muted);
}

.mg-cmodal__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mg-cmodal__option {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px 16px;
	text-align: left;
	background: #f7f9fb;
	border: 1.5px solid rgba(15, 23, 42, 0.07);
	border-radius: 14px;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	font: inherit;
	color: inherit;
}

.mg-cmodal__option:hover,
.mg-cmodal__option:focus-visible {
	background: #fff;
	border-color: rgba(30, 84, 128, 0.35);
	box-shadow: 0 8px 24px -12px rgba(30, 84, 128, 0.35);
	transform: translateY(-1px);
	outline: none;
}

.mg-cmodal__option--accent {
	background: linear-gradient(135deg, #eef5fb 0%, #f7fafc 100%);
	border-color: rgba(30, 84, 128, 0.2);
}

.mg-cmodal__option-icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: #fff;
	color: var(--mg-blue);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.mg-cmodal__option-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mg-cmodal__option-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--mg-ink);
	line-height: 1.3;
}

.mg-cmodal__option-desc {
	font-size: 0.85rem;
	color: var(--mg-muted);
	line-height: 1.35;
}

.mg-cmodal__option-arrow {
	flex: 0 0 auto;
	color: #9aa6b2;
	font-size: 1.1rem;
	transition: transform 0.2s ease, color 0.2s ease;
}

.mg-cmodal__option:hover .mg-cmodal__option-arrow {
	color: var(--mg-blue);
	transform: translateX(3px);
}

/* Call step */
.mg-cmodal__call-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mg-cmodal__call-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 20px;
	background: linear-gradient(135deg, #f3f8fc, #fff);
	border: 1.5px solid rgba(30, 84, 128, 0.15);
	border-radius: 14px;
	text-decoration: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.mg-cmodal__call-card:hover {
	border-color: var(--mg-blue);
	box-shadow: 0 10px 28px -14px rgba(30, 84, 128, 0.4);
	transform: translateY(-2px);
}

.mg-cmodal__call-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a939e;
}

.mg-cmodal__call-num {
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--mg-blue);
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.mg-cmodal__call-action {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--mg-muted);
}

/* Visit step */
.mg-cmodal__visit-addr {
	margin: 0 0 10px;
	font-size: 1.15rem;
	line-height: 1.45;
	color: var(--mg-ink);
}

.mg-cmodal__visit-note {
	margin: 0 0 22px;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--mg-muted);
}

.mg-cmodal__visit-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mg-cmodal__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 20px !important;
	font-size: 0.85rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	border-radius: 10px !important;
	border: 1.5px solid transparent !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease !important;
}

.mg-cmodal__btn--solid {
	background: var(--mg-blue) !important;
	color: #fff !important;
	border-color: var(--mg-blue-border) !important;
	box-shadow: 0 6px 16px rgba(30, 84, 128, 0.3);
}

.mg-cmodal__btn--solid:hover {
	background: var(--mg-blue-dark) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.mg-cmodal__btn--ghost {
	background: #fff !important;
	color: var(--mg-ink) !important;
	border-color: rgba(15, 23, 42, 0.14) !important;
}

.mg-cmodal__btn--ghost:hover {
	border-color: var(--mg-blue) !important;
	color: var(--mg-blue) !important;
}

/* Form step — CF7 inside modal */
.mg-cmodal__form .wpcf7 {
	margin: 0;
}

.mg-cmodal__form .wpcf7-form > p,
.mg-cmodal__form .wpcf7-form p {
	margin: 0 0 12px !important;
}

.mg-cmodal__form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.mg-cmodal__form input[type="text"],
.mg-cmodal__form input[type="email"],
.mg-cmodal__form input[type="tel"],
.mg-cmodal__form input[type="url"],
.mg-cmodal__form select,
.mg-cmodal__form textarea,
.mg-cmodal__form .wpcf7-form-control:not(.wpcf7-submit):not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	min-height: 48px !important;
	padding: 12px 14px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: var(--mg-ink) !important;
	background: #f7f9fb !important;
	border: 1.5px solid #d5dee7 !important;
	border-radius: 10px !important;
	box-shadow: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.mg-cmodal__form textarea {
	min-height: 110px !important;
	resize: vertical !important;
}

.mg-cmodal__form input:focus,
.mg-cmodal__form select:focus,
.mg-cmodal__form textarea:focus {
	outline: none !important;
	border-color: var(--mg-blue) !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(30, 84, 128, 0.16) !important;
}

.mg-cmodal__form input[type="submit"],
.mg-cmodal__form .wpcf7-submit {
	width: 100% !important;
	min-height: 50px !important;
	margin-top: 4px !important;
	padding: 14px 20px !important;
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: #fff !important;
	background: linear-gradient(180deg, #2d6f99 0%, var(--mg-blue) 100%) !important;
	border: 1px solid var(--mg-blue-border) !important;
	border-radius: 12px !important;
	cursor: pointer !important;
	box-shadow: 0 8px 20px rgba(30, 84, 128, 0.32) !important;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.mg-cmodal__form input[type="submit"]:hover,
.mg-cmodal__form .wpcf7-submit:hover {
	background: var(--mg-blue-dark) !important;
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(21, 61, 97, 0.4) !important;
}

.mg-cmodal__form .wpcf7-not-valid-tip {
	font-size: 12px !important;
	margin-top: 6px !important;
	color: #c0392b !important;
}

.mg-cmodal__form .wpcf7-response-output {
	margin: 12px 0 0 !important;
	padding: 10px 12px !important;
	border-radius: 8px !important;
	font-size: 13px !important;
}

.mg-cmodal__form .wpcf7-form > p:not(:has(input)):not(:has(textarea)):not(:has(select)):not(:has(.wpcf7-submit)) {
	margin: 4px 0 6px !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	color: #5a6570 !important;
}

/* Floating contact button */
.mg-cmodal-fab {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99990;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px 14px 16px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #2d6f99 0%, var(--mg-blue) 100%);
	color: #fff;
	font-family: var(--mg-display);
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	box-shadow:
		0 4px 6px rgba(15, 23, 42, 0.08),
		0 14px 36px rgba(30, 84, 128, 0.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mg-cmodal-fab:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow:
		0 6px 10px rgba(15, 23, 42, 0.1),
		0 18px 44px rgba(30, 84, 128, 0.5);
}

.mg-cmodal-fab__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
}

.mg-cmodal-fab__label {
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
}

/* Hide FAB while modal open */
body.mg-cmodal-open .mg-cmodal-fab {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.9);
}

/* ==========================================================================
   Premium HP V2 — responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.mg-premium-hp .mgv2-connect__grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.mg-premium-hp .mgv2-feature-row {
		gap: 32px !important;
		padding: 32px 28px !important;
	}

	.mg-premium-hp .mgv2-feature-row__media {
		flex-basis: 140px !important;
		width: 140px !important;
	}

	.mg-premium-hp .mgv2-feature-row__media img {
		width: 110px !important;
		height: 110px !important;
		padding: 20px !important;
	}
}

@media (max-width: 767px) {
	.mg-premium-hp .mgv2-hero .wp-block-cover__inner-container {
		padding: 0 16px 8vh !important;
		min-height: 100vh !important;
		min-height: 100dvh !important;
		align-items: flex-start !important;
	}

	.mg-premium-hp .mgv2-hero__inner,
	.mg-premium-hp .mgv2-hero__inner--cta-only {
		padding: 0 !important;
		align-items: flex-start !important;
	}

	.mg-premium-hp .mgv2-hero__actions {
		flex-direction: column !important;
		align-items: stretch !important;
		justify-content: flex-start !important;
		max-width: 280px !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.mg-premium-hp .mgv2-btn {
		width: 100% !important;
	}

	.mg-premium-hp .mgv2-btn .wp-block-button__link {
		width: 100% !important;
	}

	.mg-premium-hp .mgv2-trust__grid {
		grid-template-columns: 1fr 1fr !important;
		padding: 8px 12px 16px !important;
	}

	.mg-premium-hp .mgv2-trust__grid > .wp-block-column {
		border-right: 0 !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
		padding: 22px 12px !important;
	}

	.mg-premium-hp .mgv2-story {
		padding: 56px 20px !important;
	}

	.mg-premium-hp .mgv2-story__grid {
		flex-direction: column !important;
		gap: 24px !important;
	}

	.mg-premium-hp .mgv2-features {
		padding: 48px 16px !important;
	}

	.mg-premium-hp .mgv2-feature-row,
	.mg-premium-hp .mgv2-feature-row--reverse {
		flex-direction: column !important;
		text-align: center !important;
		gap: 20px !important;
		padding: 28px 22px !important;
		border-radius: 18px !important;
	}

	.mg-premium-hp .mgv2-feature-row__media {
		flex-basis: auto !important;
		width: auto !important;
	}

	.mg-premium-hp .mgv2-connect {
		padding: 56px 16px !important;
	}

	.mg-premium-hp .mgv2-connect__grid {
		grid-template-columns: 1fr !important;
	}

	.mg-premium-hp .mgv2-logos {
		padding: 40px 16px 48px !important;
	}

	.mg-cmodal {
		padding: 12px;
		align-items: flex-end;
	}

	.mg-cmodal__panel {
		max-width: 100%;
		max-height: 92vh;
		border-radius: 20px 20px 12px 12px;
		padding: 22px 18px 28px;
	}

	.mg-cmodal-fab {
		right: 16px;
		bottom: 16px;
		padding: 14px 16px;
	}

	.mg-cmodal-fab__label {
		display: none;
	}

	.mg-cmodal-fab {
		width: 56px;
		height: 56px;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.mg-premium-hp .mgv2-story__grid {
		gap: 36px !important;
	}

	.mg-premium-hp .mgv2-hero .wp-block-cover__inner-container {
		padding: 0 28px 10vh !important;
		align-items: flex-start !important;
	}
}
