/*
Theme Name: Mercurius
Theme URI: https://www.mercpsych.com/
Author: Preferred Computer Solutions
Author URI: https://pcs-nh.com/
Description: Custom theme for Mercurius Psychiatric Services. Classic PHP theme; page content is built with core blocks so every page stays editable in the block editor. Practice details live in mercurius_practice() in functions.php.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: mercurius
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #16232f;
	--ink-soft: #2b3a48;
	--text: #26323d;
	--muted: #5a6672;
	--evergreen: #3f6359;
	--evergreen-dark: #31504a;
	--evergreen-tint: #e6eeea;
	--brass: #a7824a;
	--brass-tint: #f4ecdf;
	--sand: #f5f1ea;
	--paper: #fdfcfa;
	--white: #ffffff;
	--line: #e4ded3;
	--line-soft: #eee9e0;

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wide: 1180px;
	--narrow: 760px;
	--gutter: 24px;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(22, 35, 47, .04), 0 8px 24px rgba(22, 35, 47, .06);
	--shadow-lg: 0 2px 4px rgba(22, 35, 47, .05), 0 24px 48px rgba(22, 35, 47, .10);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--evergreen); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--evergreen-dark); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 500;
	color: var(--ink);
	line-height: 1.15;
	letter-spacing: -0.012em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 4.6vw, 3.55rem); }
h2 { font-size: clamp(1.85rem, 3.1vw, 2.55rem); }
h3 { font-size: 1.4rem; line-height: 1.25; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 600; color: var(--ink); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--sans); font-weight: 600; font-size: .95rem; line-height: 1;
	padding: 15px 24px; border-radius: 999px;
	text-decoration: none; border: 1.5px solid transparent;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
	cursor: pointer;
}
.btn-primary,
.wp-block-button__link {
	background: var(--evergreen); color: #fff; border-color: var(--evergreen);
}
.btn-primary:hover,
.wp-block-button__link:hover { background: var(--evergreen-dark); border-color: var(--evergreen-dark); color: #fff; }
.btn-outline,
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-outline:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn .icon, .wp-block-button__link .icon { width: 18px; height: 18px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------- Crisis bar ---------- */
.crisis-bar { background: var(--ink); color: #d5dde4; font-size: .875rem; }
.crisis-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.crisis-bar p { margin: 0; }
.crisis-bar a, .crisis-bar strong { color: #fff; text-decoration: none; }
.crisis-bar a:hover { text-decoration: underline; }
.crisis-links { display: flex; gap: 20px; }
.crisis-links a { display: inline-flex; align-items: center; gap: 7px; }
.crisis-links .icon { width: 16px; height: 16px; color: #b9c9c2; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(253, 252, 250, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(22, 35, 47, .05); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 52px; height: 52px; object-fit: contain; }
.brand-mark {
	width: 46px; height: 46px; border-radius: 50%;
	display: grid; place-items: center;
	font-family: var(--serif); font-size: 1.5rem; color: #fff; background: var(--evergreen);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; letter-spacing: .01em; }
.brand-sub { font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav .menu > li { position: relative; margin: 0; display: flex; align-items: center; }
.primary-nav .menu a {
	display: block; padding: 10px 12px; border-radius: 8px;
	color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.primary-nav .menu a:hover { color: var(--evergreen); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a,
.primary-nav .current_page_ancestor > a { color: var(--evergreen); }
.primary-nav .menu > li.current-menu-item > a::after,
.primary-nav .menu > li.current-menu-ancestor > a::after {
	content: ""; display: block; height: 2px; background: var(--brass); border-radius: 2px; margin-top: 4px;
}
.submenu-toggle {
	background: none; border: 0; padding: 6px; margin-left: -8px; color: var(--muted); cursor: pointer;
	display: inline-flex; border-radius: 6px;
}
.primary-nav .sub-menu,
.primary-nav .children {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.primary-nav .sub-menu li, .primary-nav .children li { margin: 0; }
.primary-nav .sub-menu a, .primary-nav .children a { padding: 10px 12px; }
.primary-nav .sub-menu a:hover, .primary-nav .children a:hover { background: var(--sand); }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.submenu-open > .sub-menu,
.primary-nav li:hover > .children,
.primary-nav li:focus-within > .children {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-cta { padding: 13px 20px; font-size: .9rem; }

.nav-toggle {
	display: none; width: 46px; height: 46px; border-radius: 10px;
	background: transparent; border: 1px solid var(--line); cursor: pointer; position: relative;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
	position: absolute; left: 50%; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
	transform: translateX(-50%); transition: transform .2s ease, opacity .2s ease;
	content: "";
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-block; }
	.primary-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 12px;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: 12px var(--gutter) 24px; box-shadow: 0 16px 30px rgba(22, 35, 47, .08);
		max-height: calc(100vh - 120px); overflow-y: auto;
	}
	.nav-open .primary-nav { display: flex; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line-soft); }
	.primary-nav .menu > li > a { flex: 1; padding: 14px 4px; font-size: 1.05rem; }
	.primary-nav .menu > li.current-menu-item > a::after,
	.primary-nav .menu > li.current-menu-ancestor > a::after { display: none; }
	.submenu-toggle { padding: 12px; margin: 0; }
	.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.primary-nav .sub-menu, .primary-nav .children {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 0 10px 12px; min-width: 0; width: 100%;
		display: none; background: transparent;
	}
	.primary-nav li.submenu-open > .sub-menu { display: block; }
	.primary-nav li:hover > .sub-menu { display: none; }
	.primary-nav li.submenu-open:hover > .sub-menu { display: block; }
	.nav-cta { width: 100%; margin-top: 8px; padding: 16px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 680px) {
	.crisis-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 8px; padding-bottom: 8px; }
	.crisis-links { gap: 16px; }
	.brand-name { font-size: 1.35rem; }
	.brand-sub { font-size: .6rem; letter-spacing: .18em; }
	.header-inner { min-height: 72px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
	background:
		radial-gradient(1200px 400px at 100% 0%, rgba(63, 99, 89, .09), transparent 60%),
		var(--sand);
	border-bottom: 1px solid var(--line);
	padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
}
.page-title { margin: 0; max-width: 20ch; }
.page-intro { margin: 18px 0 0; max-width: 62ch; font-size: 1.15rem; color: var(--muted); }
.crumbs { display: flex; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--evergreen); text-decoration: underline; }

/* ---------- Entry content layout ---------- */
.entry-content > :not(.alignfull):not(.alignwide) {
	max-width: var(--narrow); margin-left: auto; margin-right: auto;
	padding-left: var(--gutter); padding-right: var(--gutter);
}
.entry-content > :not(.alignfull):first-child { margin-top: clamp(40px, 6vw, 72px); }
.entry-content > :not(.alignfull):last-child { margin-bottom: clamp(48px, 7vw, 88px); }
.entry-content > .alignwide { max-width: var(--wide); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.entry-content > .alignfull { margin: 0; max-width: none; }

/* Section system */
.mp-section { padding: clamp(60px, 8.5vw, 112px) var(--gutter); position: relative; }
.mp-section > * { max-width: var(--wide); margin-left: auto !important; margin-right: auto !important; }
.mp-section.mp-narrow > * { max-width: var(--narrow); }
.mp-section > :last-child { margin-bottom: 0; }
.mp-section.mp-tight { padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }
.mp-bg-sand { background: var(--sand); }
.mp-bg-white { background: var(--white); }
.mp-bg-tint { background: var(--evergreen-tint); }
.mp-bg-ink { background: var(--ink); color: #c9d3db; }
.mp-bg-ink h2, .mp-bg-ink h3, .mp-bg-ink strong { color: #fff; }
.mp-bg-ink a:not(.wp-block-button__link) { color: #fff; }
.mp-border-top { border-top: 1px solid var(--line); }

.mp-eyebrow {
	font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .2em;
	text-transform: uppercase; color: var(--evergreen); margin-bottom: 14px;
	display: flex; align-items: center; gap: 12px;
}
.mp-eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--brass); flex: none; }
.mp-bg-ink .mp-eyebrow { color: #d4b98a; }
.mp-center { text-align: center; }
.mp-center.mp-eyebrow { justify-content: center; }
.mp-lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.mp-bg-ink .mp-lead { color: #b7c3cd; }
.mp-center.mp-lead { margin-left: auto; margin-right: auto; }
.mp-section > .mp-section-head { max-width: var(--wide); margin-bottom: clamp(32px, 5vw, 56px) !important; }
.mp-section-head > * { max-width: 720px; }
.mp-section-head.mp-center { text-align: center; }
.mp-section-head.mp-center > * { margin-left: auto; margin-right: auto; }
.mp-section-head > :last-child { margin-bottom: 0; }
.mp-section-head .mp-eyebrow { justify-content: inherit; }
.mp-section-head.mp-center .mp-eyebrow { justify-content: center; }
.mp-small { font-size: .9rem; color: var(--muted); }

/* ---------- Hero ---------- */
.mp-hero {
	background:
		radial-gradient(900px 520px at 88% 10%, rgba(63, 99, 89, .12), transparent 62%),
		radial-gradient(700px 400px at 0% 100%, rgba(167, 130, 74, .08), transparent 60%),
		var(--sand);
	padding-top: clamp(56px, 8vw, 104px);
	padding-bottom: clamp(56px, 8vw, 104px);
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.mp-hero .wp-block-columns { align-items: center; gap: clamp(32px, 6vw, 80px); margin-bottom: 0; }
.mp-hero h1 { margin-bottom: 22px; }
.mp-hero h1 em { font-style: italic; color: var(--evergreen); }
.mp-hero .mp-lead { margin-bottom: 0; }

.mp-portrait { position: relative; margin: 0 0 0 auto; max-width: 420px; }
.mp-portrait img {
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
	border-radius: var(--radius-lg); position: relative; z-index: 1; box-shadow: var(--shadow-lg);
	background: var(--evergreen-tint);
}
.mp-portrait::before {
	content: ""; position: absolute; inset: 18px -18px -18px 18px;
	border: 1.5px solid var(--brass); border-radius: var(--radius-lg); opacity: .55;
}
.mp-portrait figcaption {
	position: relative; z-index: 2; margin: -44px 20px 0; padding: 16px 20px;
	background: #fff; border-radius: 12px; box-shadow: var(--shadow);
	font-size: .88rem; line-height: 1.45; color: var(--muted); text-align: left;
}
.mp-portrait figcaption strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--ink); margin-bottom: 2px; }

@media (max-width: 781px) {
	.mp-portrait { margin: 8px auto 0; max-width: 340px; }
	.mp-portrait::before { inset: 12px -10px -10px 12px; }
}

/* ---------- Credential badges ---------- */
.mp-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.mp-badges li { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: .92rem; font-weight: 500; color: var(--ink-soft); }
.mp-badges li::before {
	content: ""; width: 18px; height: 18px; flex: none; background: var(--evergreen);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%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 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mp-strip { background: #fff; border-bottom: 1px solid var(--line); }

/* ---------- Cards ---------- */
.wp-block-columns.mp-cards {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 22px; margin-bottom: 0;
}
.wp-block-columns.mp-cards.mp-cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.wp-block-columns.mp-cards.mp-cols-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.wp-block-columns.mp-cards > .wp-block-column { flex-basis: auto !important; margin: 0 !important; width: auto; }
.mp-card {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 30px 28px 26px; display: flex; flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mp-bg-white .mp-card { background: var(--paper); }
.mp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d8d0c3; }
.mp-card h3 { margin-bottom: 10px; }
.mp-card p { color: var(--muted); font-size: .98rem; }
.mp-card > :last-child { margin-bottom: 0; }
.mp-card .mp-more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .92rem; }
.mp-card .mp-more a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mp-card .mp-more a::after { content: "\2192"; transition: transform .2s ease; }
.mp-card:hover .mp-more a::after { transform: translateX(4px); }
.mp-card.mp-plain:hover { transform: none; box-shadow: none; border-color: var(--line); }
.wp-block-column > .mp-card + .mp-card,
.wp-block-column > .mp-card + .mp-notice,
.wp-block-column > .mp-notice + * { margin-top: 22px; }
.mp-card.mp-plain .mp-checks:last-child { margin-bottom: 0; }

/* Icons on cards */
.mp-ico { padding-top: 98px; }
.mp-ico::before {
	content: ""; position: absolute; left: 28px; top: 30px; width: 50px; height: 50px; border-radius: 14px;
	background: var(--evergreen-tint);
}
.mp-ico::after {
	content: ""; position: absolute; left: 41px; top: 43px; width: 24px; height: 24px;
	background: var(--evergreen);
	-webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.mp-ico-med   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='8' rx='4' transform='rotate(-45 12 12)'/%3E%3Cpath d='M9.2 9.2l5.6 5.6'/%3E%3C/svg%3E"); }
.mp-ico-chat  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3Cpath d='M8.5 11h7M8.5 14.5h4'/%3E%3C/svg%3E"); }
.mp-ico-spark { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4a5 5 0 0 0-5 5c0 2 1 3 1 4.5S4 16 4 17a3 3 0 0 0 5 2.2M15 4a5 5 0 0 1 5 5c0 2-1 3-1 4.5s1 2.5 1 3.5a3 3 0 0 1-5 2.2M9 4a3 3 0 0 1 3 3v12M15 4a3 3 0 0 0-3 3'/%3E%3C/svg%3E"); }
.mp-ico-pulse { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l2-5 4 10 2-5h6'/%3E%3C/svg%3E"); }
.mp-ico-users { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18.5 14.5A6.5 6.5 0 0 1 21.5 20'/%3E%3C/svg%3E"); }
.mp-ico-flask { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6L4.5 18.5A2 2 0 0 0 6.2 21.5h11.6a2 2 0 0 0 1.7-3L14 9V3'/%3E%3Cpath d='M7 15h10'/%3E%3C/svg%3E"); }
.mp-ico-phone { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.mp-ico-star  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E"); }
.mp-ico-home  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
.mp-ico-text  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2.5' width='12' height='19' rx='2.5'/%3E%3Cpath d='M10.5 18.5h3'/%3E%3C/svg%3E"); }
.mp-ico-heart { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7a4.3 4.3 0 0 1 7.5 2.8C19.5 15.4 12 20 12 20z'/%3E%3C/svg%3E"); }
.mp-ico-alert { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18v.01'/%3E%3C/svg%3E"); }

/* Cards with a photo on top */
.mp-card.mp-has-img { padding: 0; overflow: hidden; }
.mp-card.mp-has-img > * { padding-left: 26px; padding-right: 26px; }
.mp-card.mp-has-img > .mp-card-img { padding: 0; margin: 0 0 22px; }
.mp-card.mp-has-img > :last-child { padding-bottom: 26px; }
.mp-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.mp-card.mp-has-img:hover .mp-card-img img { transform: scale(1.04); }
.mp-card-img { overflow: hidden; }
.wp-block-columns.mp-cards.mp-gap-top { margin-top: clamp(32px, 5vw, 56px); }

/* Feature photos */
.mp-photo { margin: 0 0 22px; position: relative; }
.mp-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--evergreen-tint); }
.mp-photo.mp-photo-tall img { aspect-ratio: 4 / 5; }
.mp-photo + .mp-card, .mp-photo + .mp-notice { margin-top: 0; }
@media (max-width: 781px) { .mp-photo.mp-photo-tall img { aspect-ratio: 4 / 3; } }

/* Cover-based veteran band */
.wp-block-cover.mp-section { min-height: 0; padding: clamp(60px, 8.5vw, 112px) var(--gutter); align-items: center; }
.wp-block-cover.mp-section > .wp-block-cover__background,
.wp-block-cover.mp-section > .wp-block-cover__image-background { max-width: none !important; margin: 0 !important; }
.wp-block-cover.mp-section > .wp-block-cover__inner-container { max-width: var(--wide); margin: 0 auto; width: 100%; color: inherit; }
.wp-block-cover.mp-section .wp-block-cover__inner-container > * { max-width: none; }
.wp-block-cover.mp-bg-ink, .wp-block-cover.mp-bg-ink p, .wp-block-cover.mp-bg-ink li { color: #c9d3db; }
.wp-block-cover.mp-bg-ink h2 { color: #fff; }
.wp-block-cover .wp-block-cover__image-background { filter: grayscale(.35); }
.wp-block-cover.mp-vet::after { display: none; }

/* ---------- Split / feature sections ---------- */
.mp-split.wp-block-columns { gap: clamp(32px, 6vw, 88px); align-items: flex-start; margin-bottom: 0; }
.mp-split.mp-va-center { align-items: center; }
.mp-split > .wp-block-column > :last-child { margin-bottom: 0; }

/* Check list */
.mp-checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.mp-checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.mp-checks li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
	background: var(--evergreen-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f6359' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.mp-checks.mp-two-col { columns: 2 260px; column-gap: 40px; }
.mp-checks.mp-two-col li { break-inside: avoid; }
.mp-bg-ink .mp-checks li::before { background-color: rgba(255, 255, 255, .1); }

/* Numbered steps */
.mp-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.mp-steps li {
	counter-increment: step; position: relative; padding: 0 0 26px 64px; margin: 0;
	color: var(--muted);
}
.mp-steps li::before {
	content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -2px;
	width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
	font-family: var(--serif); font-size: 1.05rem; color: var(--evergreen);
	background: #fff; border: 1.5px solid var(--evergreen);
}
.mp-steps li::after {
	content: ""; position: absolute; left: 22px; top: 46px; bottom: 4px; width: 1.5px; background: var(--line);
}
.mp-steps li:last-child { padding-bottom: 0; }
.mp-steps li:last-child::after { display: none; }
.mp-steps li strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--ink); margin-bottom: 4px; }

/* Chips (insurance) */
.mp-chips { list-style: none; padding: 0; margin: 0 0 1.4em; display: flex; flex-wrap: wrap; gap: 10px; }
.mp-chips.mp-center { justify-content: center; }
.mp-chips li {
	margin: 0; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
	font-weight: 500; font-size: .95rem; color: var(--ink-soft);
}

/* Veteran band */
.mp-vet { overflow: hidden; }
.mp-vet::after {
	content: ""; position: absolute; right: -60px; top: 50%; width: 380px; height: 380px; transform: translateY(-50%);
	opacity: .07; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2l2.9 6.2 6.8.8-5 4.6 1.4 6.7L12 16.9 5.9 20.3l1.4-6.7-5-4.6 6.8-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mp-vet > * { position: relative; z-index: 1; }
.mp-vet .wp-block-button__link { background: var(--brass); border-color: var(--brass); color: #fff; }
.mp-vet .wp-block-button__link:hover { background: #8f6e3c; border-color: #8f6e3c; }
.mp-vet .is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.mp-vet .is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--ink); }

/* Quotes */
.mp-quote.wp-block-quote {
	margin: 0; padding: 34px 30px 28px; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius-lg); position: relative; height: 100%;
	display: flex; flex-direction: column;
}
.mp-quote.wp-block-quote::before {
	content: "\201C"; font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: var(--brass);
	position: absolute; top: 14px; left: 26px; opacity: .8;
}
.mp-quote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink); margin-top: 34px; }
.mp-quote cite { margin-top: auto; font-style: normal; font-size: .9rem; font-weight: 600; color: var(--muted); }
.mp-quote cite::before { content: "\2014\00a0"; }

/* Notice / callout */
.mp-notice {
	border-left: 3px solid var(--brass); background: var(--brass-tint);
	padding: 22px 26px !important; border-radius: 0 var(--radius) var(--radius) 0;
}
.mp-notice > :last-child { margin-bottom: 0; }
.mp-notice p { color: var(--ink-soft); }
.mp-notice.mp-urgent { border-left-color: #a5432f; background: #f8ece8; }

/* Stat / fact row */
.mp-facts.wp-block-columns { gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; margin-bottom: 0; overflow: hidden; }
.mp-facts > .wp-block-column { padding: 26px 28px; border-right: 1px solid var(--line); }
.mp-facts > .wp-block-column:last-child { border-right: 0; }
.mp-facts h3 { font-size: 1.1rem; margin-bottom: 6px; }
.mp-facts p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 781px) {
	.mp-facts > .wp-block-column { border-right: 0; border-bottom: 1px solid var(--line); }
	.mp-facts > .wp-block-column:last-child { border-bottom: 0; }
}

/* CTA band */
.mp-cta { background: var(--evergreen); color: #e3ece8; text-align: center; overflow: hidden; }
.mp-cta::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, .10), transparent 60%),
		radial-gradient(600px 300px at 85% 100%, rgba(22, 35, 47, .25), transparent 60%);
}
.mp-cta > * { position: relative; }
.mp-cta h2 { color: #fff; }
.mp-cta p { color: #dbe6e1; max-width: 56ch; margin-left: auto !important; margin-right: auto !important; font-size: 1.12rem; }
.mp-cta .wp-block-buttons { justify-content: center; }
.mp-cta .wp-block-button__link { background: #fff; color: var(--evergreen-dark); border-color: #fff; }
.mp-cta .wp-block-button__link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.mp-cta .is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.mp-cta .is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--evergreen-dark); border-color: #fff; }

/* Provider block */
.mp-provider .wp-block-image img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; box-shadow: var(--shadow-lg); }
.mp-role { font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }

/* ---------- Contact page ---------- */
.contact-section { padding: clamp(48px, 7vw, 88px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px;
	box-shadow: var(--shadow); position: sticky; top: 110px;
}
.contact-card h2 { font-size: 1.6rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); margin: 0; line-height: 1.5; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { flex: none; width: 22px; height: 22px; color: var(--evergreen); margin-top: 2px; }
.lbl { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--evergreen); text-decoration: underline; }
.contact-fine { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.contact-body > * { max-width: none !important; margin-left: 0 !important; }
.contact-body > :not(.mp-notice) { padding: 0 !important; }
.contact-body > :first-child { margin-top: 0 !important; }
.map-section iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.35) contrast(1.02); }
@media (max-width: 900px) {
	.contact-grid { grid-template-columns: 1fr; }
	.contact-card { position: static; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab7c2; font-size: .95rem; padding-top: clamp(56px, 7vw, 88px); }
.site-footer a { color: #e6ecf0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr .8fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand .brand-sub { color: #8e9ca8; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, .1); }
.footer-brand p { max-width: 34ch; }
.footer-vet { display: inline-flex; align-items: center; gap: 8px; color: #d4b98a; font-size: .85rem; font-weight: 500; letter-spacing: .04em; }
.footer-vet::before { content: "\2605"; }
.footer-h { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 9px; }
.footer-list .lbl { display: inline-block; min-width: 52px; color: #7f8e9b; font-size: .7rem; margin: 0; }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; padding-bottom: 32px;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-note { flex-basis: 100%; color: #7f8e9b; font-size: .8rem; margin-top: 10px !important; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Misc ---------- */
.post-list { padding: 56px var(--gutter); max-width: var(--narrow); }
.post-card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-date { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.notfound { padding: 56px var(--gutter); }
.notfound .btn { margin-right: 10px; }

.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.5em auto; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content > h2:first-child, .mp-section h2:first-child, .mp-section-head h2, .mp-card h2, .mp-section .wp-block-column h2:first-child { margin-top: 0; }
.mp-section h2 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Editor tweaks (applied inside the block editor via add_editor_style) */
.editor-styles-wrapper { font-family: var(--sans); background: var(--paper); }
.editor-styles-wrapper .mp-section > * { max-width: var(--wide); }
