/*
Theme Name: Lopez Law
Theme URI: https://www.sanantoniobonds.com/
Author: Law Offices of Jesus R. Lopez
Description: Custom theme for the Law Offices of Jesus R. Lopez. Family-law-first home page, call and consultation buttons on every page (pinned to the bottom of the screen on phones), featured tools, and Texas attorney-advertising notices in the footer. Keeps WalkerPress menu and sidebar locations so existing menus and widgets carry over.
Version: 1.0.3
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lopez-law
*/

/* Layout: live-oak green header and hero over cool limestone; content column with a consultation sidebar; sticky call bar on phones. */
:root {
	--bg: #f7f8f6;
	--surface: #ffffff;
	--stone: #eceeea;
	--ink: #1b2321;
	--muted: #566360;
	--line: #d5dad6;
	--oak: #173a33;
	--oak-2: #20493f;
	--on-oak: #f1f4f1;
	--on-oak-muted: #b9c9c3;
	--brass: #b98a35;
	--brass-soft: #ecdcbc;
	--brass-ink: #1d1708;
	--link: #1f5a4c;
	--focus: #c9962f;

	--display: "Spectral", Georgia, "Times New Roman", serif;
	--body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

	--s-1: .8125rem;
	--s0: 1rem;
	--s1: 1.1875rem;
	--s2: 1.5rem;
	--s3: clamp(1.6rem, 1.3rem + 1.2vw, 2rem);
	--s4: clamp(2rem, 1.4rem + 2.6vw, 3.15rem);

	--wrap: 1180px;
	--r: 6px;
	--header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: var(--s0);
	line-height: 1.65;
	padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, video, iframe { max-width: 100%; height: auto; }
/* WordPress emoji images have no intrinsic size; keep them text-sized even if the core emoji styles are not printed. */
img.emoji, img.wp-smiley { display: inline !important; width: 1em !important; height: 1em !important; margin: 0 .07em !important; vertical-align: -.1em !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; padding: 0 !important; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: var(--oak); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; color: inherit; }
p { margin: 0; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000;
	left: 8px; top: 8px; padding: .75rem 1rem; background: var(--surface); color: var(--ink); border-radius: var(--r);
}
.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-family: var(--mono); font-size: var(--s-1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fine { font-size: .8rem; color: var(--muted); }
.muted { color: var(--on-oak-muted); }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .7rem 1.2rem; border-radius: var(--r);
	font: 600 var(--s0)/1.2 var(--body); text-decoration: none; white-space: nowrap;
	border: 1px solid transparent; cursor: pointer;
	transition: background-color .15s, filter .15s, border-color .15s, color .15s;
}
.btn-call { background: var(--brass); color: var(--brass-ink); }
.btn-call:hover { filter: brightness(1.06); color: var(--brass-ink); }
.btn-book { background: var(--on-oak); color: var(--oak); border-color: var(--on-oak); }
.btn-book:hover { background: #fff; color: var(--oak); }
.btn-dark, .btn-book.btn-dark { background: var(--oak); color: var(--on-oak); border-color: var(--oak); }
.btn-dark:hover, .btn-book.btn-dark:hover { background: var(--oak-2); color: var(--on-oak); }
@media (prefers-reduced-motion: reduce) { .btn, .chips a { transition: none; } }

/* ---------- Utility strip ---------- */
.utility { background: var(--oak); color: var(--on-oak-muted); font-size: var(--s-1); border-bottom: 1px solid var(--oak-2); }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .4rem; }
.utility a { color: var(--on-oak); text-decoration: none; }
.utility strong { font-weight: 600; }
.lang-link {
	border: 1px solid var(--on-oak-muted); border-radius: 999px; padding: .2rem .8rem;
	font-weight: 600; white-space: nowrap;
}
.lang-link:hover { background: var(--on-oak); color: var(--oak) !important; }
@media (max-width: 560px) { .utility-sep, .utility-note { display: none; } }

/* ---------- Header ---------- */
body::before {
	content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
	z-index: 60; background: var(--oak);
}
.site-header {
	position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
	background: var(--oak); color: var(--on-oak);
	box-shadow: 0 1px 0 var(--oak-2);
}
.admin-bar .site-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .site-header { top: env(safe-area-inset-top, 0px); } }
.header-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "brand . cta" "nav nav nav";
	align-items: center;
	column-gap: 1.25rem;
	padding-top: .75rem;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; min-width: 0; }
