/*
Theme Name: Simanda Investments
Theme URI: https://simandainvestments.com
Description: Custom theme for Simanda Investments, a nationwide private note buyer. Evergreen private-bank design, Gutenberg block content.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: simanda
*/

:root {
	--evergreen: #0b2219;
	--evergreen-deep: #031e15;
	--evergreen-line: #24402f;
	--stone: #f5f2ea;
	--stone-light: #f8f4ee;
	--rule: #dad5cb;
	--ink: #1d241f;
	--muted: #5f6359;
	--brass: #b8924a;
	--brass-dark: #8a6a2f;
	--serif: "Cormorant", Georgia, "Times New Roman", serif;
	--sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1180px;
	--pad: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--stone);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-dark); text-underline-offset: 3px; }
a:hover { color: var(--evergreen); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(42px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4.2vw, 48px); }
h3 { font-size: clamp(21px, 2vw, 25px); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--brass); color: var(--evergreen); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--evergreen); color: #fff; border-bottom: 1px solid var(--evergreen-line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; margin-right: auto; }
.brand__mark { width: 44px; height: 44px; border: 1px solid var(--brass); display: grid; place-items: center; font-family: var(--serif); font-size: 30px; color: var(--brass); line-height: 1; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name strong { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: .22em; color: var(--brass); }
.brand__name small { font-size: 10px; letter-spacing: .38em; color: var(--brass); margin-top: 5px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.site-nav a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--brass); }
.nav-toggle { display: none; background: none; border: 1px solid var(--brass); color: var(--brass); padding: 8px 12px; font: 500 14px var(--sans); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link.wp-element-button {
	display: inline-block; border-radius: 0; padding: 14px 28px; font: 500 15px/1.2 var(--sans);
	text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; cursor: pointer;
}
.btn:hover, .wp-block-button__link:hover { transform: translateY(-2px); }
.btn--brass, .is-style-brass .wp-block-button__link, .btn-brass .wp-block-button__link { background: var(--brass); color: var(--evergreen); }
.btn--brass:hover, .btn-brass .wp-block-button__link:hover { background: #c9a35a; color: var(--evergreen); }
.btn-primary .wp-block-button__link, .btn--primary { background: var(--evergreen); color: #fff; }
.btn-primary .wp-block-button__link:hover, .btn--primary:hover { background: var(--evergreen-deep); color: #fff; }
.btn-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--brass); }
.btn-outline .wp-block-button__link:hover { background: var(--brass); color: var(--evergreen); }
.site-header .btn { padding: 11px 22px; font-size: 14px; }

/* ---------- Layout helpers for block sections ---------- */
.site-main { display: block; }
.page-content > .wp-block-group, .home-content > .wp-block-group { margin: 0; }
.sec { padding: clamp(56px, 7vw, 92px) var(--pad); }
.sec > * { max-width: var(--wrap); margin-left: auto !important; margin-right: auto !important; }
.sec--dark { background: var(--evergreen); color: var(--stone); }
.sec--light { background: var(--stone); }
.sec--lighter { background: var(--stone-light); }
.sec-title { text-align: center; }
.sec-title::after, .u-line::after { content: ""; display: block; width: 48px; height: 2px; background: var(--brass); margin: 16px auto 0; }
.u-line::after { margin-left: 0; }
.sec .wp-block-columns { gap: clamp(16px, 2.4vw, 28px); margin-bottom: 0; }
.eyebrow { color: var(--brass); font-size: 14px; font-weight: 600; letter-spacing: .02em; margin-bottom: 10px; }

/* ---------- 01 Hero ---------- */
.hero {
	position: relative; padding: clamp(64px, 8vw, 104px) var(--pad);
	background: #ece6da url("assets/images/hero.webp") center right / cover no-repeat;
	min-height: 560px; display: flex; align-items: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(248,244,238,.96) 0%, rgba(248,244,238,.88) 34%, rgba(248,244,238,0) 60%); pointer-events: none; }
.hero > .wp-block-columns { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; align-items: center; }
.hero h1 { color: var(--ink); max-width: 11ch; margin-bottom: 22px; }
.hero .lede { font-size: 17px; max-width: 34em; color: var(--ink); }
.hero .wp-block-buttons { gap: 14px; margin-top: 26px; }
.offer-card { background: var(--stone-light); border: 1px solid var(--rule); padding: 8px 22px 12px; box-shadow: 0 18px 40px rgba(11,34,25,.14); max-width: 320px; margin-left: auto; }
.offer-card__title { font-family: var(--serif); font-size: 22px; display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.offer-card__title img { width: 36px; height: 36px; }
.offer-card .wp-block-table { margin: 0; }
.offer-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.offer-card td { border: 0; border-bottom: 1px solid var(--rule); padding: 12px 0; vertical-align: top; }
.offer-card tr:last-child td { border-bottom: 0; }
.offer-card td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.offer-card .note { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

/* ---------- 02 Trust strip ---------- */
.trust { padding: 30px var(--pad); background: var(--stone); border-bottom: 1px solid var(--rule); }
.trust .wp-block-columns { align-items: center; }
.trust .wp-block-column { display: flex; align-items: center; gap: 14px; justify-content: center; }
.trust .wp-block-column + .wp-block-column { border-left: 1px solid var(--rule); }
.trust .wp-block-image { margin: 0; flex: 0 0 auto; }
.trust .wp-block-image img { width: 40px; height: 40px; object-fit: contain; }
.trust p { margin: 0; font-size: 14px; font-weight: 500; }

/* ---------- Cards (03 notes, 07 who) ---------- */
.cards .card { background: var(--stone-light); border: 1px solid var(--brass); padding: 28px 18px 24px; text-align: center; height: 100%; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.cards .card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.cards .card .wp-block-image { margin: 0 auto 16px; }
.cards .card .wp-block-image img { width: 84px; height: 84px; object-fit: contain; margin: 0 auto; }
.cards .card h3 { font-size: 23px; margin: 0; }
.cards .card h3 a { color: inherit; text-decoration: none; }
.cards .card h3 a::after { content: ""; position: absolute; inset: 0; }
.cards .card { position: relative; }
.cards .card p { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.sec--dark .sec-title { color: var(--stone); margin-bottom: 40px; }

/* ---------- 04 Partial ---------- */
.partial .wp-block-columns { align-items: center; }
.partial h2 { margin-bottom: 34px; }
.timeline { margin: 8px 0 30px; max-width: 480px; }
.timeline__labels { display: grid; grid-template-columns: 6fr 5fr; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.timeline__dots { display: flex; align-items: center; justify-content: space-between; position: relative; }
.timeline__dots::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: linear-gradient(90deg, var(--evergreen) 0 52%, var(--brass) 52% 100%); transform: translateY(-50%); }
.timeline__dots span { width: 13px; height: 13px; border-radius: 50%; background: var(--evergreen); position: relative; }
.timeline__dots span.keep { background: var(--brass); }
.framed img, .framed { border: 1px solid var(--rule); }
.framed { padding: 8px; background: var(--stone-light); margin: 0; }

/* ---------- 05 Math ---------- */
.math .wp-block-columns { align-items: center; }
.math .wp-block-column:first-child { padding-right: clamp(0px, 3vw, 40px); border-right: 1px solid var(--evergreen-line); }
.math h2 { color: var(--stone); margin-bottom: 8px; }
.ledger { margin: 0; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 15px; border: 1px solid var(--brass); }
.ledger td { border: 1px solid rgba(184,146,74,.55); padding: 9px 14px; color: var(--stone); }
.ledger td:last-child { text-align: right; font-variant-numeric: tabular-nums; width: 34%; }
.ledger tr:last-child td { color: var(--brass); font-family: var(--serif); font-size: 21px; border-top: 1px solid var(--brass); }
.ledger figcaption, .math .fine { font-size: 12px; color: #b9b5a8; margin-top: 10px; }
.math-points .point { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; }
.math-points .point:last-child { margin-bottom: 0; }
.math-points .wp-block-image { margin: 0; flex: 0 0 auto; width: 62px; height: 62px; border: 1px solid var(--brass); border-radius: 50%; display: grid; place-items: center; }
.math-points .wp-block-image img { width: 34px; height: 34px; object-fit: contain; }
.math-points p { margin: 0; color: var(--stone); }

/* ---------- 06 Steps ---------- */
.steps .sec-title { margin-bottom: 40px; }
.steps .wp-block-column + .wp-block-column { border-left: 1px solid var(--rule); padding-left: clamp(12px, 2vw, 28px); }
.step { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: start; }
.step__num { width: 32px; height: 32px; border-radius: 50%; background: var(--brass); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; margin: 0; }
.step .wp-block-image { margin: 0; }
.step .wp-block-image img { width: 46px; height: 56px; object-fit: contain; }
.step h3 { font-size: 21px; margin: 2px 0 6px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }
.step__body { grid-column: 3; }

/* ---------- 08 Quote ---------- */
.quote-band { background: var(--stone-light); padding: clamp(40px, 5vw, 64px) var(--pad); }
.quote-card { max-width: var(--wrap); margin: 0 auto; background: var(--stone); border: 1px solid var(--rule); box-shadow: 0 14px 34px rgba(11,34,25,.10); padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px; align-items: center; }
.quote-card__intro { display: flex; gap: 18px; align-items: center; }
.quote-card__icon { width: 76px; height: 76px; border: 1px solid var(--rule); border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--stone-light); }
.quote-card__icon img { width: 40px; height: 40px; }
.quote-card h2 { font-size: 30px; margin: 0 0 4px; }
.quote-card__step { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.progress { display: flex; align-items: center; width: 150px; }
.progress span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--evergreen); background: var(--stone); flex: 0 0 auto; }
.progress span.on { background: var(--evergreen); }
.progress i { flex: 1; height: 1px; background: var(--evergreen); }
.qf-step { border: 0; padding: 0; margin: 0; }
.qf-step legend { position: absolute; left: -9999px; }
.qf-row { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end; }
.qf-row--3 { grid-template-columns: repeat(3, 1fr) auto; }
.qf-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.qf-field input, .qf-field select, .qf-field textarea { width: 100%; font: 400 15px var(--sans); color: var(--ink); background: var(--stone-light); border: 1px solid var(--rule); border-radius: 0; padding: 11px 12px; }
.qf-field input:focus, .qf-field select:focus, .qf-field textarea:focus { border-color: var(--evergreen); outline: none; box-shadow: 0 0 0 2px rgba(184,146,74,.35); }
.qf-actions { display: flex; gap: 10px; }
.qf-back { background: none; border: 1px solid var(--rule); color: var(--ink); }
.qf-fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.qf-consent { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; }
.qf-hp { position: absolute; left: -9999px; }
.qf-error { color: #9b2c1f; font-size: 13px; margin: 8px 0 0; }
.js .qf-step:not(.is-active) { display: none; }

/* ---------- 09 FAQ ---------- */
.faq .wp-block-columns { align-items: flex-start; }
.faq h2 { margin-top: 4px; }
.faq .wp-block-details { border: 1px solid var(--rule); background: var(--stone-light); margin: 0 0 10px; }
.faq .wp-block-details summary { list-style: none; cursor: pointer; padding: 13px 44px 13px 16px; position: relative; font-size: 15px; font-weight: 500; }
.faq .wp-block-details summary::-webkit-details-marker { display: none; }
.faq .wp-block-details summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq .wp-block-details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .wp-block-details > *:not(summary) { padding: 0 16px; font-size: 15px; color: var(--muted); }
.faq .wp-block-details > p:last-child { padding-bottom: 14px; }

/* ---------- 10 CTA band + footer ---------- */
.cta-band { position: relative; background: var(--evergreen); color: var(--stone); padding: 40px var(--pad); overflow: hidden; border-bottom: 1px solid var(--evergreen-line); }
.cta-band__inner { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; position: relative; }
.cta-band h2 { font-size: clamp(28px, 3vw, 36px); margin: 0; color: var(--stone); }
.cta-band__tree { position: absolute; left: -30px; bottom: -40px; width: 230px; opacity: .45; pointer-events: none; }
.site-footer { background: var(--evergreen); color: #d8d3c6; padding: 40px var(--pad) 32px; position: relative; overflow: hidden; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr 1fr; gap: 30px; position: relative; }
.site-footer h2 { font-family: var(--sans); font-size: 14px; font-weight: 500; color: #fff; margin: 0 0 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: #d8d3c6; text-decoration: none; font-size: 13px; }
.site-footer a:hover { color: var(--brass); }
.site-footer .copy { font-size: 13px; margin-top: 18px; }
.site-footer__tree { width: 130px; justify-self: end; align-self: end; opacity: .9; }

/* ---------- Generic page / post content (legacy pages) ---------- */
.page-hero { background: var(--evergreen); color: var(--stone); padding: clamp(48px, 6vw, 80px) var(--pad); }
.page-hero h1 { max-width: var(--wrap); margin: 0 auto; font-size: clamp(36px, 5vw, 56px); }
.page-hero .meta { max-width: var(--wrap); margin: 10px auto 0; color: var(--brass); font-size: 14px; }
.entry { max-width: 780px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--pad); }
.entry h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.4em; }
.entry h3 { margin-top: 1.2em; }
.entry img { margin: 1.2em 0; }
.entry table { width: 100%; border-collapse: collapse; }
.entry td, .entry th { border: 1px solid var(--rule); padding: 8px 10px; }
.entry .alignwide, .entry .alignfull { max-width: none; }
.post-list { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--pad); display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-list article { background: var(--stone-light); border: 1px solid var(--rule); padding: 24px; }
.post-list h2 { font-size: 26px; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.pagination { max-width: var(--wrap); margin: 0 auto 60px; padding: 0 var(--pad); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	.btn:hover, .wp-block-button__link:hover, .cards .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.qf-row, .qf-row--3 { grid-template-columns: repeat(2, 1fr); }
	.qf-actions { grid-column: 1 / -1; }
	.quote-card { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr 1fr 1fr; }
	.site-footer__tree { display: none; }
}
@media (max-width: 900px) {
	.nav-toggle { display: inline-block; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--evergreen); border-top: 1px solid var(--evergreen-line); display: none; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--pad) 18px; }
	.site-nav a { display: block; padding: 12px 0; font-size: 16px; }
	.site-header .btn { display: none; }
	.hero { background-position: 70% center; min-height: 0; }
	.hero::before { background: linear-gradient(180deg, rgba(248,244,238,.95) 0%, rgba(248,244,238,.9) 70%, rgba(248,244,238,.7) 100%); }
	.offer-card { margin: 28px 0 0; max-width: none; }
	.trust .wp-block-column + .wp-block-column { border-left: 0; }
	.trust .wp-block-column { justify-content: flex-start; }
	.math .wp-block-column:first-child { border-right: 0; padding-right: 0; }
	.steps .wp-block-column + .wp-block-column { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 22px; }
}
@media (max-width: 781px) {
	.trust .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; }
	.cards .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px; }
	.cards .card { padding: 20px 12px; }
	.cards .card .wp-block-image img { width: 64px; height: 64px; }
	.cards .card h3 { font-size: 20px; }
}
@media (max-width: 560px) {
	.brand__name strong { font-size: 21px; }
	.brand__mark { width: 38px; height: 38px; font-size: 26px; }
	.qf-row, .qf-row--3 { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.trust .wp-block-columns { grid-template-columns: 1fr; }
	.cta-band__inner { gap: 20px; text-align: center; }
	.hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.hero .wp-block-button__link { width: 100%; text-align: center; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; position: relative; } }

/* ---------- Fidelity pass 1 ---------- */
.hero { background-position: center center; min-height: 600px; }
.hero::before { z-index: 0; background: linear-gradient(90deg, rgba(248,244,238,.82) 0%, rgba(248,244,238,.62) 30%, rgba(248,244,238,0) 48%); }
.hero > .wp-block-columns { z-index: 1; }
.hero > .wp-block-columns > .wp-block-column:first-child { flex: 0 0 46%; }
.hero > .wp-block-columns > .wp-block-column:last-child { align-self: center; }
.hero h1 { max-width: 12.5ch; font-size: clamp(42px, 5.2vw, 68px); }
.hero .lede { max-width: 30em; }
.offer-card { margin-right: -12px; }
.offer-card td { font-family: var(--serif); font-size: 16px; color: var(--ink); }

.trust p { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.trust .wp-block-column + .wp-block-column { border-left-color: var(--brass); }
.trust .wp-block-image img { width: 46px; height: 46px; }

.cards .card { border: 1px solid var(--brass); outline: 1px solid rgba(184,146,74,.35); outline-offset: -6px; }
.cards .card .wp-block-image img { width: 108px; height: 96px; }
.cards .card h3 { font-size: 25px; line-height: 1.15; }

.ledger td { font-family: var(--serif); font-size: 18px; }
.ledger tr:last-child td { font-weight: 600; font-size: 21px; }
.ledger tr:last-child td:last-child { font-size: 27px; }
.math-points .wp-block-image { width: 66px; height: 66px; }
.math-points p { font-size: 16px; }

.step__num { width: 40px; height: 40px; font-size: 22px; }
.step .wp-block-image { width: 52px; }
.step .wp-block-image img { width: 52px; height: 62px; }
.step h3 { font-size: 23px; }
.steps .wp-block-column + .wp-block-column { border-left-color: var(--brass); }

.quote-card { grid-template-columns: minmax(260px, 380px) 1fr; }
.quote-card h2 { font-size: 32px; white-space: nowrap; }
.qf-field label { font-family: var(--serif); font-size: 15px; color: var(--ink); }

.faq .wp-block-details summary { font-family: var(--serif); font-size: 19px; padding-top: 14px; padding-bottom: 14px; }

.cta-band { padding: 48px var(--pad); border-bottom: 1px solid rgba(184,146,74,.6); }
.cta-band h2 { font-size: clamp(30px, 3.4vw, 44px); }
.cta-band .btn { padding: 16px 34px; font-size: 16px; }
.cta-band__tree { opacity: .7; width: 260px; }
.site-footer h2 { font-family: var(--serif); font-size: 19px; color: var(--brass); font-weight: 500; }
.site-footer a { font-size: 14px; }
.site-footer__tree { width: 160px; opacity: 1; }
@media (max-width: 900px) {
	.hero > .wp-block-columns > .wp-block-column:first-child { flex-basis: auto; }
	.hero::before { background: linear-gradient(180deg, rgba(248,244,238,.94) 0%, rgba(248,244,238,.88) 70%, rgba(248,244,238,.6) 100%); }
	.offer-card { margin-right: 0; }
	.quote-card h2 { white-space: normal; }
}
@media (max-width: 1024px) { .quote-card { grid-template-columns: 1fr; } }

/* ---------- Fidelity pass 2 ---------- */
h1, h2 { font-weight: 600; }
.hero::before { background: linear-gradient(90deg, rgba(248,244,238,.55) 0%, rgba(248,244,238,.35) 30%, rgba(248,244,238,0) 46%); }
.hero h1, .hero .lede { text-shadow: 0 1px 12px rgba(248,244,238,.6); }
.step p.step__num { font-size: 22px; color: #fff; line-height: 1; margin: 0; }
.step { grid-template-columns: 40px 52px 1fr; }
.math-points .point { display: flex; }
.cta-band__tree { opacity: .85; }
.cta-band .btn { background: linear-gradient(180deg, #d6b46a, #b8924a); }
.timeline { max-width: 520px; }
.timeline__dots span { width: 15px; height: 15px; }
.partial h2 { font-size: clamp(34px, 4.4vw, 50px); }
@media (max-width: 900px) {
	.hero::before { background: rgba(248,244,238,.55); }
}
.hero h1 { max-width: 15ch; }
.hero > .wp-block-columns > .wp-block-column:first-child { flex-basis: 52%; }
.btn, .wp-block-button__link.wp-element-button { font-family: var(--serif); font-size: 19px; font-weight: 500; padding: 13px 28px; }
.site-header .btn { font-size: 17px; }
.offer-card, .ledger, .offer-card td { font-variant-numeric: lining-nums tabular-nums; }
.ledger td { font-variant-numeric: lining-nums tabular-nums; }
.offer-card { max-width: 300px; }
.offer-card__title::before { content: ""; width: 38px; height: 38px; border: 1px solid var(--rule); border-radius: 50%; background: var(--stone) url("assets/images/icon-calc.png") center / 22px no-repeat; flex: 0 0 auto; }
.offer-card td:first-child { white-space: nowrap; padding-right: 12px; }

/* ---------- Fidelity pass 3 ---------- */
.trust p { font-size: 20px; }
.trust { padding: 36px var(--pad); }
.cards .card h3 { font-size: 26px; max-width: 12ch; margin-inline: auto; }
.cards .card { border-width: 2px; }
.math-points .wp-block-image { border-width: 2px; }
.ledger td { font-size: 19px; }
.step h3 { font-size: 25px; }
.step__num, .step p.step__num { width: 44px; height: 44px; }
.quote-card { padding: clamp(26px, 3vw, 40px); }
.qf-field input, .qf-field select { height: 50px; }
.qf-fine { text-align: center; }
.offer-card { border: 2px solid var(--brass); }
.framed { border-color: var(--brass); }
.cta-band__tree { opacity: 1; }
.cta-band h2 { font-size: clamp(32px, 3.6vw, 46px); }
.qf-row { grid-template-columns: 1.5fr 1fr 1fr 1fr auto; }
.qf-field select { padding-right: 28px; text-overflow: ellipsis; }
@media (max-width: 1024px) { .qf-row, .qf-row--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .qf-row, .qf-row--3 { grid-template-columns: 1fr; } }

/* ---------- Sonic Boom: conversion layer ---------- */
.hero-assure { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.sec-sub { text-align: center; color: var(--muted); font-size: 16px; margin-top: -4px; margin-bottom: 34px; }
.sec--dark .sec-sub { color: #c9c3b4; }
.steps .sec-title { margin-bottom: 14px; }
.steps .sec-sub { font-family: var(--serif); font-size: 21px; color: var(--brass-dark); font-style: italic; }
.problem .wp-block-columns { max-width: 920px; margin-bottom: 18px; }
.pain { display: flex; gap: 18px; align-items: flex-start; background: var(--stone); border: 1px solid var(--rule); padding: 22px; height: 100%; }
.pain .wp-block-image { margin: 0; flex: 0 0 auto; width: 48px; }
.pain .wp-block-image img { width: 48px; height: 48px; object-fit: contain; }
.pain h3 { font-size: 23px; margin: 0 0 4px; }
.pain p { margin: 0; color: var(--muted); font-size: 15px; }
.pain-close { text-align: center; font-family: var(--serif); font-size: 22px; margin-top: 18px !important; }
.quote-alt { text-align: center; font-size: 14px; color: var(--muted); margin: 18px auto 0 !important; }
.sticky-cta { display: none; }
@media (max-width: 900px) {
	.sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--evergreen); border-top: 1px solid var(--brass); transform: translateY(0); transition: transform .25s ease; }
	.sticky-cta.is-hidden { transform: translateY(110%); }
	.sticky-cta span { color: var(--stone); font-size: 13px; }
	.sticky-cta .btn { padding: 11px 18px; font-size: 17px; }
	body { padding-bottom: 68px; }
	.pain { padding: 18px; }
}
@media (max-width: 900px) {
	.sticky-cta .btn { white-space: nowrap; text-align: center; flex-shrink: 0; padding: 12px 18px; }
	body { padding-bottom: 0; }
	.site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
	.cta-band__tree { opacity: .22; left: -60px; }
}

/* ---------- About / Contact pages ---------- */
.entry .lead { font-size: 19px; line-height: 1.6; }
.entry .pillars { gap: 18px; margin: 10px 0 30px; }
.entry .pillar { background: var(--stone-light); border: 1px solid var(--brass); padding: 22px; height: 100%; }
.entry .pillar h3 { margin-top: 0; font-size: 24px; }
.entry .pillar p { margin: 0; font-size: 15px; color: var(--muted); }
.entry .page-cta { background: var(--evergreen); color: var(--stone); padding: 30px; margin-top: 40px; text-align: center; }
.entry .page-cta h2 { color: var(--stone); margin-top: 0; font-size: 32px; }
.entry .page-cta .wp-block-buttons { justify-content: center; }
.entry .quote-card { grid-template-columns: 1fr; }
.entry .quote-card .qf-row, .entry .quote-card .qf-row--3 { grid-template-columns: repeat(2, 1fr); }
.entry .quote-card .qf-actions { grid-column: 1 / -1; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--stone-light); border: 1px solid var(--rule); padding: 24px; }
.contact-form .cf-full { grid-column: 1 / -1; }
.contact-sent { background: var(--evergreen); color: var(--stone); padding: 12px 16px; }
@media (max-width: 560px) { .contact-form, .entry .quote-card .qf-row, .entry .quote-card .qf-row--3 { grid-template-columns: 1fr; } }
.qf-field label, .contact-form label { font-family: var(--sans); font-size: 14px; font-weight: 500; }
.qf-consent input, .contact-form input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; }
.entry .quote-card { padding-top: 32px; }
.entry .contact-form + p, .entry .wp-block-shortcode + p { margin-top: 24px; }
.qf-actions { justify-content: center; }

/* ---------- Service page template ---------- */
.svc-hero { background: var(--evergreen); color: var(--stone); padding: clamp(40px, 6vw, 80px) var(--pad) clamp(44px, 6vw, 76px); position: relative; overflow: hidden; }
.svc-hero::after { content: ""; position: absolute; right: -40px; bottom: -30px; width: 340px; height: 340px; background: url("assets/images/oak.png") center / contain no-repeat; opacity: .12; pointer-events: none; }
.svc-hero > .wp-block-columns { max-width: var(--wrap); margin: 0 auto; align-items: center; position: relative; z-index: 1; }
.svc-hero .crumbs { font-size: 13px; color: #c9c3b4; letter-spacing: .04em; margin: 0 0 14px; }
.svc-hero .crumbs a { color: #c9c3b4; }
.svc-hero h1 { color: var(--stone); max-width: 15ch; margin: 0 0 18px; }
.svc-hero .lede { font-size: 17px; max-width: 36em; color: #e7e2d6; }
.svc-hero .wp-block-buttons { gap: 14px; margin-top: 24px; }
.svc-hero .hero-assure { color: #c9c3b4; }
.svc-hero .btn-outline .wp-block-button__link { color: var(--stone); border-color: var(--brass); }
.svc-card { background: var(--stone-light); color: var(--ink); border: 2px solid var(--brass); padding: 24px 26px; max-width: 340px; margin-left: auto; }
.svc-card h2 { font-size: 24px; margin: 0 0 10px; }
.svc-card ul { margin: 0; padding-left: 18px; font-size: 15px; }
.svc-card li { margin: 6px 0; }
.svc-card li::marker { color: var(--brass); }
.factors .wp-block-columns { margin-bottom: 18px; }
.factor { background: var(--stone-light); border: 1px solid var(--rule); border-top: 3px solid var(--brass); padding: 20px 22px; height: 100%; }
.factor h3 { font-size: 22px; margin: 0 0 6px; }
.factor p { margin: 0; font-size: 15px; color: var(--muted); }
.compare { max-width: 920px; }
.compare table { width: 100%; border-collapse: collapse; background: var(--stone-light); font-size: 15px; }
.compare th, .compare td { border: 1px solid var(--rule); padding: 12px 16px; text-align: left; vertical-align: top; }
.compare thead th { background: var(--evergreen); color: var(--stone); font-family: var(--serif); font-size: 20px; font-weight: 600; }
.compare td:first-child { font-weight: 600; width: 26%; }
.compare figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.checklist ul { list-style: none; padding: 0; columns: 2; column-gap: 40px; max-width: 860px; margin: 0 auto; }
.checklist li { break-inside: avoid; padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--rule); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border: 1.5px solid var(--brass); }
.checklist li::after { content: ""; position: absolute; left: 5px; top: 16px; width: 8px; height: 5px; border-left: 2px solid var(--brass-dark); border-bottom: 2px solid var(--brass-dark); transform: rotate(-45deg); }
.related .wp-block-buttons { justify-content: center; gap: 12px; }
@media (max-width: 781px) {
	.svc-card { margin: 28px 0 0; max-width: none; }
	.checklist ul { columns: 1; }
	.compare td:first-child { width: 34%; }
}
/* service polish */
.svc-hero .btn-primary .wp-block-button__link { background: linear-gradient(180deg, #d6b46a, #b8924a); color: var(--evergreen); border: 1px solid var(--brass); }
.svc-hero .btn-primary .wp-block-button__link:hover { filter: brightness(1.06); }
.svc-hero > .wp-block-columns > .wp-block-column { align-self: center; }
.factors.sec--dark .sec-sub { color: #c9c3b4; }
.factors.sec--dark .factor { background: var(--stone-light); border-color: rgba(184,146,74,.5); border-top-color: var(--brass); }
.factors.sec--dark .factor h3 { color: var(--ink); }
.steps .step h3 { min-height: 2.5em; }
.qf-field label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qf-row { align-items: end; }
@media (max-width: 600px) {
	.svc-hero .lede { font-size: 16px; }
	.svc-hero .wp-block-buttons { margin-top: 18px; gap: 10px; }
	.steps .step h3 { min-height: 0; }
	.compare thead { display: none; }
	.compare tr { display: block; border: 1px solid var(--rule); margin-bottom: 12px; background: var(--stone-light); }
	.compare td { display: block; border: 0; border-bottom: 1px solid var(--rule); width: auto !important; }
	.compare td:nth-child(2)::before { content: "Whole note: "; font-weight: 600; color: var(--brass-dark); }
	.compare td:nth-child(3)::before { content: "Part of the note: "; font-weight: 600; color: var(--brass-dark); }
	.compare td:first-child { background: var(--evergreen); color: var(--stone); font-family: var(--serif); font-size: 19px; }
}
/* in-article CTA */
.inline-cta { background: var(--evergreen); color: var(--stone); padding: 28px 30px; margin: 40px 0 10px; border-left: 3px solid var(--brass); }
.inline-cta h2 { color: var(--stone); margin: 0 0 8px; font-size: 30px; }
.inline-cta p { color: #d9d4c7; }
.inline-cta .btn-primary .wp-block-button__link { background: linear-gradient(180deg, #d6b46a, #b8924a); color: var(--evergreen); }

/* ---- Guide pages (topical map Wave 1) ---- */
.guide { max-width: 820px; margin: 0 auto; }
.guide h2 { margin-top: 42px; }
.guide h3 { margin-top: 26px; }
.guide p, .guide li { font-size: 17px; line-height: 1.7; }
.guide .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide .wp-block-table th, .guide .wp-block-table td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.guide .wp-block-table th { background: var(--stone); font-family: var(--serif); }
.answer-box { background: var(--stone-light); border-left: 3px solid var(--brass); padding: 18px 22px; margin: 0 0 28px; font-size: 18px; }
.note-calc { max-width: 820px; margin: 0 auto; background: var(--stone-light); border: 1px solid var(--rule); border-top: 3px solid var(--brass); padding: clamp(20px, 3vw, 32px); }
.note-calc__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: end; }
.note-calc__form .btn { grid-column: 1 / -1; justify-self: start; }
.note-calc__out { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.note-calc__big { font-family: var(--serif); font-size: 40px; margin: 0 0 6px; color: var(--evergreen); }
.note-calc__big small { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.note-calc__note, .note-calc__err { font-size: 14px; color: var(--muted); }
.note-calc__err { color: #8a2a1f; margin-top: 12px; }
@media (max-width: 640px) { .note-calc__form { grid-template-columns: 1fr; } .note-calc__big { font-size: 32px; } }

/* ---- Glossary ---- */
.glossary-nav { font-family: var(--serif); font-size: 20px; letter-spacing: .02em; text-align: center; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.glossary-nav a { text-decoration: none; padding: 0 4px; }
.guide h2.glossary-letter { margin-top: 36px; padding-bottom: 6px; border-bottom: 2px solid var(--brass); }
.guide h3.glossary-term { margin: 22px 0 4px; font-size: 21px; scroll-margin-top: 100px; }
.guide h3.glossary-term + p { margin-top: 0; }
.guide h2.glossary-letter { scroll-margin-top: 100px; }

/* ---- Wave 1 QA fixes ---- */
.related h3.sec-title { margin-top: 44px; font-size: clamp(26px, 3vw, 34px); }
.guide .wp-block-table thead th { background: var(--evergreen); color: var(--stone); font-family: var(--serif); font-size: 18px; font-weight: 600; }
.guide .wp-block-details { border: 1px solid var(--rule); background: var(--stone-light); margin: 0 0 10px; }
.guide .wp-block-details summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative; font-family: var(--serif); font-size: 19px; }
.guide .wp-block-details summary::-webkit-details-marker { display: none; }
.guide .wp-block-details summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.guide .wp-block-details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.guide .wp-block-details > *:not(summary) { padding: 0 16px; font-size: 16px; color: var(--muted); }
.guide .wp-block-details > p:last-child { padding-bottom: 14px; }
.sonic-section-02-calc { padding-bottom: 36px; }
.sonic-section-02-calc + .sec { padding-top: 40px; }
/* ---- Wave 2 QA fixes ---- */
.glossary-nav { font-size: 22px; font-weight: 600; line-height: 2; }
.glossary-nav a { color: var(--evergreen); display: inline-block; min-width: 32px; padding: 2px 6px; }
.glossary-nav a:hover, .glossary-nav a:focus { color: var(--evergreen-deep); text-decoration: underline; }
@media (max-width: 640px) {
	.guide .wp-block-table { overflow-x: auto; }
	.guide .wp-block-table th, .guide .wp-block-table td { padding: 8px 9px; font-size: 14px; }
	.guide .wp-block-table thead th { font-size: 16px; }
}

/* Wave 3 QA */
.guide .wp-block-buttons + p{margin-top:1.25rem}
.legal-note{margin-top:1.75rem;padding:.9rem 1.1rem;border-left:3px solid currentColor;opacity:.85;font-size:.95em}
@media (max-width:600px){.guide .wp-block-buttons>.wp-block-button{width:100%}.guide .wp-block-buttons .wp-block-button__link{width:100%;text-align:center}}
/* Wave 6 QA: label columns and the state table on phones */
.guide .wp-block-table tbody td:first-child { font-weight: 600; }
@media (max-width: 600px) {
	.state-table .wp-block-table { overflow: visible; }
	.state-table table, .state-table tbody { display: block; width: 100%; }
	.state-table thead { display: none; }
	.state-table tr { display: block; border: 1px solid var(--rule); margin-bottom: 12px; background: var(--stone-light); }
	.state-table td { display: block; border: 0; border-bottom: 1px solid var(--rule); }
	.state-table td:first-child { background: var(--evergreen); color: var(--stone); font-family: var(--serif); font-size: 19px; }
	.state-table td:first-child a { color: inherit; }
	.state-table td:nth-child(2)::before { content: "Usual security: "; font-weight: 600; color: var(--brass-dark); }
	.state-table td:nth-child(3)::before { content: "Foreclosure: "; font-weight: 600; color: var(--brass-dark); }
	.state-table td:nth-child(4)::before { content: "Land contracts: "; font-weight: 600; color: var(--brass-dark); }
}
@media (max-width: 600px) { .stack-table .wp-block-table{overflow:visible} .stack-table table,.stack-table tbody{display:block;width:100%} .stack-table thead{display:none} .stack-table tr{display:block;border:1px solid var(--rule);margin-bottom:12px;background:var(--stone-light)} .stack-table td{display:block;border:0;border-bottom:1px solid var(--rule)} .stack-table td:first-child{background:var(--evergreen);color:var(--stone);font-family:var(--serif);font-size:19px} .stack-table td[data-label]::before{content:attr(data-label);font-weight:600} }
