/* ==========================================================================
   Thomas Real Estate Group — main stylesheet
   Original design. Palette: deep navy + warm sand + brass accent.
   ========================================================================== */

:root {
	/* Palette: black, white, and the brand blue from the logo (#8EB6D0),
	   with a deeper shade of the same hue for buttons and links. */
	--navy: #111315;            /* black */
	--navy-2: #1a1d20;
	--ink: #1f2429;
	--muted: #5f6b76;
	--line: #e1e6eb;
	--sand: #f4f6f8;            /* cool light grey */
	--sand-2: #e7ecf0;
	--white: #ffffff;
	--blue-light: #8eb6d0;      /* logo blue */
	--blue-pale: #d6e6ef;
	--brass: #2f6f96;           /* accent (buttons/links) — kept under the old token name */
	--brass-2: #245a7a;
	--ok: #1f7a4d;
	--err: #b4322f;

	--font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--container: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 6px;
	--shadow: 0 10px 30px rgba(15, 31, 46, .08);
	--shadow-lg: 0 24px 60px rgba(15, 31, 46, .14);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--brass-2); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 1000; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; flex: none; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.container-narrow { max-width: 780px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--sand); }
.section-heading { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-heading .lead { color: var(--muted); font-size: 1.05rem; }
.section-more { margin: clamp(28px, 4vw, 44px) 0 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--brass-2); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.link { font-weight: 600; display: inline-flex; align-items: center; gap: .35em; }
.link .icon { transition: transform .2s; }
.link:hover .icon { transform: translateX(3px); }

/* ---- Buttons ---- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .85rem 1.5rem; border-radius: var(--radius);
	font-weight: 600; font-size: .95rem; line-height: 1;
	border: 1.5px solid transparent; cursor: pointer; transition: all .18s ease;
	font-family: var(--font-body);
}
.btn-primary { background: var(--brass); color: #fff; border-color: var(--brass); }
.btn-primary:hover { background: var(--brass-2); border-color: var(--brass-2); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sand); }
.btn .icon { transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }

/* ---- Header ---- */
.topbar { background: var(--navy); color: #cbd5de; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; gap: 1.5rem; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #cbd5de; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: #fff; }
.topbar-address { display: inline-flex; align-items: center; gap: .4em; }
.topbar .social { margin-left: auto; display: flex; gap: .8rem; }
.topbar .social .icon { width: 1.05em; height: 1.05em; }
@media (max-width: 760px) { .topbar-address, .topbar .social { display: none; } }

.navbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 2rem; }
.brand .custom-logo { max-height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
.brand-tag { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); margin-top: .25rem; }
.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.menu { display: flex; gap: 1.6rem; align-items: center; }
.menu > li { position: relative; }
.menu a { font-size: .92rem; font-weight: 500; color: var(--ink); padding: .5rem 0; display: block; }
.menu a:hover, .menu .current-menu-item > a { color: var(--brass-2); }
.menu .sub-menu { position: absolute; top: 100%; left: -1rem; min-width: 220px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: .5rem 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s; }
.menu > li:hover > .sub-menu, .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu .sub-menu a { padding: .55rem 1rem; }
.menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: .4em; height: .4em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-.2em); margin-left: .45em; }
.nav-cta { display: flex; gap: .6rem; }
.nav-cta .btn { padding: .7rem 1.1rem; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.nav-toggle-bar { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 1024px) {
	.nav-toggle { display: flex; }
	.primary-nav { position: fixed; inset: 84px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1.5rem var(--gutter); gap: 1rem; overflow: auto; transform: translateX(100%); transition: transform .25s ease; }
	.primary-nav.is-open { transform: none; }
	.menu { flex-direction: column; align-items: stretch; gap: 0; }
	.menu a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
	.menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 1rem; }
	.menu .sub-menu a { font-size: .95rem; }
	.nav-cta { flex-direction: column; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
	body.nav-open { overflow: hidden; }
}

/* ---- Breadcrumbs ---- */
.breadcrumbs { font-size: .8rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; width: min(var(--container), 100% - var(--gutter) * 2); margin: .9rem auto 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* ---- Hero ---- */
.hero { position: relative; background: var(--navy); color: #fff; padding: clamp(72px, 11vw, 150px) 0 clamp(64px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,31,46,.92) 0%, rgba(15,31,46,.72) 55%, rgba(15,31,46,.45) 100%); z-index: -1; }
.hero:not(.has-image)::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 500px at 85% 0%, rgba(142,182,208,.25), transparent 60%); z-index: -1; }
.hero .eyebrow { color: var(--blue-light); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-sub { font-size: 1.15rem; color: #d5dde4; max-width: 56ch; margin-bottom: 2rem; }
.hero-search { max-width: 760px; }
.quick-search { display: grid; grid-template-columns: 1fr auto auto; background: #fff; border-radius: var(--radius); padding: 6px; gap: 6px; box-shadow: var(--shadow-lg); }
.quick-search input, .quick-search select { border: 0; background: transparent; padding: .9rem 1rem; font: inherit; color: var(--ink); min-width: 0; }
.quick-search select { border-left: 1px solid var(--line); }
.quick-search input:focus, .quick-search select:focus { outline: 2px solid var(--brass); border-radius: 4px; }
@media (max-width: 640px) { .quick-search { grid-template-columns: 1fr; } .quick-search select { border-left: 0; border-top: 1px solid var(--line); } }
.hero-links { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.1rem; font-size: .9rem; }
.hero-links a { color: #e2e8ee; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.hero-links a:hover { color: #fff; border-color: #fff; }

/* ---- Page hero ---- */
.page-hero { background: var(--sand); padding: clamp(44px, 6vw, 80px) 0; position: relative; isolation: isolate; overflow: hidden; }
.page-hero.has-image { color: #fff; background: var(--navy); }
.page-hero.has-image h1, .page-hero.has-image .lead { color: #fff; }
.page-hero.has-image .eyebrow { color: var(--blue-light); }
.page-hero.has-image .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,31,46,.9), rgba(15,31,46,.5)); z-index: -1; }
.page-hero h1 { margin-bottom: .3em; }

/* ---- Stats ---- */
.stats { background: var(--navy-2); color: #fff; }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 1.6rem 1rem; text-align: center; border-left: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: .25rem; }
.stats li:first-child { border-left: 0; }
.stats strong { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; color: var(--blue-light); line-height: 1; }
.stats span { font-size: .82rem; color: #aab7c2; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 760px) { .stats ul { grid-template-columns: 1fr 1fr; } .stats li:nth-child(3) { border-left: 0; } .stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); } }
.stats-inline { margin-top: 0; }

/* ---- Grids & cards ---- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--sand-2); overflow: hidden; display: block; }
.card-media.portrait { aspect-ratio: 4 / 5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, var(--sand-2), #d3dbe2); }
.portrait-placeholder { display: grid; place-items: center; font-family: var(--font-display); font-size: 4rem; color: var(--brass); }
.card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-title { font-size: 1.2rem; margin: 0; }
.card-title a { color: var(--navy); }
.card-sub { color: var(--muted); font-size: .9rem; margin: 0; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: .35rem .6rem; border-radius: 3px; }
.badge-sold { background: var(--brass); }
.badge-pending { background: #4a6e86; }
.price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--navy); margin: 0; }
.price-lg { font-size: 2.4rem; }
.specs { display: flex; gap: 1.1rem; font-size: .88rem; color: var(--muted); margin-top: .3rem; }
.specs li { display: inline-flex; align-items: center; gap: .3em; }
.specs b, .specs span { font-weight: 400; }
.specs-lg { font-size: 1rem; margin: 0 0 1.5rem; }

.testimonial-card { padding: 1.6rem; gap: 1rem; }
.testimonial-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.22rem; line-height: 1.45; color: var(--ink); flex: 1; }
.testimonial-card blockquote p { margin: 0 0 .5rem; }
.testimonial-card .read-more { font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--brass-2); }
.testimonial-card figcaption { display: flex; flex-direction: column; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .9rem; }
.testimonial-card figcaption strong { color: var(--navy); }

.paths .path { background: var(--sand); padding: 2rem; border-radius: var(--radius); display: flex; flex-direction: column; gap: .5rem; color: var(--ink); transition: background .2s, transform .2s; }
.paths .path:hover { background: var(--sand-2); transform: translateY(-3px); }
.paths .path h2 { font-size: 1.6rem; margin: 0; }
.paths .path p:last-of-type { color: var(--muted); flex: 1; }

.community-grid { gap: 14px; }
.community-tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem; color: #fff; background: var(--navy-2); isolation: isolate; }
.community-tile img, .community-tile .card-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.community-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,31,46,0) 35%, rgba(15,31,46,.85)); z-index: -1; }
.community-tile:hover img { transform: scale(1.05); }
.community-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.community-tag { font-size: .8rem; color: #d5dde4; margin-top: .2rem; }

.about-strip { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.agent-mini-list { display: flex; flex-direction: column; gap: 10px; }
.agent-mini-list a { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; background: var(--sand); border-radius: var(--radius); color: var(--ink); }
.agent-mini-list a:hover { background: var(--sand-2); }
.agent-mini-list img, .avatar-placeholder { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-placeholder { display: grid; place-items: center; background: var(--navy); color: var(--blue-light); font-family: var(--font-display); font-size: 1.5rem; }
.agent-mini-list span { display: flex; flex-direction: column; }
.agent-mini-list em { font-style: normal; font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) { .about-strip { grid-template-columns: 1fr; } }

/* ---- Agent single ---- */
.agent-layout { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.agent-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 1.2rem; }
.agent-photo { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.agent-facts { border: 1px solid var(--line); border-radius: var(--radius); }
.agent-facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-top: 1px solid var(--line); font-size: .9rem; }
.agent-facts li:first-child { border-top: 0; }
.agent-facts span { color: var(--muted); flex: none; }
.agent-facts strong, .agent-facts a { text-align: right; font-weight: 500; }
@media (max-width: 860px) { .agent-layout { grid-template-columns: 1fr; } .agent-side { position: static; } }

/* ---- Community single ---- */
.community-layout, .listing-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.community-side { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 104px; }
.side-card { background: var(--sand); border-radius: var(--radius); padding: 1.6rem; }
.side-card h2 { font-size: 1.4rem; }
.side-card-lg { padding: 2rem; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 960px) { .community-layout, .listing-layout { grid-template-columns: 1fr; } .community-side { position: static; } }
.listing-photo { border-radius: var(--radius); margin-bottom: 1.5rem; }

/* ---- Valuation / contact ---- */
.valuation-layout, .contact-layout { display: grid; grid-template-columns: 1fr 460px; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .valuation-layout, .contact-layout { grid-template-columns: 1fr; } }
.checklist { display: flex; flex-direction: column; gap: .6rem; margin: 1.5rem 0 2rem; }
.checklist li { display: flex; align-items: center; gap: .6rem; }
.checklist .icon { color: var(--ok); }
.contact-facts { display: flex; flex-direction: column; gap: 1.2rem; margin: 1.5rem 0; }
.contact-facts li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-facts .icon { width: 1.4em; height: 1.4em; color: var(--brass); margin-top: .15em; }
.contact-facts span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-facts address { font-style: normal; }
.license { font-size: .82rem; color: var(--muted); }
.map-embed { margin-top: clamp(40px, 6vw, 72px); aspect-ratio: 16 / 6; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.social-contact { display: flex; gap: 1rem; }
.social-contact .icon { width: 1.3em; height: 1.3em; }

/* ---- Forms ---- */
.lead-form { display: flex; flex-direction: column; gap: 1rem; }
.lead-form .hp { position: absolute; left: -9999px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field label span { color: var(--err); }
.field input, .field select, .field textarea { font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 4px; background: #fff; width: 100%; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); outline: 0; box-shadow: 0 0 0 3px rgba(47,111,150,.22); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.consent { font-size: .75rem; color: var(--muted); line-height: 1.5; margin: 0; }
.form-status:empty { display: none; }
.form-status, .notice { padding: .75rem 1rem; border-radius: 4px; font-size: .9rem; margin: 0; }
.form-status.ok, .notice-ok { background: #e6f4ec; color: var(--ok); }
.form-status.err, .notice-err { background: #fbeae9; color: var(--err); }
.lead-form.is-sending .btn { opacity: .6; pointer-events: none; }
.site-search { display: flex; gap: .5rem; margin: 1.5rem 0; }
.site-search input { flex: 1; font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 4px; }

/* ---- IDX ---- */
.idx-wrap { margin-top: 1.5rem; min-height: 60vh; }
.idx-placeholder { background: var(--sand); border: 2px dashed var(--line); border-radius: var(--radius); padding: 3rem; text-align: center; color: var(--muted); }

/* ---- Prose ---- */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 2em; font-size: 1.8rem; }
.prose h3 { margin-top: 1.6em; }
.prose p.lead { font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 2em 0; padding: 1.2rem 1.6rem; border-left: 3px solid var(--brass); background: var(--sand); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.45; }
.prose blockquote p { margin: 0 0 .5em; }
.prose blockquote cite { font-family: var(--font-body); font-style: normal; font-size: .85rem; color: var(--muted); }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.post-hero { border-radius: var(--radius); margin-bottom: 2rem; }
.link-list { display: flex; flex-direction: column; gap: .7rem; margin: 1rem 0 2rem; }
.link-list a { font-weight: 600; }
.post-navigation { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; }
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; gap: .4rem; justify-content: center; }
.pagination .page-numbers { padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 4px; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- CTA band ---- */
.cta-band { background: var(--navy); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #c7d3dc; max-width: 56ch; margin: 0; }
.cta-band .eyebrow { color: var(--blue-light); }

/* ---- Footer ---- */
.site-footer { background: var(--sand); color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding: clamp(48px, 6vw, 80px) 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--navy); margin: 0; }
.footer-tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-heading { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; }
.footer-contact p { color: var(--muted); }
.social-footer { display: flex; gap: 1rem; margin-top: 1rem; }
.social-footer .icon { width: 1.3em; height: 1.3em; color: var(--navy); }
.footer-legal { border-top: 1px solid var(--line); padding: 1.4rem 0; font-size: .8rem; color: var(--muted); }
.footer-legal .container { display: flex; flex-wrap: wrap; gap: .6rem 2rem; align-items: center; }
.footer-legal p { margin: 0; }
.fair-housing { flex: 1 1 100%; }
.eho { font-size: 1rem; }
.legal-links { display: flex; gap: 1.2rem; margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .nav-toggle, .nav-cta, .cta-band, .site-footer .footer-grid { display: none !important; }
}


/* ==========================================================================
   Photography-led landing page
   ========================================================================== */
.hero-full { min-height: min(88vh, 860px); display: flex; align-items: flex-end; padding-bottom: clamp(56px, 8vw, 110px); }
.hero-full::after { background: linear-gradient(180deg, rgba(21,21,21,.25) 0%, rgba(21,21,21,.15) 40%, rgba(21,21,21,.78) 100%); }
.hero-full .hero-inner { width: min(var(--container), 100% - var(--gutter) * 2); }
.hero-full h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); font-weight: 500; letter-spacing: -.015em; max-width: 14ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-full .hero-sub { font-size: 1.1rem; max-width: 52ch; }
.hero-full .eyebrow { color: var(--blue-light); }
.hero-scroll { position: absolute; right: var(--gutter); bottom: 28px; width: 28px; height: 46px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 14px; display: none; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: scrollcue 1.8s infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(16px); opacity: 0 } 100% { opacity: 0 } }
@media (min-width: 900px) { .hero-scroll { display: block; } }
@media (max-width: 640px) { .hero-full { min-height: 78vh; } }

.btn-ghost { background: transparent; color: var(--navy); border-color: transparent; padding-left: .4rem; padding-right: .4rem; }
.btn-ghost:hover { color: var(--brass-2); }

.section-intro { padding-bottom: clamp(40px, 6vw, 80px); }
.intro-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro-text h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 500; }
.intro-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.intro-mosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 460px; }
.intro-mosaic figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--sand-2); }
.intro-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.intro-mosaic .m1 { grid-row: 1 / 3; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } .intro-mosaic { min-height: 320px; } }

.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; max-width: none; flex-wrap: wrap; }
.section-heading-row h2 { margin: 0; }
.section-heading-row .link { padding-bottom: .4rem; }

.community-grid-editorial { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.community-grid-editorial .community-tile { aspect-ratio: auto; height: 100%; }
.community-grid-editorial .is-feature { grid-column: span 2; grid-row: span 2; }
.community-grid-editorial .is-feature .community-name { font-size: 2.2rem; }
.community-tile::after { background: linear-gradient(180deg, rgba(21,21,21,0) 40%, rgba(21,21,21,.8)); }
.community-tile .community-name { text-shadow: 0 1px 12px rgba(0,0,0,.35); }
@media (max-width: 1024px) { .community-grid-editorial { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 560px) { .community-grid-editorial { grid-template-columns: 1fr; grid-auto-rows: 200px; } .community-grid-editorial .is-feature { grid-column: span 1; grid-row: span 1; } }

.team-grid { max-width: 980px; margin-inline: auto; }
.team-card { display: flex; flex-direction: column; gap: .3rem; color: var(--ink); text-align: center; }
.team-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--sand-2); margin-bottom: .8rem; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-card strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.team-card em { font-style: normal; font-size: .82rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.cta-band.has-image { position: relative; isolation: isolate; overflow: hidden; }
.cta-band .band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,21,21,.9), rgba(21,21,21,.6)); z-index: -1; }

.page-hero.has-image { min-height: 46vh; display: flex; align-items: flex-end; }
.page-hero.has-image::after { background: linear-gradient(180deg, rgba(21,21,21,.2), rgba(21,21,21,.75)); }
.stats strong { color: var(--blue-light); }
.brand .custom-logo { max-height: 48px; }
@media (min-width: 1025px) { .community-grid-editorial .community-tile:last-child { grid-column: span 2; } }
.cta-band.has-image::after { background: linear-gradient(90deg, rgba(21,21,21,.85) 30%, rgba(21,21,21,.35)); }
.cta-band.has-image .band-img { z-index: 0; }
.cta-band.has-image::after { z-index: 1; }
.cta-band.has-image .container { position: relative; z-index: 2; }

/* ---- Hero tabs (Find a home / What's my home worth?) ---- */
.hero-panel { max-width: 820px; }
.hero-tabs { display: inline-flex; gap: 4px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); padding: 4px; border-radius: var(--radius) var(--radius) 0 0; }
.hero-tab { font: 600 .9rem/1 var(--font-body); color: #fff; background: transparent; border: 0; padding: .8rem 1.2rem; border-radius: 4px; cursor: pointer; letter-spacing: .01em; transition: background .15s, color .15s; }
.hero-tab:hover { background: rgba(255,255,255,.12); }
.hero-tab.is-active { background: #fff; color: var(--navy); }
.hero-pane .quick-search { border-radius: 0 var(--radius) var(--radius) var(--radius); grid-template-columns: 1fr auto; }
.quick-value input { font-size: 1.05rem; }
.hero-links span { color: #e2e8ee; display: inline-flex; align-items: center; gap: .4em; }
.hero-links span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
@media (max-width: 640px) { .hero-pane .quick-search { grid-template-columns: 1fr; } .hero-tabs { display: flex; } .hero-tab { flex: 1; padding: .8rem .6rem; font-size: .82rem; } }

/* ---- Home value section ---- */
.section-value { background: var(--navy); color: #fff; padding: clamp(64px, 8vw, 110px) 0; }
.value-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.value-copy h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; letter-spacing: -.015em; margin-bottom: .4em; }
.value-copy .eyebrow { color: var(--blue-light); }
.value-copy .lead { color: #c7d0d8; }
.value-form { display: grid; grid-template-columns: 1fr auto; gap: 6px; background: #fff; padding: 6px; border-radius: var(--radius); margin: 1.6rem 0 1.4rem; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.value-form input { border: 0; background: transparent; padding: .95rem 1rem; font: inherit; font-size: 1.05rem; color: var(--ink); min-width: 0; }
.value-form input:focus { outline: 2px solid var(--brass); border-radius: 4px; }
.value-points { display: flex; flex-direction: column; gap: .55rem; color: #cfd8df; font-size: .95rem; }
.value-points li { display: flex; align-items: center; gap: .6rem; }
.value-points .icon { color: var(--brass); }
.value-visual { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.value-visual img { width: 100%; height: 100%; object-fit: cover; }
.value-visual figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.6rem; background: linear-gradient(180deg, rgba(21,21,21,0), rgba(21,21,21,.85)); display: flex; flex-direction: column; }
.value-visual strong { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--blue-light); line-height: 1; }
.value-visual span { font-size: .85rem; color: #cfd8df; max-width: 30ch; }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } .value-visual { aspect-ratio: 16 / 10; } }
@media (max-width: 640px) { .value-form { grid-template-columns: 1fr; } }


/* ---- Blue accents ---- */
.eyebrow { color: var(--brass); }
.hero .eyebrow, .page-hero.has-image .eyebrow, .cta-band .eyebrow, .value-copy .eyebrow, .hero-full .eyebrow { color: var(--blue-light); }
.section-heading h2::after, .intro-text h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--blue-light); margin-top: .6em; border-radius: 2px; }
.section-heading-row h2::after { display: none; }
.stats li strong { color: var(--blue-light); }
.topbar { border-bottom: 2px solid var(--blue-light); }
.hero-tab.is-active { color: var(--navy); box-shadow: inset 0 -3px 0 var(--blue-light); }
.hero-links span::before, .checklist .icon, .value-points .icon { color: var(--blue-light); background: var(--blue-light); }
.checklist .icon, .value-points .icon { background: none; }
.testimonial-card { border-top: 3px solid var(--blue-light); }
.side-card { border-left: 3px solid var(--blue-light); }
.btn-light { color: var(--navy); }
.btn-light:hover { background: var(--blue-pale); }
.footer-tag, .brand-tag { color: var(--brass); }
.hero-full::after { background: linear-gradient(180deg, rgba(17,19,21,.3) 0%, rgba(17,19,21,.15) 40%, rgba(17,19,21,.8) 100%); }