.brand:hover { color: inherit; }
.seal {
	width: 44px; height: 44px; flex: none; border-radius: 50%;
	border: 1.5px solid var(--brass); display: grid; place-items: center;
	font-family: var(--display); font-weight: 600; color: var(--brass); font-size: .95rem; letter-spacing: .02em;
}
.brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 50%; }
.brand-text { display: grid; min-width: 0; }
.brand-name { font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.15; }
.brand-sub { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-oak-muted); }
.head-cta { grid-area: cta; display: flex; gap: .5rem; }
.menu-btn {
	grid-area: btn; display: none; justify-self: end;
	background: none; border: 1px solid var(--on-oak-muted); color: var(--on-oak);
	border-radius: var(--r); min-height: 44px; padding: 0 .9rem; font: 600 .9rem var(--body); cursor: pointer;
}

/* Desktop menu (second row) */
.primary-nav { grid-area: nav; margin-top: .6rem; border-top: 1px solid var(--oak-2); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > .menu { display: flex; flex-wrap: wrap; gap: 0 .1rem; margin-left: -.6rem; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block; color: var(--on-oak); text-decoration: none;
	font-size: .92rem; font-weight: 500; padding: .7rem .6rem; border-radius: 4px; white-space: nowrap;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: #fff; background: var(--oak-2); }
.primary-nav .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--brass); }
.sub-toggle {
	background: none; border: 0; color: var(--on-oak-muted); cursor: pointer;
	width: 28px; height: 28px; margin-left: -.5rem; vertical-align: middle; border-radius: 4px;
}
.sub-toggle::before { content: ""; display: inline-block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.sub-toggle[aria-expanded="true"]::before { transform: translateY(1px) rotate(-135deg); }
.primary-nav > .menu > li.menu-item-has-children { display: flex; align-items: center; }
.primary-nav .sub-menu {
	display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 260px; max-width: 340px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
	box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); padding: .4rem;
	max-height: calc(100vh - 200px); overflow-y: auto;
}
.primary-nav .sub-menu .sub-menu { left: 100%; top: -.4rem; }
.primary-nav .sub-menu a { color: var(--ink); white-space: normal; padding: .55rem .7rem; }
.primary-nav .sub-menu a:hover { background: var(--stone); color: var(--ink); }
.primary-nav .sub-menu .current-menu-item > a { box-shadow: inset 3px 0 0 var(--brass); background: var(--stone); color: var(--ink); }
.primary-nav .sub-menu .sub-toggle { color: var(--muted); }
@media (min-width: 961px) and (hover: hover) {
	.primary-nav li:hover > .sub-menu { display: block; }
}
@media (min-width: 961px) {
	.primary-nav li.open > .sub-menu { display: block; }
	.primary-nav .sub-menu li.menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
	.primary-nav .sub-menu li.menu-item-has-children > a { flex: 1; }
}
.nav-cta { display: none; }

@media (max-width: 1100px) { .head-cta .btn-book { display: none; } }

