/* ==========================================================================
   Trent Does Mortgages — site styles
   Brand: Navy #0E1A40 (backbone) · Copper #C68642 (accent only) ·
   White · Cream #F7F3EC · Plus Jakarta Sans
   ========================================================================== */

:root {
  --navy: #0E1A40;
  --navy-700: #223058;
  --copper: #C68642;
  --copper-deep: #9A6330;
  --white: #FFFFFF;
  --cream: #F7F3EC;
  --cream-200: #EFE7D8;
  --ink: #121C3E;
  --muted: #5A6180;
  --muted-on-navy: #B9C0D6;
  --line: #E6DDCD;
  --line-on-navy: rgba(247, 243, 236, 0.16);
  --maxw: 1140px;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(14, 26, 64, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--copper-deep); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 4px; }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.6rem; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--copper); color: var(--navy); }
.btn-primary:hover { background: #B9792F; color: var(--navy); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.on-navy .btn-secondary { color: var(--cream); border-color: var(--line-on-navy); }
.on-navy .btn-secondary:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }

.textlink { color: var(--copper-deep); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(154, 99, 48, 0.3); padding-bottom: 1px; }
.textlink:hover { border-bottom-color: var(--copper-deep); }

/* ----- Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 74px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--navy); text-decoration: none; white-space: nowrap; }
.brand b { color: var(--copper-deep); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--navy); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav-links a:hover { color: var(--copper-deep); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-phone { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav-phone:hover { color: var(--copper-deep); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--navy); position: relative; transition: transform 0.2s ease; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ----- Sections ---------------------------------------------------------- */
.section { padding: clamp(3.75rem, 7.5vw, 6.5rem) 0; }
.section-sm { padding: clamp(2.75rem, 5vw, 4rem) 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--cream); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--cream); }

.kicker { font-size: 0.95rem; font-weight: 600; color: var(--copper-deep); margin: 0 0 1rem; letter-spacing: 0; }
.on-navy .kicker, .section-navy .kicker { color: var(--copper); }
.section-head { max-width: 760px; margin-bottom: 2.75rem; }
.section-head .lead { margin-top: 0.75rem; }
.rule { width: 46px; height: 3px; background: var(--copper); border: 0; margin: 0 0 1.4rem; }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--muted); font-weight: 400; }
.section-navy .lead, .on-navy .lead { color: var(--muted-on-navy); }
.eyebrow-name { font-size: 1rem; font-weight: 600; color: var(--copper-deep); margin-bottom: 1.1rem; }

/* ----- Hero -------------------------------------------------------------- */
.hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem); background: var(--white); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.0; letter-spacing: -0.03em; max-width: 16ch; }
.hero .lead { margin: 1.5rem 0 2rem; max-width: 56ch; }
.hero .btn-row { margin-top: 0.5rem; }

/* hero with portrait */
.hero-split { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { min-width: 0; }
.hero-portrait { background: var(--cream); border-radius: 20px; aspect-ratio: 4 / 5; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 300px; aspect-ratio: 4 / 5; margin: 0.5rem 0 0; }
}

/* ----- Interior page hero ------------------------------------------------ */
.page-hero { padding: clamp(2.75rem, 5vw, 4.25rem) 0 clamp(1.75rem, 3vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.04; max-width: 20ch; }
.page-hero .lead { margin: 1.25rem 0 1.75rem; max-width: 60ch; }
.page-hero .kicker { margin-bottom: 0.9rem; }

/* generic prose column within a section */
.measure { max-width: 66ch; }
.measure h3 { font-size: 1.25rem; margin-top: 2rem; }
.measure h3:first-child { margin-top: 0; }
.list-plain { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.85rem; }
.list-plain li { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; color: var(--muted); }
.list-plain .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--copper); margin-top: 0.62rem; flex: none; }
.list-plain b { color: var(--navy); }

