/* =========================================================================
   Maple Grove Doors – Johnson Exteriors, LLC
   Design system for Elementor containers + widgets (classes prefixed mgd-)
   ========================================================================= */

:root {
	--mgd-navy: #06202c;
	--mgd-navy-2: #0d3547;
	--mgd-navy-3: #14445a;
	--mgd-red: #dd3333;
	--mgd-red-hover: #c42828;
	--mgd-light: #f2f7fa;
	--mgd-white: #ffffff;
	--mgd-mist: #c2d3db;
	--mgd-warm: #a96316;
	--mgd-warm-on-dark: #e3a560;
	--mgd-ink: #06202c;
	--mgd-text: #354f5b;
	--mgd-text-soft: #5a7380;
	--mgd-line: #d8e4ea;
	--mgd-line-strong: #c2d3db;
	--mgd-on-dark: #ffffff;
	--mgd-on-dark-soft: rgba(255, 255, 255, 0.78);
	--mgd-on-dark-line: rgba(255, 255, 255, 0.14);

	--mgd-font: "Reddit Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mgd-max: 1320px;
	--mgd-gutter: 56px;
	--mgd-sec-y: 112px;
	--mgd-header-h: 80px;
	--mgd-r-sm: 6px;
	--mgd-r: 10px;
	--mgd-r-lg: 16px;
	--mgd-shadow: 0 1px 2px rgba(6, 32, 44, 0.04), 0 8px 24px rgba(6, 32, 44, 0.06);
	--mgd-shadow-lift: 0 2px 4px rgba(6, 32, 44, 0.05), 0 18px 40px rgba(6, 32, 44, 0.10);
	--mgd-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

	--mgd-fs-h1: 58px;
	--mgd-fs-h2: 44px;
	--mgd-fs-h3: 26px;
	--mgd-fs-h4: 20px;
	--mgd-fs-body: 18px;
	--mgd-fs-lead: 20px;
	--mgd-fs-small: 15px;
}

@media (max-width: 1200px) {
	:root { --mgd-gutter: 44px; --mgd-sec-y: 96px; --mgd-fs-h1: 52px; --mgd-fs-h2: 40px; }
}
@media (max-width: 1024px) {
	:root { --mgd-gutter: 36px; --mgd-sec-y: 80px; --mgd-fs-h1: 46px; --mgd-fs-h2: 36px; --mgd-fs-h3: 24px; --mgd-header-h: 72px; }
}
@media (max-width: 767px) {
	:root { --mgd-gutter: 20px; --mgd-sec-y: 60px; --mgd-fs-h1: 36px; --mgd-fs-h2: 30px; --mgd-fs-h3: 22px; --mgd-fs-h4: 19px; --mgd-fs-body: 17px; --mgd-fs-lead: 18px; --mgd-header-h: 68px; }
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mgd-header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.mgd {
	margin: 0;
	background: var(--mgd-white);
	color: var(--mgd-text);
	font-family: var(--mgd-font);
	font-size: var(--mgd-fs-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
body.mgd *, body.mgd *::before, body.mgd *::after { box-sizing: border-box; }
body.mgd img { max-width: 100%; height: auto; }
body.mgd a { color: inherit; }
body.mgd :focus-visible { outline: 3px solid var(--mgd-warm-on-dark); outline-offset: 3px; border-radius: 4px; }
body.mgd .mgd-sec--light :focus-visible, body.mgd .mgd-sec--white :focus-visible { outline-color: var(--mgd-warm); }

.mgd-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--mgd-navy); color: #fff; padding: 10px 16px; border-radius: var(--mgd-r-sm); text-decoration: none; font-weight: 700; }
.mgd-skip:focus { top: 12px; }
#mgd-main { outline: none; }

.mgd-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Elementor container normalisation: layout lives in classes below, not per-element margins. */
body.mgd .e-con {
	--padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
	--padding-block-start: 0px; --padding-block-end: 0px; --padding-inline-start: 0px; --padding-inline-end: 0px;
	--gap: 0px; --row-gap: 0px; --column-gap: 0px;
	--widgets-spacing: 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px; --kit-widget-spacing: 0px;
	--margin-top: 0px; --margin-bottom: 0px;
	--border-radius: 0;
	padding: 0;
	gap: 0;
}
body.mgd .elementor-widget { margin: 0; }
body.mgd .elementor-widget-html, body.mgd .elementor-widget-shortcode { width: 100%; }
body.mgd .elementor-widget-container { height: 100%; }
body.mgd .elementor-widget-image img { display: block; }

/* ---------- Sections & wrappers ---------- */

body.mgd .e-con.mgd-sec {
	position: relative;
	padding: var(--mgd-sec-y) var(--mgd-gutter);
	display: flex;
	flex-direction: column;
	align-items: center;
}
body.mgd .e-con.mgd-sec--white { background: var(--mgd-white); }
body.mgd .e-con.mgd-sec--light { background: var(--mgd-light); }
body.mgd .e-con.mgd-sec--navy { background: var(--mgd-navy); color: var(--mgd-on-dark-soft); }
body.mgd .e-con.mgd-sec--navy2 { background: var(--mgd-navy-2); color: var(--mgd-on-dark-soft); }
body.mgd .e-con.mgd-sec--tight { padding-top: calc(var(--mgd-sec-y) * 0.62); padding-bottom: calc(var(--mgd-sec-y) * 0.62); }
body.mgd .e-con.mgd-sec--flush-top { padding-top: 0; }
body.mgd .e-con.mgd-sec--line-top { border-top: 1px solid var(--mgd-line); }

body.mgd .e-con.mgd-wrap {
	width: 100%;
	max-width: var(--mgd-max);
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
}
body.mgd .e-con.mgd-wrap--narrow { max-width: 860px; }
body.mgd .e-con.mgd-stack { display: flex; flex-direction: column; }
body.mgd .e-con.mgd-gap-sm { gap: 16px; }
body.mgd .e-con.mgd-gap { gap: 24px; }
body.mgd .e-con.mgd-gap-lg { gap: 48px; }
body.mgd .e-con.mgd-mt { margin-top: 56px; }
body.mgd .e-con.mgd-mt-sm { margin-top: 32px; }

/* Two-column splits */
body.mgd .e-con.mgd-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 80px;
	align-items: center;
}
body.mgd .e-con.mgd-split--top { align-items: start; }
body.mgd .e-con.mgd-split--55 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
body.mgd .e-con.mgd-split--45 { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
body.mgd .e-con.mgd-split--40 { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); }
@media (max-width: 1200px) { body.mgd .e-con.mgd-split { gap: 56px; } }
@media (max-width: 960px) {
	body.mgd .e-con.mgd-split,
	body.mgd .e-con.mgd-split--55,
	body.mgd .e-con.mgd-split--45,
	body.mgd .e-con.mgd-split--40 { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	body.mgd .e-con.mgd-split--media-first > :last-child { order: -1; }
}

/* Card grids – equal-height rows */
body.mgd .e-con.mgd-grid { display: grid; gap: 24px; align-items: stretch; grid-auto-rows: 1fr; }
body.mgd .e-con.mgd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.mgd .e-con.mgd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.mgd .e-con.mgd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.mgd .e-con.mgd-grid > .elementor-element { height: 100%; }
@media (max-width: 1024px) {
	body.mgd .e-con.mgd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	body.mgd .e-con.mgd-grid--3 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 16px; }
}
@media (max-width: 767px) {
	body.mgd .e-con.mgd-grid--2, body.mgd .e-con.mgd-grid--4 { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 16px; }
}

/* ---------- Typography ---------- */

body.mgd .mgd-eyebrow .elementor-heading-title,
body.mgd .mgd-eyebrow-txt {
	display: block;
	margin: 0 0 12px;
	font-family: var(--mgd-font);
	font-size: 13px;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mgd-warm);
}
body.mgd .mgd-sec--navy .mgd-eyebrow .elementor-heading-title,
body.mgd .mgd-sec--navy2 .mgd-eyebrow .elementor-heading-title,
body.mgd .mgd-on-dark .mgd-eyebrow-txt,
body.mgd .mgd-sec--navy .mgd-eyebrow-txt,
body.mgd .mgd-sec--navy2 .mgd-eyebrow-txt { color: var(--mgd-warm-on-dark); }

body.mgd .mgd-h1 .elementor-heading-title,
body.mgd .mgd-h2 .elementor-heading-title,
body.mgd .mgd-h3 .elementor-heading-title {
	font-family: var(--mgd-font);
	color: var(--mgd-ink);
	font-weight: 750;
	margin: 0;
	text-wrap: balance;
}
body.mgd .mgd-h1 .elementor-heading-title { font-size: var(--mgd-fs-h1); line-height: 1.04; letter-spacing: -0.025em; font-weight: 800; }
body.mgd .mgd-h2 .elementor-heading-title { font-size: var(--mgd-fs-h2); line-height: 1.08; letter-spacing: -0.022em; }
body.mgd .mgd-h3 .elementor-heading-title { font-size: var(--mgd-fs-h3); line-height: 1.2; letter-spacing: -0.012em; font-weight: 700; }
body.mgd .mgd-sec--navy .elementor-heading-title,
body.mgd .mgd-sec--navy2 .elementor-heading-title { color: var(--mgd-on-dark); }
body.mgd .mgd-sec--navy .mgd-eyebrow .elementor-heading-title,
body.mgd .mgd-sec--navy2 .mgd-eyebrow .elementor-heading-title { color: var(--mgd-warm-on-dark); }

body.mgd .mgd-text,
body.mgd .mgd-text p,
body.mgd .mgd-lead,
body.mgd .mgd-lead p {
	font-family: var(--mgd-font);
	font-size: var(--mgd-fs-body);
	line-height: 1.65;
	color: var(--mgd-text);
}
body.mgd .mgd-lead, body.mgd .mgd-lead p { font-size: var(--mgd-fs-lead); line-height: 1.6; }
body.mgd .mgd-text p, body.mgd .mgd-lead p { margin: 0 0 1em; max-width: 68ch; }
body.mgd .mgd-text p:last-child, body.mgd .mgd-lead p:last-child { margin-bottom: 0; }
body.mgd .mgd-text strong { color: var(--mgd-ink); font-weight: 700; }
body.mgd .mgd-text a { color: var(--mgd-navy); text-decoration-color: var(--mgd-red); text-underline-offset: 3px; font-weight: 600; }
body.mgd .mgd-sec--navy .mgd-text, body.mgd .mgd-sec--navy .mgd-text p,
body.mgd .mgd-sec--navy .mgd-lead, body.mgd .mgd-sec--navy .mgd-lead p,
body.mgd .mgd-sec--navy2 .mgd-text, body.mgd .mgd-sec--navy2 .mgd-text p,
body.mgd .mgd-sec--navy2 .mgd-lead, body.mgd .mgd-sec--navy2 .mgd-lead p { color: var(--mgd-on-dark-soft); }
body.mgd .mgd-sec--navy .mgd-text strong, body.mgd .mgd-sec--navy2 .mgd-text strong { color: #fff; }
body.mgd .mgd-sec--navy .mgd-text a, body.mgd .mgd-sec--navy2 .mgd-text a { color: #fff; }

/* Section heads: eyebrow → 12px → heading → 20px → lead */
body.mgd .e-con.mgd-head { display: flex; flex-direction: column; max-width: 780px; }
body.mgd .e-con.mgd-head--wide { max-width: 980px; }
body.mgd .e-con.mgd-head--center { align-items: center; text-align: center; margin-inline: auto; }
body.mgd .e-con.mgd-head--center .mgd-text p, body.mgd .e-con.mgd-head--center .mgd-lead p { margin-inline: auto; }
body.mgd .mgd-head .mgd-h1, body.mgd .mgd-head .mgd-h2, body.mgd .mgd-head .mgd-h3 { margin-bottom: 20px; }
body.mgd .mgd-head > .elementor-element:last-child { margin-bottom: 0; }
body.mgd .mgd-head .mgd-btns { margin-top: 12px; }

/* ---------- Buttons ---------- */

.mgd-btn,
body.mgd .mgd-b .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 26px;
	border-radius: var(--mgd-r-sm);
	border: 1.5px solid transparent;
	font-family: var(--mgd-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s var(--mgd-ease), border-color 0.2s var(--mgd-ease), color 0.2s var(--mgd-ease), transform 0.2s var(--mgd-ease);
	white-space: nowrap;
}
body.mgd .mgd-b .elementor-button .elementor-button-content-wrapper { gap: 10px; align-items: center; }
body.mgd .mgd-btn--red, body.mgd .mgd-b--red .elementor-button { background: var(--mgd-red); color: #fff; }
body.mgd .mgd-btn--red:hover, body.mgd .mgd-b--red .elementor-button:hover { background: var(--mgd-red-hover); color: #fff; }
body.mgd .mgd-b--light .elementor-button, body.mgd .mgd-btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.42); }
body.mgd .mgd-b--light .elementor-button:hover, body.mgd .mgd-btn--light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); color: #fff; }
body.mgd .mgd-b--dark .elementor-button, body.mgd .mgd-btn--ghost-dark { background: transparent; color: var(--mgd-navy); border-color: var(--mgd-line-strong); }
body.mgd .mgd-b--dark .elementor-button:hover, body.mgd .mgd-btn--ghost-dark:hover { border-color: var(--mgd-navy); color: var(--mgd-navy); }
.mgd-btn--block { width: 100%; }
.mgd-btn .mgd-i, body.mgd .mgd-b .mgd-i { width: 18px; height: 18px; fill: currentColor; flex: none; }

body.mgd .e-con.mgd-btns { display: flex; flex-direction: row; flex-wrap: wrap; gap: 14px; align-items: center; }
body.mgd .e-con.mgd-btns > .elementor-element { width: auto; }
body.mgd.mgd-no-phone .mgd-needs-phone { display: none !important; }

/* Inline text link with arrow */
.mgd-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--mgd-navy); text-decoration: none; }
.mgd-arrow::after { content: "\2192"; font-weight: 700; color: var(--mgd-red); transition: transform 0.2s var(--mgd-ease); }
.mgd-arrow:hover::after, a:hover .mgd-arrow::after { transform: translateX(4px); }
.mgd-sec--navy .mgd-arrow::after, .mgd-vs .mgd-arrow::after, .mgd-card--dark .mgd-arrow::after { color: var(--mgd-warm-on-dark); }
.mgd-arrow span { border-bottom: 2px solid transparent; }