/* Phone and tablet menu */
@media (max-width: 960px) {
	.header-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand btn"; padding-block: .6rem; }
	.menu-btn { display: inline-flex; align-items: center; }
	.head-cta { display: none; }
	.primary-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		margin: 0; border-top: 1px solid var(--oak-2); background: var(--oak);
		max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto;
		padding: .5rem max(16px, env(safe-area-inset-right, 0px)) 1.25rem max(16px, env(safe-area-inset-left, 0px));
		box-shadow: 0 20px 30px -20px rgba(0,0,0,.5);
	}
	.primary-nav.open { display: block; }
	.primary-nav > .menu { display: block; margin: 0; }
	.primary-nav li { border-bottom: 1px solid var(--oak-2); }
	.primary-nav > .menu > li.menu-item-has-children, .primary-nav li.menu-item-has-children { display: flex; flex-wrap: wrap; align-items: center; }
	.primary-nav li.menu-item-has-children > a { flex: 1; }
	.primary-nav a { padding: .85rem .25rem; font-size: 1rem; white-space: normal; }
	.sub-toggle { width: 44px; height: 44px; margin: 0; }
	.primary-nav .sub-menu {
		position: static; display: none; flex-basis: 100%; min-width: 0; max-width: none;
		background: transparent; border: 0; box-shadow: none; padding: 0 0 .5rem .75rem;
	}
	.primary-nav li.open > .sub-menu { display: block; }
	.primary-nav .sub-menu li { border-bottom: 0; }
	.primary-nav .sub-menu a { color: var(--on-oak-muted); padding: .6rem .25rem; }
	.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: transparent; color: #fff; box-shadow: none; }
	.primary-nav .sub-menu .sub-toggle { color: var(--on-oak-muted); }
	.nav-cta { display: grid; gap: .5rem; margin-top: 1rem; }
}
@media (max-width: 400px) { .brand-sub { display: none; } .brand-name { font-size: 1.05rem; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.band { background: var(--stone); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: .6rem; max-width: 46rem; margin-bottom: 2rem; }
.section-head h2 { font-size: var(--s3); }
.section-head p:not(.eyebrow) { color: var(--muted); }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; max-width: none; }
.more { font-weight: 600; }

/* ---------- Hero ---------- */
.hero { background: var(--oak); color: var(--on-oak); padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(3rem, 2rem + 4vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.hero-grid.no-triage { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero .eyebrow { color: var(--brass); }
.hero h1 { font-size: var(--s4); margin-block: .75rem 1rem; max-width: 20ch; }
.hero .lead { font-size: var(--s1); color: var(--on-oak-muted); max-width: 36rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.facts {
	display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 2rem 0 0; padding: 1.25rem 0 0;
	border-top: 1px solid var(--oak-2); list-style: none; font-size: .92rem; color: var(--on-oak); font-weight: 600;
}
.facts li { display: flex; align-items: center; gap: .5rem; }
.facts li::before { content: ""; width: 6px; height: 6px; background: var(--brass); border-radius: 1px; }

.triage { background: var(--surface); color: var(--ink); border-radius: 10px; padding: 1.5rem; box-shadow: 0 18px 40px -20px rgba(0,0,0,.45); }
.triage h2 { font-size: var(--s2); margin-bottom: .35rem; }
.triage > p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.triage ul { list-style: none; margin: 0; padding: 0; display: grid; }
.triage li + li { border-top: 1px solid var(--line); }
.triage a { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; align-items: center; padding: .85rem .25rem; text-decoration: none; color: var(--ink); }
.triage a:hover .t-title { color: var(--link); text-decoration: underline; }
.t-title { font-weight: 600; }
.t-sub { grid-column: 1; font-size: .86rem; color: var(--muted); }
.t-arrow { grid-row: 1 / span 2; grid-column: 2; color: var(--brass); font-size: 1.25rem; }

/* ---------- Practice areas ---------- */
.areas { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 860px) { .areas { grid-template-columns: minmax(0, 1fr); } }
.area { background: var(--surface); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.area h3 { font-size: var(--s2); }
.area h3 a { color: inherit; text-decoration: none; }
.area h3 a:hover { text-decoration: underline; }
.area > p:not(.cite) { color: var(--muted); }
.cite { font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: auto 0 0; padding: 0; list-style: none; }
.chips a {
	display: inline-block; font-size: .85rem; padding: .4rem .7rem; border: 1px solid var(--line);
	border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--bg);
	transition: border-color .15s, color .15s;
}
.chips a:hover { border-color: var(--link); color: var(--link); }
.also { margin-top: 1rem; color: var(--muted); font-size: .95rem; }

/* ---------- Tools ---------- */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 820px) { .tools { grid-template-columns: minmax(0, 1fr); } }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.tool-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; flex-wrap: wrap; }
.tool h3 { font-size: var(--s2); }
.tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: .15rem .4rem; }
.tool > p:not(.fine):not(.disclose) { color: var(--muted); }
.tool-links { display: flex; gap: .75rem 1.25rem; flex-wrap: wrap; margin-top: auto; font-weight: 600; }
.est { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; align-items: end; }
@media (max-width: 420px) { .est { grid-template-columns: minmax(0, 1fr); } }
.est label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; }
.est-out { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; background: var(--stone); border-radius: var(--r); padding: .85rem 1rem; flex-wrap: wrap; }
.est-out .num { font-family: var(--display); font-size: var(--s3); font-weight: 600; font-variant-numeric: tabular-nums; }
.est-out small { color: var(--muted); font-size: .8rem; }
.cal { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .85rem; table-layout: fixed; }
.cal caption { text-align: left; font-weight: 600; margin-bottom: .4rem; font-family: var(--display); font-size: 1.05rem; }
.cal th { font-family: var(--mono); font-weight: 500; font-size: .7rem; color: var(--muted); padding: .25rem 0; }
.cal td { text-align: center; padding: .38rem 0; border-top: 1px solid var(--line); position: relative; }
.cal td.wk { background: var(--brass-soft); font-weight: 600; }
.cal td.thu::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--link); }
.cal td.today { outline: 2px solid var(--oak); outline-offset: -2px; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.sw-weekend { background: var(--brass-soft); }
.sw-thu { width: 8px; height: 8px; border-radius: 50%; background: var(--link); }
.sources { list-style: none; margin: 0; padding: 0; display: grid; }
.sources li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.sources span { color: var(--muted); font-size: .82rem; text-align: right; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .92rem; }
.ticks li { padding-left: 1.1rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--brass); border-radius: 1px; }
.disclose { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .75rem; }

