/* ============================================================
   Max Effort Builders — V2 Editorial Design System
   ------------------------------------------------------------
   Tokens locked from MaxEffortBuilders-BuildContextHandoff.md
   (Cardo serif + DM Sans, near-monochrome, restrained motion,
   square-corner buttons, 60% cream / 30% black-gray / 10% green)
   ============================================================ */

:root {
	/* ── Color tokens ────────────────────────────────────── */
	--meb-black:       #111111;
	--meb-dark:        #1e2541;          /* navy — used sparingly for dark blocks */
	--meb-gray-1:      #333333;          /* strong secondary text */
	--meb-gray-2:      #636363;          /* body text — primary reading color */
	--meb-gray-3:      #999999;          /* tertiary text, overlines, labels */
	--meb-gray-4:      #c8c8c8;          /* borders, button outlines */
	--meb-gray-5:      #e8e6e3;          /* dividers, solution grid borders */
	--meb-cream:       #f9f9f9;          /* page background, alternating sections */
	--meb-white:       #ffffff;
	--meb-accent:      #2cb567;          /* CTA buttons + accent dots ONLY */
	--meb-accent-dark: #249b58;          /* CTA hover */

	/* ── Typography tokens ───────────────────────────────── */
	--meb-font-display: 'Cardo', Georgia, 'Times New Roman', serif;
	--meb-font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	--meb-h1: clamp(2.6rem, 5.5vw, 4rem);
	--meb-h2: clamp(2rem, 4vw, 3rem);
	--meb-h3: 1.5rem;
	--meb-h4: 1.25rem;
	--meb-body: 1.08rem;
	--meb-body-lg: 1.12rem;
	--meb-body-sm: 0.95rem;
	--meb-overline: 0.76rem;
	--meb-fine: 0.78rem;

	/* ── Layout tokens ───────────────────────────────────── */
	--meb-container: 1200px;
	--meb-container-narrow: 760px;
	--meb-section-pad: min(8rem, 10vw);
	--meb-section-pad-sm: min(5rem, 6vw);
	--meb-gutter: 32px;

	/* ── Motion tokens ───────────────────────────────────── */
	--meb-ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
	--meb-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Global reset + base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--meb-font-body);
	font-size: var(--meb-body);
	line-height: 1.75;
	color: var(--meb-gray-2);
	background: var(--meb-cream);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-wrap: pretty;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--meb-ease-smooth); }
a:hover { color: var(--meb-accent); }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
::selection { background: rgba(44, 181, 103, 0.12); color: var(--meb-black); }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
	font-family: var(--meb-font-display);
	color: var(--meb-black);
	font-weight: 400;
	line-height: 1.18;
	letter-spacing: -0.005em;
	text-wrap: balance;
}
h1 { font-size: var(--meb-h1); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: var(--meb-h2); }
h3 { font-size: var(--meb-h3); line-height: 1.3; }
h4 { font-size: var(--meb-h4); line-height: 1.35; }
p  { max-width: 65ch; }
strong { color: var(--meb-black); font-weight: 600; }

.meb-overline {
	font-family: var(--meb-font-body);
	font-size: var(--meb-overline);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--meb-gray-3);
	display: block;
	margin-bottom: 14px;
}

/* ── Layout primitives ────────────────────────────────────── */
.meb-container        { max-width: var(--meb-container); margin: 0 auto; padding: 0 var(--meb-gutter); }
.meb-container-narrow { max-width: var(--meb-container-narrow); margin: 0 auto; padding: 0 var(--meb-gutter); }
.meb-section          { padding: var(--meb-section-pad) 0; }
.meb-section-sm       { padding: var(--meb-section-pad-sm) 0; }
.meb-section-cream    { background: var(--meb-cream); }
.meb-section-white    { background: var(--meb-white); }
.meb-section-dark     { background: var(--meb-dark); color: rgba(255, 255, 255, 0.6); }
.meb-section-dark h1, .meb-section-dark h2, .meb-section-dark h3 { color: var(--meb-white); }
.meb-section-dark .meb-overline { color: rgba(255, 255, 255, 0.35); }