/* breadcrumbs */
.crumbs { font-size: 0.85rem; color: var(--muted); padding-top: 1.4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--copper-deep); }
.crumbs .sep { margin: 0 0.5rem; color: var(--copper); }
.crumbs span[aria-current] { color: var(--navy); font-weight: 600; }

/* facts table */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 0.72rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.facts th { color: var(--muted); font-weight: 600; width: 36%; white-space: nowrap; }
.facts td { color: var(--navy); font-weight: 500; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.65rem; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1rem; }

/* two-column content */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.nav-links a[aria-current="page"] { color: var(--copper-deep); }

/* blog + article */
.post-cat { font-size: 0.8rem; font-weight: 600; color: var(--copper-deep); margin-bottom: 0.4rem; }
.post-meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.75rem; }
.post-meta a { color: var(--copper-deep); text-decoration: none; }
.article { max-width: 720px; }
.article p, .article li { font-size: 1.075rem; line-height: 1.7; }
.article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.4rem 0 0.75rem; }
.article h3 { font-size: 1.2rem; margin: 1.7rem 0 0.5rem; }
.article ul { padding-left: 0; list-style: none; margin: 0 0 1.25rem; }
.article ul li { position: relative; padding-left: 1.3rem; margin-bottom: 0.7rem; color: var(--ink); }
.article ul li::before { content: ""; position: absolute; left: 0; top: 0.62rem; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.card-link { text-decoration: none; display: block; color: inherit; }
.card-link:hover h3 { color: var(--copper-deep); }
.media-ph { border: 2px dashed var(--line); border-radius: var(--radius); background: var(--cream); color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; font-weight: 600; margin: 1.75rem 0; font-size: 0.95rem; }
.media-ph.video { aspect-ratio: 16 / 9; }
.media-ph.img { min-height: 220px; }
.pullquote { border-left: 3px solid var(--copper); padding: 0.3rem 0 0.3rem 1.25rem; margin: 1.75rem 0; font-size: 1.15rem; line-height: 1.5; color: var(--navy); font-weight: 500; }
.figure { margin: 0; }
.figure-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.figure figcaption { color: var(--muted); font-size: 0.88rem; margin-top: 0.6rem; }
.figure-narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.table-scroll { overflow-x: auto; }
.cmp-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 0.95rem; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border: 1px solid var(--line); }
.cmp-table thead th { background: var(--navy); color: var(--cream); font-weight: 700; }
.cmp-table tbody th { color: var(--navy); font-weight: 700; width: 20%; background: var(--cream-200); }
.cmp-table td { color: var(--muted); background: var(--white); }
.panel.script-no { border-left: 3px solid #B4542E; }
.panel.script-yes { border-left: 3px solid #2E8B5E; }
.script-label { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; }
.script-label.no { color: #B4542E; }
.script-label.yes { color: #2E8B5E; }
.script-quote { font-size: 1.1rem; line-height: 1.45; color: var(--navy); font-weight: 500; margin: 0; }
/* flow graphic */
.flowgraphic { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); margin: 0; }
.flowgraphic-title { font-weight: 700; color: var(--navy); font-size: clamp(1.1rem, 2vw, 1.3rem); margin-bottom: 1.5rem; letter-spacing: -0.01em; }
.flowrow { display: flex; align-items: stretch; gap: 1.25rem; flex-wrap: wrap; }
.flowstep { flex: 1 1 220px; background: var(--navy); color: var(--cream); border-radius: var(--radius-sm); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; justify-content: center; }
.flowstep.accent { background: var(--copper); color: var(--navy); }
.flowstep-num { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.flowstep .flowstep-label { font-size: 0.95rem; font-weight: 500; color: var(--muted-on-navy); }
.flowstep.accent .flowstep-label { color: var(--navy); }
.flowop { flex: 0 0 auto; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; color: var(--copper-deep); padding: 0 0.25rem; }
.flowop-arrow { width: 46px; height: 24px; }
.flowop-sign { font-size: 1.4rem; font-weight: 800; color: var(--copper-deep); line-height: 1; }
.flowop-label { font-size: 0.78rem; color: var(--muted); text-align: center; max-width: 120px; line-height: 1.3; }
.flowgraphic-note { font-size: 0.82rem; color: var(--muted); margin: 1.25rem 0 0; }
@media (max-width: 640px) { .flowrow { flex-direction: column; } .flowop-arrow { transform: rotate(90deg); } }
/* cycle graphic */
.cyclegraphic { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); margin: 0; }
.cyclerow { display: flex; align-items: stretch; gap: 0.6rem; flex-wrap: nowrap; }
.cyclestep { flex: 1 1 150px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; text-align: center; align-items: center; justify-content: center; }
.cyclestep.accent { background: var(--copper); border-color: var(--copper); }
.cyclestep-k { font-size: 1.15rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; line-height: 1.1; }
.cyclestep-d { font-size: 0.82rem; color: var(--muted); }
.cyclestep.accent .cyclestep-k, .cyclestep.accent .cyclestep-d { color: var(--navy); }
.cyclearrow { flex: 0 0 auto; align-self: center; color: var(--copper-deep); display: flex; align-items: center; }
.cyclearrow svg { width: 22px; height: 16px; }
.cycle-note { font-size: 0.85rem; color: var(--muted); margin: 1.25rem 0 0; text-align: center; }
@media (max-width: 760px) { .cyclerow { flex-direction: column; } .cyclestep { flex-basis: auto; width: 100%; } .cyclearrow svg { transform: rotate(90deg); } }
/* lever graphic (2x2) */
.levergraphic { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); margin: 0; }
.levergrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.leverstep { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--copper); border-radius: var(--radius-sm); padding: 1.35rem 1.4rem; display: flex; flex-direction: column; gap: 0.45rem; }
.leverstep-k { font-size: 1.08rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; line-height: 1.2; }
.leverstep-d { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 680px) { .levergrid { grid-template-columns: 1fr; } }
.typegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.typegrid .leverstep-d strong { color: var(--navy); font-weight: 700; }
@media (max-width: 760px) { .typegrid { grid-template-columns: 1fr; } }
/* do / don't graphic */
.ddgraphic { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); margin: 0; }
.ddgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ddcol { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.5rem 1.4rem; }
.ddcol.dont { border-top: 4px solid #B4542E; }
.ddcol.do { border-top: 4px solid #2E8B5E; }
.ddhead { font-size: 1.15rem; font-weight: 800; margin: 0 0 1rem; letter-spacing: -0.01em; }
.ddhead.dont { color: #B4542E; }
.ddhead.do { color: #2E8B5E; }
.ddlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.ddlist li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--navy); line-height: 1.4; }
.ddmark { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; margin-top: 0.05rem; }
.ddmark.x { background: rgba(180, 84, 46, 0.14); color: #B4542E; }
.ddmark.c { background: rgba(46, 139, 94, 0.14); color: #2E8B5E; }
@media (max-width: 680px) { .ddgrid { grid-template-columns: 1fr; } }
/* rate snapshot (Friday Market Update) */
.ratesnap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 0.5rem; }
.ratetile { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem 1rem; text-align: center; }
.ratetile-l { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.4rem; }
.ratetile-n { display: block; font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; line-height: 1; }
.ratetile-c { display: block; font-size: 0.85rem; font-weight: 600; margin-top: 0.45rem; }
.ratetile-c.up { color: #B4542E; }
.ratetile-c.down { color: #2E8B5E; }
.ratetile-c.flat { color: var(--muted); font-weight: 500; }
.ratesnap-src { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 620px) { .ratesnap { grid-template-columns: 1fr; } }
/* ---- Listing page ---- */
.listing-hero { background: var(--navy); color: var(--white); padding: 2.5rem 0; }
.listing-hero .eyebrow { color: var(--copper); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; }
.listing-hero h1 { color: var(--white); margin: 0.35rem 0 0.25rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.listing-hero .addr { color: var(--muted-on-navy); font-size: 1.05rem; }
.listing-price { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: var(--white); margin: 1rem 0 0.25rem; letter-spacing: -0.02em; }
.listing-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }
.listing-stats div { display: flex; flex-direction: column; }
.listing-stats .k { font-size: 1.3rem; font-weight: 800; color: var(--white); }
.listing-stats .l { font-size: 0.8rem; color: var(--muted-on-navy); }
.listing-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0.75rem; margin: 1.75rem 0 0; }
.listing-gallery .ph-img { background: var(--cream-200); border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 150px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.85rem; }
.listing-gallery .ph-img.big { grid-row: span 2; min-height: 315px; }
@media (max-width: 680px) { .listing-gallery { grid-template-columns: 1fr 1fr; } .listing-gallery .ph-img.big { grid-column: span 2; grid-row: auto; min-height: 200px; } }
/* ---- Buydown calculator ---- */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 1px 3px rgba(14,26,64,0.05); }
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; }
.calc-field { display: flex; flex-direction: column; gap: 0.35rem; }
.calc-field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.calc-field input { padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--cream); color: var(--navy); }
.calc-field input:focus { outline: 2px solid var(--copper); border-color: var(--copper); }
.calc-toggle { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0.5rem; }
.calc-chip { padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.15s; }
.calc-chip:hover { border-color: var(--copper); }
.calc-chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.calc-note-inline { font-size: 0.85rem; color: var(--muted); margin: 0.35rem 0 0; }
.calc-results { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.calc-headline { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.calc-headline .big { font-size: 2.3rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.calc-headline .sub { color: var(--muted); font-size: 0.95rem; }
.calc-years { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.calc-year { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 0.7rem 0.9rem; background: var(--cream); border-radius: var(--radius-sm); }
.calc-year .yl { font-weight: 700; color: var(--navy); }
.calc-year .yr { font-size: 0.85rem; color: var(--muted); }
.calc-year .yp { font-weight: 800; color: var(--navy); font-size: 1.05rem; text-align: right; }
.calc-year.note { background: var(--white); border: 1px dashed var(--line); }
.calc-cost { margin-top: 1.25rem; background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--copper); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.calc-cost strong { color: var(--navy); font-size: 1.15rem; }
.calc-disc { font-size: 0.8rem; color: var(--muted); margin-top: 1.25rem; line-height: 1.5; }
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.calc-row:last-child { border-bottom: none; }
.calc-row .cv { font-weight: 700; color: var(--navy); }
.calc-section-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin: 1.5rem 0 0.75rem; }
.calc-extra { display: none; }
.calc-extra.show { display: grid; }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } }
.ph-img svg { width: 100%; height: 100%; display: block; border-radius: var(--radius-sm); }
.listing-gallery .ph-img { position: relative; overflow: hidden; cursor: pointer; }
.listing-gallery .ph-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.listing-gallery .ph-img:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(14,26,64,0.93); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius-sm); box-shadow: 0 12px 48px rgba(0,0,0,0.45); }
.lb-close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; }
.ph-icon { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: var(--muted); }
.ph-icon svg { width: 26px; height: 26px; }
.agent-card { display: flex; gap: 1rem; align-items: center; }
.agent-avatar { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.agent-card .an { font-weight: 700; color: var(--navy); }
.agent-card .am { font-size: 0.9rem; color: var(--muted); }
/* ---- Buyer path stepper ---- */
.pathfig { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2.25rem) clamp(1rem,2vw,1.5rem); margin: 0; }
.pathsteps { display: flex; margin: 0; padding: 0; list-style: none; }
.pathstep { flex: 1; text-align: center; position: relative; min-width: 0; }
.pathstep::before { content: ''; position: absolute; top: 18px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.pathstep:first-child::before { display: none; }
.pathstep.done::before, .pathstep.active::before { background: var(--copper); }
.pathnum { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 0.6rem; }
.pathstep.active .pathnum { background: var(--copper); border-color: var(--copper); color: var(--navy); }
.pathlabel { font-size: 0.85rem; color: var(--muted); font-weight: 600; line-height: 1.25; padding: 0 0.25rem; }
.pathstep.active .pathlabel { color: var(--navy); }
@media (max-width: 540px) { .pathlabel { font-size: 0.72rem; } .pathnum { width: 32px; height: 32px; } .pathstep::before { top: 15px; } }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 1.75rem 0; background: var(--cream); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 820px) { .cols-2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } .facts th { width: 42%; } }