/* ---------- Form controls (also Contact Form 7) ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"],
input[type="search"], input[type="password"], input[type="date"], select, textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
	border: 1px solid var(--line); border-radius: var(--r); padding: .65rem .75rem; min-height: 46px;
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--link); outline: 2px solid color-mix(in srgb, var(--link) 25%, transparent); outline-offset: 0; }
input[type="submit"], button[type="submit"]:not(.btn), .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem;
	border-radius: var(--r); border: 0; background: var(--oak); color: var(--on-oak); font: 600 1rem var(--body); cursor: pointer;
}
input[type="submit"]:hover, .wpcf7-submit:hover { background: var(--oak-2); }
.wpcf7 form p { margin: 0 0 1rem; }
.wpcf7 label { display: block; font-weight: 600; font-size: .9rem; }
.wpcf7 label .wpcf7-form-control-wrap { display: block; margin-top: .3rem; font-weight: 400; }
.wpcf7-not-valid-tip { color: #a3261b; font-size: .85rem; margin-top: .25rem; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: var(--r); font-size: .9rem; }
.wpcf7-spinner { vertical-align: middle; }

/* ---------- Attorney ---------- */
.attorney { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 820px) { .attorney { grid-template-columns: minmax(0, 1fr); } .attorney .glance { order: 2; } }
.glance { background: var(--oak); color: var(--on-oak); border-radius: 10px; padding: 1.75rem; display: grid; gap: 1rem; }
.glance .eyebrow { color: var(--brass); }
.glance dl { margin: 0; display: grid; }
.glance dl div { padding: .8rem 0; border-top: 1px solid var(--oak-2); }
.glance dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--on-oak-muted); }
.glance dd { margin: .15rem 0 0; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.attorney-copy { display: grid; gap: 1rem; max-width: 40rem; justify-items: start; }
.attorney-copy h2 { font-size: var(--s3); }
.attorney-copy blockquote { margin: .5rem 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: var(--s1); line-height: 1.5; border-left: 2px solid var(--brass); padding-left: 1rem; }

/* ---------- Home page editor content ---------- */
.front-content .entry-content { max-width: 50rem; margin: 0 auto; }

/* ---------- Latest posts ---------- */
.posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .posts { grid-template-columns: minmax(0, 1fr); } }
.posts li { border-top: 2px solid var(--ink); padding-top: .85rem; display: grid; gap: .4rem; align-content: start; }
.posts a { color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.posts a:hover { color: var(--link); text-decoration: underline; }

/* ---------- Consultation ---------- */
.consult { background: var(--oak); color: var(--on-oak); }
.consult .eyebrow { color: var(--brass); }
.consult a:not(.btn) { color: var(--on-oak); }
.consult-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .consult-grid { grid-template-columns: minmax(0, 1fr); } }
.consult h2 { font-size: var(--s3); margin-block: .5rem 1rem; }
.remote-note { border-left: 3px solid var(--brass); padding-left: .9rem; margin-top: 1.25rem; }
.remote-note a { text-decoration: underline; text-underline-offset: 2px; }
.office { display: grid; gap: 1.25rem; margin: 1.75rem 0 0; }
.office dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--brass); }
.office dd { margin: .2rem 0 0; }
.consult-form { background: var(--surface); color: var(--ink); border-radius: 10px; padding: 1.5rem; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.consult-form a:not(.btn) { color: var(--link); }
.consult-form h3 { font-size: var(--s2); }

/* ---------- Inner pages ---------- */
.page-head { background: var(--oak); color: var(--on-oak); padding-block: 1.5rem clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-title { font-size: var(--s4); max-width: 26ch; }
.page-meta { margin-top: .75rem; color: var(--on-oak-muted); font-size: .92rem; }
.page-intro { margin-top: 1rem; color: var(--on-oak-muted); max-width: 44rem; }
.page-intro a { color: var(--on-oak); }
.page-search { margin-top: 1.25rem; max-width: 36rem; }
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .85rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: var(--on-oak-muted); }
.crumbs a { color: var(--on-oak-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 4rem); padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); align-items: start; }
.layout-full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.site-main { min-width: 0; }
.layout:not(.layout-full) .entry-content { max-width: 46rem; }
.featured { margin: 0 0 2rem; }
.featured img { border-radius: 10px; display: block; }