.meb-section-head { text-align: center; margin-bottom: min(4rem, 5vw); }
.meb-section-head p { margin: 16px auto 0; font-size: var(--meb-body-lg); }

/* ── Buttons (V2 editorial — square corners, no decoration) ─ */
.meb-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--meb-font-body);
	font-weight: 600;
	font-size: var(--meb-body-sm);
	padding: 15px 34px;
	border-radius: 0;
	letter-spacing: 0.01em;
	transition: all 0.3s var(--meb-ease-smooth);
	cursor: pointer;
	border: none;
	white-space: nowrap;
}
.meb-btn-dark {
	background: var(--meb-black);
	color: var(--meb-white) !important;
}
.meb-btn-dark:hover {
	background: var(--meb-black);
	color: var(--meb-white) !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.meb-btn-green {
	background: var(--meb-accent);
	color: var(--meb-white) !important;
}
.meb-btn-green:hover {
	background: var(--meb-accent-dark);
	color: var(--meb-white) !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(44, 181, 103, 0.2);
}
.meb-btn-outline {
	background: transparent;
	color: var(--meb-black);
	border: 1.5px solid var(--meb-gray-4);
}
.meb-btn-outline:hover {
	border-color: var(--meb-black);
	color: var(--meb-black);
	transform: translateY(-1px);
}
.meb-btn-text {
	background: none;
	color: var(--meb-black);
	padding: 0 0 2px;
	font-weight: 600;
	border-bottom: 1.5px solid var(--meb-black);
	border-radius: 0;
}
.meb-btn-text:hover { border-color: var(--meb-accent); color: var(--meb-accent); }

/* ── Header ───────────────────────────────────────────────── */
.meb-topbar {
	background: var(--meb-cream);
	color: var(--meb-gray-2);
	font-size: var(--meb-fine);
	padding: 10px 0;
	border-bottom: 1px solid var(--meb-gray-5);
}
.meb-topbar-inner {
	max-width: var(--meb-container);
	margin: 0 auto;
	padding: 0 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.meb-header {
	background: var(--meb-white);
	position: sticky;
	top: 0;
	z-index: 9999;
	border-bottom: 1px solid var(--meb-gray-5);
	transition: box-shadow 0.4s var(--meb-ease-smooth);
}
/* WP admin bar fix — push sticky header below the admin bar when logged in */
.admin-bar .meb-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .meb-header { top: 46px; }
}
.meb-header.meb-scrolled { box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04); }
.meb-header-inner {
	max-width: var(--meb-container);
	margin: 0 auto;
	padding: 16px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	transition: padding 0.4s var(--meb-ease-smooth);
}
.meb-header.meb-scrolled .meb-header-inner { padding-top: 10px; padding-bottom: 10px; }

/* Logo — has transparent padding baked into the .webp file;
   oversized height + negative margin compensates. Re-export
   logo with tighter crop is the proper fix (open question). */
.meb-logo-link {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	overflow: hidden;
	margin: -6px 0;
}
.meb-logo-img {
	height: 110px;
	max-height: 110px;
	width: auto;
	max-width: 320px;
	object-fit: contain;
	transition: height 0.4s var(--meb-ease-smooth);
}
.meb-header.meb-scrolled .meb-logo-img { height: 80px; max-height: 80px; }

/* Desktop nav */
.meb-nav { display: flex; align-items: center; gap: 28px; }
.meb-nav > a {
	font-size: var(--meb-body-sm);
	font-weight: 500;
	color: var(--meb-gray-1);
	transition: color 0.3s var(--meb-ease-smooth);
	position: relative;
	padding: 4px 0;
	white-space: nowrap;
}
.meb-nav > a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1.5px;
	background: var(--meb-accent);
	transition: width 0.3s var(--meb-ease-out);
}
.meb-nav > a:hover { color: var(--meb-black); }
.meb-nav > a:hover::after, .meb-nav > a.meb-active::after { width: 100%; }
.meb-nav > a.meb-active { color: var(--meb-black); font-weight: 600; }