/* ----- Stat band --------------------------------------------------------- */
.statband { background: var(--navy); color: var(--cream); }
.stat-row { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; padding: 2.25rem 24px; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--cream); letter-spacing: -0.02em; line-height: 1; }
.stat-num em { color: var(--copper); font-style: normal; }
.stat-label { font-size: 0.9rem; color: var(--muted-on-navy); font-weight: 500; }

/* ----- Doors (audience chooser) ------------------------------------------ */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.door { padding: 2.25rem 1.75rem 2.25rem 0; border-right: 1px solid var(--line); }
.door:last-child { border-right: 0; padding-right: 0; }
.door + .door { padding-left: 1.75rem; }
.door h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.door p { color: var(--muted); margin-bottom: 1.5rem; font-size: 1.02rem; }

/* ----- Feature / content blocks ------------------------------------------ */
.prose { max-width: 60ch; }
.prose p { margin-bottom: 1.15rem; }
.quote-head { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 18ch; }

/* ----- Steps (sequence) -------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 0.5rem; }
.step { }
.step-n { font-size: 1rem; font-weight: 700; color: var(--copper-deep); display: block; margin-bottom: 0.85rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }
.steps.steps-4 { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps.steps-4 .step h3 { font-size: 1.1rem; }
.steps.steps-4 .step p { font-size: 0.92rem; }
@media (max-width: 920px) { .steps.steps-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps.steps-4 { grid-template-columns: 1fr; } }
.steps.steps-5 { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.steps.steps-5 .step h3 { font-size: 1.1rem; }
.steps.steps-5 .step p { font-size: 0.92rem; }
@media (max-width: 920px) { .steps.steps-5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps.steps-5 { grid-template-columns: 1fr; } }

/* ----- Promise / list cards ---------------------------------------------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.75rem); }
.section-cream .panel { background: var(--white); }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.promise-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.promise-list .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--copper); margin-top: 0.55rem; }
.promise-list b { color: var(--navy); font-weight: 700; }
.promise-list span.txt { color: var(--muted); }
.promise-list span.txt b { color: var(--navy); }

/* two-column feature */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

