/* Medify theme styles.
   Layout follows medigrow.ae's page system (floating header, photo banners, rounded overlapping sections,
   tabbed features, dark package cards), in Medify's green and amber. Colours and fonts come from theme.json. */

:root {
	--m-green: var(--wp--preset--color--primary, #0f4c3a);
	--m-green-deep: var(--wp--preset--color--primary-deep, #0a3328);
	--m-amber: var(--wp--preset--color--accent, #f2b23a);
	--m-ink: var(--wp--preset--color--ink, #0c3328);
	--m-muted: var(--wp--preset--color--muted, #55655f);
	--m-line: var(--wp--preset--color--line, #dce5e1);
	--m-paper: var(--wp--preset--color--paper, #ffffff);
	--m-mist: var(--wp--preset--color--mist, #f3f6f4);
	--m-font: var(--wp--preset--font-family--sans, "DM Sans", system-ui, sans-serif);
	--m-r-lg: 60px;
	--m-r-md: 22px;
	--m-r-sm: 12px;
	--m-shadow: 0 14px 40px rgba(10, 51, 40, 0.08);
	--m-section-y: clamp(4rem, 8vw, 6.5rem);
}

/* ---------- Base ---------- */
body {
	margin: 0;
	background: var(--m-mist);
	color: var(--m-muted);
	font-family: var(--m-font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
/* Long email addresses and URLs wrap instead of pushing past the screen edge. */
p, li, h1, h2, h3, h4 { overflow-wrap: break-word; }

h1, h2, h3, h4 {
	font-family: var(--m-font);
	color: var(--m-ink);
	font-weight: 600;
	margin-top: 0;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.12; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.18; }
h3 { font-size: 1.35rem; line-height: 1.3; }

p { text-wrap: pretty; }

a { color: var(--m-green); text-underline-offset: 0.18em; }
a:hover { color: var(--m-green-deep); }

:focus-visible { outline: 3px solid var(--m-amber); outline-offset: 3px; }

strong { color: inherit; font-weight: 600; }

.has-accent-color { color: var(--m-amber) !important; }
mark.has-inline-color { background: transparent !important; }

/* ---------- Buttons ---------- */
.wp-block-buttons { gap: 0.85rem; }
.wp-block-buttons.is-center { justify-content: center; margin-top: 2.5rem !important; }

.wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--m-green);
	color: var(--m-amber);
	border: 1.5px solid var(--m-green);
	border-radius: 10px;
	padding: 0.95rem 1.5rem;
	font-family: var(--m-font);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wp-block-button .wp-block-button__link::after {
	content: "";
	width: 1rem;
	height: 0.7rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'%3E%3Cpath d='M0 5.5h13M9 1l4.5 4.5L9 10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'%3E%3Cpath d='M0 5.5h13M9 1l4.5 4.5L9 10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.15s ease;
}

.wp-block-button .wp-block-button__link:hover { background: var(--m-green-deep); border-color: var(--m-green-deep); color: var(--m-amber); }
.wp-block-button .wp-block-button__link:hover::after { transform: translateX(3px); }

.wp-block-button.is-style-accent .wp-block-button__link { background: var(--m-amber); border-color: var(--m-amber); color: var(--m-ink); }
.wp-block-button.is-style-accent .wp-block-button__link:hover { background: #e9a321; border-color: #e9a321; color: var(--m-ink); }

.wp-block-button.is-style-light .wp-block-button__link { background: var(--m-paper); border-color: var(--m-paper); color: var(--m-ink); }
.wp-block-button.is-style-light .wp-block-button__link:hover { background: var(--m-mist); color: var(--m-ink); }

.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--m-green); border-color: var(--m-green); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--m-green); color: var(--m-paper); }

.is-dark .wp-block-button.is-style-outline .wp-block-button__link,
.m-cta .wp-block-button.is-style-outline .wp-block-button__link,
.m-hero .wp-block-button.is-style-outline .wp-block-button__link { color: var(--m-paper); border-color: rgba(255, 255, 255, 0.7); }
.is-dark .wp-block-button.is-style-outline .wp-block-button__link:hover,
.m-cta .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.12); color: var(--m-paper); }

/* ---------- Eyebrow:  •— Label —• ---------- */
.m-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--m-ink);
	margin-bottom: 0.4rem !important;
}

.m-eyebrow::before,
.m-eyebrow::after {
	content: "";
	width: 1.6rem;
	height: 2px;
	background:
		radial-gradient(circle, currentColor 3.5px, transparent 4px) left center / 8px 8px no-repeat,
		linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
	height: 8px;
}

.m-eyebrow::after { transform: scaleX(-1); }
.is-dark .m-eyebrow, .m-hero .m-eyebrow, .m-cta .m-eyebrow { color: var(--m-paper); }

/* ---------- Header (floating bar) ---------- */
.m-header {
	position: fixed;
	top: 18px;
	left: max(16px, 1.7vw);
	right: max(16px, 1.7vw);
	z-index: 60;
	background: var(--m-paper);
	border-radius: 16px;
	box-shadow: 0 10px 35px rgba(10, 51, 40, 0.12);
}

.admin-bar .m-header { top: 50px; }

/* The header is fixed, so WordPress's block gap above <main> showed as a 20px strip above the hero. */
.wp-site-blocks > .m-main { margin-block-start: 0; }

/* Scroll behaviour (assets/js/medify.js): stuck to the top while scrolling down, hidden while scrolling up */
/* No permanent will-change/transform: either one turns the header into the containing block of the
   position:fixed mobile menu, which then opens squeezed inside the header bar. */
.m-header { transition: transform 0.35s ease, top 0.25s ease, left 0.25s ease, right 0.25s ease, border-radius 0.25s ease; }
.m-header.is-stuck { top: 0 !important; left: 0; right: 0; border-radius: 0; }
.admin-bar .m-header.is-stuck { top: 32px !important; }
.m-header.is-hidden { transform: translateY(calc(-100% - 60px)); box-shadow: none; }
@media (max-width: 782px) { .admin-bar .m-header.is-stuck { top: 46px !important; } }
@media (prefers-reduced-motion: reduce) { .m-header { transition: none; } }

.m-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.8rem 1.6rem;
	max-width: 1440px;
	margin: 0 auto;
}

.m-header-row > * { margin: 0 !important; }

.m-wordmark,
.m-header .wp-block-site-title {
	font-family: var(--m-font);
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0;
	line-height: 1;
}

.m-wordmark a,
.m-header .wp-block-site-title a { color: var(--m-green); text-decoration: none; }

.m-header .wp-block-navigation { font-size: 0.98rem; gap: 1.7rem; }
.m-header .wp-block-navigation a { color: var(--m-ink); text-decoration: none; }
.m-header .wp-block-navigation a:hover { color: var(--m-green); }
.m-header .wp-block-navigation .current-menu-item > a::before {
	content: ""; display: inline-block; width: 0.38rem; height: 0.38rem; border-radius: 50%;
	background: var(--m-ink); margin: 0 0.45rem 0.15rem 0;
}
.m-header .wp-block-navigation .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: 12px;
	padding: 0.6rem 0;
	min-width: 15.5rem !important;
	box-shadow: 0 18px 40px rgba(10, 51, 40, 0.16);
}
.m-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: 0.5rem 1.2rem; }
.m-header-cta .wp-block-button__link { padding: 0.8rem 1.25rem; font-size: 0.95rem; }

/* ---------- Sections ---------- */
.wp-block-cover { isolation: isolate; }
.wp-block-post-content > *,
.entry > * { margin-block: 0 !important; }

.m-section {
	position: relative;
	background: var(--m-mist);
	padding-top: var(--m-section-y);
	padding-bottom: var(--m-section-y);
}

.m-section.is-white,
.m-section.is-tint { background: var(--m-paper); }