/* Header right — phone + CTA */
.meb-header-right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}
.meb-header-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--meb-body-sm);
	font-weight: 700;
	color: var(--meb-black);
	white-space: nowrap;
}
.meb-header-phone:hover { color: var(--meb-accent); }
.meb-header-phone svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--meb-accent);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

/* Mobile toggle */
.meb-mobile-controls { display: none; align-items: center; gap: 12px; }
.meb-mobile-phone {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1.5px solid var(--meb-black);
	color: var(--meb-black);
	transition: all 0.3s var(--meb-ease-smooth);
}
.meb-mobile-phone:hover { background: var(--meb-black); color: var(--meb-white); }
.meb-mobile-phone svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.meb-menu-toggle {
	width: 40px; height: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	border: 1.5px solid var(--meb-gray-4);
	transition: border-color 0.3s var(--meb-ease-smooth);
}
.meb-menu-toggle:hover { border-color: var(--meb-black); }
.meb-menu-toggle span {
	display: block;
	width: 18px;
	height: 1.5px;
	background: var(--meb-black);
	transition: all 0.3s var(--meb-ease-out);
}
.meb-menu-toggle.meb-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.meb-menu-toggle.meb-open span:nth-child(2) { opacity: 0; }
.meb-menu-toggle.meb-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile slide-out */
.meb-mobile-menu {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9998;
	pointer-events: none;
}
.meb-mobile-menu.meb-open { display: block; pointer-events: auto; }
.meb-mobile-backdrop {
	position: absolute; inset: 0;
	background: rgba(17, 17, 17, 0.55);
	opacity: 0;
	transition: opacity 0.3s var(--meb-ease-smooth);
}
.meb-mobile-menu.meb-open .meb-mobile-backdrop { opacity: 1; }
.meb-mobile-panel {
	position: absolute;
	top: 0; right: 0;
	width: 340px;
	max-width: 88vw;
	height: 100%;
	background: var(--meb-white);
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 0.4s var(--meb-ease-out);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}
.meb-mobile-menu.meb-open .meb-mobile-panel { transform: translateX(0); }
.meb-mobile-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-bottom: 1px solid var(--meb-gray-5);
}
.meb-mobile-panel-header img { height: 60px; max-height: 60px; width: auto; max-width: 200px; object-fit: contain; }
.meb-mobile-close {
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	border: 1.5px solid var(--meb-gray-4);
	font-size: 1.1rem;
	color: var(--meb-gray-1);
	transition: all 0.2s var(--meb-ease-smooth);
}
.meb-mobile-close:hover { border-color: var(--meb-black); color: var(--meb-black); }
.meb-mobile-nav { padding: 20px 24px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.meb-mobile-nav a {
	display: block;
	padding: 12px 16px;
	font-size: 0.98rem;
	font-weight: 500;
	color: var(--meb-gray-1);
	transition: all 0.2s var(--meb-ease-smooth);
}
.meb-mobile-nav a:hover, .meb-mobile-nav a.meb-active {
	background: var(--meb-cream);
	color: var(--meb-black);
	font-weight: 600;
}
.meb-mobile-cta-area {
	padding: 20px 24px;
	border-top: 1px solid var(--meb-gray-5);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.meb-mobile-info {
	padding: 0 24px 24px;
	font-size: 0.8rem;
	color: var(--meb-gray-3);
	line-height: 1.7;
}
.meb-mobile-info div { margin-bottom: 5px; }

/* ── Footer ───────────────────────────────────────────────── */
.meb-footer {
	background: var(--meb-black);
	color: rgba(255, 255, 255, 0.5);
	padding: 80px 0 0;
	margin-top: 0;
}
.meb-footer-inner {
	max-width: var(--meb-container);
	margin: 0 auto;
	padding: 0 28px;
}
.meb-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 56px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.meb-footer-logo {
	height: 70px;
	max-height: 70px;
	width: auto;
	max-width: 240px;
	object-fit: contain;
	display: block;
	margin-bottom: 18px;
	filter: brightness(0) invert(1);
	opacity: 0.85;
}
.meb-footer-brand p {
	font-size: 0.92rem;
	line-height: 1.8;
	margin-bottom: 18px;
	color: rgba(255, 255, 255, 0.5);
}
.meb-footer-license {
	font-size: var(--meb-fine);
	color: var(--meb-accent);
	font-weight: 600;
	letter-spacing: 0.02em;
}
.meb-footer-col h4,
.meb-footer-col .meb-footer-col-title {
	color: var(--meb-white);
	font-family: var(--meb-font-body);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	margin-bottom: 20px;
}
.meb-footer-col a {
	display: block;
	font-size: 0.92rem;
	padding: 5px 0;
	color: rgba(255, 255, 255, 0.5);
	transition: color 0.3s;
}
.meb-footer-col a:hover { color: var(--meb-accent); }
.meb-footer-bottom {
	padding: 28px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: var(--meb-fine);
	flex-wrap: wrap;
	gap: 8px;
	color: rgba(255, 255, 255, 0.3);
}
.meb-footer-bottom a { color: rgba(255, 255, 255, 0.4); transition: color 0.3s; }
.meb-footer-bottom a:hover { color: var(--meb-accent); }

/* ── Reveal animation (used sparingly per V2 editorial) ────── */
.meb-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--meb-ease-out), transform 0.7s var(--meb-ease-out); }
.meb-reveal.meb-visible { opacity: 1; transform: translateY(0); }
.meb-reveal-d1 { transition-delay: 0.08s; }
.meb-reveal-d2 { transition-delay: 0.16s; }
.meb-reveal-d3 { transition-delay: 0.24s; }
.meb-reveal-d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.meb-reveal { opacity: 1; transform: none; }
}