/* ----- Credibility inline line ------------------------------------------- */
.cred-line { display: inline-flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; font-weight: 600; color: var(--navy); }
.cred-line .sep { color: var(--copper); }

/* ----- FAQ --------------------------------------------------------------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 1.3rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--copper-deep); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-a { padding-top: 0.85rem; color: var(--muted); max-width: 70ch; }

/* ----- Forms (HubSpot placeholder) --------------------------------------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.form .field { margin-bottom: 1rem; }
.form label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.35rem; }
.form input, .form select, .form textarea { width: 100%; font-family: inherit; font-size: 1rem; padding: 0.75rem 0.85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); color: var(--ink); }
.form textarea { min-height: 96px; resize: vertical; }
.form .hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.75rem; }
.form-note { font-size: 0.82rem; color: var(--muted); background: var(--cream); border: 1px dashed var(--line); border-radius: 8px; padding: 0.75rem 0.9rem; margin-bottom: 1.25rem; }

/* ----- Placeholder flag (editor-only notes) ------------------------------ */
.ph { background: rgba(198, 134, 66, 0.14); color: var(--copper-deep); font-weight: 600; padding: 0 0.3em; border-radius: 3px; }

/* ----- Final CTA --------------------------------------------------------- */
.cta-final { text-align: left; }
.cta-final h2 { max-width: 20ch; }