/* ---------- Header ---------- */

.mgd-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
	background: rgba(255, 255, 255, 0.97);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--mgd-line);
	transform: translateY(0);
	transition: transform 0.3s var(--mgd-ease), box-shadow 0.3s var(--mgd-ease);
	will-change: transform;
}
.mgd-header.is-scrolled { box-shadow: 0 6px 24px rgba(6, 32, 44, 0.08); }
.mgd-header.is-hidden { transform: translateY(calc(-100% - 2px)); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .mgd-header { transition: none; } }

.mgd-header__bar {
	max-width: calc(var(--mgd-max) + (var(--mgd-gutter) * 2));
	height: var(--mgd-header-h);
	margin: 0 auto;
	padding: 0 var(--mgd-gutter);
	display: flex;
	align-items: center;
	gap: 40px;
}
.mgd-logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
body.mgd .mgd-logo__img { display: block; height: 66px; width: auto; max-width: none; }
.mgd-logo__text { font-weight: 800; color: var(--mgd-navy); font-size: 20px; }

.mgd-nav { margin-left: auto; }
.mgd-nav__list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.mgd-nav__item { position: relative; }
.mgd-nav__link {
	display: inline-flex; align-items: center; gap: 6px;
	height: 44px; padding: 0 14px;
	background: none; border: 0; border-radius: var(--mgd-r-sm);
	font: 600 15px/1 var(--mgd-font); letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--mgd-navy); text-decoration: none; cursor: pointer;
	transition: background-color 0.2s var(--mgd-ease), color 0.2s var(--mgd-ease);
}
.mgd-nav__link:hover, .mgd-nav__item--has-sub.is-open > .mgd-nav__link { background: var(--mgd-light); }
.mgd-nav__link.is-current { box-shadow: inset 0 -2px 0 var(--mgd-red); border-radius: 0; }
.mgd-nav__link .mgd-i { width: 16px; height: 16px; transition: transform 0.2s var(--mgd-ease); }
.mgd-nav__item--has-sub.is-open > .mgd-nav__link .mgd-i { transform: rotate(180deg); }

.mgd-sub {
	position: absolute; top: calc(100% + 10px); left: 50%;
	width: 300px; padding: 10px;
	background: #fff; border: 1px solid var(--mgd-line); border-radius: var(--mgd-r);
	box-shadow: 0 20px 48px rgba(6, 32, 44, 0.16);
	opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
	transition: opacity 0.18s var(--mgd-ease), transform 0.18s var(--mgd-ease), visibility 0s linear 0.18s;
}
.mgd-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.mgd-nav__item--has-sub.is-open .mgd-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.mgd-sub__list { list-style: none; margin: 0; padding: 0; }
.mgd-sub__link {
	display: flex; align-items: center; min-height: 44px; padding: 0 14px;
	border-radius: var(--mgd-r-sm);
	font: 600 16px/1.2 var(--mgd-font); color: var(--mgd-navy); text-decoration: none;
	transition: background-color 0.15s var(--mgd-ease);
}
.mgd-sub__link:hover, .mgd-sub__link:focus-visible { background: var(--mgd-light); }
.mgd-sub__link.is-current { color: var(--mgd-red); }
.mgd-sub__divider { display: flex; align-items: center; gap: 10px; margin: 8px 14px; font: 700 11px/1 var(--mgd-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mgd-text-soft); }
.mgd-sub__divider::before { content: none; }
.mgd-sub__divider::after { content: ""; flex: 1; height: 1px; background: var(--mgd-line); }

.mgd-header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.mgd-header__phone { display: inline-flex; align-items: center; gap: 8px; font: 700 16px/1 var(--mgd-font); color: var(--mgd-navy); text-decoration: none; white-space: nowrap; }
.mgd-header__phone .mgd-i { width: 18px; height: 18px; fill: var(--mgd-red); }
.mgd-header__cta { min-height: 46px; padding: 0 22px; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }

.mgd-burger { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--mgd-line-strong); border-radius: var(--mgd-r-sm); background: #fff; cursor: pointer; position: relative; }
.mgd-burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--mgd-navy); border-radius: 2px; transition: transform 0.25s var(--mgd-ease), opacity 0.2s; }
.mgd-burger span:nth-child(1) { top: 15px; }
.mgd-burger span:nth-child(2) { top: 22px; }
.mgd-burger span:nth-child(3) { top: 29px; }
.mgd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mgd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mgd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mgd-mnav { border-top: 1px solid var(--mgd-line); background: #fff; max-height: calc(100vh - var(--mgd-header-h)); max-height: calc(100dvh - var(--mgd-header-h)); overflow-y: auto; overscroll-behavior: contain; }
.mgd-mnav[hidden] { display: none; }
.mgd-mnav__list { list-style: none; margin: 0; padding: 8px var(--mgd-gutter); }
.mgd-mnav__list > li { border-bottom: 1px solid var(--mgd-line); }
.mgd-mnav__link {
	display: flex; align-items: center; justify-content: space-between; width: 100%;
	min-height: 58px; padding: 0; background: none; border: 0;
	font: 700 17px/1.2 var(--mgd-font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--mgd-navy); text-decoration: none; text-align: left; cursor: pointer;
}
.mgd-mnav__link .mgd-i { width: 20px; height: 20px; transition: transform 0.2s var(--mgd-ease); }
.mgd-mnav__toggle[aria-expanded="true"] .mgd-i { transform: rotate(180deg); }
.mgd-mnav__sub { list-style: none; margin: 0 0 14px; padding: 0; }
.mgd-mnav__sub[hidden] { display: none; }
.mgd-mnav__sublink { display: flex; align-items: center; min-height: 50px; padding: 0 14px; border-radius: var(--mgd-r-sm); font: 600 17px/1.2 var(--mgd-font); color: var(--mgd-navy); text-decoration: none; }
.mgd-mnav__sublink:active, .mgd-mnav__sublink:hover { background: var(--mgd-light); }
.mgd-mnav__sublink[aria-current="page"] { color: var(--mgd-red); }
.mgd-mnav__label { margin: 10px 14px 4px; font: 700 11px/1 var(--mgd-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mgd-text-soft); padding-top: 12px; border-top: 1px solid var(--mgd-line); }
.mgd-mnav__actions { display: grid; gap: 12px; padding: 20px var(--mgd-gutter) 28px; }

@media (max-width: 1023px) {
	.mgd-nav, .mgd-header__phone { display: none; }
	.mgd-burger { display: inline-block; }
	.mgd-header__actions { margin-left: auto; gap: 10px; }
	body.mgd .mgd-logo__img { height: 58px; }
}
@media (max-width: 767px) {
	body.mgd .mgd-logo__img { height: 54px; }
	.mgd-header__cta { display: none; }
}

/* ---------- Footer ---------- */

.mgd-footer { background: var(--mgd-navy); color: var(--mgd-on-dark-soft); font-family: var(--mgd-font); }
.mgd-footer__inner {
	max-width: calc(var(--mgd-max) + (var(--mgd-gutter) * 2));
	margin: 0 auto;
	padding: 88px var(--mgd-gutter) 64px;
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
	gap: 56px;
}
.mgd-logo--footer { background: #fff; padding: 10px 14px; border-radius: var(--mgd-r); }
body.mgd .mgd-logo--footer .mgd-logo__img { height: 60px; }
.mgd-footer__about { margin: 22px 0 24px; font-size: 16px; line-height: 1.65; max-width: 40ch; }
.mgd-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 16px; line-height: 1.5; }
.mgd-footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.mgd-footer__contact .mgd-i { width: 18px; height: 18px; fill: var(--mgd-warm-on-dark); flex: none; margin-top: 3px; }
.mgd-footer a { color: #fff; text-decoration: none; }
.mgd-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mgd-footer__title { margin: 6px 0 18px; font: 700 13px/1.3 var(--mgd-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mgd-warm-on-dark); }
.mgd-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 16px; }
.mgd-footer__col a { color: var(--mgd-on-dark-soft); }
.mgd-footer__col a:hover { color: #fff; }
.mgd-footer__cta.mgd-btn { margin-top: 28px; min-height: 48px; font-size: 15px; }
.mgd-footer__col a.mgd-footer__cta { color: #fff; text-decoration: none; }
.mgd-footer__legal { border-top: 1px solid var(--mgd-on-dark-line); }
.mgd-footer__legal-inner {
	max-width: calc(var(--mgd-max) + (var(--mgd-gutter) * 2));
	margin: 0 auto; padding: 22px var(--mgd-gutter);
	display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
	font-size: 14px;
}
.mgd-footer__legal p { margin: 0; }
.mgd-footer__legal ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.mgd-footer__legal a { color: var(--mgd-on-dark-soft); }

@media (max-width: 1024px) {
	.mgd-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; padding-top: 72px; }
	.mgd-footer__brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 8px 40px; align-items: start; }
	.mgd-footer__brand .mgd-logo { grid-row: span 2; }
	.mgd-footer__about { margin: 0; }
}
@media (max-width: 767px) {
	.mgd-footer__inner { grid-template-columns: 1fr 1fr; padding: 56px var(--mgd-gutter) 40px; gap: 36px 20px; }
	.mgd-footer__brand { display: block; }
	.mgd-footer__about { margin: 20px 0; }
	.mgd-footer__col:last-child { grid-column: 1 / -1; }
	.mgd-footer__legal-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Mobile CTA bar ---------- */

.mgd-mbar { display: none; }
@media (max-width: 767px) {
	body.mgd { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
	.mgd-mbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
		display: flex; gap: 8px;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
		background: var(--mgd-navy);
		box-shadow: 0 -8px 24px rgba(6, 32, 44, 0.22);
	}
	.mgd-mbar__btn {
		flex: 1 1 0; min-width: 0;
		display: inline-flex; align-items: center; justify-content: center; gap: 8px;
		height: 52px; padding: 0 10px; border-radius: var(--mgd-r-sm);
		font: 700 15px/1 var(--mgd-font); letter-spacing: 0.03em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
	}
	body.mgd .mgd-mbar__btn--quote { background: var(--mgd-red); color: #fff; }
	body.mgd .mgd-mbar__btn--call { background: #fff; color: var(--mgd-navy); }
	.mgd-mbar__btn--call { flex-grow: 1.35; }
	.mgd-mbar__btn .mgd-i { width: 17px; height: 17px; fill: var(--mgd-red); flex: none; }
	body.mgd-mnav-open .mgd-mbar { display: none; }
}

/* ---------- Hero (home: content + glass form) ---------- */

body.mgd .e-con.mgd-hero {
	--mgd-hero-img: url("/wp-content/uploads/2026/10/mgd-white-porch-dark-entry-door-1536x1024.webp");
	position: relative;
	overflow: hidden;
	background: var(--mgd-navy);
	padding: 88px var(--mgd-gutter) 96px;
	isolation: isolate;
}
body.mgd .e-con.mgd-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background-image: var(--mgd-hero-img, none);
	background-size: cover; background-position: center 55%;
	opacity: 0.22; filter: grayscale(35%) contrast(1.05);
}
body.mgd .e-con.mgd-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(6, 32, 44, 0.97) 0%, rgba(6, 32, 44, 0.9) 42%, rgba(6, 32, 44, 0.72) 100%),
		linear-gradient(0deg, rgba(6, 32, 44, 0.65) 0%, rgba(6, 32, 44, 0) 35%);
}
body.mgd .e-con.mgd-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 53fr) minmax(0, 47fr);
	gap: 64px;
	align-items: center;
}
body.mgd .mgd-hero .mgd-h1 .elementor-heading-title { color: #fff; max-width: 14ch; }
body.mgd .mgd-hero .mgd-lead, body.mgd .mgd-hero .mgd-lead p { color: var(--mgd-on-dark-soft); max-width: 52ch; }
body.mgd .mgd-hero .mgd-head { max-width: none; }
body.mgd .mgd-hero .mgd-h1 { margin-bottom: 24px; }
body.mgd .e-con.mgd-hero .mgd-btns { margin-top: 34px; }

.mgd-hero-points { list-style: none; margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid var(--mgd-on-dark-line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mgd-hero-points li { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; color: var(--mgd-on-dark-soft); }
.mgd-hero-points strong { font-size: 17px; color: #fff; font-weight: 700; }

@media (max-width: 1200px) { body.mgd .e-con.mgd-hero__grid { gap: 44px; } }
@media (max-width: 960px) {
	body.mgd .e-con.mgd-hero { padding-top: 64px; padding-bottom: 72px; }
	body.mgd .e-con.mgd-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	body.mgd .mgd-hero .mgd-h1 .elementor-heading-title { max-width: 18ch; }
	body.mgd .e-con.mgd-hero .mgd-formcard-wrap { max-width: 680px; }
}
@media (max-width: 767px) {
	body.mgd .e-con.mgd-hero { padding-top: 44px; padding-bottom: 48px; }
	.mgd-hero-points { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; padding-top: 22px; }
	.mgd-hero-points li { gap: 2px; }
	body.mgd .e-con.mgd-hero .mgd-btns { margin-top: 26px; }
}

/* ---------- Inner page hero (content + diagram) ---------- */

body.mgd .e-con.mgd-phero {
	background: var(--mgd-navy);
	padding: 72px var(--mgd-gutter) 88px;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
body.mgd .e-con.mgd-phero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: linear-gradient(90deg, transparent 30%, #000 70%);
	-webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 70%);
}
body.mgd .mgd-phero .mgd-h1 .elementor-heading-title { color: #fff; }
body.mgd .mgd-phero .mgd-lead, body.mgd .mgd-phero .mgd-lead p { color: var(--mgd-on-dark-soft); }
body.mgd .mgd-phero .mgd-h1 { margin-bottom: 22px; }
body.mgd .e-con.mgd-phero .mgd-btns { margin-top: 32px; }
body.mgd .e-con.mgd-phero .mgd-head { max-width: 640px; }

.mgd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 14px; color: var(--mgd-on-dark-soft); }
.mgd-crumbs a { color: var(--mgd-on-dark-soft); text-decoration: none; }
.mgd-crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mgd-crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, 0.35); }
.mgd-crumbs [aria-current] { color: #fff; }

@media (max-width: 960px) { body.mgd .e-con.mgd-phero { padding-top: 56px; padding-bottom: 64px; } }
@media (max-width: 767px) { body.mgd .e-con.mgd-phero { padding-top: 36px; padding-bottom: 48px; } .mgd-crumbs { margin-bottom: 20px; } }

/* ---------- Diagrams (inline SVG) ---------- */

.mgd-dg { position: relative; width: 100%; margin: 0; }
.mgd-dg svg { display: block; width: 100%; height: auto; overflow: visible; }
.mgd-dg figcaption { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--mgd-text-soft); }
.mgd-dg--dark figcaption { color: rgba(255, 255, 255, 0.6); }
.mgd-dg--panel { background: var(--mgd-navy-2); border: 1px solid var(--mgd-on-dark-line); border-radius: var(--mgd-r-lg); padding: 28px; }
.mgd-dg--card { background: #fff; border: 1px solid var(--mgd-line); border-radius: var(--mgd-r-lg); padding: 28px; box-shadow: var(--mgd-shadow); }

/* SVG tokens */
.mgd-dg .s-frame { fill: none; stroke: #fff; stroke-width: 2; }
.mgd-dg .s-line { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.5; }
.mgd-dg .s-faint { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1; }
.mgd-dg .s-fill { fill: rgba(255, 255, 255, 0.06); }
.mgd-dg .s-fill2 { fill: rgba(255, 255, 255, 0.12); }
.mgd-dg .s-warm { fill: none; stroke: var(--mgd-warm-on-dark); stroke-width: 2; }
.mgd-dg .s-warmfill { fill: var(--mgd-warm-on-dark); }
.mgd-dg .s-red { fill: none; stroke: #ff6b6b; stroke-width: 2; }
.mgd-dg .s-redfill { fill: var(--mgd-red); }
.mgd-dg .s-dot { fill: var(--mgd-red); stroke: var(--mgd-navy-2); stroke-width: 3; }
.mgd-dg .t-lbl { font: 700 12px var(--mgd-font); letter-spacing: 0.14em; fill: #fff; text-transform: uppercase; }
.mgd-dg .t-sub { font: 500 12px var(--mgd-font); fill: rgba(255, 255, 255, 0.62); }
.mgd-dg .t-num { font: 800 12px var(--mgd-font); fill: #fff; }
.mgd-dg .t-big { font: 800 15px var(--mgd-font); fill: #fff; }
.mgd-dg--card .s-frame, .mgd-dg--light .s-frame { stroke: var(--mgd-navy); }
.mgd-dg--card .s-line, .mgd-dg--light .s-line { stroke: rgba(6, 32, 44, 0.45); }
.mgd-dg--card .s-faint, .mgd-dg--light .s-faint { stroke: rgba(6, 32, 44, 0.14); }
.mgd-dg--card .s-fill, .mgd-dg--light .s-fill { fill: rgba(6, 32, 44, 0.04); }
.mgd-dg--card .s-fill2, .mgd-dg--light .s-fill2 { fill: rgba(6, 32, 44, 0.08); }
.mgd-dg--card .s-warm, .mgd-dg--light .s-warm { stroke: var(--mgd-warm); }
.mgd-dg--card .s-warmfill, .mgd-dg--light .s-warmfill { fill: var(--mgd-warm); }
.mgd-dg--card .s-dot, .mgd-dg--light .s-dot { stroke: #fff; }
.mgd-dg--card .t-lbl, .mgd-dg--light .t-lbl { fill: var(--mgd-navy); }
.mgd-dg--card .t-sub, .mgd-dg--light .t-sub { fill: var(--mgd-text-soft); }
.mgd-dg--card .t-big, .mgd-dg--light .t-big { fill: var(--mgd-navy); }

/* Diagram legends (HTML, so text stays readable at every width) */
.mgd-legend { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.mgd-legend li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; line-height: 1.45; color: var(--mgd-on-dark-soft); }
.mgd-legend b { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mgd-red); color: #fff; font-size: 12px; font-weight: 800; transform: translateY(-1px); }
.mgd-legend strong { color: #fff; font-weight: 700; }
.mgd-dg--card .mgd-legend li { color: var(--mgd-text); }
.mgd-dg--card .mgd-legend strong { color: var(--mgd-ink); }
@media (max-width: 520px) { .mgd-legend { grid-template-columns: 1fr; } }

/* ---------- Trust strip ---------- */

body.mgd .e-con.mgd-trust { background: #fff; border-bottom: 1px solid var(--mgd-line); padding: 0 var(--mgd-gutter); }
.mgd-trust__list { list-style: none; margin: 0 auto; padding: 0; max-width: var(--mgd-max); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mgd-trust__list li { display: flex; align-items: center; gap: 16px; padding: 30px 28px; border-left: 1px solid var(--mgd-line); }
.mgd-trust__list li:first-child { border-left: 0; padding-left: 0; }
.mgd-trust__ico { flex: none; width: 44px; height: 44px; border-radius: var(--mgd-r); background: var(--mgd-light); display: grid; place-items: center; color: var(--mgd-navy); }
.mgd-trust__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mgd-trust__list strong { display: block; font-size: 17px; line-height: 1.25; color: var(--mgd-ink); font-weight: 700; }
.mgd-trust__list span { display: block; font-size: 14px; line-height: 1.4; color: var(--mgd-text-soft); margin-top: 2px; }
@media (max-width: 1024px) {
	.mgd-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mgd-trust__list li { padding: 24px 20px; border-left: 0; border-top: 1px solid var(--mgd-line); }
	.mgd-trust__list li:nth-child(-n+2) { border-top: 0; }
	.mgd-trust__list li:nth-child(odd) { padding-left: 0; }
	.mgd-trust__list li:nth-child(even) { border-left: 1px solid var(--mgd-line); }
}
@media (max-width: 560px) {
	.mgd-trust__list { grid-template-columns: 1fr; }
	.mgd-trust__list li, .mgd-trust__list li:nth-child(even) { padding: 18px 0; border-left: 0; border-top: 1px solid var(--mgd-line); }
	.mgd-trust__list li:first-child { border-top: 0; }
}

/* ---------- Cards ---------- */

.mgd-card {
	height: 100%;
	display: flex; flex-direction: column;
	background: #fff;
	border: 1px solid var(--mgd-line);
	border-radius: var(--mgd-r);
	padding: 32px;
	transition: border-color 0.2s var(--mgd-ease), box-shadow 0.2s var(--mgd-ease), transform 0.2s var(--mgd-ease);
	text-decoration: none;
	color: inherit;
}
a.mgd-card:hover { border-color: var(--mgd-line-strong); box-shadow: var(--mgd-shadow-lift); transform: translateY(-2px); }
.mgd-card__ico { width: 52px; height: 52px; border-radius: var(--mgd-r); background: var(--mgd-light); color: var(--mgd-navy); display: grid; place-items: center; margin-bottom: 24px; flex: none; }
.mgd-card__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mgd-card .mgd-card__k, .mgd-card__k { font: 700 12px/1 var(--mgd-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mgd-warm); margin: 0 0 12px; }
.mgd-card h3, .mgd-card .mgd-card__t { margin: 0 0 12px; font: 700 var(--mgd-fs-h4)/1.25 var(--mgd-font); letter-spacing: -0.01em; color: var(--mgd-ink); }
.mgd-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--mgd-text); }
.mgd-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; line-height: 1.5; }
.mgd-card__foot { margin-top: auto; padding-top: 24px; }
.mgd-card--light { background: var(--mgd-light); border-color: transparent; }
.mgd-sec--light .mgd-card--light { background: #fff; border-color: var(--mgd-line); }
.mgd-card--dark { background: var(--mgd-navy-2); border-color: var(--mgd-on-dark-line); }
.mgd-card--dark h3, .mgd-card--dark .mgd-card__t { color: #fff; }
.mgd-card--dark p, .mgd-card--dark li { color: var(--mgd-on-dark-soft); }
.mgd-card--dark .mgd-card__ico { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mgd-card--dark .mgd-card__k, .mgd-card.mgd-card--dark .mgd-card__k { color: var(--mgd-warm-on-dark); }
@media (max-width: 860px) {
	.mgd-grid--3 .mgd-card--row { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; padding: 24px; }
	.mgd-grid--3 .mgd-card--row .mgd-card__ico { grid-row: span 3; margin-bottom: 0; }
	.mgd-grid--3 .mgd-card--row .mgd-card__foot { padding-top: 14px; }
}
@media (max-width: 767px) { .mgd-card { padding: 24px; } }

/* Checklist */
.mgd-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mgd-checks li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.5; color: var(--mgd-text); }
.mgd-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--mgd-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23dd3333' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.mgd-checks strong { color: var(--mgd-ink); }
.mgd-checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.mgd-sec--navy .mgd-checks li, .mgd-sec--navy2 .mgd-checks li, .mgd-on-dark .mgd-checks li { color: var(--mgd-on-dark-soft); }
.mgd-sec--navy .mgd-checks li::before, .mgd-sec--navy2 .mgd-checks li::before, .mgd-on-dark .mgd-checks li::before { background-color: rgba(255, 255, 255, 0.1); }
.mgd-sec--navy .mgd-checks strong, .mgd-sec--navy2 .mgd-checks strong { color: #fff; }
@media (max-width: 600px) { .mgd-checks--2 { grid-template-columns: 1fr; } }

/* ---------- Homepage: why doors matter (role rows) ---------- */

.mgd-roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--mgd-line); }
.mgd-roles li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 18px; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--mgd-line); }
.mgd-roles li:nth-child(even) { padding: 28px 0 28px 28px; border-left: 1px solid var(--mgd-line); }
.mgd-roles svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: var(--mgd-r); background: var(--mgd-light); color: var(--mgd-navy); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mgd-roles strong { font-size: 18px; line-height: 1.3; color: var(--mgd-ink); padding-top: 1px; }
.mgd-roles span { font-size: 16px; line-height: 1.55; color: var(--mgd-text); }
@media (max-width: 600px) {
	.mgd-roles { grid-template-columns: 1fr; }
	.mgd-roles li, .mgd-roles li:nth-child(even) { padding: 22px 0; border-left: 0; }
}

/* ---------- Homepage: services index ---------- */

.mgd-svc3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mgd-svc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mgd-line); border-radius: var(--mgd-r); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.2s var(--mgd-ease), transform 0.2s var(--mgd-ease), border-color 0.2s; }
.mgd-svc:hover { box-shadow: var(--mgd-shadow-lift); transform: translateY(-2px); border-color: var(--mgd-line-strong); }
.mgd-svc__art { background: var(--mgd-navy); aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 22px; border-bottom: 3px solid var(--mgd-red); }
.mgd-svc__art svg { width: 100%; height: 100%; max-height: 150px; }
.mgd-svc__body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.mgd-svc__body h3 { margin: 0 0 10px; font: 700 23px/1.2 var(--mgd-font); letter-spacing: -0.01em; color: var(--mgd-ink); }
.mgd-svc__body p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--mgd-text); }
.mgd-svc__body .mgd-arrow { margin-top: auto; }

.mgd-types { margin-top: 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border: 1px solid var(--mgd-line); border-radius: var(--mgd-r); overflow: hidden; }
.mgd-type { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 24px; border-left: 1px solid var(--mgd-line); text-decoration: none; color: inherit; transition: background-color 0.2s var(--mgd-ease); }
.mgd-type:first-child { border-left: 0; }
.mgd-type:hover { background: var(--mgd-light); }
.mgd-type__k { font: 700 11px/1 var(--mgd-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mgd-warm); }
.mgd-type strong { font-size: 18px; line-height: 1.25; color: var(--mgd-ink); }
.mgd-type span:not(.mgd-type__k) { font-size: 15px; line-height: 1.5; color: var(--mgd-text-soft); }
.mgd-type em { margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--mgd-navy); }
@media (max-width: 1024px) {
	.mgd-svc__body { padding: 24px; }
	.mgd-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mgd-type { border-top: 1px solid var(--mgd-line); }
	.mgd-type:nth-child(-n+3) { border-top: 0; }
	.mgd-type:nth-child(3n+1) { border-left: 0; }
}
@media (max-width: 860px) {
	.mgd-svc3 { grid-template-columns: 1fr; gap: 16px; }
	.mgd-svc { display: grid; grid-template-columns: 220px 1fr; }
	.mgd-svc__art { aspect-ratio: auto; border-bottom: 0; border-right: 3px solid var(--mgd-red); }
	.mgd-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mgd-type, .mgd-type:nth-child(-n+3) { border-top: 1px solid var(--mgd-line); border-left: 1px solid var(--mgd-line); }
	.mgd-type:nth-child(-n+2) { border-top: 0; }
	.mgd-type:nth-child(odd) { border-left: 0; }
	.mgd-type:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.mgd-svc { grid-template-columns: 1fr; }
	.mgd-svc__art { aspect-ratio: 16 / 8; border-right: 0; border-bottom: 3px solid var(--mgd-red); }
	.mgd-types { grid-template-columns: 1fr; }
	.mgd-type, .mgd-type:nth-child(-n+3), .mgd-type:nth-child(odd) { border-left: 0; border-top: 1px solid var(--mgd-line); padding: 20px; }
	.mgd-type:first-child { border-top: 0; }
}

/* ---------- Entry vs patio split ---------- */

.mgd-vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--mgd-r-lg); overflow: hidden; border: 1px solid var(--mgd-on-dark-line); }
.mgd-vs__side { position: relative; padding: 44px 44px 40px; background: var(--mgd-navy-2); display: flex; flex-direction: column; }
.mgd-vs__side + .mgd-vs__side { background: #11405a; border-left: 1px solid var(--mgd-on-dark-line); }
.mgd-vs__art { height: 190px; margin: -4px 0 30px; }
.mgd-vs__art svg { height: 100%; width: auto; max-width: 100%; display: block; }
.mgd-vs h3 { margin: 0 0 12px; font: 750 30px/1.15 var(--mgd-font); letter-spacing: -0.015em; color: #fff; }
.mgd-vs p { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: var(--mgd-on-dark-soft); max-width: 46ch; }
.mgd-vs__tags { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mgd-vs__tags li { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff; }
.mgd-vs .mgd-arrow { color: #fff; margin-top: auto; }
@media (max-width: 700px) {
	.mgd-vs { grid-template-columns: 1fr; }
	.mgd-vs__side + .mgd-vs__side { border-left: 0; border-top: 1px solid var(--mgd-on-dark-line); }
}
@media (max-width: 767px) { .mgd-vs__side { padding: 32px 24px; } .mgd-vs__art { height: 150px; } .mgd-vs h3 { font-size: 26px; } }

/* ---------- Signs (inspection checklist) ---------- */

.mgd-signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--mgd-line); }
.mgd-signs li { display: flex; gap: 16px; align-items: flex-start; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--mgd-line); }
.mgd-signs li:nth-child(3n+2), .mgd-signs li:nth-child(3n) { padding-left: 24px; border-left: 1px solid var(--mgd-line); }
.mgd-signs__n { flex: none; font: 800 13px/1 var(--mgd-font); color: var(--mgd-red); letter-spacing: 0.06em; padding-top: 5px; min-width: 22px; }
.mgd-signs strong { display: block; font-size: 18px; line-height: 1.3; color: var(--mgd-ink); margin-bottom: 4px; }
.mgd-signs span { display: block; font-size: 15px; line-height: 1.55; color: var(--mgd-text); }
@media (max-width: 1024px) {
	.mgd-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mgd-signs li, .mgd-signs li:nth-child(3n+2), .mgd-signs li:nth-child(3n) { padding: 22px 22px 22px 0; border-left: 0; }
	.mgd-signs li:nth-child(even) { padding-left: 22px; padding-right: 0; border-left: 1px solid var(--mgd-line); }
}
@media (max-width: 600px) {
	.mgd-signs { grid-template-columns: 1fr; }
	.mgd-signs li, .mgd-signs li:nth-child(even) { padding: 20px 0; border-left: 0; }
}

/* ---------- Repair vs replacement comparison ---------- */

.mgd-cmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.mgd-cmp__col { background: #fff; border: 1px solid var(--mgd-line); border-radius: var(--mgd-r); padding: 36px; display: flex; flex-direction: column; }
.mgd-cmp__col--rep { border-top: 4px solid var(--mgd-navy-3); }
.mgd-cmp__col--new { border-top: 4px solid var(--mgd-red); }
.mgd-cmp__k { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--mgd-light); font: 700 12px/1 var(--mgd-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mgd-navy); margin-bottom: 18px; }
.mgd-cmp__col--new .mgd-cmp__k { background: #fdecec; color: #a32020; }
.mgd-cmp h3 { margin: 0 0 12px; font: 750 26px/1.2 var(--mgd-font); color: var(--mgd-ink); letter-spacing: -0.012em; }
.mgd-cmp p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--mgd-text); }
.mgd-cmp ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mgd-line); }
.mgd-cmp li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--mgd-line); font-size: 16px; line-height: 1.5; color: var(--mgd-text); }
.mgd-cmp li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--mgd-navy-3); }
.mgd-cmp__col--new li::before { background: var(--mgd-red); }
.mgd-cmp__note { margin-top: 24px; font-size: 15px; line-height: 1.55; color: var(--mgd-text-soft); }
.mgd-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 20px 24px; border-radius: var(--mgd-r); background: #fff; border: 1px solid var(--mgd-line); font-size: 16px; line-height: 1.6; color: var(--mgd-text); }
.mgd-note svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--mgd-warm); stroke-width: 2; stroke-linecap: round; }
.mgd-sec--light .mgd-note { background: #fff; }
.mgd-sec--white .mgd-note { background: var(--mgd-light); border-color: transparent; }
@media (max-width: 1024px) { .mgd-cmp__col { padding: 30px 26px; } .mgd-vs__side { padding: 36px 30px 32px; } }
@media (max-width: 700px) { .mgd-cmp { grid-template-columns: 1fr; gap: 16px; } .mgd-cmp__col { padding: 28px 24px; } }

/* ---------- Materials / brands (distinct from service cards) ---------- */

.mgd-mats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--mgd-line); border-radius: var(--mgd-r-lg); overflow: hidden; background: #fff; }
.mgd-mat { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-left: 1px solid var(--mgd-line); transition: background-color 0.2s; }
.mgd-mat:first-child { border-left: 0; }
.mgd-mat:hover { background: #fbfdfe; }
.mgd-mat__sw { aspect-ratio: 300 / 168; position: relative; overflow: hidden; border-bottom: 1px solid var(--mgd-line); }
.mgd-mat__sw svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mgd-mat__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.mgd-mat__k { font: 700 11px/1 var(--mgd-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mgd-warm); margin-bottom: 10px; }
.mgd-mat h3 { margin: 0 0 10px; font: 700 22px/1.2 var(--mgd-font); color: var(--mgd-ink); }
.mgd-mat p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--mgd-text); }
.mgd-mat .mgd-arrow { margin-top: auto; font-size: 15px; }
@media (max-width: 1024px) {
	.mgd-mats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mgd-mat:nth-child(3) { border-left: 0; }
	.mgd-mat:nth-child(n+3) { border-top: 1px solid var(--mgd-line); }
}
@media (max-width: 600px) {
	.mgd-mats { grid-template-columns: 1fr; }
	.mgd-mat { border-left: 0; }
	.mgd-mat + .mgd-mat { border-top: 1px solid var(--mgd-line); }
}