/* ── FAQ accordion (uses native <details>/<summary>) ──────── */
.meb-faq { max-width: 760px; margin: 0 auto; }
.meb-faq-item {
	border-bottom: 1px solid var(--meb-gray-5);
}
.meb-faq-q {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 0;
	cursor: pointer;
	font-family: var(--meb-font-display);
	font-size: 1.2rem;
	font-weight: 400;
	color: var(--meb-black);
	gap: 20px;
	list-style: none;
}
.meb-faq-q::-webkit-details-marker { display: none; }
.meb-faq-plus {
	font-family: var(--meb-font-body);
	font-size: 1.4rem;
	font-weight: 300;
	color: var(--meb-gray-3);
	flex-shrink: 0;
	transition: transform 0.3s var(--meb-ease-out);
}
.meb-faq-item[open] .meb-faq-plus { transform: rotate(45deg); }
.meb-faq-a {
	padding: 0 0 24px;
	font-size: 1.02rem;
	color: var(--meb-gray-2);
	line-height: 1.85;
}

/* ── Generic page (page.php) ──────────────────────────────── */
.meb-page-content {
	max-width: var(--meb-container-narrow);
	margin: 0 auto;
	padding: var(--meb-section-pad-sm) var(--meb-gutter);
}
.meb-page-content h1 { margin-bottom: 32px; }
.meb-page-content h2 { margin: 48px 0 16px; font-size: 2rem; }
.meb-page-content h3 { margin: 32px 0 12px; }
.meb-page-content p, .meb-page-content ul, .meb-page-content ol { margin-bottom: 16px; }
.meb-page-content ul, .meb-page-content ol { padding-left: 24px; list-style: revert; }
.meb-page-content li { margin-bottom: 8px; }
.meb-page-content a { color: var(--meb-accent); border-bottom: 1px solid currentColor; }
.meb-page-content a:hover { color: var(--meb-accent-dark); }

/* ── Responsive breakpoints ───────────────────────────────── */
@media (max-width: 1100px) {
	.meb-nav { gap: 20px; }
	.meb-nav > a { font-size: 0.86rem; }
}
@media (max-width: 960px) {
	.meb-nav, .meb-header-right { display: none; }
	.meb-mobile-controls { display: flex; }
	.meb-topbar { display: none; }
	.meb-logo-img { height: 70px; max-height: 70px; }
	.meb-header.meb-scrolled .meb-logo-img { height: 56px; max-height: 56px; }
	.meb-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
	.meb-section { padding: var(--meb-section-pad-sm) 0; }
	.meb-footer { padding: 56px 0 0; }
	.meb-footer-grid { grid-template-columns: 1fr; gap: 36px; }
	.meb-footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
	.meb-container, .meb-container-narrow { padding: 0 20px; }
	.meb-btn { padding: 13px 24px; font-size: 0.9rem; }
}