/* Sidebar */
.sidebar-inner { display: grid; gap: 1.5rem; position: sticky; top: 140px; }
@media (max-width: 960px) { .sidebar-inner { position: static; } }
.cta-box { background: var(--oak); color: var(--on-oak); border-radius: 10px; padding: 1.5rem; display: grid; gap: .75rem; }
.cta-box h2 { font-size: 1.35rem; }
.cta-box p { color: var(--on-oak-muted); font-size: .95rem; margin-bottom: .25rem; }
.cta-box .btn { width: 100%; }
.tool-links-box, .widgets .widget { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; min-width: 0; overflow-wrap: anywhere; }
.widgets { display: grid; gap: 1.5rem; }
.widget-title { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.tool-links-box ul, .widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.widget img { max-width: 100%; height: auto; }
.widget center { display: block; }

/* Cards (blog, archives, search) */
.listing { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 1.25rem 1.25rem 1.5rem; display: grid; gap: .5rem; }
.card-title { font-size: 1.25rem; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--link); text-decoration: underline; }
.card-excerpt { color: var(--muted); font-size: .95rem; }
.pagination, .nav-links { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); }
.page-numbers.current { background: var(--oak); border-color: var(--oak); color: var(--on-oak); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.post-navigation a { display: grid; gap: .25rem; text-decoration: none; color: var(--ink); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); } .post-navigation .nav-next { text-align: left; } }
.entry-foot { margin-top: 2.5rem; display: grid; gap: 1rem; }
.tags { font-size: .9rem; color: var(--muted); }
.author-box { display: flex; gap: 1rem; align-items: center; background: var(--stone); border-radius: 10px; padding: 1rem 1.25rem; font-size: .92rem; color: var(--muted); }
.notfound { padding-block: 2.5rem 4rem; }
.search-form { display: flex; gap: .5rem; }
.search-form .search-field { flex: 1; min-width: 0; }

/* ---------- Article typography ---------- */
.entry-content { font-size: 1.0625rem; line-height: 1.7; overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h1 { font-size: 2rem; margin-top: 0; }
.entry-content h2 { font-size: 1.75rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.75em; }
.entry-content h4 { font-size: 1.1rem; margin-top: 1.5em; font-family: var(--body); font-weight: 700; }
.entry-content h2 + *, .entry-content h3 + *, .entry-content h4 + * { margin-top: .6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }
.entry-content blockquote { margin-left: 0; margin-right: 0; border-left: 3px solid var(--brass); padding: .25rem 0 .25rem 1.25rem; font-family: var(--display); font-style: italic; font-size: 1.15rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; }
.entry-content th { background: var(--stone); }
.entry-content code { font-family: inherit; font-size: inherit; background: none; padding: 0; }
.entry-content pre code { font-family: var(--mono); }
.entry-content hr, .entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.entry-content img { border-radius: 6px; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-element-caption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.entry-content .wp-block-button__link { background: var(--oak); color: var(--on-oak); border-radius: var(--r); padding: .75rem 1.25rem; text-decoration: none; font-weight: 600; }
.entry-content .alignwide { margin-left: auto; margin-right: auto; max-width: 100%; }
.alignleft { float: left; margin: .25rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .25rem 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1rem 0; } }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-block-columns { gap: 1.5rem; }
.has-small-font-size { font-size: .85rem; color: var(--muted); }
.page-links { margin-top: 2rem; }

/* Comments */
.comments { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.comment-list { padding-left: 0; list-style: none; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: .92rem; }
.site-footer .brand { color: var(--ink); }
.site-footer .brand-name { font-size: 1.1rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; padding-block: 3rem 2rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-address { margin-top: 1rem; color: var(--muted); }
.foot-address a { color: var(--ink); }
.foot-title { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer ul a { color: var(--ink); text-decoration: none; }
.site-footer ul a:hover { color: var(--link); text-decoration: underline; }
.foot-widgets { border-top: 1px solid var(--line); padding-block: 1.5rem; display: grid; gap: 1rem; }
.legal { border-top: 1px solid var(--line); padding-block: 1.5rem 2rem; display: grid; gap: .6rem; font-size: .8rem; color: var(--muted); }
.legal p { max-width: 72rem; }

/* ---------- Phone call bar ---------- */
.callbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
	background: var(--oak); border-top: 1px solid var(--oak-2);
	display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
	padding: .6rem max(12px, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
}
.callbar .btn { min-height: 52px; font-size: .95rem; padding: .5rem; }
.callbar .btn-book { background: transparent; color: var(--on-oak); border-color: var(--on-oak-muted); }
@media (min-width: 900px) { .callbar { display: none; } }
@media print { .callbar, .site-header, .utility, .sidebar { display: none; } body { padding: 0; } }
.page-head .search-form .btn { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
