:root {
  --navy: #14213d;
  --navy-2: #1f2f54;
  --ink: #1a1f2b;
  --slate: #5b6675;
  --gold: #c8973f;
  --gold-dark: #a87a26;
  --bg: #f7f5f1;
  --card: #ffffff;
  --line: #e6e2da;
  --green: #1f8a4c;
  --red: #c0392b;
  --shadow: 0 6px 24px rgba(20, 33, 61, 0.08);
  --radius: 14px;
  --maxw: 1140px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--navy); font-weight: 600; }
a { color: var(--gold-dark); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--alt { background: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--gold-dark); margin: 0 0 8px; }
.section h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 10px; }
.lead { color: var(--slate); max-width: 70ch; margin: 0 0 28px; }
.badge { display: inline-block; background: #eef6f0; color: var(--green); border: 1px solid #cfe7d8; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(20,33,61,.97); backdrop-filter: blur(6px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); color: #fff; font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: #d8deea; text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--gold); color: #1a1300 !important; padding: 9px 16px; border-radius: 999px; font-weight: 700 !important; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: 999px; font-size: 1rem; transition: transform .08s ease, box-shadow .2s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: #1a1300; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--gold-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn--ghost:hover { border-color: #fff; }
.btn--call { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.btn--call:hover { background: var(--gold); color: #1a1300; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr .9fr; gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 14px; }
.hero p { color: #cdd5e4; font-size: 1.12rem; max-width: 54ch; }
.hero .cities { color: var(--gold); font-weight: 600; letter-spacing: .02em; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.headshot { width: 100%; max-width: 320px; aspect-ratio: 32 / 40; object-fit: cover; border-radius: var(--radius); border: 4px solid rgba(255,255,255,.12); box-shadow: var(--shadow); margin-left: auto; }
.headshot-fallback { display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; font-family: var(--serif); font-size: 4rem; font-weight: 600; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cred-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cred-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow); }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--slate); font-size: .96rem; }

/* Tabs (market trends) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-weight: 600; color: var(--navy); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabpanel { display: none; }
.tabpanel.active { display: block; }

/* Indicators table */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
table.indicators { width: 100%; border-collapse: collapse; min-width: 880px; }
.indicators .why { color: var(--slate); font-size: .85rem; max-width: 280px; }
.indicators th, .indicators td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.indicators th { background: #fafaf8; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); }
.indicators tr:last-child td { border-bottom: 0; }
.indicators .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.delta { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.good { color: var(--green); }
.delta.bad { color: var(--red); }
.delta.flat { color: var(--slate); }
.delta .arrow { margin-right: 4px; }
.period { color: var(--slate); font-size: .85rem; }

/* Chart */
.chart-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.chart-stats { display: flex; gap: 28px; margin-bottom: 14px; flex-wrap: wrap; }
.chart-stats .stat strong { font-family: var(--serif); font-size: 2rem; color: var(--navy); display: block; }
.chart-stats .stat span { color: var(--slate); font-size: .85rem; }
.canvas-box { position: relative; height: 340px; }

/* News */
.news-item { display: block; text-decoration: none; color: inherit; }
.news-item:hover { border-color: var(--gold); }
.news-meta { font-size: .8rem; color: var(--slate); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.news-item h3 { font-size: 1.05rem; margin: 0 0 8px; }
.news-readmore { color: var(--gold-dark); font-weight: 700; font-size: .9rem; }

/* Hero tagline + about credentials line */
.hero-role { color: #d8deea; font-size: .92rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 10px; }
.hero-tagline { color: var(--gold); font-family: var(--serif); font-size: 1.5rem; margin: 0 0 14px; font-weight: 500; }
.cred-line { color: var(--navy); font-weight: 600; font-size: .98rem; margin: 6px 0 0; }
.subhead { font-size: 1.1rem; color: var(--navy); margin: 30px 0 14px; }

/* Live stat tiles (Market Trends) */
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 6px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat-tile-val { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-tile-label { color: var(--slate); font-size: .82rem; font-weight: 600; margin: 8px 0 10px; text-transform: uppercase; letter-spacing: .04em; min-height: 2.2em; }
.stat-tile-changes { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-tile .chg { font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.stat-tile .chg-k { color: var(--slate); font-weight: 700; font-size: .7rem; text-transform: uppercase; }
.stat-tile .delta { font-size: .85rem; }
.stat-why { color: var(--slate); font-size: .82rem; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }

/* Numeric trend cards (Weekly/Monthly/Seasonal) */
.trend-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.trend-val { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); margin: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.trend-delta { margin: 8px 0 8px; font-size: .9rem; }
.trend-delta .period { color: var(--slate); font-weight: 500; }
.trend-desc { color: var(--slate); font-size: .85rem; margin: 0; }
.trend-context { color: var(--slate); font-size: .9rem; font-style: italic; margin: 16px 0 0; }

/* News carousel */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 4px 2px 10px; scrollbar-width: thin; }
.carousel-track > .news-item { flex: 0 0 320px; scroll-snap-align: start; }
.carousel-btn { position: absolute; top: 38%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); z-index: 2; display: grid; place-items: center; }
.carousel-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }

/* Filters + sold homes */
.filter-group { margin-bottom: 16px; }
.filter-group .filter-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--navy); transition: all .12s ease; }
.pill:hover { border-color: var(--gold); }
.pill[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0; flex-wrap: wrap; }
.result-count { color: var(--slate); font-weight: 600; }
.clear-btn { background: none; border: 0; color: var(--gold-dark); font-weight: 700; cursor: pointer; text-decoration: underline; }
.home-card { overflow: hidden; padding: 0; }
.home-photo { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #dfe4ec, #c3cad6); display: grid; place-items: center; color: var(--navy); font-weight: 700; }
.home-body { padding: 18px; }
.home-price { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin: 0; }
.home-addr { color: var(--slate); font-size: .92rem; margin: 6px 0 12px; }
.home-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: #f1efe9; border-radius: 6px; padding: 3px 9px; font-size: .78rem; font-weight: 600; color: var(--navy); }
.tag--type { background: #eef2fb; color: var(--navy-2); }
.specs { color: var(--slate); font-size: .88rem; margin-top: 10px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--slate); }

/* Books & journals */
.lit-col h3.col-title { font-size: 1.3rem; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.lit-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.lit-item:last-child { border-bottom: 0; }
.lit-item h4 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.lit-item .by { font-size: .82rem; color: var(--slate); margin: 0 0 6px; }
.lit-item p { margin: 0; font-size: .92rem; color: var(--slate); }

/* Back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 11px 16px; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.18); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold); color: #1a1300; }

/* Home inspection checklist */
.checklist { list-style: none; counter-reset: chk; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { counter-increment: chk; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.checklist label { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; cursor: pointer; }
.checklist input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; flex: 0 0 auto; border: 2px solid var(--gold); border-radius: 7px; position: relative; cursor: pointer; margin: 2px 0 0; transition: background .12s ease; }
.checklist input:checked { background: var(--gold); }
.checklist input:checked::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #1a1300; font-weight: 800; font-size: 1rem; }
.checklist .check-body { font-size: .98rem; color: var(--slate); }
.checklist .check-body strong { color: var(--navy); }
.checklist input:checked ~ .check-body { opacity: .5; text-decoration: line-through; text-decoration-color: var(--line); }
.checklist-note { margin-top: 18px; color: var(--slate); font-size: .92rem; }

/* Mortgage calculator */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.calc-inputs label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.calc-inputs .calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-inputs input, .calc-inputs select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-top: 6px; }
.calc-range input[type="range"] { padding: 0; accent-color: var(--gold); }
.calc-range span { color: var(--gold-dark); font-weight: 700; }
.calc-output { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.calc-label { color: #cdd5e4; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; margin: 0; }
.calc-total { font-family: var(--serif); font-size: 2.6rem; margin: 6px 0 16px; }
.calc-breakdown { list-style: none; padding: 0; margin: 0; }
.calc-breakdown li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; color: #e6eaf2; }
.calc-breakdown .calc-sub { color: #aab4c8; border-bottom: 0; margin-top: 4px; }
.calc-note { color: #aab4c8; font-size: .82rem; margin: 16px 0 0; }
.calc-note a { color: var(--gold); }

/* Buyer/seller guides timeline */
.guides-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.guide-title { font-size: 1.3rem; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); display: inline-block; }
.timeline { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.timeline li { counter-increment: step; position: relative; padding: 0 0 18px 40px; border-left: 2px solid var(--line); margin-left: 14px; color: var(--slate); font-size: .95rem; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: counter(step); position: absolute; left: -16px; top: -4px; width: 30px; height: 30px; background: var(--navy); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.timeline li strong { color: var(--navy); }

/* City cards */
.city-card h3 { margin-top: 0; }
.city-meta { color: var(--navy); font-weight: 600; font-size: .85rem; margin: 12px 0 0; }
.city-listings { display: inline-block; margin-top: 12px; color: var(--gold-dark); font-weight: 700; text-decoration: none; }
.city-listings:hover { text-decoration: underline; }

/* Glossary + FAQ */
.glossary { margin: 0; }
.glossary dt { font-weight: 700; color: var(--navy); margin-top: 14px; }
.glossary dd { margin: 4px 0 0; color: var(--slate); font-size: .95rem; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq-list summary { cursor: pointer; padding: 14px 40px 14px 18px; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 13px; color: var(--gold-dark); font-weight: 700; font-size: 1.2rem; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details p { margin: 0; padding: 0 18px 16px; color: var(--slate); font-size: .95rem; }

/* Valuation form */
.valuation-form { max-width: 640px; }
.valuation-form label { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.valuation-form input, .valuation-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin: 6px 0 16px; }
.valuation-form .calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.valuation-form textarea { min-height: 90px; resize: vertical; }

/* Contact */
.contact { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: #cdd5e4; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-methods a { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; }
.contact-methods .ic-label { background: var(--gold); color: #1a1300; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; flex: 0 0 auto; }
.contact-methods .serving { color: #cdd5e4; font-weight: 600; margin: 8px 0 0; }
form.contact-form { background: #fff; border-radius: var(--radius); padding: 24px; }
form.contact-form label { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
form.contact-form input, form.contact-form select, form.contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-bottom: 16px; color: var(--ink);
}
form.contact-form textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-size: .92rem; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* Footer */
.footer { background: #0e1830; color: #9aa6bd; padding: 32px 0; font-size: .88rem; }
.footer a { color: #c9d2e4; }
.footer .disclaimer { margin-top: 10px; font-size: .8rem; color: #6f7c96; }
.areas-served { margin: 12px 0 0; font-size: .86rem; color: #9aa6bd; max-width: 70ch; }
.areas-served .linklike { color: #c9d2e4; font-weight: 600; }
.areas-served .linklike:hover { color: #fff; }

/* Nav buttons (open drawers) — styled to match the old anchor links */
.nav-links button { background: none; border: 0; font: inherit; cursor: pointer; color: #d8deea; font-size: .92rem; font-weight: 500; padding: 0; }
.nav-links button:hover { color: #fff; }

/* Inline text button that looks like a link */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-dark); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* Hub: grid of cards that open drawers */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hub-card { display: flex; flex-direction: column; gap: 8px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .1s ease, box-shadow .2s ease, border-color .2s ease; }
.hub-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(20, 33, 61, .14); }
.hub-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hub-title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; color: var(--navy); font-weight: 700; }
.hub-blurb { color: var(--slate); font-size: .92rem; flex: 1 0 auto; }
.hub-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.hub-stat { background: #f1efe9; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hub-stat.live { background: #eef6f0; color: var(--green); border-color: #cfe7d8; }
.hub-go { color: var(--gold-dark); font-weight: 700; font-size: .9rem; white-space: nowrap; flex: 0 0 auto; }
.hub-card:hover .hub-go { text-decoration: underline; }

/* Drawer (slide-in panel) + scrim */
body.drawer-open { overflow: hidden; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(14, 24, 48, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; z-index: 90; }
.drawer-scrim.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(640px, 94vw); background: var(--bg); transform: translateX(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1); z-index: 100; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); box-shadow: -14px 0 44px rgba(14, 24, 48, .28); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 26px; border-bottom: 1px solid var(--line); background: #fff; flex: 0 0 auto; }
.drawer-cat { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--gold-dark); margin: 0 0 4px; }
.drawer-title { font-size: 1.35rem; margin: 0; line-height: 1.2; }
.drawer-title .badge { vertical-align: middle; }
.drawer-close { flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1efe9; color: var(--navy); font-size: 1rem; cursor: pointer; transition: background .12s ease, color .12s ease; }
.drawer-close:hover { background: var(--gold); color: #1a1300; }
.drawer-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 26px 26px 64px; }
.drawer-body .lead { margin-bottom: 22px; }

/* Inside a drawer the panel is narrow — collapse the wide multi-column layouts */
.drawer-body .grid-3 { grid-template-columns: 1fr 1fr; }
.drawer-body .grid-2,
.drawer-body .calc,
.drawer-body .guides-grid { grid-template-columns: 1fr; }
.drawer-body .stat-tiles { grid-template-columns: repeat(2, 1fr); }
.drawer-body .lit-col + .lit-col { margin-top: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { padding-top: 32px; padding-bottom: 32px; gap: 24px; }
  .headshot { max-width: 280px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .calc, .guides-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; gap: 0; padding: 8px 20px 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-links button { padding: 10px 0; width: 100%; text-align: left; }
  .nav-toggle { display: block; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 18px; padding-bottom: 24px; gap: 16px; }
  .headshot { margin: 0 auto; max-width: 240px; }
  .hub-grid { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .drawer-body { padding: 22px 18px 56px; }
  .drawer-head { padding: 16px 18px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .calc-inputs .calc-row, .valuation-form .calc-row { grid-template-columns: 1fr; }
  .calc-total { font-size: 2.1rem; }
  .carousel-btn { display: none; }
  .carousel-track > .news-item { flex: 0 0 86%; }
  .section { padding: 48px 0; }
}