/* ============================================================
   FRONT PAGE — V2 Editorial home components
   Simplified per Hillary + husband edits 2026-04-30:
   no Featured Project section, no FAQ, no "no-obligation" copy,
   "Renovations & Expansions" → "Historical Renovations".
   ============================================================ */

/* Footer logo: white+green version provided by Hillary (already in place
   on the dev site) — no CSS filter needed anymore. */
.meb-footer-logo { filter: none !important; opacity: 1 !important; }

/* HERO */
.hero-ed {
	padding: min(6rem, 8vw) 0 min(5rem, 6vw);
	text-align: center;
	background: var(--meb-cream);
}
.hero-ed .hero-license {
	font-size: var(--meb-fine);
	color: var(--meb-gray-3);
	margin: 0 auto 28px;
	letter-spacing: 0.04em;
	max-width: none;
}
.hero-ed h1 { margin-bottom: 20px; }
.hero-ed .hero-sub {
	font-size: var(--meb-body-lg);
	color: var(--meb-gray-2);
	max-width: 580px;
	margin: 0 auto 36px;
	line-height: 1.8;
}
.hero-ed .hero-actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: min(4rem, 5vw);
}
.hero-image {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}
.hero-image video {
	width: 100%;
	border-radius: 4px;
	aspect-ratio: 16 / 7;
	object-fit: cover;
	display: block;
}

/* Section CTA rows (button under solutions grid / markets / why) */
.sol-cta-row, .markets-cta-row, .why-ed-cta {
	display: flex;
	justify-content: center;
	margin-top: min(3rem, 5vw);
}

/* Two-column container utility (used on home form section + contact info+form) */
.meb-twocol {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: min(5rem, 6vw);
	align-items: center;
}
.meb-twocol-top { align-items: start; }
@media (max-width: 768px) {
	.meb-twocol, .meb-twocol-top {
		grid-template-columns: 1fr;
		gap: 40px;
		align-items: stretch;
	}
}

/* iOS zoom-on-focus prevention — inputs must be ≥16px on mobile */
@media (max-width: 768px) {
	.form-ed input[type="text"],
	.form-ed input[type="email"],
	.form-ed input[type="tel"],
	.form-ed input[type="number"],
	.form-ed input[type="url"],
	.form-ed select,
	.form-ed textarea,
	.form-ed .plc-form input,
	.form-ed .plc-form select,
	.form-ed .plc-form textarea {
		font-size: 16px;
	}
}

/* ============================================================
   PLC form plugin — apply V2 Editorial styling to the
   shortcode-emitted form. The plugin uses .plc-* classes;
   these rules cascade onto its output inside our .form-ed card.
   ============================================================ */

/* Half-width / full-width field layout */
.form-ed .plc-form-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0 12px;
}
.form-ed .plc-field {
	flex: 1 1 100%;
	margin-bottom: 14px;
	min-width: 0;
}
.form-ed .plc-field-w50 {
	flex: 1 1 calc(50% - 6px);
}
.form-ed .plc-field-w100 {
	flex: 1 1 100%;
}
@media (max-width: 480px) {
	.form-ed .plc-field-w50 { flex: 1 1 100%; }
}

/* Labels — match my existing form label style */
.form-ed .plc-field label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--meb-gray-2);
	margin-bottom: 5px;
}
.form-ed .plc-required {
	color: var(--meb-accent);
	font-weight: 600;
	margin-left: 2px;
}

/* Inputs — reinforce styling on plugin's elements */
.form-ed .plc-field input,
.form-ed .plc-field select,
.form-ed .plc-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--meb-gray-5);
	font-size: 0.92rem;
	font-family: var(--meb-font-body);
	background: var(--meb-cream);
	color: var(--meb-black);
	transition: border-color 0.3s, background 0.3s;
	border-radius: 0;
}
.form-ed .plc-field input:focus,
.form-ed .plc-field select:focus,
.form-ed .plc-field textarea:focus {
	outline: none;
	border-color: var(--meb-black);
	background: var(--meb-white);
}