/* ---------- Weather factors ---------- */

.mgd-wx { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--mgd-on-dark-line); }
.mgd-wx li { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--mgd-on-dark-line); display: grid; grid-template-columns: 36px 1fr; gap: 4px 16px; }
.mgd-wx li:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--mgd-on-dark-line); }
.mgd-wx svg { grid-row: span 2; width: 36px; height: 36px; color: var(--mgd-warm-on-dark); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mgd-wx strong { font-size: 17px; color: #fff; line-height: 1.3; }
.mgd-wx span { font-size: 15px; line-height: 1.55; color: var(--mgd-on-dark-soft); }
@media (max-width: 600px) {
	.mgd-wx { grid-template-columns: 1fr; }
	.mgd-wx li, .mgd-wx li:nth-child(even) { padding: 18px 0; border-left: 0; }
}

/* ---------- Process ---------- */

.mgd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; position: relative; }
.mgd-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--mgd-line-strong); }
.mgd-step { position: relative; display: flex; flex-direction: column; }
.mgd-step__n { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--mgd-navy); color: #fff; font: 800 17px/1 var(--mgd-font); letter-spacing: 0.02em; margin-bottom: 26px; box-shadow: 0 0 0 8px var(--mgd-light); }
.mgd-sec--white .mgd-step__n { box-shadow: 0 0 0 8px #fff; }
.mgd-step:last-child .mgd-step__n { background: var(--mgd-red); }
.mgd-step h3 { margin: 0 0 10px; font: 700 20px/1.25 var(--mgd-font); color: var(--mgd-ink); }
.mgd-step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--mgd-text); }
@media (max-width: 1024px) {
	.mgd-steps { grid-template-columns: 1fr; gap: 0; max-width: 720px; }
	.mgd-steps::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; }
	.mgd-step { display: grid; grid-template-columns: 56px 1fr; gap: 0 28px; padding-bottom: 32px; }
	.mgd-step:last-child { padding-bottom: 0; }
	.mgd-step__n { grid-row: span 2; margin-bottom: 0; }
	.mgd-step h3 { padding-top: 14px; }
}
@media (max-width: 767px) {
	.mgd-step { grid-template-columns: 48px 1fr; gap: 0 18px; padding-bottom: 26px; }
	.mgd-step__n { width: 48px; height: 48px; font-size: 15px; }
	.mgd-steps::before { left: 23px; top: 24px; bottom: 24px; }
	.mgd-step h3 { padding-top: 11px; font-size: 19px; }
}