/* ----- Footer ------------------------------------------------------------ */
.site-footer { background: var(--navy); color: var(--cream); padding: clamp(3rem, 5vw, 4.5rem) 0 2.25rem; }
.qr-apply { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; max-width: 520px; }
.qr-apply img { flex: 0 0 auto; width: 150px; height: 150px; border-radius: 6px; }
.qr-apply .qr-apply-h { font-weight: 700; color: var(--navy); margin: 0 0 0.25rem; }
.qr-apply p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 520px) { .qr-apply { flex-direction: column; text-align: center; align-items: center; } }
.disclosure { background: var(--cream); color: var(--navy); border-top: 3px solid var(--copper); padding: 2.25rem 0; }
.disclosure-logos { display: flex; align-items: center; gap: 2.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.nexa-logo { height: 46px; width: auto; }
.eh-logo { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.78rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.03em; }
.eh-mark { width: 32px; height: 29px; flex: 0 0 auto; }
.disclosure-text p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin: 0 0 0.65rem; }
.disclosure-text p:last-child { margin-bottom: 0; }
.disclosure-text strong { color: var(--navy); font-weight: 700; }
.disclosure-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.15rem; }
.disclosure-links a { color: var(--copper-deep); text-decoration: none; font-weight: 600; }
.disclosure-links a:hover { text-decoration: underline; }
@media (max-width: 560px) { .disclosure-logos { gap: 1.25rem 1.75rem; } .nexa-logo { height: 38px; } }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .brand { color: var(--cream); display: inline-block; margin-bottom: 0.9rem; }
.footer-brand .brand b { color: var(--copper); }
.footer-brand p { color: var(--muted-on-navy); max-width: 32ch; margin-bottom: 1.25rem; }
.footer-contact a { color: var(--cream); text-decoration: none; font-weight: 600; display: inline-block; margin-bottom: 0.4rem; }
.footer-contact a:hover { color: var(--copper); }
.footer-col h4 { color: var(--cream); font-size: 0.82rem; text-transform: none; font-weight: 700; letter-spacing: 0; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--muted-on-navy); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--copper); }
.footer-social { display: flex; gap: 0.9rem; margin-top: 0.5rem; }
.footer-social a { color: var(--cream); border: 1px solid var(--line-on-navy); border-radius: 8px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 0.8rem; font-weight: 600; }
.footer-social a:hover { border-color: var(--copper); color: var(--copper); }
.footer-policy { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 2.5rem 0 1.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line-on-navy); }
.footer-policy a { color: var(--muted-on-navy); text-decoration: none; font-size: 0.85rem; }
.footer-policy a:hover { color: var(--copper); }
.compliance { font-size: 0.82rem; color: var(--muted-on-navy); line-height: 1.6; max-width: 80ch; }
.compliance .eho { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--cream); margin-bottom: 0.5rem; }
.compliance .eho-mark { border: 1.5px solid var(--cream); border-radius: 4px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; }

/* ----- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 0.5rem 24px 1.25rem; }
  .site-header.open .nav-links li { width: 100%; }
  .site-header.open .nav-links a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); width: 100%; }
  .doors { grid-template-columns: 1fr; }
  .door { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.75rem 0; }
  .door:last-child { border-bottom: 0; }
  .door + .door { padding-left: 0; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .nav-right .btn { width: auto; }
}

/* ----- Motion ------------------------------------------------------------ */
.card { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(14, 26, 64, 0.09); border-color: #D9CDB6; }
.site-header { transition: box-shadow 0.2s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(14, 26, 64, 0.07); }

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .hero-copy,
  html.js .hero-portrait,
  html.js .page-hero > .container:not(.hero-split) { opacity: 0; animation: tdm-rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards; }
  html.js .hero-portrait { animation-delay: 0.12s; }
}
@keyframes tdm-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