/* Submit button — full-width black, no white border, proper padding.
   Plugin emits inline styles so we need !important to override them. */
.form-ed .plc-form-footer {
	margin-top: 8px;
}
.form-ed .plc-submit-btn {
	width: 100%;
	padding: 15px 24px !important;
	background: var(--meb-black) !important;
	color: var(--meb-white) !important;
	border: none !important;
	font-family: var(--meb-font-body) !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: all 0.3s var(--meb-ease-smooth);
	border-radius: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.form-ed .plc-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	background: var(--meb-black) !important;
	color: var(--meb-white) !important;
}
.form-ed .plc-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

/* Form messages (success / error) */
.form-ed .plc-form-message {
	margin-top: 14px;
	padding: 12px 16px;
	font-size: 0.92rem;
	border-radius: 3px;
}

/* TRUST BAR */
.trust-ed {
	padding: 40px 0;
	border-bottom: 1px solid var(--meb-gray-5);
	background: var(--meb-cream);
}
.trust-ed .meb-container {
	display: flex;
	justify-content: center;
	gap: 56px;
	flex-wrap: wrap;
}
.trust-ed-item {
	font-size: 0.92rem;
	color: var(--meb-gray-2);
	display: flex;
	align-items: center;
	gap: 8px;
}
.trust-ed-item strong { color: var(--meb-black); font-weight: 600; }
.trust-ed-item .dot {
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--meb-accent);
	flex-shrink: 0;
}

/* SOLUTIONS GRID */
.sol-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--meb-gray-5);
	border: 1px solid var(--meb-gray-5);
}
.sol-card {
	background: var(--meb-white);
	padding: 40px 32px;
	transition: background 0.3s;
}
.sol-card:hover { background: var(--meb-cream); }
.sol-card h3 {
	font-size: 1.25rem;
	margin-bottom: 12px;
}
.sol-card h3 a { color: var(--meb-black); border-bottom: none; transition: color 0.3s; }
.sol-card h3 a:hover { color: var(--meb-accent); }
.sol-card p {
	font-size: 0.98rem;
	color: var(--meb-gray-2);
	line-height: 1.8;
	max-width: none;
}

/* WHY MAX EFFORT — short, centered, sleek */
.why-ed { text-align: center; }
.why-ed h2 { margin-bottom: 28px; }
.why-ed p {
	font-size: 1.18rem;
	max-width: 620px;
	margin: 0 auto 8px;
	color: var(--meb-gray-1);
	text-wrap: balance;
}
.why-ed p:last-of-type { margin-bottom: 0; }

/* PROCESS — 4 numbered steps with serif numerals */
.process-ed {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 48px;
	counter-reset: step;
}
.process-ed-step { position: relative; }
.process-ed-step::before {
	counter-increment: step;
	content: counter(step, decimal-leading-zero);
	font-family: var(--meb-font-display);
	font-size: 3.2rem;
	color: var(--meb-gray-3);
	display: block;
	line-height: 1;
	margin-bottom: 16px;
}
.process-ed-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.process-ed-step p {
	font-size: 0.95rem;
	color: var(--meb-gray-2);
	max-width: none;
}

/* ABOUT PREVIEW */
.about-ed .meb-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: min(5rem, 6vw);
	align-items: stretch;
}
.about-ed-image { position: relative; min-height: 100%; }
.about-ed-image img {
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}
.about-ed-badge {
	position: absolute;
	bottom: -16px;
	right: -16px;
	background: var(--meb-white);
	padding: 20px 28px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.about-ed-badge strong {
	display: block;
	font-family: var(--meb-font-display);
	font-size: 2rem;
	color: var(--meb-black);
	line-height: 1;
}
.about-ed-badge span {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--meb-gray-3);
}
.about-ed-content h2 { margin-bottom: 20px; }
.about-ed-content p { margin-bottom: 14px; }
.about-checks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 24px 0;
}
.about-check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	color: var(--meb-gray-1);
}
.about-check::before {
	content: '✓';
	font-size: 0.7rem;
	color: var(--meb-accent);
	font-weight: 700;
}