/* ---------- Media (photos) ---------- */

.mgd-photo { position: relative; margin: 0; border-radius: var(--mgd-r-lg); overflow: hidden; background: var(--mgd-light); }
body.mgd .mgd-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mgd-photo--43 { aspect-ratio: 4 / 3; }
.mgd-photo--45 { aspect-ratio: 4 / 5; }
.mgd-photo__tag { position: absolute; left: 14px; top: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(6, 32, 44, 0.86); color: #fff; font: 700 11px/1 var(--mgd-font); letter-spacing: 0.14em; text-transform: uppercase; }
.mgd-photo__tag--after { background: var(--mgd-red); }
.mgd-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(6, 32, 44, 0.85), rgba(6, 32, 44, 0)); color: #fff; font-size: 14px; line-height: 1.4; }

/* Projects */
.mgd-proj { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.mgd-proj__feature { background: #fff; border: 1px solid var(--mgd-line); border-radius: var(--mgd-r-lg); padding: 14px; display: flex; flex-direction: column; }
.mgd-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mgd-ba .mgd-photo { border-radius: var(--mgd-r); aspect-ratio: 9 / 8; }
.mgd-proj__meta { padding: 22px 12px 10px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.mgd-proj__meta h3 { margin: 4px 0 6px; font: 700 22px/1.25 var(--mgd-font); color: var(--mgd-ink); }
.mgd-proj__meta p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mgd-text); max-width: 56ch; }
.mgd-proj__loc { font: 700 12px/1 var(--mgd-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mgd-warm); }
.mgd-proj__side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.mgd-proj__card { position: relative; display: flex; flex-direction: column; border-radius: var(--mgd-r-lg); overflow: hidden; min-height: 240px; background: var(--mgd-navy); }
body.mgd .mgd-proj__card img { position: relative; flex: 1 1 auto; min-height: 150px; width: 100%; height: 100%; object-fit: cover; }
.mgd-proj__card div { flex: none; padding: 16px 22px 18px; background: var(--mgd-navy); color: #fff; }
.mgd-proj__card strong { display: block; font-size: 18px; line-height: 1.3; }
.mgd-proj__card span { display: block; margin-top: 4px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mgd-warm-on-dark); font-weight: 700; }
@media (max-width: 1024px) {
	.mgd-proj { grid-template-columns: 1fr; }
	.mgd-proj__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.mgd-proj__side { grid-template-columns: 1fr; }
	.mgd-ba { grid-template-columns: 1fr; }
	.mgd-ba .mgd-photo { aspect-ratio: 4 / 3; }
}

/* Reviews */
.mgd-revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mgd-rev { margin: 0; height: 100%; display: flex; flex-direction: column; padding: 32px; border-radius: var(--mgd-r); background: #fff; border: 1px solid var(--mgd-line); }
.mgd-rev__stars { display: flex; gap: 3px; margin-bottom: 18px; color: #e8a43a; }
.mgd-rev__stars svg { width: 18px; height: 18px; fill: currentColor; }
.mgd-rev blockquote { margin: 0 0 24px; font-size: 17px; line-height: 1.65; color: var(--mgd-ink); }
.mgd-rev figcaption { font-style: normal; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--mgd-line); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.mgd-rev figcaption strong { color: var(--mgd-ink); }
.mgd-rev figcaption span { color: var(--mgd-text-soft); }
.mgd-revs-note { margin-top: 24px; font-size: 14px; color: var(--mgd-text-soft); text-align: center; }
@media (max-width: 1024px) { .mgd-revs { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; } }
@media (max-width: 767px) { .mgd-rev { padding: 24px; } }

/* Owners */
.mgd-owner { position: relative; }
.mgd-owner .mgd-photo { aspect-ratio: 5 / 6; }
.mgd-owner__badge { position: absolute; right: -20px; bottom: 32px; background: var(--mgd-red); color: #fff; border-radius: var(--mgd-r); padding: 20px 22px; box-shadow: var(--mgd-shadow-lift); max-width: 220px; }
.mgd-owner__badge strong { display: block; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.mgd-owner__badge span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; font-weight: 600; }
@media (max-width: 960px) { .mgd-owner { max-width: 520px; } .mgd-owner__badge { right: 16px; } }

.mgd-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.mgd-facts li { padding-top: 20px; border-top: 2px solid var(--mgd-navy); }
.mgd-facts strong { display: block; margin-bottom: 6px; font-size: 18px; line-height: 1.3; color: var(--mgd-ink); }
.mgd-facts span { display: block; font-size: 16px; line-height: 1.6; color: var(--mgd-text); }
@media (max-width: 600px) { .mgd-facts { grid-template-columns: 1fr; gap: 22px; } }

/* FAQ */
.mgd-faq { border-top: 1px solid var(--mgd-line); }
.mgd-faq details { border-bottom: 1px solid var(--mgd-line); }
.mgd-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font: 700 19px/1.35 var(--mgd-font); color: var(--mgd-ink); }
.mgd-faq summary::-webkit-details-marker { display: none; }
.mgd-faq summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--mgd-line-strong); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%2306202c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform 0.25s var(--mgd-ease), background-color 0.2s; }
.mgd-faq details[open] summary::after { transform: rotate(45deg); background-color: var(--mgd-light); }
.mgd-faq summary:hover { color: var(--mgd-navy-3); }
.mgd-faq__a { padding: 0 56px 26px 0; font-size: 17px; line-height: 1.65; color: var(--mgd-text); }
.mgd-faq__a p { margin: 0; }
@media (max-width: 767px) { .mgd-faq summary { font-size: 17px; padding: 20px 0; } .mgd-faq__a { padding-right: 0; font-size: 16px; } }

/* CTA band */
body.mgd .e-con.mgd-band { background: var(--mgd-navy); padding: 80px var(--mgd-gutter); position: relative; overflow: hidden; isolation: isolate; }
body.mgd .e-con.mgd-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.02), 0 0 0 140px rgba(255, 255, 255, 0.015); z-index: -1; }
body.mgd .e-con.mgd-band__row { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 48px; }
body.mgd .mgd-band .mgd-h2 .elementor-heading-title { color: #fff; }
body.mgd .e-con.mgd-band__row > .mgd-btns { flex: none; width: auto; }
body.mgd .mgd-band .mgd-lead p, body.mgd .mgd-band .mgd-lead { color: var(--mgd-on-dark-soft); }
@media (max-width: 960px) { body.mgd .e-con.mgd-band__row { flex-direction: column; align-items: flex-start; gap: 28px; } }
@media (max-width: 767px) { body.mgd .e-con.mgd-band { padding: 56px var(--mgd-gutter); } }

/* Quote section (form + reassurance) */
body.mgd .e-con.mgd-quote { background: var(--mgd-navy); padding: var(--mgd-sec-y) var(--mgd-gutter); position: relative; overflow: hidden; isolation: isolate; }
body.mgd .e-con.mgd-quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 85% 20%, rgba(20, 68, 90, 0.9), transparent 70%); }
.mgd-qpoints { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--mgd-on-dark-line); }
.mgd-qpoints li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 16px; padding: 20px 0; border-bottom: 1px solid var(--mgd-on-dark-line); }
.mgd-qpoints b { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 14px; font-weight: 800; }
.mgd-qpoints strong { color: #fff; font-size: 17px; }
.mgd-qpoints span { color: var(--mgd-on-dark-soft); font-size: 15px; line-height: 1.55; }
.mgd-qcontact { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; color: var(--mgd-on-dark-soft); }
.mgd-qcontact a { color: #fff; font-weight: 700; text-decoration: none; }
.mgd-qcontact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Glass quote form (WPForms) ---------- */

body.mgd .e-con.mgd-formcard, .mgd-formcard {
	position: relative;
	padding: 34px 32px 30px;
	border-radius: var(--mgd-r-lg);
	background: rgba(6, 32, 44, 0.8);
	-webkit-backdrop-filter: blur(18px) saturate(115%);
	backdrop-filter: blur(18px) saturate(115%);
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	color: #fff;
}
.mgd-formcard__head { margin-bottom: 20px; }
.mgd-formcard__title { margin: 0 0 6px; font: 750 24px/1.2 var(--mgd-font); letter-spacing: -0.01em; color: #fff; }
.mgd-formcard__sub { margin: 0; font-size: 15px; line-height: 1.5; color: var(--mgd-on-dark-soft); }
@media (max-width: 767px) { body.mgd .e-con.mgd-formcard, .mgd-formcard { padding: 26px 18px 22px; } .mgd-formcard__title { font-size: 22px; } }

body.mgd .mgd-formcard .wpforms-container {
	--wpforms-field-border-radius: 8px;
	--wpforms-field-background-color: rgba(255, 255, 255, 0.08);
	--wpforms-field-border-color: rgba(255, 255, 255, 0.24);
	--wpforms-field-border-color-spare: rgba(255, 255, 255, 0.24);
	--wpforms-field-text-color: #ffffff;
	--wpforms-field-menu-color: #0d3547;
	--wpforms-label-color: #ffffff;
	--wpforms-label-sublabel-color: rgba(255, 255, 255, 0.7);
	--wpforms-label-error-color: #ffb3b3;
	--wpforms-button-border-radius: 8px;
	--wpforms-button-background-color: #dd3333;
	--wpforms-button-text-color: #ffffff;
	--wpforms-field-size-input-height: 52px;
	--wpforms-field-size-input-spacing: 0px;
	--wpforms-field-size-font-size: 16px;
	--wpforms-field-size-padding-h: 16px;
	--wpforms-field-size-checkbox-size: 20px;
	--wpforms-label-size-font-size: 15px;
	--wpforms-button-size-height: 56px;
	--wpforms-button-size-font-size: 16px;
	margin: 0 !important;
	font-family: var(--mgd-font);
}
body.mgd .mgd-formcard .wpforms-form .wpforms-field-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
body.mgd .mgd-formcard .wpforms-form .wpforms-field { grid-column: 1 / -1; padding: 0 !important; margin: 0; }
body.mgd .mgd-formcard .wpforms-form .wpforms-field.mgd-half { grid-column: auto; }
body.mgd .mgd-formcard .wpforms-form .wpforms-field-hidden { display: none !important; }

body.mgd .mgd-formcard .wpforms-form input[type="text"],
body.mgd .mgd-formcard .wpforms-form input[type="email"],
body.mgd .mgd-formcard .wpforms-form input[type="tel"],
body.mgd .mgd-formcard .wpforms-form select {
	width: 100%; max-width: none;
	height: 52px; padding: 0 16px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	background-color: rgba(255, 255, 255, 0.08);
	color: #fff;
	font: 500 16px/1.2 var(--mgd-font);
	box-shadow: none;
	transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
body.mgd .mgd-formcard .wpforms-form input::placeholder { color: rgba(255, 255, 255, 0.74); opacity: 1; }
body.mgd .mgd-formcard .wpforms-form input:hover, body.mgd .mgd-formcard .wpforms-form select:hover { border-color: rgba(255, 255, 255, 0.42); }
body.mgd .mgd-formcard .wpforms-form input:focus, body.mgd .mgd-formcard .wpforms-form select:focus { border-color: #fff; background-color: rgba(255, 255, 255, 0.12); box-shadow: 0 0 0 3px rgba(227, 165, 96, 0.45); outline: none; }
body.mgd .mgd-formcard .wpforms-form select {
	appearance: none; -webkit-appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
body.mgd .mgd-formcard .wpforms-form select.wpforms-field-medium, body.mgd .mgd-formcard .wpforms-form select.wpforms-field-large { max-width: none; }
body.mgd .mgd-formcard .wpforms-form select:invalid, body.mgd .mgd-formcard .wpforms-form select.mgd-empty { color: rgba(255, 255, 255, 0.74); }
body.mgd .mgd-formcard .wpforms-form select option { color: #06202c; background: #fff; }

/* Address: Street full width, then City | State | ZIP (WPForms wraps sub-fields in a fieldset) */
body.mgd .mgd-formcard .wpforms-form .wpforms-field-address fieldset { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.85fr); gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
body.mgd .mgd-formcard .wpforms-form .wpforms-field-address .wpforms-field-row { display: contents; }
body.mgd .mgd-formcard .wpforms-form .wpforms-field-address .wpforms-field-row::before,
body.mgd .mgd-formcard .wpforms-form .wpforms-field-address .wpforms-field-row::after { content: none !important; display: none !important; }
body.mgd .mgd-formcard .wpforms-form .wpforms-field-address .wpforms-field-row > div { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; min-width: 0; }
body.mgd .mgd-formcard .wpforms-form .wpforms-field-address .wpforms-field-row:first-of-type > div { grid-column: 1 / -1; }
body.mgd .mgd-formcard .wpforms-form .wpforms-field-address .wpforms-field-row > div:has(.wpforms-field-address-address2),
body.mgd .mgd-formcard .wpforms-form .wpforms-field-address .wpforms-field-row > div:has(.wpforms-field-address-country) { display: none; }
body.mgd .mgd-formcard .wpforms-form .wpforms-field-address .wpforms-field-sublabel { display: none; }
body.mgd .mgd-formcard .wpforms-form .wpforms-field-address input, body.mgd .mgd-formcard .wpforms-form .wpforms-field-address select { margin: 0; }

/* Visible group label + checkboxes */
body.mgd .mgd-formcard .wpforms-form .wpforms-field-checkbox .wpforms-field-label,
body.mgd .mgd-formcard .wpforms-form .mgd-services > .wpforms-field-label {
	margin: 8px 0 12px; padding: 0;
	font: 700 12px/1.3 var(--mgd-font); letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
}
body.mgd .mgd-formcard .wpforms-form .wpforms-required-label { color: #ff9c9c; }
body.mgd .mgd-formcard .wpforms-form .mgd-services ul { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px 16px; margin: 0 !important; }
body.mgd .mgd-formcard .wpforms-form .mgd-services ul li { margin: 0 !important; padding: 0 !important; width: auto !important; }
body.mgd .mgd-formcard .wpforms-form .wpforms-field-checkbox ul li { display: flex; align-items: flex-start; gap: 10px; }
body.mgd .mgd-formcard .wpforms-form .wpforms-field-checkbox li label { font: 500 15px/1.4 var(--mgd-font); color: #fff; margin: 0; padding: 0; cursor: pointer; }
body.mgd .mgd-formcard .wpforms-form input[type="checkbox"] {
	appearance: none; -webkit-appearance: none; flex: none;
	width: 20px; height: 20px; margin: 1px 0 0 !important;
	border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 4px;
	background: rgba(255, 255, 255, 0.06); cursor: pointer; position: relative;
	transition: background-color 0.15s, border-color 0.15s;
}
body.mgd .mgd-formcard .wpforms-form input[type="checkbox"]::before { content: none !important; }
body.mgd .mgd-formcard .wpforms-form input[type="checkbox"]::after { content: none !important; }
body.mgd .mgd-formcard .wpforms-form input[type="checkbox"]:checked {
	background: #dd3333 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
	border-color: #dd3333;
}
body.mgd .mgd-formcard .wpforms-form input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px rgba(227, 165, 96, 0.5); outline: none; }
body.mgd .mgd-formcard .wpforms-form .mgd-confirm { margin-top: 6px !important; padding-top: 16px !important; border-top: 1px solid rgba(255, 255, 255, 0.14); }
body.mgd .mgd-formcard .wpforms-form .mgd-confirm li label { font-size: 14px; color: rgba(255, 255, 255, 0.9); }

body.mgd .mgd-formcard .wpforms-form .mgd-consent { font-size: 12.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.68); }
body.mgd .mgd-formcard .wpforms-form .mgd-consent p { margin: 0; }
body.mgd .mgd-formcard .wpforms-form .mgd-consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

body.mgd .mgd-formcard .wpforms-form .wpforms-submit-container { margin-top: 18px !important; padding: 0 !important; }
body.mgd .mgd-formcard .wpforms-form button[type="submit"],
body.mgd .mgd-formcard .wpforms-form .wpforms-submit {
	width: 100%; height: 56px;
	border: 0; border-radius: 8px;
	background: #dd3333 !important; color: #fff !important;
	font: 800 16px/1 var(--mgd-font) !important; letter-spacing: 0.08em; text-transform: uppercase;
	cursor: pointer; transition: background-color 0.2s var(--mgd-ease);
}
body.mgd .mgd-formcard .wpforms-form button[type="submit"]:hover { background: #c42828 !important; }
body.mgd .mgd-formcard .wpforms-form button[type="submit"]:focus-visible { box-shadow: 0 0 0 3px rgba(227, 165, 96, 0.6) !important; }
body.mgd .mgd-formcard .wpforms-form button[type="submit"]::after { display: none !important; }

body.mgd .mgd-formcard .wpforms-form label.wpforms-error,
body.mgd .mgd-formcard .wpforms-form em.wpforms-error { display: block; margin-top: 6px; font: 600 13px/1.35 var(--mgd-font); color: #ffb3b3; }
body.mgd .mgd-formcard .wpforms-form input.wpforms-error, body.mgd .mgd-formcard .wpforms-form select.wpforms-error { border-color: #ff8a8a !important; }
body.mgd .mgd-formcard .wpforms-confirmation-container-full {
	background: rgba(255, 255, 255, 0.08) !important; border: 1px solid rgba(255, 255, 255, 0.24) !important; color: #fff !important;
	border-radius: 10px; padding: 22px !important; font: 500 17px/1.6 var(--mgd-font);
}
body.mgd .mgd-formcard .wpforms-confirmation-container-full p { color: #fff; margin: 0; }

/* The form adapts to its own width (hero column, quote section, contact) via container queries */
body.mgd .mgd-formcard { container-type: inline-size; container-name: mgdform; }
@container mgdform (max-width: 520px) {
	body.mgd .mgd-formcard .wpforms-form .wpforms-field-address fieldset { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
	body.mgd .mgd-formcard .wpforms-form .wpforms-field-address .wpforms-field-row > div:has(.wpforms-field-address-city) { grid-column: 1 / -1; }
}
@container mgdform (max-width: 420px) {
	body.mgd .mgd-formcard .wpforms-form .wpforms-field.mgd-half { grid-column: 1 / -1; }
	body.mgd .mgd-formcard .wpforms-form .wpforms-field.mgd-name { grid-column: auto; }
	body.mgd .mgd-formcard .wpforms-form .mgd-services > .wpforms-field-label { letter-spacing: 0.06em; }
	body.mgd .mgd-formcard .wpforms-form .mgd-services ul { gap: 10px 12px; }
	body.mgd .mgd-formcard .wpforms-form .wpforms-field-checkbox li label { font-size: 14.5px; }
}
}

/* ---------- Legal pages ---------- */

body.mgd .e-con.mgd-legal-hero { background: var(--mgd-light); padding: 64px var(--mgd-gutter) 48px; border-bottom: 1px solid var(--mgd-line); }
body.mgd .e-con.mgd-legal-hero .mgd-h1 .elementor-heading-title { font-size: clamp(34px, 4vw, 48px); }
.mgd-legal-meta { margin: 14px 0 0; font-size: 15px; color: var(--mgd-text-soft); }
.mgd-legal-flag { display: inline-flex; margin-top: 18px; padding: 8px 12px; border-radius: var(--mgd-r-sm); background: #fff6e8; border: 1px solid #f0d5ad; color: #7a4a10; font-size: 14px; font-weight: 600; }
body.mgd .e-con.mgd-legal { padding: 56px var(--mgd-gutter) var(--mgd-sec-y); }
.mgd-legal-body { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--mgd-text); }
.mgd-legal-body h2 { margin: 44px 0 14px; font: 750 26px/1.25 var(--mgd-font); color: var(--mgd-ink); letter-spacing: -0.01em; }
.mgd-legal-body h3 { margin: 28px 0 10px; font: 700 19px/1.3 var(--mgd-font); color: var(--mgd-ink); }
.mgd-legal-body h2:first-child { margin-top: 0; }
.mgd-legal-body p { margin: 0 0 16px; }
.mgd-legal-body ul { margin: 0 0 18px; padding-left: 22px; }
.mgd-legal-body li { margin-bottom: 8px; }
.mgd-legal-body a { color: var(--mgd-navy); font-weight: 600; text-underline-offset: 3px; }
.mgd-legal-body address { font-style: normal; }
@media (max-width: 767px) {
	body.mgd .e-con.mgd-legal-hero { padding: 40px 20px 32px; }
	body.mgd .e-con.mgd-legal { padding: 36px 20px 64px; }
	.mgd-legal-body { font-size: 16px; }
	.mgd-legal-body h2 { font-size: 22px; margin-top: 34px; }
}

/* ---------- Contact ---------- */

.mgd-cinfo { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--mgd-line); }
.mgd-cinfo li { display: grid; grid-template-columns: 48px 1fr; gap: 2px 18px; padding: 24px 0; border-bottom: 1px solid var(--mgd-line); }
.mgd-cinfo .mgd-cinfo__ico { grid-row: span 2; width: 48px; height: 48px; border-radius: var(--mgd-r); background: var(--mgd-light); display: grid; place-items: center; }
.mgd-cinfo .mgd-cinfo__ico svg { width: 22px; height: 22px; fill: var(--mgd-navy); }
.mgd-cinfo small { font: 700 12px/1.3 var(--mgd-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mgd-warm); padding-top: 3px; }
.mgd-cinfo strong, .mgd-cinfo a { font-size: 18px; line-height: 1.45; color: var(--mgd-ink); font-weight: 700; text-decoration: none; }
.mgd-cinfo a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mgd-cinfo li > :not(.mgd-cinfo__ico) { grid-column: 2; }
.mgd-cinfo p { margin: 4px 0 0; font-size: 15px; color: var(--mgd-text-soft); line-height: 1.5; }

/* Utility */
.mgd-center { text-align: center; }
.mgd-mt-24 { margin-top: 24px; }
.mgd-muted { color: var(--mgd-text-soft); font-size: 14px; }

/* ---------- Dark contexts (hero, page hero, quote, band) ---------- */

body.mgd .mgd-hero .elementor-heading-title,
body.mgd .mgd-phero .elementor-heading-title,
body.mgd .mgd-quote .elementor-heading-title,
body.mgd .mgd-band .elementor-heading-title { color: #fff; }
body.mgd .mgd-hero .mgd-eyebrow .elementor-heading-title,
body.mgd .mgd-phero .mgd-eyebrow .elementor-heading-title,
body.mgd .mgd-quote .mgd-eyebrow .elementor-heading-title,
body.mgd .mgd-band .mgd-eyebrow .elementor-heading-title { color: var(--mgd-warm-on-dark); }
body.mgd .mgd-hero .mgd-text, body.mgd .mgd-hero .mgd-text p, body.mgd .mgd-hero .mgd-lead p,
body.mgd .mgd-phero .mgd-text p, body.mgd .mgd-phero .mgd-lead p,
body.mgd .mgd-quote .mgd-text p, body.mgd .mgd-quote .mgd-lead p,
body.mgd .mgd-band .mgd-text p, body.mgd .mgd-band .mgd-lead p { color: var(--mgd-on-dark-soft); }
body.mgd .e-con.mgd-quote, body.mgd .e-con.mgd-band { background-color: var(--mgd-navy-2); }
body.mgd .e-con.mgd-quote::before { background: radial-gradient(900px 480px at 88% 10%, rgba(20, 68, 90, 0.95), transparent 70%), linear-gradient(180deg, rgba(6, 32, 44, 0.35), rgba(6, 32, 44, 0)); }
body.mgd .e-con.mgd-quote--contact { padding-top: 64px; }
body.mgd .mgd-quote--contact .mgd-h1 .elementor-heading-title { font-size: clamp(34px, 4vw, 52px); }
body.mgd .mgd-quote .mgd-head .mgd-h1 { margin-bottom: 20px; }
body.mgd .mgd-quote .mgd-head .mgd-h2 { margin-bottom: 20px; }
body.mgd .e-con.mgd-quote .mgd-formcard { background: rgba(6, 32, 44, 0.82); }
@media (max-width: 767px) { body.mgd .e-con.mgd-quote--contact { padding-top: 36px; } }

/* Dark-section card/type overrides */
.mgd-sec--navy .mgd-types { background: rgba(255, 255, 255, 0.04); border-color: var(--mgd-on-dark-line); }
.mgd-sec--navy .mgd-type { border-color: var(--mgd-on-dark-line) !important; }
.mgd-sec--navy .mgd-type:hover { background: rgba(255, 255, 255, 0.05); }
.mgd-sec--navy .mgd-type strong, .mgd-sec--navy .mgd-type em { color: #fff; }
.mgd-sec--navy .mgd-type span:not(.mgd-type__k) { color: var(--mgd-on-dark-soft); }
.mgd-sec--navy .mgd-type__k { color: var(--mgd-warm-on-dark); }
.mgd-card--dark .mgd-arrow { color: #fff; }

/* Legal review flag: admins only */
.mgd-legal-flag { display: none !important; }
body.logged-in .mgd-legal-flag { display: inline-flex !important; }

/* Rhythm: every block stacked directly in a section wrapper is spaced the same way */
body.mgd .e-con.mgd-wrap > .elementor-element + .elementor-element { margin-top: 56px; }
body.mgd .e-con.mgd-stack > .mgd-head + .elementor-widget-text-editor,
body.mgd .e-con.mgd-stack > .mgd-head + .elementor-widget-html { margin-top: 24px; }
body.mgd .e-con.mgd-stack > .mgd-head + .mgd-btns { margin-top: 32px; }
body.mgd .e-con.mgd-split--end { align-items: end; }
@media (max-width: 1024px) { body.mgd .e-con.mgd-wrap > .elementor-element + .elementor-element { margin-top: 44px; } }
@media (max-width: 767px) { body.mgd .e-con.mgd-wrap > .elementor-element + .elementor-element { margin-top: 32px; } }
body.mgd .e-con.mgd-legal-hero .mgd-wrap > .elementor-element + .elementor-element { margin-top: 0; }

@media (max-width: 767px) {
	.mgd-dg--panel, .mgd-dg--card { padding: 18px; }
	.mgd-legend li { font-size: 14px; }
}

/* Numbered spec list, 4 columns (installation) */
.mgd-signs--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mgd-signs--4 li, .mgd-signs--4 li:nth-child(3n+2), .mgd-signs--4 li:nth-child(3n) { padding: 26px 22px 26px 0; border-left: 0; }
.mgd-signs--4 li:not(:nth-child(4n+1)) { padding-left: 22px; border-left: 1px solid var(--mgd-line); }
@media (max-width: 1024px) {
	.mgd-signs--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mgd-signs--4 li, .mgd-signs--4 li:not(:nth-child(4n+1)) { padding: 22px 22px 22px 0; border-left: 0; }
	.mgd-signs--4 li:nth-child(even) { padding-left: 22px; padding-right: 0; border-left: 1px solid var(--mgd-line); }
}
@media (max-width: 600px) {
	.mgd-signs--4 { grid-template-columns: 1fr; }
	.mgd-signs--4 li, .mgd-signs--4 li:nth-child(even) { padding: 20px 0; border-left: 0; }
}
.mgd-facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .mgd-facts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .mgd-facts--4 { grid-template-columns: 1fr; } }
/* Material study figure */
.mgd-study { margin: 0; background: #fff; border: 1px solid var(--mgd-line); border-radius: var(--mgd-r-lg); overflow: hidden; box-shadow: var(--mgd-shadow); }
.mgd-study__art { position: relative; aspect-ratio: 16 / 10; }
.mgd-study__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mgd-study figcaption { padding: 20px 24px 22px; font-size: 15px; line-height: 1.55; color: var(--mgd-text); }
.mgd-study__k { display: block; margin-bottom: 6px; font: 700 12px/1.2 var(--mgd-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mgd-warm); }

.mgd-mats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .mgd-mats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mgd-mats--3 .mgd-mat:nth-child(n+3) { border-top: 0; } .mgd-mats--3 .mgd-mat:nth-child(3) { border-left: 1px solid var(--mgd-line); } }
@media (max-width: 760px) { .mgd-mats--3 { grid-template-columns: 1fr; } .mgd-mats--3 .mgd-mat, .mgd-mats--3 .mgd-mat:nth-child(3) { border-left: 0; } .mgd-mats--3 .mgd-mat + .mgd-mat { border-top: 1px solid var(--mgd-line); } }

body.mgd .e-con.mgd-split > *, body.mgd .e-con.mgd-hero__grid > * { min-width: 0; }
.mgd-study, .mgd-study__art { max-width: 100%; }
.mgd-study__art { overflow: hidden; }

/* ---------- Real photography (replaces the door diagrams; diagram styles above kept for rollback) ---------- */

.mgd-hphoto { margin: 0; width: 100%; }
.mgd-hphoto__grid { display: grid; gap: 14px; }
.mgd-hphoto--2 .mgd-hphoto__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mgd-hphoto__img { position: relative; overflow: hidden; border-radius: var(--mgd-r-lg); background: var(--mgd-navy-2); aspect-ratio: 4 / 5; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); }
.mgd-hphoto--2 .mgd-hphoto__img { aspect-ratio: 3 / 4; }
body.mgd .mgd-hphoto__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mgd-hphoto__label { display: block; margin-top: 12px; font: 700 12px/1.2 var(--mgd-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mgd-warm-on-dark); }
.mgd-hphoto figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--mgd-on-dark-soft); }
@media (max-width: 960px) { .mgd-hphoto { max-width: 560px; } .mgd-hphoto--1 .mgd-hphoto__img { aspect-ratio: 4 / 3; } }
@media (max-width: 767px) { .mgd-hphoto--1 .mgd-hphoto__img { aspect-ratio: 1 / 1; } .mgd-hphoto__grid { gap: 10px; } }

.mgd-svc__art--photo { padding: 0; place-items: stretch; position: relative; overflow: hidden; }
body.mgd .mgd-svc__art--photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--mgd-ease); }
.mgd-svc:hover .mgd-svc__art--photo img { transform: scale(1.03); }
@media (max-width: 860px) { .mgd-svc__art--photo { min-height: 180px; } }

.mgd-vs__art--photo { height: auto; aspect-ratio: 16 / 10; margin: 0 0 30px; border-radius: var(--mgd-r); overflow: hidden; background: var(--mgd-navy); }
body.mgd .mgd-vs__art--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) { .mgd-vs__art--photo { height: auto; } }

.mgd-wxphoto { margin: 0; border-radius: var(--mgd-r-lg); overflow: hidden; aspect-ratio: 1 / 1; background: var(--mgd-navy); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
body.mgd .mgd-wxphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 960px) { .mgd-wxphoto { max-width: 560px; aspect-ratio: 4 / 3; } }

/* Project proof: single feature photo + link card to the one Albertville before/after */
.mgd-proj__feature > .mgd-photo { border-radius: var(--mgd-r); }
.mgd-proj__link { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 200px; padding: 26px 24px; border-radius: var(--mgd-r-lg); background: var(--mgd-navy); color: #fff; text-decoration: none; position: relative; overflow: hidden; transition: background-color 0.2s var(--mgd-ease); }
.mgd-proj__link::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.03); }
.mgd-proj__link:hover { background: var(--mgd-navy-2); }
.mgd-proj__link strong { font-size: 20px; line-height: 1.25; }
.mgd-proj__link .mgd-proj__loc { color: var(--mgd-warm-on-dark); }
.mgd-proj__link .mgd-arrow { color: #fff; }
/* Project proof: feature photo fills the column height; link card text stays white */
.mgd-proj__feature > .mgd-photo { flex: 1 1 auto; aspect-ratio: auto; min-height: 320px; }
body.mgd a.mgd-proj__link, body.mgd a.mgd-proj__link strong { color: #fff; }
body.mgd a.mgd-proj__link .mgd-proj__loc { color: var(--mgd-warm-on-dark); }
@media (max-width: 1024px) { .mgd-proj__feature > .mgd-photo { aspect-ratio: 16 / 10; min-height: 0; } }
/* Project proof: keep the side column compact so the feature photo is never upscaled past its 900px source */
.mgd-proj__side { grid-template-rows: auto auto; align-content: start; }
.mgd-proj__card { min-height: 0; }
body.mgd .mgd-proj__card img { flex: none; height: 230px; }
.mgd-proj__feature > .mgd-photo { min-height: 0; }
@media (max-width: 1024px) { body.mgd .mgd-proj__card img { height: 200px; } }
/* Equalize: side column stretches to the feature card; storm photo absorbs the extra height */
.mgd-proj__side { grid-template-rows: 1fr auto; align-content: stretch; }
body.mgd .mgd-proj__card img { flex: 1 1 0; height: auto; min-height: 230px; }
@media (max-width: 1024px) { .mgd-proj__side { grid-template-rows: none; } body.mgd .mgd-proj__card img { flex: none; height: 220px; min-height: 0; } }

/* =====================================================================
   Hero brightness (v2): the photo is shown at full strength; darkness is
   localized behind the text column instead of one flat overlay.
   ===================================================================== */

body.mgd .e-con.mgd-hero {
	--mgd-hero-img: url("/wp-content/uploads/2026/10/mgd-white-porch-dark-entry-door.webp");
}
body.mgd .e-con.mgd-hero::before {
	opacity: 1;
	filter: saturate(1.05);
	background-size: 170% auto;
	background-position: 100% 58%; /* puts the front door in the open band between headline and form */
}
body.mgd .e-con.mgd-hero::after {
	background:
		linear-gradient(90deg, rgba(6, 32, 44, 0.93) 0%, rgba(6, 32, 44, 0.88) 36%, rgba(6, 32, 44, 0.52) 47%, rgba(6, 32, 44, 0.3) 56%, rgba(6, 32, 44, 0.38) 100%),
		linear-gradient(0deg, rgba(6, 32, 44, 0.6) 0%, rgba(6, 32, 44, 0) 32%);
}
/* Form stays clearly darker than the brighter backdrop */
body.mgd .e-con.mgd-hero .mgd-formcard { background: rgba(6, 32, 44, 0.86); }

@media (max-width: 1200px) {
	body.mgd .e-con.mgd-hero::before { background-size: 150% auto; }
	body.mgd .e-con.mgd-hero::after {
		background:
			linear-gradient(90deg, rgba(6, 32, 44, 0.93) 0%, rgba(6, 32, 44, 0.88) 40%, rgba(6, 32, 44, 0.5) 52%, rgba(6, 32, 44, 0.34) 60%, rgba(6, 32, 44, 0.4) 100%),
			linear-gradient(0deg, rgba(6, 32, 44, 0.6) 0%, rgba(6, 32, 44, 0) 32%);
	}
}
@media (max-width: 960px) {
	/* Stacked: photo shows across the top band, darkening down into the text and form */
	body.mgd .e-con.mgd-hero::before { background-size: cover; background-position: 72% 0; }
	body.mgd .e-con.mgd-hero::after {
		background: linear-gradient(180deg, rgba(6, 32, 44, 0.62) 0%, rgba(6, 32, 44, 0.84) 26%, rgba(6, 32, 44, 0.92) 48%, rgba(6, 32, 44, 0.95) 100%);
	}
}

/* Inner heroes: photo cards were never overlaid; lift the flat navy band so the photo side reads lighter */
body.mgd .e-con.mgd-phero {
	background:
		radial-gradient(760px 560px at 80% 50%, rgba(36, 104, 134, 0.42), rgba(36, 104, 134, 0) 70%),
		linear-gradient(90deg, #06202c 0%, #082a3a 45%, #0e3a4e 100%);
}
@media (max-width: 960px) {
	body.mgd .e-con.mgd-phero {
		background:
			radial-gradient(520px 420px at 50% 88%, rgba(36, 104, 134, 0.45), rgba(36, 104, 134, 0) 70%),
			linear-gradient(180deg, #06202c 0%, #0b3243 100%);
	}
}

/* =====================================================================
   Homepage door projects: real feature + two door-service cards
   ===================================================================== */
.mgd-proj__side { grid-template-rows: 1fr 1fr; }
body.mgd a.mgd-proj__card--svc { color: #fff; text-decoration: none; }
body.mgd .mgd-proj__card--svc img { flex: 1 1 0; height: auto; min-height: 150px; transition: transform 0.4s var(--mgd-ease); }
.mgd-proj__card--svc:hover img { transform: scale(1.03); }
.mgd-proj__card--svc > div { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; }
body.mgd .mgd-proj__card--svc .mgd-proj__tag { margin: 0; font: 700 11px/1.2 var(--mgd-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mgd-warm-on-dark); }
body.mgd .mgd-proj__card--svc strong { font-size: 18px; line-height: 1.3; color: #fff; }
body.mgd .mgd-proj__card--svc .mgd-arrow { display: inline-flex; margin-top: 4px; font: 700 14px/1.2 var(--mgd-font); letter-spacing: 0; text-transform: none; color: #fff; }
.mgd-proj__note { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--mgd-text-soft); }
@media (max-width: 1024px) {
	.mgd-proj__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	body.mgd .mgd-proj__card--svc img { flex: none; height: 200px; min-height: 0; }
}
@media (max-width: 600px) { .mgd-proj__side { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
	/* Stacked hero: keep the photo to the top band (headline area) so it reads as a home, then fade to navy before the form */
	body.mgd .e-con.mgd-hero::before { background-size: auto 780px; background-repeat: no-repeat; background-position: 68% 0; }
	body.mgd .e-con.mgd-hero::after {
		background: linear-gradient(180deg, rgba(6, 32, 44, 0.55) 0px, rgba(6, 32, 44, 0.72) 260px, rgba(6, 32, 44, 0.86) 520px, rgba(6, 32, 44, 1) 780px, rgba(6, 32, 44, 1) 100%);
	}
}
@media (max-width: 960px) {
	/* Contrast: slightly deeper top band + lighter warm eyebrow so the 13px eyebrow clears 4.5:1 over the photo */
	body.mgd .e-con.mgd-hero::after {
		background: linear-gradient(180deg, rgba(6, 32, 44, 0.74) 0px, rgba(6, 32, 44, 0.78) 260px, rgba(6, 32, 44, 0.88) 520px, rgba(6, 32, 44, 1) 780px, rgba(6, 32, 44, 1) 100%);
	}
	body.mgd .mgd-hero .mgd-eyebrow .elementor-heading-title { color: #f4c995; }
}

/* Homepage door projects v3: real-project link card (no Albertville images) + two door-service cards */
.mgd-proj--3 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.mgd-proj--3 .mgd-proj__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 24px; }
body.mgd .mgd-proj--3 .mgd-proj__card--svc img { flex: none; height: 260px; min-height: 0; }
body.mgd a.mgd-proj__real {
	display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
	min-height: 360px; padding: 36px 32px; border-radius: var(--mgd-r-lg);
	background: radial-gradient(420px 320px at 100% 0%, rgba(36, 104, 134, 0.55), rgba(36, 104, 134, 0) 70%), var(--mgd-navy);
	color: #fff; text-decoration: none; position: relative; overflow: hidden;
	transition: transform 0.2s var(--mgd-ease), box-shadow 0.2s var(--mgd-ease);
}
body.mgd a.mgd-proj__real:hover { transform: translateY(-2px); box-shadow: var(--mgd-shadow-lift); }
.mgd-proj__real-k { font: 700 12px/1.2 var(--mgd-font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mgd-warm-on-dark); }
body.mgd .mgd-proj__real h3 { margin: 0; font: 750 28px/1.15 var(--mgd-font); letter-spacing: -0.015em; color: #fff; }
body.mgd .mgd-proj__real p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--mgd-on-dark-soft); }
body.mgd .mgd-proj__real .mgd-proj__real-cta { align-self: flex-start; margin-top: 8px; min-height: 48px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 1024px) {
	.mgd-proj--3 { grid-template-columns: 1fr; }
	body.mgd a.mgd-proj__real { min-height: 0; }
	body.mgd .mgd-proj--3 .mgd-proj__card--svc img { height: 220px; }
}
@media (max-width: 600px) { .mgd-proj--3 .mgd-proj__side { grid-template-columns: 1fr; } body.mgd .mgd-proj__real h3 { font-size: 24px; } }

/* =====================================================================
   Homepage hero polish: compact form (desktop), meter pushed off-frame,
   quieter trust row. Mobile tap targets unchanged.
   ===================================================================== */

/* Background: larger 3200px source; utility meter (right edge of photo) falls outside the frame */
@media (min-width: 1201px) {
	body.mgd .e-con.mgd-hero { --mgd-hero-img: url("/wp-content/uploads/2026/10/mgd-porch-entry-door-hero-3200.webp"); }
	body.mgd .e-con.mgd-hero::before { background-size: 190% auto; background-position: 91% 58%; }
}
@media (min-width: 961px) and (max-width: 1200px) {
	body.mgd .e-con.mgd-hero::before { background-size: 170% auto; background-position: 90% 58%; }
}

/* Compact form on desktop (~13% shorter) */
@media (min-width: 961px) {
	body.mgd .e-con.mgd-hero .mgd-formcard { padding: 24px 30px 22px; }
	body.mgd .mgd-hero .mgd-formcard__head { margin-bottom: 14px; }
	body.mgd .mgd-hero .mgd-formcard__title { font-size: 22px; margin-bottom: 4px; }
	body.mgd .mgd-hero .mgd-formcard__sub { font-size: 14.5px; }
	body.mgd .mgd-hero .mgd-formcard .wpforms-container { --wpforms-field-size-input-height: 48px; }
	body.mgd .mgd-hero .mgd-formcard .wpforms-form .wpforms-field-container { gap: 8px 10px; }
	body.mgd .mgd-hero .mgd-formcard .wpforms-form .wpforms-field-address fieldset { gap: 8px 10px; }
	body.mgd .mgd-hero .mgd-formcard .wpforms-form input[type="text"],
	body.mgd .mgd-hero .mgd-formcard .wpforms-form input[type="email"],
	body.mgd .mgd-hero .mgd-formcard .wpforms-form input[type="tel"],
	body.mgd .mgd-hero .mgd-formcard .wpforms-form select { height: 48px; }
	body.mgd .mgd-hero .mgd-formcard .wpforms-form .mgd-services > .wpforms-field-label { margin: 4px 0 8px; }
	body.mgd .mgd-hero .mgd-formcard .wpforms-form .mgd-services ul { gap: 7px 16px; }
	body.mgd .mgd-hero .mgd-formcard .wpforms-form .mgd-confirm { margin-top: 2px !important; padding-top: 12px !important; }
	body.mgd .mgd-hero .mgd-formcard .wpforms-form .mgd-consent { font-size: 12px; line-height: 1.5; }
	body.mgd .mgd-hero .mgd-formcard .wpforms-form .wpforms-submit-container { margin-top: 14px !important; }
	body.mgd .mgd-hero .mgd-formcard .wpforms-form button[type="submit"] { height: 52px; }
}

/* Trust row: present but quieter than the headline, lead and CTA */
.mgd-hero-points { margin-top: 32px; padding-top: 22px; gap: 18px; }
.mgd-hero-points li { font-size: 14px; color: rgba(255, 255, 255, 0.68); }
.mgd-hero-points strong { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }

/* Homepage hero form: title only, centered (description removed) */
body.mgd .mgd-hero .mgd-formcard__head { text-align: center; margin-bottom: 16px; }
body.mgd .mgd-hero .mgd-formcard__title { margin: 0; }

/* Homepage hero form: divider between the address block and service selection (matches the confirmation divider) */
body.mgd .mgd-hero .mgd-formcard .wpforms-form .mgd-services { margin-top: 4px !important; padding-top: 12px !important; border-top: 1px solid rgba(255, 255, 255, 0.14); }
body.mgd .mgd-hero .mgd-formcard .wpforms-form .mgd-services > .wpforms-field-label { margin-top: 0; }
@media (min-width: 961px) {
	body.mgd .mgd-hero .mgd-formcard .wpforms-form .mgd-services { margin-top: 2px !important; }
}

/* Homepage hero form: true translucent glass (Johnson navy, not frosted white) */
body.mgd .e-con.mgd-hero .mgd-formcard {
	background: rgba(6, 32, 44, 0.76);
	-webkit-backdrop-filter: blur(18px) saturate(115%);
	backdrop-filter: blur(18px) saturate(115%);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
/* Fields stay a touch more opaque than the card so they read as distinct controls */
body.mgd .mgd-hero .mgd-formcard .wpforms-form input[type="text"],
body.mgd .mgd-hero .mgd-formcard .wpforms-form input[type="email"],
body.mgd .mgd-hero .mgd-formcard .wpforms-form input[type="tel"],
body.mgd .mgd-hero .mgd-formcard .wpforms-form select { background-color: rgba(255, 255, 255, 0.09); }
/* Browsers without backdrop-filter: fall back to a near-solid panel so text never loses contrast */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	body.mgd .e-con.mgd-hero .mgd-formcard { background: rgba(6, 32, 44, 0.92); }
}