.m-section.is-dark { background: var(--m-green); color: #d9e7e1; }
.is-dark h1, .is-dark h2, .is-dark h3 { color: var(--m-paper); }
.is-dark a:not(.wp-block-button__link) { color: var(--m-paper); }

/* Rounded tops that overlap the section above, as on medigrow.ae */
.m-section.is-rounded,
.m-section.is-tint,
.m-footer {
	border-radius: var(--m-r-lg) var(--m-r-lg) 0 0;
	margin-top: calc(-1 * var(--m-r-lg)) !important;
	padding-top: calc(var(--m-section-y) + 1rem);
	padding-bottom: calc(var(--m-section-y) + var(--m-r-lg));
}

.m-section:has(+ .m-section.is-rounded),
.m-section:has(+ .m-section.is-tint),
.m-section:has(+ .m-cta) { padding-bottom: calc(var(--m-section-y) + var(--m-r-lg)); }

/* Section headings */
.m-head { margin-bottom: 2.75rem !important; }
.m-head > * { margin-top: 0; }
.m-head > * + * { margin-top: 0.85rem !important; }
.m-head.is-center { text-align: center; }
.m-head.is-center > * { margin-left: auto !important; margin-right: auto !important; }
.m-head.is-center .m-intro { max-width: 52rem; }
.m-intro { font-size: 1.08rem; color: var(--m-muted); max-width: 46rem; margin-bottom: 0; }
.is-dark .m-intro, .is-dark p { color: #d9e7e1; }

.m-head-split.wp-block-columns { align-items: flex-end; margin-bottom: 3rem; gap: 2rem; }
.m-head-split .m-head-action { display: flex; justify-content: flex-end; }
.m-head-split .wp-block-column > * + * { margin-top: 0.6rem !important; }

.m-lede { font-size: 1.12rem; line-height: 1.65; }
.m-note { font-size: 0.93rem; color: var(--m-muted); font-style: italic; text-align: center; margin-top: 2rem !important; }
.is-dark .m-note { color: #c4d8cf; }
.m-mini-label { font-size: 0.9rem; font-weight: 600; color: var(--m-ink); text-transform: none; margin: 0; }

/* ---------- Home hero (cover) ---------- */
.m-hero.wp-block-cover {
	min-height: 760px !important;
	padding: 9rem max(1.25rem, 4vw) 6rem;
	align-items: center;
	justify-content: flex-start;
}

.m-hero .wp-block-cover__inner-container { max-width: 1240px; margin: 0 auto; }
.m-hero-inner { max-width: 640px; }
.m-hero-inner > * + * { margin-top: 1.35rem !important; }
.m-hero h1 { color: var(--m-paper); font-size: clamp(2.6rem, 5.2vw, 4rem); line-height: 1.12; }
.m-hero .m-lede { color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; max-width: 34rem; }
.m-hero .wp-block-buttons { margin-top: 2rem !important; }
.m-hero .wp-block-button:not(.is-style-accent) .wp-block-button__link { background: var(--m-green-deep); border-color: var(--m-green-deep); }

.m-trust { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem !important; }
.m-trust > * { margin: 0 !important; }
.m-trust-text { color: rgba(255, 255, 255, 0.92); font-size: 0.95rem; max-width: 14rem; line-height: 1.4; }

.m-avatars {
	width: 8.4rem;
	height: 2.6rem;
	margin: 0;
	background:
		radial-gradient(circle at 1.3rem 50%, #f2b23a 0 1.05rem, #fff 1.05rem 1.3rem, transparent 1.3rem),
		radial-gradient(circle at 3.2rem 50%, #7fb09c 0 1.05rem, #fff 1.05rem 1.3rem, transparent 1.3rem),
		radial-gradient(circle at 5.1rem 50%, #d7e6df 0 1.05rem, #fff 1.05rem 1.3rem, transparent 1.3rem),
		radial-gradient(circle at 7rem 50%, #0a3328 0 1.05rem, #fff 1.05rem 1.3rem, transparent 1.3rem);
}

/* ---------- Inner page banner ---------- */
.m-banner.wp-block-cover {
	min-height: 380px !important;
	padding: 8.5rem 1.25rem 3.5rem;
	text-align: center;
}
.m-banner h1 { color: var(--m-paper); font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin: 0 auto; max-width: 18ch; }

/* Banner and hero sit under the floating header; the first section after them overlaps */
.m-banner + .m-section,
.m-hero + .m-section {
	border-radius: var(--m-r-lg) var(--m-r-lg) 0 0;
	margin-top: calc(-1 * var(--m-r-lg)) !important;
}

/* ---------- Generic photo / split ---------- */
.m-split.wp-block-columns { gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: 0; }
.m-split .wp-block-column > * + * { margin-top: 1.1rem !important; }
.m-photo img { width: 100%; border-radius: var(--m-r-md); aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.m-photo-tall img { aspect-ratio: 1 / 1; }
.m-photo-frame img { aspect-ratio: auto; background: var(--m-mist); }
.m-photo-lead img { aspect-ratio: 16 / 9; border-radius: 28px; }

/* ---------- Who we are: 2x2 photo grid with badge ---------- */
.m-who.wp-block-columns { gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.m-who > .m-who-photos.wp-block-column { flex: 0 0 48% !important; }
.m-photo-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.m-photo-grid > * { margin: 0 !important; }
.m-photo-grid .m-photo img { aspect-ratio: 1 / 1; border-radius: 20px; }
.m-photo-grid .m-badge {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8.5rem;
	transform: translate(-50%, -50%);
	z-index: 2;
}
.m-photo-grid .m-badge img { width: 100%; border-radius: 50%; box-shadow: 0 8px 25px rgba(10, 51, 40, 0.2); animation: m-spin 22s linear infinite; }
@keyframes m-spin { to { transform: rotate(360deg); } }
.m-who-text > * + * { margin-top: 1.15rem !important; }
.m-who-text h2 { margin-top: 0.4rem !important; }

/* ---------- Ticks ---------- */
.m-ticks { list-style: none; padding: 0; margin: 0; }
.m-ticks li { position: relative; padding-left: 2rem; margin: 0.65rem 0; color: var(--m-ink); }
.m-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.2rem;
	height: 1.2rem;
	border-radius: 50%;
	background: var(--m-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.8-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.is-dark .m-ticks li, .m-price.is-featured .m-ticks li { color: var(--m-paper); }
.is-dark .m-ticks li::before, .m-price.is-featured .m-ticks li::before { background-color: var(--m-paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.8-5' fill='none' stroke='%230f4c3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.m-ticks-strong li { font-weight: 500; }
.m-ticks-cols { columns: 2; column-gap: 2.5rem; }
.m-ticks-cols li { break-inside: avoid; }
.m-ticks-x li::before { background: #c0492f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5M8.5 3.5l-5 5' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat; }

/* ---------- Logos ---------- */
.m-logos-section.m-section { padding-top: 3rem; }
.m-logos-title {
	text-align: center;
	font-size: clamp(1.3rem, 2.2vw, 1.75rem);
	font-weight: 600;
	color: var(--m-ink);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 2.5rem !important;
}
.m-logos-title::before, .m-logos-title::after {
	content: ""; width: 1.8rem; height: 8px;
	background: radial-gradient(circle, currentColor 3.5px, transparent 4px) left center / 8px 8px no-repeat,
		linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}
.m-logos-title::after { transform: scaleX(-1); }
.m-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.8rem 3.2rem; align-items: center; }
.m-logos > * { margin: 0 !important; }
.m-logo { text-align: center; white-space: nowrap; font-size: 1.3rem; font-weight: 700; color: #8a9a94; letter-spacing: -0.01em; }

/* ---------- Grids and cards ---------- */
.m-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(var(--m-cols, 3), minmax(0, 1fr)); }
.m-grid > * { margin: 0 !important; }
.m-grid-1 { --m-cols: 1; }
.m-grid-2 { --m-cols: 2; }
.m-grid-3 { --m-cols: 3; }
.m-grid-4 { --m-cols: 4; }
.m-grid-narrow { max-width: 820px; margin-left: auto !important; margin-right: auto !important; }

.m-card {
	position: relative;
	background: var(--m-paper);
	border-radius: var(--m-r-md);
	padding: 2rem;
	box-shadow: var(--m-shadow);
}
.m-section.is-white .m-card, .m-section.is-tint .m-card { background: var(--m-mist); box-shadow: none; }
.is-dark .m-card { background: var(--m-paper); }
.is-dark .m-card p, .is-dark .m-card li { color: var(--m-muted); }
.is-dark .m-card h3, .is-dark .m-card h3 a { color: var(--m-ink); }
.m-card > * { margin-top: 0; margin-bottom: 0; }
.m-card > * + * { margin-top: 0.8rem !important; }
.m-card h3 { font-size: 1.3rem; }
.m-card h3 a { color: var(--m-ink); text-decoration: none; }
.m-card.is-linked h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--m-r-md); }
.m-card.is-linked:hover { box-shadow: 0 18px 45px rgba(10, 51, 40, 0.14); }
.m-card.is-center { text-align: center; }
.m-card.is-center .m-icon { margin-left: auto !important; margin-right: auto !important; }
.m-card-link { font-weight: 600; }
.m-card-link a { position: relative; z-index: 1; }
.m-icon img { display: block; }
.m-grid-compact .m-card { padding: 1.4rem 1.5rem; }
.m-grid-compact .m-card h3 { font-size: 1.08rem; }
.m-grid-quiet .m-card { box-shadow: none; }

/* Dark-section path cards (What are you looking for?) */
.m-path-grid { max-width: 1100px; margin-left: auto !important; margin-right: auto !important; gap: 2rem; }
.m-path-card { background: rgba(255, 255, 255, 0.07); border-radius: var(--m-r-md); overflow: hidden; }
.m-path-card > * { margin: 0 !important; }
.m-card-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.m-path-card .m-card-body { padding: 1.9rem 2rem 2.1rem; }
.m-card-body > * + * { margin-top: 0.85rem !important; }
.m-path-card h3 { color: var(--m-paper); font-size: 1.65rem; }
.m-path-card .wp-block-buttons { margin-top: 1.5rem !important; }

/* Photo cards (services hub) */
.m-photo-card { background: var(--m-paper); border-radius: var(--m-r-md); overflow: hidden; box-shadow: var(--m-shadow); position: relative; }
.m-photo-card > * { margin: 0 !important; }
.m-photo-card .m-card-body { padding: 1.5rem 1.6rem 1.8rem; }
.m-photo-card h3 a { color: var(--m-ink); text-decoration: none; }
.m-photo-card h3 a::after { content: ""; position: absolute; inset: 0; }
.m-photo-card:hover { box-shadow: 0 18px 45px rgba(10, 51, 40, 0.14); }
.m-photo-card:hover .m-card-photo img { transform: scale(1.03); }
.m-photo-card .m-card-photo { overflow: hidden; }
.m-photo-card .m-card-photo img { transition: transform 0.3s ease; }

/* Portfolio cards */
.m-portfolio-card { background: var(--m-paper); border-radius: var(--m-r-md); overflow: hidden; box-shadow: var(--m-shadow); }
.m-section.is-white .m-portfolio-card { box-shadow: 0 6px 24px rgba(10, 51, 40, 0.08); }
.m-portfolio-card > * { margin: 0 !important; }
.m-portfolio-card .m-card-body { padding: 1.5rem 1.6rem 1.8rem; }
.m-portfolio-card h3 { font-size: 1.5rem; font-weight: 500; }
.m-meta { position: relative; padding-left: 1.8rem; color: var(--m-muted); margin-top: 0.5rem !important; }
.m-meta::before { content: ""; position: absolute; left: 0; top: 0.15em; width: 1.2rem; height: 1.2rem; background: center / contain no-repeat; }
.m-meta-pin::before { background-image: url("../icons/pin.svg"); }
.m-meta-chart::before { background-image: url("../icons/growth.svg"); }
.m-portfolio-card .wp-block-buttons { margin-top: 1.4rem !important; }

/* Row cards (value-added hub) */
.m-row-list > * + * { margin-top: 1.75rem !important; }
.m-row-card.wp-block-columns { background: var(--m-paper); border-radius: var(--m-r-md); overflow: hidden; gap: 0; align-items: stretch; box-shadow: var(--m-shadow); margin: 0; }
.m-row-card > .wp-block-column:first-child { flex: 0 0 38% !important; }
.m-row-card .m-card-photo, .m-row-card .m-card-photo a { height: 100%; display: block; }
.m-row-card .m-card-photo img { height: 100%; aspect-ratio: auto; min-height: 230px; }
.m-row-card .wp-block-column:last-child { padding: 2rem 2.2rem; }
.m-row-card .wp-block-column:last-child > * + * { margin-top: 0.8rem !important; }
.m-row-card h3 a { color: var(--m-ink); text-decoration: none; }

/* ---------- Tabs (Why Medify) ---------- */
.m-tabs.wp-block-columns { gap: 3rem; align-items: flex-start; }
.m-tabs > .m-tab-col.wp-block-column { flex: 0 0 30% !important; }
.m-tab-list > * + * { margin-top: 1.1rem !important; }
.m-tab {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	background: var(--m-paper);
	border-radius: 16px;
	padding: 1.15rem 1.4rem;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.m-tab > * { margin: 0 !important; }
.m-tab-label { font-size: 1.15rem; font-weight: 600; color: var(--m-ink); line-height: 1.25; }
.m-tab.is-active, .m-tab:hover { background: var(--m-amber); }
.m-tab-panel { background: var(--m-paper); border-radius: 24px; overflow: hidden; }
.m-tab-panel .wp-block-columns { gap: 0; align-items: stretch; margin: 0; }
.m-tab-panel .wp-block-columns > .wp-block-column { flex: 1 1 50% !important; min-width: 0; }
.m-tab-panel .m-tab-photo, .m-tab-panel .m-tab-photo img { height: 100%; }
.m-tab-panel .m-tab-photo img { width: 100%; object-fit: cover; min-height: 340px; display: block; }
.m-tab-text.wp-block-column { padding: 2.4rem 2.2rem; align-self: center; }
.m-tab-text > * + * { margin-top: 1rem !important; }
.m-tab-text h3 { font-size: 1.75rem; }
.m-tabs.is-ready .m-tab-panel:not(.is-active) { display: none; }
.m-tabs:not(.is-ready) .m-tab-panel + .m-tab-panel { margin-top: 1.5rem !important; }

/* ---------- Four-step process with dashed connector ---------- */
.m-steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.m-steps-row > * { margin: 0 !important; }
.m-step { position: relative; padding: 0 0.5rem; }
.m-step > * + * { margin-top: 0.8rem !important; }
.m-step-icon {
	width: 6.5rem; height: 6.5rem; margin: 0 auto 1.6rem !important; border-radius: 50%;
	display: grid; place-items: center;
	background: radial-gradient(circle, rgba(242, 178, 58, 0.22), rgba(242, 178, 58, 0) 70%);
}
.m-step-icon > * { margin: 0 !important; }
.m-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 3.25rem;
	left: calc(50% + 3.6rem);
	width: calc(100% - 7.2rem + 1.5rem);
	height: 8px;
	background:
		radial-gradient(circle, var(--m-amber) 4px, transparent 4.5px) center / 8px 8px no-repeat,
		repeating-linear-gradient(90deg, var(--m-amber) 0 8px, transparent 8px 14px) center / 100% 2px no-repeat;
}
.m-step h3 { font-size: 1.2rem; }
.m-step p { font-size: 1rem; }

/* Numbered list fallback used on reference pages */
.m-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.m-steps li { counter-increment: step; position: relative; background: var(--m-paper); border-radius: var(--m-r-md); padding: 4.2rem 1.6rem 1.6rem; margin: 0; box-shadow: var(--m-shadow); }
.m-section.is-white .m-steps li, .m-section.is-tint .m-steps li { background: var(--m-mist); box-shadow: none; }
.m-steps li::before { content: counter(step); position: absolute; top: 1.4rem; left: 1.6rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--m-amber); color: var(--m-ink); font-weight: 700; display: grid; place-items: center; }
.m-steps li strong { display: block; color: var(--m-ink); font-size: 1.1rem; margin-bottom: 0.3rem; }

/* ---------- Reviews panel ---------- */
.m-reviews.wp-block-columns { background: var(--m-paper); border-radius: 28px; padding: 2.5rem; gap: 2rem; align-items: stretch; box-shadow: var(--m-shadow); }
.m-reviews > .m-reviews-left.wp-block-column { flex: 0 0 26% !important; display: flex; align-items: flex-end; }
.m-reviews-intro > * + * { margin-top: 1rem !important; }
.m-reviews-intro h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.m-reviews > .m-reviews-mid.wp-block-column { flex: 1 1 auto !important; }
.m-quote-scroller {
	display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; height: 26rem; overflow: hidden;
	-webkit-mask: linear-gradient(transparent, #000 12%, #000 88%, transparent);
	mask: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.m-quote-scroller > * { margin: 0 !important; }
.m-quote-col > * + * { margin-top: 1.1rem !important; }
.m-quote-col { animation: m-scroll 26s linear infinite alternate; }
.m-quote-col.is-offset { animation-duration: 32s; animation-direction: alternate-reverse; }
@keyframes m-scroll { from { transform: translateY(0); } to { transform: translateY(-40%); } }
.m-quote { background: var(--m-mist); border-radius: 16px; padding: 1.3rem; }
.m-quote > * + * { margin-top: 0.9rem !important; }
.m-quote-text { color: var(--m-ink); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.m-quote-text::before { content: ""; display: block; width: 1.9rem; height: 1.4rem; margin-bottom: 0.9rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 22'%3E%3Cpath d='M0 22V12C0 4 4 0 11 0v4c-4 0-6 3-6 7h6v11zM17 22V12c0-8 4-12 11-12v4c-4 0-6 3-6 7h6v11z' fill='%23f2b23a'/%3E%3C/svg%3E") left / contain no-repeat; }
.m-quote-who { font-size: 0.9rem; color: var(--m-muted); margin: 0; }
.m-quote-who strong { color: var(--m-ink); }
.m-quote-grid .m-quote { background: var(--m-paper); box-shadow: var(--m-shadow); padding: 2rem; }
.m-reviews > .m-reviews-right.wp-block-column { flex: 0 0 26% !important; }
.m-reviews-badge {
	height: 100%; min-height: 22rem; border-radius: 22px; padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end;
	background: linear-gradient(160deg, var(--m-green) 10%, #3f7a52 55%, var(--m-amber) 120%);
}
.m-reviews-badge > * + * { margin-top: 1rem !important; }
.m-stars { color: var(--m-amber); font-size: 1.5rem; letter-spacing: 0.15em; margin: 0; }
.m-side-title { color: var(--m-paper); font-size: 1.45rem; font-weight: 600; line-height: 1.3; margin: 0; }

/* ---------- Stats band ---------- */
.m-stats-band.wp-block-cover { border-radius: 24px; min-height: 200px; padding: 2.5rem 3.5rem; margin-top: 2.5rem !important; justify-content: flex-start; }
.m-stats { display: flex; flex-wrap: wrap; gap: 0; }
.m-stats > * { margin: 0 !important; }
.m-stat { padding: 0 2.6rem; border-left: 1px solid rgba(255, 255, 255, 0.35); text-align: center; }
.m-stat:first-child { border-left: 0; padding-left: 0; }
.m-stat-num { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 500; color: var(--m-paper); line-height: 1.1; margin: 0; }
.m-stat-label { color: var(--m-paper); font-size: 1.05rem; margin: 0.4rem 0 0 !important; }

/* ---------- Connect section + forms ---------- */
.m-connect.wp-block-columns { gap: 3rem; align-items: stretch; }
.m-connect > .wp-block-column:first-child { flex: 0 0 40% !important; }
.m-connect-photo, .m-connect-photo img { height: 100%; }
.m-connect-photo img { width: 100%; object-fit: cover; border-radius: 26px; min-height: 420px; display: block; }
.m-form-card { background: var(--m-paper); border-radius: 26px; padding: clamp(1.6rem, 3vw, 2.6rem); }
.m-form-card > * + * { margin-top: 1rem !important; }
.m-form-card p { color: var(--m-ink); }
.is-dark .m-form-card h2, .is-dark .m-form-card h3 { color: var(--m-ink); }
.is-dark .m-form-card p { color: var(--m-ink); }

.m-form { display: grid; gap: 1.4rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; margin-top: 1.5rem !important; }
.m-form .m-field { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; }
.m-form .m-field.is-wide { grid-column: 1 / -1; }
.m-form label { font-size: 0.95rem; font-weight: 600; color: var(--m-ink); }
.m-form input, .m-form select, .m-form textarea {
	font: inherit; font-size: 0.95rem; padding: 0.65rem 0.1rem; border: 0; border-bottom: 1.5px solid #8fa39b;
	border-radius: 0; background: transparent; color: var(--m-ink); min-width: 0; width: 100%; box-sizing: border-box;
}
.m-form textarea { min-height: 6.5rem; resize: vertical; }
.m-form input:focus, .m-form select:focus, .m-form textarea:focus { outline: none; border-bottom-color: var(--m-green); box-shadow: 0 2px 0 var(--m-green); }
.m-form .m-hp { position: absolute; left: -9999px; }
.m-form button {
	grid-column: 1 / -1; justify-self: center; min-width: 50%; font: inherit; font-weight: 600; font-size: 1rem;
	background: var(--m-amber); color: var(--m-ink); border: 0; border-radius: 10px; padding: 0.95rem 2rem; cursor: pointer;
}
.m-form button:hover { background: #e9a321; }
.m-form-note { grid-column: 1 / -1; font-size: 0.85rem; color: var(--m-muted) !important; margin: 0; text-align: center; }
.m-form-sent { border-left: 4px solid var(--m-green); background: var(--m-mist); padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; color: var(--m-ink); }

/* ---------- Packages ---------- */
.m-price-grid { align-items: stretch; gap: 2.2rem; max-width: 1240px; }
.m-price-grid.m-grid-2 { max-width: 1100px; margin-left: auto !important; margin-right: auto !important; }
.m-price-grid.is-left { margin-left: 0 !important; }
/* In a page's main column: a card per 20rem of room, so a lone card isn't squeezed on tablets. */
.m-main-col .m-price-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.m-price {
	position: relative; display: flex; flex-direction: column; background: var(--m-paper); border-radius: 24px;
	padding: 2.4rem 2rem 2rem; box-shadow: var(--m-shadow);
}
.m-section.is-white .m-price { background: var(--m-mist); box-shadow: none; }
.m-price > * { margin: 0 !important; }
.m-price > * + * { margin-top: 1rem !important; }
.m-price.is-featured { background: var(--m-green); color: var(--m-paper); }
.m-price.is-featured h3, .m-price.is-featured p { color: var(--m-paper); }
.m-tag {
	position: absolute; top: -1.15rem; left: 2rem; background: var(--m-amber); color: var(--m-ink) !important;
	font-weight: 600; font-size: 0.92rem; padding: 0.55rem 1.1rem; border-radius: 8px; margin: 0 !important;
}
.m-price-name { font-size: 1.85rem; }
.m-price-fit { font-size: 0.98rem; color: var(--m-ink); padding-bottom: 1.2rem; border-bottom: 1px solid var(--m-line); }
.m-price.is-featured .m-price-fit { border-bottom-color: rgba(255, 255, 255, 0.25); }
.m-price-amount { font-size: 2.3rem; font-weight: 700; color: var(--m-ink); line-height: 1.1; }
.m-price-amount span { font-size: 0.95rem; font-weight: 500; color: var(--m-muted); white-space: nowrap; }
.m-price.is-featured .m-price-amount span { color: rgba(255, 255, 255, 0.8); }
.m-price-alt { font-size: 0.9rem; color: var(--m-muted) !important; margin-top: 0.3rem !important; }
.m-price.is-featured .m-price-alt { color: rgba(255, 255, 255, 0.75) !important; }
.m-price .m-ticks { flex-grow: 1; }
.m-price .wp-block-buttons { margin-top: 1.6rem !important; }
.m-price .wp-block-button { width: 100%; }
.m-price .wp-block-button__link { width: 100%; justify-content: center; box-sizing: border-box; }

.m-price-box { background: var(--m-mist); border-radius: 24px; padding: 2.2rem; }
.m-section.is-white .m-price-box { background: var(--m-mist); }
.m-price-box > * + * { margin-top: 0.5rem !important; }
.m-price-box .m-mini-label + * { margin-top: 0.2rem !important; }
.m-price-box .m-note { text-align: left; font-style: normal; margin-top: 0.3rem !important; }
.m-price-box .m-mini-label:not(:first-child) { margin-top: 1.6rem !important; }
.m-big-price { font-size: 2.6rem; font-weight: 700; color: var(--m-ink); line-height: 1.1; }
.m-big-price.is-small { font-size: 1.8rem; }
.m-price-line { font-size: 1.1rem; }
.m-scope.wp-block-columns { gap: 3rem; }
.m-scope > .wp-block-column:last-child { flex: 0 0 36% !important; }

/* ---------- Grey call-out band ---------- */
.m-band-section.m-section { background: var(--m-mist); }
.m-band { text-align: center; }
.m-band-text { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; color: var(--m-ink); max-width: 56rem; margin: 0 auto !important; line-height: 1.45; }
.m-band .wp-block-buttons { justify-content: center; margin-top: 1.8rem !important; }

/* ---------- Dark CTA (cover) ---------- */
.m-cta.wp-block-cover {
	min-height: 420px !important;
	padding: 6rem 1.25rem calc(6rem + var(--m-r-lg));
	text-align: center;
	border-radius: var(--m-r-lg) var(--m-r-lg) 0 0;
	margin-top: calc(-1 * var(--m-r-lg)) !important;
}
.m-cta-inner { max-width: 50rem; margin: 0 auto; }
.m-cta-inner > * + * { margin-top: 1.1rem !important; }
.m-cta h2 { color: var(--m-paper); }
.m-cta p { color: rgba(255, 255, 255, 0.9); font-size: 1.08rem; }
.m-cta .wp-block-buttons { justify-content: center; margin-top: 2rem !important; }
.m-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--m-amber); border-color: var(--m-amber); color: var(--m-ink); }

/* ---------- Service page with sidebar ---------- */
.m-with-sidebar.wp-block-columns { gap: 2.5rem; align-items: flex-start; }
.m-with-sidebar > .m-main-col.wp-block-column { flex: 1 1 64% !important; min-width: 0; }
.m-main-col > * + * { margin-top: 1.4rem !important; }
.m-main-col h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.m-main-col .wp-block-separator { border: 0; border-top: 1px solid var(--m-line); margin: 2.4rem 0 !important; opacity: 1; }
.m-main-col .m-head { margin-bottom: 1.5rem !important; margin-top: 3rem !important; }
.m-main-col .m-head.is-center { text-align: left; }
.m-main-col .m-head.is-center > * { margin-left: 0 !important; }
.m-main-col .m-note { text-align: left; }
.m-with-sidebar > .m-side-col.wp-block-column { flex: 0 0 34% !important; position: sticky; top: 7rem; }
.m-side-col > * + * { margin-top: 1.8rem !important; }
.m-side-box { background: var(--m-paper); border: 1px solid var(--m-line); border-radius: 22px; overflow: hidden; padding-bottom: 1.5rem; }
.m-side-head { background: var(--m-amber); color: var(--m-ink); font-size: 1.35rem; font-weight: 600; padding: 1.1rem 1.5rem; margin: 0 !important; border-radius: 0 0 16px 16px; }
.m-side-links { padding: 1.3rem 1.3rem 0; }
.m-side-links > * + * { margin-top: 0.8rem !important; }
.m-side-link { margin: 0; }
.m-side-link a {
	display: flex; align-items: center; gap: 0.6rem; background: var(--m-green); color: var(--m-paper) !important;
	border-radius: 14px; padding: 0.85rem 1.2rem; font-weight: 600; text-decoration: none;
}
.m-side-link a::after { content: "→"; transition: transform 0.15s ease; }
.m-side-link a:hover::after { transform: translateX(4px); }
.m-side-link.is-current a { background: var(--m-green-deep); box-shadow: inset 0 0 0 2px var(--m-amber); }
.m-side-form { padding: 1.6rem 1.6rem 1.8rem; }
.m-side-form .m-form { grid-template-columns: 1fr; gap: 1.1rem; }
.m-side-form .m-form button { min-width: 100%; }

/* ---------- Comparison table ---------- */
.m-compare.wp-block-table { max-width: 920px; margin: 0 auto !important; border-radius: 4px; overflow: hidden; }
.m-compare table { border-collapse: collapse; width: 100%; background: var(--m-paper); table-layout: auto; }
.m-compare thead { background: var(--m-amber); border: 0; }
.m-compare th { color: var(--m-ink); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 1.4rem 1.5rem; text-align: left; border: 0; }
.m-compare td { padding: 1.1rem 1.5rem; border: 0; border-bottom: 1px solid var(--m-line); color: var(--m-ink); }
.m-compare td + td, .m-compare th + th { border-left: 1px solid var(--m-line); }
.m-compare td:first-child { font-weight: 700; }
.m-compare a, .is-dark .m-compare a { color: var(--m-green) !important; font-weight: 600; }
.m-compare td:not(:first-child)::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--m-green); margin-right: 0.6rem; vertical-align: middle; }

/* ---------- Founder ---------- */
.m-portrait { aspect-ratio: 4 / 5; border-radius: 28px; display: grid; place-items: center; background: linear-gradient(150deg, var(--m-green), var(--m-green-deep)); }
.m-monogram { font-size: 6rem; font-weight: 700; color: var(--m-amber); margin: 0 !important; letter-spacing: 0.04em; }
.m-career { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--m-line); }
.m-career li { padding: 0.35rem 0 0.35rem 1.2rem; color: var(--m-ink); }
.m-big-quote { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 500; color: var(--m-paper); text-align: center; max-width: 46rem; margin: 0 auto 3rem !important; line-height: 1.35; }

/* ---------- Reference-page parts ---------- */
.m-intro-section.m-section { padding-top: 5rem; }
.m-intro-split.wp-block-columns { gap: 3rem; align-items: center; }
.m-intro-split h2, .m-intro-block h2 { max-width: 24ch; }
.m-intro-block > * + *, .m-intro-split .wp-block-column > * + * { margin-top: 1.1rem !important; }
.m-intro-split > .m-facts-col.wp-block-column { flex: 0 0 32% !important; }
.m-facts { background: var(--m-paper); border-radius: 24px; padding: 1.8rem 2rem; box-shadow: var(--m-shadow); }
.m-fact + .m-fact { margin-top: 1.1rem !important; padding-top: 1.1rem; border-top: 1px solid var(--m-line); }
.m-fact > * { margin: 0 !important; }
.m-fact-value { font-size: 1.35rem; font-weight: 700; color: var(--m-ink); line-height: 1.25; }
.m-fact-label { font-size: 0.9rem; color: var(--m-muted); margin-top: 0.2rem !important; }

.m-alert { background: #fdf3df; border-left: 5px solid var(--m-amber); border-radius: 0 22px 22px 0; padding: 2rem 2.3rem; }
.m-alert > * + * { margin-top: 0.9rem !important; }
.m-alert > * { max-width: 52rem; }
.m-alert h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.m-alert p, .m-alert li { color: var(--m-ink); }

.m-table.wp-block-table { margin: 0; overflow-x: auto; }
.m-table table { border-collapse: collapse; width: 100%; background: var(--m-paper); border-radius: 18px; overflow: hidden; table-layout: auto; }
.m-section.is-white .m-table table, .m-section.is-tint .m-table table { background: var(--m-mist); }
.m-table thead { background: var(--m-green); border: 0; }
.m-table th { color: var(--m-paper); font-weight: 600; text-align: left; padding: 1rem 1.2rem; border: 0; }
.m-table td { padding: 0.95rem 1.2rem; border: 0; border-bottom: 1px solid var(--m-line); color: var(--m-muted); vertical-align: top; }
.m-table td:first-child { color: var(--m-ink); font-weight: 600; }
.m-table-clause td:last-child { white-space: nowrap; }

.m-chips { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.m-chips > * { margin: 0 !important; }
.m-chip a { display: inline-block; padding: 0.7rem 1.3rem; border-radius: 10px; background: var(--m-mist); color: var(--m-ink); text-decoration: none; font-weight: 600; }
.m-chip a:hover { background: var(--m-amber); }

.m-prose > * { max-width: 48rem; }
.m-prose h2 { font-size: 1.6rem; margin-top: 2.4rem !important; }
.m-prose > *:first-child { margin-top: 0 !important; }

/* FAQ */
.m-faq > * + * { margin-top: 0.9rem !important; }
.m-faq .wp-block-details { background: var(--m-paper); border-radius: 16px; padding: 0 1.6rem; box-shadow: var(--m-shadow); }
.m-section.is-white .m-faq .wp-block-details, .m-section.is-tint .m-faq .wp-block-details, .m-main-col .m-faq .wp-block-details { background: var(--m-mist); box-shadow: none; }
.m-faq .wp-block-details summary { list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; font-weight: 600; font-size: 1.08rem; color: var(--m-ink); position: relative; }
.m-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.m-faq .wp-block-details summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--m-green); }
.m-faq .wp-block-details[open] summary::after { content: "−"; }
.m-faq .wp-block-details > p { margin: 0 0 1.4rem !important; }

/* ---------- Footer ---------- */
.m-footer {
	position: relative;
	background: var(--m-paper);
	padding-top: 5.5rem !important;
	padding-bottom: 2rem !important;
	color: var(--m-muted);
}
.m-footer-cols.wp-block-columns { gap: 2.5rem; margin-bottom: 0; }
.m-footer-cols > .m-footer-brand.wp-block-column { flex: 0 0 30% !important; }
.m-footer-brand > * + * { margin-top: 1.2rem !important; }
.m-footer-brand p { max-width: 24rem; color: var(--m-ink); }
.m-footer-contact a { color: var(--m-ink); text-decoration: none; overflow-wrap: anywhere; }
.m-footer-title { font-size: 1.2rem; padding-bottom: 0.9rem; margin-bottom: 1.2rem !important; position: relative; }
.m-footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 3.8rem; height: 2px; background: var(--m-amber); }
.m-footer ul.wp-block-list { list-style: none; padding: 0; margin: 0; }
.m-footer li { margin: 0 0 0.85rem; }
.m-footer li a { color: var(--m-ink); text-decoration: none; }
.m-footer li a:hover { color: var(--m-green); text-decoration: underline; }
.m-social.wp-block-social-links { gap: 0.6rem; }
.m-social .wp-social-link { background: transparent !important; color: var(--m-ink) !important; border: 1.5px solid var(--m-ink); border-radius: 50%; }
.m-social .wp-social-link a { color: var(--m-ink) !important; padding: 0.55rem; }
.m-social .wp-social-link svg { fill: var(--m-ink); }
.m-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; border-top: 1px solid var(--m-line); margin-top: 3.5rem !important; padding-top: 1.6rem; font-size: 0.92rem; }
.m-footer-bottom > * { margin: 0 !important; }
.m-footer-bottom a { color: var(--m-ink); text-decoration: none; }

/* ---------- Floating contact buttons and chat bubble ---------- */
.m-float { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 65; display: flex; flex-direction: column; gap: 0.8rem; }
.m-float a { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2); }
.m-float svg { width: 1.8rem; height: 1.8rem; fill: currentColor; }
.m-float-wa { background: #25d366; }
.m-float-call { background: #d62828; }
.m-chat { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 65; display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.m-chat-bubble { display: flex; align-items: center; gap: 0.8rem; background: #fff; color: var(--m-ink); text-decoration: none; padding: 0.9rem 2.4rem 0.9rem 0.9rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(10, 51, 40, 0.18); font-size: 0.98rem; line-height: 1.4; }
.m-chat-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--m-green); color: var(--m-amber); display: grid; place-items: center; font-weight: 700; flex: none; }
.m-chat-close { position: absolute; right: 0.6rem; top: 0.5rem; background: none; border: 0; font-size: 1.2rem; color: var(--m-muted); cursor: pointer; z-index: 1; }
.m-chat-btn { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--m-green); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2); }
.m-chat-btn svg { width: 1.6rem; height: 1.6rem; }
.m-chat.is-closed .m-chat-bubble, .m-chat.is-closed .m-chat-close { display: none; }

/* ---------- Blog templates ---------- */
.m-post-list .wp-block-post-template { display: grid; gap: 1.75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; list-style: none; }
.m-post-list .wp-block-post { margin: 0; background: var(--m-paper); border-radius: var(--m-r-md); padding: 0 0 1.6rem; overflow: hidden; box-shadow: var(--m-shadow); }
.m-post-list .wp-block-post > *:not(.wp-block-post-featured-image) { padding: 0 1.5rem; }
.m-post-list .wp-block-post-title { font-size: 1.3rem; }
.m-post-list .wp-block-post-title a { color: var(--m-ink); text-decoration: none; }
.m-single .wp-block-post-content { font-size: 1.08rem; color: var(--m-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.m-header .wp-block-navigation { gap: 1.1rem; font-size: 0.92rem; }
	.m-grid-4 { --m-cols: 2; }
	/* Core sets flex-wrap: nowrap !important on Columns from 782px, so wrapping needs !important too. */
	.m-reviews.wp-block-columns { flex-wrap: wrap !important; }
	/* Same specificity as the desktop widths above, or those win. */
	.m-reviews > .m-reviews-left.wp-block-column, .m-reviews > .m-reviews-mid.wp-block-column,
	.m-reviews > .m-reviews-right.wp-block-column { flex: 1 1 100% !important; }
	.m-reviews > .m-reviews-left.wp-block-column { align-items: flex-start; }
	.m-reviews-badge { min-height: 12rem; }
}

@media (max-width: 960px) {
	.m-grid-3 { --m-cols: 2; }
	.m-steps-row { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
	.m-step::after { display: none; }
	.m-tabs.wp-block-columns { flex-wrap: wrap !important; }
	.m-tabs > .wp-block-column, .m-tabs > .m-tab-col.wp-block-column { flex: 1 1 100% !important; }
	.m-tab-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
	.m-tab-list > * + * { margin-top: 0 !important; }
	.m-post-list .wp-block-post-template { grid-template-columns: 1fr 1fr; }
	.m-with-sidebar.wp-block-columns, .m-connect.wp-block-columns, .m-cs-split.wp-block-columns,
	.m-intro-split.wp-block-columns, .m-footer-cols.wp-block-columns, .m-scope.wp-block-columns { flex-wrap: wrap !important; }
	.m-scope > .wp-block-column, .m-scope > .wp-block-column:last-child { flex: 1 1 100% !important; }
	.m-cs-split > .wp-block-column, .m-intro-split > .wp-block-column, .m-intro-split > .m-facts-col.wp-block-column,
	.m-footer-cols > .m-footer-brand.wp-block-column { flex: 1 1 100% !important; }
	.m-footer-cols > .wp-block-column:not(.m-footer-brand) { flex: 1 1 calc(25% - 2.5rem) !important; min-width: 9rem; }
	.m-connect > .wp-block-column, .m-connect > .wp-block-column:first-child { flex: 1 1 100% !important; }
	.m-connect-photo img { min-height: 300px; }
	.m-with-sidebar > .m-main-col.wp-block-column, .m-with-sidebar > .m-side-col.wp-block-column { flex: 1 1 100% !important; }
	.m-with-sidebar > .m-side-col.wp-block-column { position: static; }
}

@media (max-width: 781px) {
	:root { --m-r-lg: 32px; }
	.m-header-cta { display: none; }
	.m-who > .m-who-photos.wp-block-column, .m-row-card > .wp-block-column:first-child,
	.m-tab-panel .wp-block-columns > .wp-block-column, .m-scope > .wp-block-column:last-child, .m-intro-split > .m-facts-col.wp-block-column,
	.m-footer-cols > .m-footer-brand.wp-block-column, .m-tabs > .m-tab-col.wp-block-column { flex: 1 1 100% !important; }
	.m-head-split .m-head-action { justify-content: flex-start; }
	.m-stats { gap: 1.5rem 0; }
	.m-stat { flex: 1 1 45%; padding: 0 1rem; border-left: 0; }
	.m-stats-band.wp-block-cover { padding: 2rem 1.5rem; }
	.m-ticks-cols { columns: 1; }
	.m-connect-photo img { min-height: 260px; }
	.m-hero.wp-block-cover { min-height: 640px !important; padding-top: 7.5rem; }
}

@media (max-width: 600px) {
	.m-grid-2, .m-grid-3, .m-grid-4 { --m-cols: 1; }
	.m-steps-row { grid-template-columns: 1fr; }
	.m-tab-list { grid-template-columns: 1fr; }
	.m-form { grid-template-columns: 1fr; }
	.m-form button { min-width: 100%; }
	.m-post-list .wp-block-post-template { grid-template-columns: 1fr; }
	.m-reviews.wp-block-columns { padding: 1.4rem; }
	.m-quote-scroller { grid-template-columns: 1fr; height: 22rem; }
	.m-quote-col.is-offset { display: none; }
	.m-photo-grid { gap: 0.9rem; }
	.m-photo-grid .m-badge { width: 6rem; }
	.m-chat-bubble { display: none; }
	.m-float a, .m-chat-btn { width: 3rem; height: 3rem; }
	.m-float { left: 0.75rem; bottom: 0.75rem; }
	.m-chat { right: 0.75rem; bottom: 0.75rem; }
	.m-chat-close { display: none; }
	.m-table { overflow-x: auto; }
	.m-table table, .m-compare table { min-width: 34rem; }
	.m-compare.wp-block-table { overflow-x: auto; }
	.m-banner.wp-block-cover { min-height: 300px !important; padding-top: 7.5rem; }
}

@media (max-width: 380px) {
	.wp-block-button .wp-block-button__link { padding: 0.85rem 1.1rem; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

.m-row-price { font-weight: 600; color: var(--m-ink); margin-top: 0.6rem !important; }

/* ---------- Founder photos ---------- */
.m-photo-portrait img { aspect-ratio: 4 / 5; object-position: center top; border-radius: 28px; }
.m-founder-gallery .m-card-photo img { aspect-ratio: 4 / 3; object-position: center top; }
.m-founder-gallery .m-card-body h3 { font-size: 1.25rem; }

/* Share links (footer) */
.m-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin: 2.5rem 0 0 !important; font-size: 0.92rem; }
.m-share span { font-weight: 600; color: var(--m-ink); margin-right: 0.25rem; }
.m-share a { display: inline-block; padding: 0.35rem 0.85rem; border: 1.5px solid var(--m-line); border-radius: 999px; color: var(--m-ink); text-decoration: none; }
.m-share a:hover, .m-share a:focus-visible { border-color: var(--m-primary, #0F4C3A); background: var(--m-primary, #0F4C3A); color: #fff; }

/* ---------- Under each article ---------- */
.m-single .wp-block-post-date + .wp-block-post-author-name::before { content: "By "; }
.m-post-service { margin-top: 3rem !important; }
.m-related { margin-top: 3rem !important; }
.m-related h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.m-related ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.m-related li { margin: 0; }
.m-related a { display: block; height: 100%; background: var(--m-paper); border-radius: var(--m-r-md); overflow: hidden; box-shadow: var(--m-shadow); color: var(--m-ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.m-related img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.m-related span { display: block; padding: 0.9rem 1rem 1.1rem; }
.m-related a:hover span, .m-related a:focus-visible span { text-decoration: underline; }
@media (max-width: 760px) { .m-related ul { grid-template-columns: 1fr; } }

/* ---------- Header: tablet and phone ----------
   The desktop menu (9 items) needs about 1200px; below that WordPress's own breakpoint (600px)
   left it wrapping onto two lines. Below 1200px the menu becomes the hamburger overlay. */
.m-header .wp-block-navigation .wp-block-navigation-item__content { white-space: nowrap; }
.m-header-cta .wp-block-button__link { white-space: nowrap; }
.m-header:has(.is-menu-open) { transform: none !important; transition: none; }

.m-header .wp-block-navigation__responsive-container-open,
.m-header .wp-block-navigation__responsive-container-close {
	width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center;
	border-radius: 12px; color: var(--m-ink);
}
.m-header .wp-block-navigation__responsive-container-open { background: var(--m-mist); }
.m-header .wp-block-navigation__responsive-container-open svg,
.m-header .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

@media (max-width: 1199px) {
	.m-header-row { gap: 0.75rem; padding: 0.7rem 0.9rem 0.7rem 1.4rem; }
	.m-header .m-wordmark, .m-header .wp-block-site-title { margin-right: auto !important; }
	.m-header .wp-block-navigation { order: 3; }
	.m-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.m-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.m-header-cta { display: flex !important; }
}

/* The open menu: full screen, one clear list, sections expanded. */
.m-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1rem 1.25rem 2.5rem;
	background: var(--m-paper) !important;
	color: var(--m-ink) !important;
	overflow-y: auto;
}
.m-header .is-menu-open .wp-block-navigation__responsive-close { max-width: 40rem; margin: 0 auto; }
.m-header .is-menu-open .wp-block-navigation__responsive-container-close { top: 0.25rem; right: 0; background: var(--m-mist); }
.m-header .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.75rem !important;
	align-items: stretch !important;
	gap: 0 !important;
}
.m-header .is-menu-open .wp-block-navigation__container { gap: 0 !important; align-items: stretch !important; width: 100%; }
.m-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	border-bottom: 1px solid var(--m-line);
	padding: 0.15rem 0;
}
.m-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: block; padding: 0.85rem 0 !important; font-size: 1.15rem; font-weight: 600;
}
.m-header .is-menu-open .wp-block-navigation__submenu-container {
	padding: 0 0 0.8rem 0.9rem !important;
	gap: 0 !important;
	box-shadow: none !important;
	min-width: 0 !important;
	border-radius: 0;
	background: transparent !important;
}
.m-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block; padding: 0.45rem 0 !important; font-size: 1rem; font-weight: 400; color: var(--m-muted);
}
.m-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-submenu > .wp-block-navigation-item__content {
	font-weight: 600; color: var(--m-ink);
}
.m-header .is-menu-open .wp-block-navigation__submenu-icon { display: none; }
.m-header .is-menu-open .current-menu-item > a::before { display: none; }

@media (max-width: 600px) {
	.m-header { top: 10px; left: 10px; right: 10px; border-radius: 14px; }
	.m-header-row { padding: 0.55rem 0.6rem 0.55rem 1rem; gap: 0.5rem; }
	.m-header .m-wordmark, .m-header .wp-block-site-title { font-size: 1.35rem; }
	.m-header-cta .wp-block-button__link { padding: 0.7rem 0.9rem; font-size: 0.85rem; }
	.m-header-cta .wp-block-button__link::after { display: none; }
}
@media (max-width: 400px) {
	.m-header-cta { display: none !important; }
}

/* Open menu: left-aligned, top-level sections collapsed (medify.js adds the toggle buttons). */
.m-header .is-menu-open .wp-block-navigation__responsive-container-content,
.m-header .is-menu-open .wp-block-navigation__container,
.m-header .is-menu-open .wp-block-navigation-item,
.m-header .is-menu-open .wp-block-navigation__submenu-container { text-align: left !important; align-items: flex-start !important; }
.m-header .is-menu-open .wp-block-navigation__container { max-width: 40rem; margin: 0 auto; }
.m-header .is-menu-open .wp-block-navigation__container > .has-child { position: relative; }
.m-header .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container { display: none !important; }
.m-header .is-menu-open .wp-block-navigation__container > .has-child.m-open > .wp-block-navigation__submenu-container { display: flex !important; }
.m-menu-toggle {
	position: absolute; top: 0.35rem; right: 0; width: 2.75rem; height: 2.75rem;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 10px; background: var(--m-mist); color: var(--m-ink); cursor: pointer;
}
.m-menu-toggle::before {
	content: ""; width: 0.55rem; height: 0.55rem; border: solid currentColor; border-width: 0 2px 2px 0;
	transform: translateY(-2px) rotate(45deg); transition: transform 0.2s ease;
}
.m-open > .m-menu-toggle::before { transform: translateY(2px) rotate(-135deg); }
.m-header:not(:has(.is-menu-open)) .m-menu-toggle { display: none; }
html.has-modal-open .m-float, html.has-modal-open .m-chat { display: none; }
.m-header .is-menu-open .wp-block-navigation__container,
.m-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item { width: 100%; align-self: stretch !important; }
.m-header .is-menu-open .wp-block-navigation__container > .has-child > .wp-block-navigation-item__content { padding-right: 3.5rem !important; }
.m-header .is-menu-open .wp-block-navigation-item__content:focus-visible { outline: 2px solid var(--m-amber); outline-offset: 2px; border-radius: 6px; }
.m-header .is-menu-open .wp-block-navigation-item__content:focus:not(:focus-visible) { outline: none; }

/* ---------- Floating buttons ----------
   The chat bubble slides in after a few seconds instead of covering the page on arrival, and stays
   closed once closed (medify.js). On phones the chat button (a second WhatsApp link) is dropped and
   WhatsApp + call sit together on the right, clear of the left-aligned hero buttons. */
.m-chat-bubble { opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.35s ease, transform 0.35s ease; }
.m-chat-close { opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.m-chat.is-shown .m-chat-bubble, .m-chat.is-shown .m-chat-close { opacity: 1; transform: none; pointer-events: auto; }
.m-float a, .m-chat-btn { transition: transform 0.2s ease; }
.m-float a:hover, .m-chat-btn:hover { transform: scale(1.06); }

@media (max-width: 600px) {
	.m-chat { display: none; }
	.m-float { left: auto; right: 0.75rem; bottom: 0.9rem; gap: 0.6rem; }
	.m-float a { width: 3.1rem; height: 3.1rem; }
	.m-float svg { width: 1.5rem; height: 1.5rem; }
}

/* ---------- Client strip ----------
   The names are text until real logos arrive; shown as quiet chips so the row reads as a set
   rather than loose grey words. */
.m-logos { gap: 0.9rem 1rem; }
.m-logo {
	display: inline-flex; align-items: center; gap: 0.55rem;
	padding: 0.7rem 1.25rem; border: 1px solid var(--m-line); border-radius: 999px; background: var(--m-paper);
	font-size: 1.05rem; color: var(--m-ink); opacity: 0.8; transition: opacity 0.2s ease, border-color 0.2s ease;
}
.m-logo::before {
	content: ""; width: 0.75rem; height: 0.75rem; flex: none;
	background: linear-gradient(var(--m-green), var(--m-green)) center / 100% 3px no-repeat,
		linear-gradient(var(--m-green), var(--m-green)) center / 3px 100% no-repeat;
}
.m-logo:hover { opacity: 1; border-color: var(--m-green); }
@media (max-width: 600px) {
	.m-logos-title::before, .m-logos-title::after { display: none; }
	.m-logo { font-size: 0.92rem; padding: 0.55rem 0.95rem; }
}

/* The share row belongs on articles and inner pages, not the home page footer. */
.home .m-share { display: none; }

/* Three-up grids on tablets fall to two columns: centre a lone last card instead of leaving a hole. */
@media (min-width: 601px) and (max-width: 960px) {
	.m-grid-3 > :last-child:nth-child(odd) {
		grid-column: 1 / -1; justify-self: center; width: calc((100% - 1.75rem) / 2);
	}
	.m-price-grid.m-grid-3 > :last-child:nth-child(odd) { width: calc((100% - 2.2rem) / 2); }
}

/* Article meta: date and author as one tight block. */
.m-single article > .wp-block-post-date { margin-bottom: 0 !important; color: var(--m-muted); }
.m-single article > .wp-block-post-author-name { margin-top: 0.15rem !important; color: var(--m-muted); }
.m-single article > .wp-block-post-featured-image { margin-top: 1.5rem !important; }
.m-single article > .wp-block-post-featured-image img { border-radius: var(--m-r-md); }

/* Article reading rhythm. The kit zeroes margins inside post content (its pages are stacked
   full-width sections), which left article paragraphs and headings with no space between them. */
.m-single .wp-block-post-content { line-height: 1.75; }
.m-single .wp-block-post-content > * + * { margin-top: 1.15em !important; }
.m-single .wp-block-post-content > h2 { margin-top: 2.2em !important; font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.25; }
.m-single .wp-block-post-content > h3 { margin-top: 1.8em !important; font-size: 1.25rem; line-height: 1.3; }
.m-single .wp-block-post-content > h2 + *, .m-single .wp-block-post-content > h3 + * { margin-top: 0.6em !important; }
.m-single .wp-block-post-content li + li { margin-top: 0.45em; }
.m-single .wp-block-post-content a { color: var(--m-green); text-underline-offset: 3px; }
.m-single .wp-block-post-content .m-faq { margin-top: 1em !important; }
.m-single article > .wp-block-post-terms { margin-top: 2.5rem !important; font-size: 0.92rem; }

/* ---------- Logo ---------- */
.m-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.m-logo-img { display: block; width: auto; height: auto; }
.m-header .m-logo-img { height: 58px; }
.m-header-row > p:first-child { margin-right: auto !important; line-height: 0; }
.m-footer-brand > p:first-child { line-height: 0; }
.m-footer .m-logo-img { height: 76px; margin-bottom: 0.6rem; }
.m-chat-avatar { background: var(--m-paper); border: 1px solid var(--m-line); }
.m-chat-avatar img { width: 1.5rem; height: 1.5rem; display: block; }
@media (max-width: 600px) {
	.m-header .m-logo-img { height: 48px; }
}


/* Website portfolio (MediGrow-style grid with filters) */
.m-filter { justify-content: center; gap: 0.75rem; margin: 0 0 2.5rem !important; }
.m-filter .wp-block-button__link { padding: 0.65rem 1.4rem; font-size: 0.95rem; border-radius: 12px; }
.m-filter-btn.is-active .wp-block-button__link { background: var(--m-green, #0F4C3A); border-color: var(--m-green, #0F4C3A); color: #fff; }
.m-port-card .m-card-photo img { aspect-ratio: 1200 / 760; object-fit: cover; object-position: center; background: #EEF3F0; }
.m-port-card .m-card-body { display: flex; flex-direction: column; gap: 0.35rem; }
.m-port-card .m-card-body .wp-block-buttons { margin-top: auto; padding-top: 0.75rem; }
.m-port-card h3 { margin: 0.1rem 0 0; }
.m-port-tag { display: inline-block; align-self: flex-start; margin: 0 !important; padding: 0.2rem 0.7rem; border-radius: 999px; background: #F3F6F4; border: 1px solid var(--m-line, #DCE5E1); font-size: 0.8rem; font-weight: 600; color: var(--m-green, #0F4C3A); }
.m-port-meta { margin: 0 !important; font-size: 0.92rem; font-weight: 600; color: var(--m-muted, #55655F); }
.m-port-card.is-hidden { display: none; }

/* Social media portfolio (phone mockups of managed Instagram accounts) */
.m-social-grid { row-gap: 3rem; }
.m-social-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.m-social-card > * { margin: 0 !important; }
.m-social-phone { width: 100%; max-width: 290px; }
.m-social-phone img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.m-social-phone a:hover img { transform: translateY(-6px); }
.m-social-card h3 { margin-top: 1rem !important; font-size: 1.15rem; }
.m-social-card .m-port-meta { margin-top: 0.25rem !important; }
.m-social-card .wp-block-buttons { justify-content: center; margin-top: 0.9rem !important; }
.m-ig-btn .wp-block-button__link { background: var(--m-ink, #0C3328); color: #fff; border-radius: 10px; padding: 0.6rem 1.2rem; font-size: 0.92rem; }
.m-ig-btn .wp-block-button__link::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='white'/%3E%3C/svg%3E"); }

/* Case studies (MediGrow-style alternating rows) */
.m-cs-split { align-items: center; gap: 3.5rem; }
.m-cs-photo img { width: 100%; border-radius: 22px; display: block; box-shadow: var(--m-shadow); }
.m-cs-line { position: relative; padding-left: 2rem; margin: 0.8rem 0 !important; line-height: 1.6; }
.m-cs-line::before { content: ""; position: absolute; left: 0; top: 0.2rem; width: 20px; height: 20px; background: no-repeat center/contain; opacity: .9; }
.m-cs-line.is-problem::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C3A' stroke-width='2'%3E%3Cpath d='M12 3 2 20h20L12 3z'/%3E%3Cpath d='M12 10v4M12 17v.5'/%3E%3C/svg%3E"); }
.m-cs-line.is-solution::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C3A' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1 7 17M17 7l2.1-2.1'/%3E%3C/svg%3E"); }
.m-cs-line.is-result::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C3A' stroke-width='2'%3E%3Cpath d='M4 20V14M10 20V9M16 20V12M22 20V4'/%3E%3C/svg%3E"); }
.is-dark .m-cs-line.is-problem::before, .is-dark .m-cs-line.is-solution::before, .is-dark .m-cs-line.is-result::before { filter: brightness(0) invert(1); }
.m-cs-key { font-weight: 700; }
.m-cs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0 1.4rem !important; }
.m-cs-stats.is-center { max-width: 900px; margin-inline: auto !important; }
.m-cs-stat { background: #fff; border: 1px solid var(--m-line, #DCE5E1); border-radius: 18px; padding: 1.1rem 0.8rem; text-align: center; }
.m-cs-stat > * { margin: 0 !important; }
.m-cs-stat:nth-child(2) { background: var(--m-amber, #F2B23A); border-color: var(--m-amber, #F2B23A); }
.m-cs-value { font-size: 1.75rem; font-weight: 700; color: var(--m-ink, #0C3328); line-height: 1.2; }
.m-cs-label { font-size: 0.88rem; color: var(--m-ink, #0C3328); margin-top: 0.3rem !important; }
/* Small laptops: give the text side more room so the three stat boxes don't squeeze. */
@media (min-width: 961px) and (max-width: 1180px) {
	.m-cs-split > .wp-block-column:has(.m-cs-photo) { flex: 0 0 38% !important; }
	.m-cs-split > .wp-block-column:not(:has(.m-cs-photo)) { flex: 1 1 0 !important; }
	.m-cs-split { gap: 2.5rem; }
}
@media (max-width: 960px) { .m-cs-split { gap: 2rem; } }
@media (max-width: 600px) { .m-cs-stats { grid-template-columns: 1fr; } .m-cs-split { gap: 1.5rem; } }
.is-dark .m-cs-stat .m-cs-value, .is-dark .m-cs-stat .m-cs-label, .m-cs-stat .m-cs-value, .m-cs-stat .m-cs-label { color: var(--m-ink, #0C3328) !important; }