/* MARKETS — pill row */
.markets-ed {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}
.market-tag {
	padding: 14px 30px;
	border: 1px solid var(--meb-gray-5);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--meb-gray-1);
	transition: all 0.3s;
	background: var(--meb-white);
}
.market-tag:hover {
	border-color: var(--meb-black);
	background: var(--meb-black);
	color: var(--meb-white);
}

/* FORM SECTION (placeholder until Damon's Elementor form shortcode swaps in) */
.form-ed {
	background: var(--meb-white);
	padding: 40px;
	border: 1px solid var(--meb-gray-5);
	max-width: 480px;
}
.form-ed h3 { font-size: 1.3rem; margin-bottom: 4px; }
.form-ed .form-sub {
	color: var(--meb-gray-3);
	font-size: 0.85rem;
	margin-bottom: 24px;
}
.form-ed .fg { margin-bottom: 14px; }
.form-ed label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--meb-gray-2);
	margin-bottom: 5px;
}
.form-ed input, .form-ed select, .form-ed textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--meb-gray-5);
	font-size: 0.92rem;
	font-family: var(--meb-font-body);
	background: var(--meb-cream);
	transition: border-color 0.3s;
	color: var(--meb-black);
}
.form-ed input:focus, .form-ed select:focus, .form-ed textarea:focus {
	outline: none;
	border-color: var(--meb-black);
	background: var(--meb-white);
}
.form-ed .fr {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.form-ed .form-btn {
	width: 100%;
	padding: 14px;
	background: var(--meb-black);
	color: var(--meb-white);
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
	font-family: var(--meb-font-body);
	margin-top: 6px;
	transition: all 0.3s;
}
.form-ed .form-btn:hover {
	background: var(--meb-black);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	transform: translateY(-2px);
}

/* CLOSING CTA — solid dark, no project image bg */
.cta-ed {
	position: relative;
	padding: min(8rem, 10vw) 0;
	text-align: center;
	background: var(--meb-dark);
	overflow: hidden;
}
.cta-ed h2 { color: var(--meb-white); margin-bottom: 16px; }
.cta-ed p {
	color: rgba(255, 255, 255, 0.55);
	font-size: 1.15rem;
	margin: 0 auto 36px;
	max-width: 580px;
}
.cta-ed-actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}

/* ============================================================
   INNER PAGES — about, solutions, markets, contact
   ============================================================ */

/* Visible breadcrumbs (above page hero on inner pages) */
.meb-breadcrumbs {
	background: var(--meb-cream);
	padding: 14px 0;
	font-size: 0.84rem;
	color: var(--meb-gray-3);
	border-bottom: 1px solid var(--meb-gray-5);
}
.meb-breadcrumbs a {
	color: var(--meb-gray-2);
	border-bottom: none;
	transition: color 0.2s;
}
.meb-breadcrumbs a:hover { color: var(--meb-accent); }
.meb-breadcrumb-sep { margin: 0 8px; color: var(--meb-gray-4); }
.meb-breadcrumb-current { color: var(--meb-gray-1); font-weight: 500; }

/* Page hero (smaller than home hero) */
.page-hero {
	padding: min(5rem, 7vw) 0 min(3rem, 4vw);
	text-align: center;
	background: var(--meb-cream);
	border-bottom: 1px solid var(--meb-gray-5);
}
.page-hero h1 { margin: 14px 0 18px; }
.page-hero .page-hero-sub {
	font-size: var(--meb-body-lg);
	color: var(--meb-gray-2);
	max-width: 620px;
	margin: 0 auto;
	line-height: 1.8;
}

/* Long-form prose (About page narrative, etc.) */
.prose h2 {
	margin: 40px 0 16px;
	font-size: 1.85rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
	margin-bottom: 16px;
	font-size: 1.08rem;
	color: var(--meb-gray-1);
	line-height: 1.85;
	max-width: none;
}

/* Credentials grid (About) */
.cred-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--meb-gray-5);
	border: 1px solid var(--meb-gray-5);
}
.cred-card {
	background: var(--meb-white);
	padding: 36px 28px;
	transition: background 0.3s;
}
.cred-card:hover { background: var(--meb-cream); }
.cred-card strong {
	display: block;
	font-family: var(--meb-font-display);
	font-size: 1.6rem;
	color: var(--meb-black);
	margin-bottom: 10px;
	font-weight: 400;
	line-height: 1.2;
}
.cred-card span {
	font-size: 0.92rem;
	color: var(--meb-gray-2);
	line-height: 1.7;
	display: block;
}

/* Solutions detail articles */
.service-detail {
	padding: 36px 0;
	border-bottom: 1px solid var(--meb-gray-5);
	scroll-margin-top: 100px;
}
.service-detail:first-of-type { padding-top: 0; }
.service-detail:last-of-type { border-bottom: none; padding-bottom: 0; }
.service-detail h2 {
	margin: 8px 0 18px;
	font-size: 2.1rem;
}
.service-detail p {
	font-size: 1.08rem;
	line-height: 1.85;
	margin-bottom: 14px;
	color: var(--meb-gray-1);
	max-width: none;
}

/* Markets grid (2-column on desktop) */
.markets-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	background: var(--meb-gray-5);
	border: 1px solid var(--meb-gray-5);
}
.market-card {
	background: var(--meb-white);
	padding: 40px 36px;
	transition: background 0.3s;
}
.market-card:hover { background: var(--meb-cream); }
.market-card h2 {
	font-size: 1.7rem;
	margin-bottom: 14px;
}
.market-card p {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--meb-gray-2);
	max-width: none;
	margin-bottom: 0;
}

/* Contact info column */
.contact-info { margin-top: 32px; }
.contact-row {
	padding: 16px 0;
	border-bottom: 1px solid var(--meb-gray-5);
}
.contact-row:last-child { border-bottom: none; }
.contact-label {
	font-family: var(--meb-font-body);
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--meb-gray-3);
	margin-bottom: 6px;
}
.contact-value, .contact-value-lg {
	color: var(--meb-gray-1);
	display: block;
	border-bottom: none;
}
.contact-value-lg {
	font-family: var(--meb-font-display);
	font-size: 1.6rem;
	color: var(--meb-black);
	font-weight: 400;
}
.contact-value-lg:hover, .contact-row a:hover { color: var(--meb-accent); }

/* Map embed */
.map-section { background: var(--meb-cream); }
.map-section iframe { display: block; }

/* Inner-pages responsive */
@media (max-width: 1024px) {
	.cred-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.cred-grid { grid-template-columns: 1fr; }
	.markets-grid { grid-template-columns: 1fr; }
	.service-detail { padding: 28px 0; }
	.service-detail h2 { font-size: 1.6rem; }
	.market-card { padding: 28px 24px; }
}

/* Front-page responsive overrides */
@media (max-width: 1024px) {
	.sol-grid { grid-template-columns: repeat(2, 1fr); }
	.process-ed { grid-template-columns: repeat(2, 1fr); gap: 36px; }
	.about-ed .meb-container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.sol-grid { grid-template-columns: 1fr; }
	.process-ed { grid-template-columns: 1fr; gap: 32px; }
	.about-checks { grid-template-columns: 1fr; }
	.hero-ed .hero-actions { flex-direction: column; align-items: center; }
	.hero-ed .hero-actions .meb-btn { width: 100%; max-width: 320px; justify-content: center; }
	.cta-ed-actions { flex-direction: column; align-items: center; }
	.form-ed { max-width: 100%; }
	.form-ed .fr { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.trust-ed .meb-container { gap: 28px 36px; }
	.hero-image { padding: 0 var(--meb-gutter); }
}
@media (max-width: 480px) {
	.market-tag { padding: 10px 20px; font-size: 0.82rem; }
	.trust-ed .meb-container { gap: 18px 28px; }
	.about-ed-badge { right: 0; bottom: -12px; padding: 14px 18px; }
	.about-ed-badge strong { font-size: 1.5rem; }
	.hero-image { padding: 0 20px; }
}
