/* sellthecape.com — black & white coastal design system */
:root {
  --ink: #000000;
  --ink-2: #1a1a1a;
  --text: #111111;
  --muted: #5e5e5e;
  --line: #e2e2e2;
  --line-2: #cfcfcf;
  --paper: #ffffff;
  --mist: #f5f5f4;
  --white: #ffffff;
  /* legacy aliases used by content fragments */
  --navy: var(--ink); --navy-2: var(--ink-2); --sea: var(--ink); --sand: var(--paper); --sand-2: var(--mist);
  --shingle: var(--muted); --grass: var(--ink); --buoy: var(--ink);
  --radius: 0px;
  --shadow: none;
  --max: 1200px;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--sans);
  --display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.7; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0 0 .75rem; font-weight: 400; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 3rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; font-weight: 600; letter-spacing: -0.01em; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
::selection { background: #000; color: #fff; }

/* labels */
.eyebrow, .toc strong, .crumbs, .brand-sub, table.data th, .badge, .site-footer h4 {
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600;
}
.eyebrow { color: var(--muted); margin-bottom: .75rem; }

/* top compliance bar */
.topbar { background: var(--ink); color: #cfcfcf; font-size: .78rem; letter-spacing: .02em; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; padding-top: .5rem; padding-bottom: .5rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }

/* header / nav */
.site-header { background: var(--paper); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.brand-name { font-family: var(--display); font-size: 1.35rem; color: var(--ink); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.brand-name span { font-weight: 300; }
.brand-sub { color: var(--muted); margin-top: .35rem; font-size: .62rem; letter-spacing: .2em; }
.nav { display: flex; gap: .1rem; align-items: center; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: .82rem; font-weight: 500; padding: .5rem .55rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav a.btn { color: #fff; border-bottom: 0; margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); padding: .45rem .8rem; font: 600 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; color: var(--ink); }
@media (max-width: 1300px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: .5rem 24px 1.25rem; border-bottom: 1px solid var(--ink); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin: 1rem 0 0; text-align: center; }
}

/* buttons */
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: .85rem 1.6rem; border: 1px solid var(--ink); cursor: pointer; font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background .15s, color .15s; }
.btn:hover { background: #fff; color: var(--ink); text-decoration: none; }
.btn.secondary { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* hero */
.hero { background: var(--ink); color: #fff; padding: 5.5rem 0 5rem; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lede { color: #d6d6d6; max-width: 620px; font-size: 1.15rem; }
.hero .eyebrow { color: #bdbdbd; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero .btn { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn:hover { background: transparent; color: #fff; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.hero .btn.ghost:hover { background: #fff; color: var(--ink); }
.hero-art { position: absolute; right: -40px; bottom: 0; width: min(620px, 60vw); height: auto; opacity: .9; pointer-events: none; }
@media (max-width: 900px) { .hero-art { opacity: .28; width: 100%; right: -10%; } }
.hero-waves { display: none; }

.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 3.25rem 0 2.5rem; }
.page-head .lede { font-size: 1.15rem; color: var(--muted); max-width: 760px; margin: 0; }
.crumbs { color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

main { padding: 0 0 4rem; }
.content { padding-top: 2rem; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* layout with sidebar TOC */
.with-toc { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1000px) { .with-toc { grid-template-columns: 230px 1fr; } }
.toc { font-size: .88rem; }
@media (min-width: 1000px) { .toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; } }
.toc strong { display: block; color: var(--ink); margin-bottom: .75rem; }
.toc ol, .toc ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-2); }
.toc li { margin: 0; }
.toc a { display: block; padding: .3rem .9rem; color: var(--muted); text-decoration: none; border-left: 1px solid transparent; margin-left: -1px; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }

/* cards */
.card-grid { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 1.5rem 0 2rem; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.card { background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.75rem 1.5rem 1.6rem; }
.card h3 { margin-top: 0; font-size: 1.12rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: var(--text); transition: background .15s, color .15s; }
a.card:hover { background: var(--ink); color: #fff; }
a.card:hover h3, a.card:hover p, a.card:hover .more { color: #fff; }
a.card .more { color: var(--ink); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; display: inline-block; margin-top: .4rem; }
.card .icon { display: none; }

/* callouts */
.callout { padding: 1.1rem 1.3rem; margin: 1.5rem 0; border: 0; border-left: 3px solid var(--ink); background: var(--mist); }
.callout > :last-child { margin-bottom: 0; }
.callout strong.label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; }
.callout.warn { background: #fff; border: 1px solid var(--ink); border-left-width: 3px; }
.callout.vet { background: var(--ink); color: #fff; border-left-color: #fff; }
.callout.vet a { color: #fff; }

/* steps */
ol.steps { counter-reset: step; list-style: none; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 1.5rem 3.5rem; margin: 0; }
ol.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .05rem; font-weight: 300; font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
ol.steps > li::after { content: ""; position: absolute; left: 0; right: 0; bottom: .75rem; height: 1px; background: var(--line); }
ol.steps > li:last-child::after { display: none; }
ol.steps > li > h3, ol.steps > li > strong:first-child { margin-top: 0; display: block; }

/* checklist */
ul.checklist { list-style: none; padding: 0; }
ul.checklist li { padding-left: 1.8rem; position: relative; }
ul.checklist li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .8rem; height: .8rem; border: 1px solid var(--ink); }

/* link list */
ul.link-list { list-style: none; padding: 0; margin: 1rem 0 1.75rem; border-top: 1px solid var(--ink); }
ul.link-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); margin: 0; }
ul.link-list a { font-weight: 600; }
ul.link-list .src { display: block; font-size: .88rem; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; border-top: 1px solid var(--ink); }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.data th, table.data td { padding: .75rem .8rem .75rem 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--ink); white-space: nowrap; background: none; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 0; }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .95rem; font-weight: 300; font-size: 1.4rem; }
.faq details[open] summary::after { content: "–"; }
.faq summary::before { display: none; }
.faq details > div { padding: 0 0 1.25rem; color: var(--text); }

.badge { display: inline-block; font-size: .64rem; padding: .2rem .55rem; border: 1px solid var(--ink); color: var(--ink); background: #fff; vertical-align: middle; }
.badge.red { background: var(--ink); color: #fff; }
.badge.green, .badge.blue { background: #fff; color: var(--ink); }

.reviewed { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1rem; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: 2.5rem; margin: 3rem 0 0; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }
.cta-band h2, .cta-band h3 { color: #fff; margin: 0 0 .35rem; font-weight: 400; font-size: 1.5rem; }
.cta-band p { color: #cfcfcf; margin: 0; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: transparent; color: #fff; }

/* sections */
.section { padding: 4rem 0 0; }
.section-alt { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4rem 0; margin-top: 4rem; }
.section h2:first-of-type, .section-alt h2 { margin-top: 0; }

/* agent card */
.agent-card { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: center; }
.agent-card img.agent-photo { width: 260px; height: 320px; object-fit: cover; object-position: center top; filter: grayscale(100%) contrast(1.05); }
.agent-card h2 { margin: 0 0 .4rem; font-weight: 400; }
.agent-mark { width: 140px; height: 140px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 4rem; }
@media (max-width: 640px) { .agent-card { grid-template-columns: 1fr; gap: 1.5rem; } .agent-card img.agent-photo { width: 100%; height: auto; max-width: 360px; } }

/* forms */
form.lead-form { background: var(--paper); border-top: 1px solid var(--ink); padding: 2rem 0 0; }
.form-grid { display: grid; gap: 1.25rem 1.5rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .45rem; color: var(--ink); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .1rem; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; color: var(--text); }
select { padding-right: 1.5rem; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
textarea { min-height: 120px; resize: vertical; border: 1px solid var(--line-2); padding: .75rem; }
textarea:focus { border-color: var(--ink); }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--muted); text-transform: none; letter-spacing: 0; }
.checkbox input { width: auto; margin-top: .3rem; accent-color: #000; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok, .form-status.err { color: var(--ink); border-left: 3px solid var(--ink); padding-left: .8rem; }

/* footer */
.site-footer { background: var(--ink); color: #bdbdbd; padding: 4rem 0 2rem; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer ul a { color: #bdbdbd; text-decoration: none; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.site-footer .direct { color: #fff; font-weight: 500; }
.site-footer .direct a { font-size: 1.1rem; text-decoration: none; }
.office-ph { color: #8a8a8a; font-size: .78rem; }
.legal { border-top: 1px solid #333; margin-top: 3rem; padding-top: 1.5rem; font-size: .76rem; color: #8f8f8f; }
.legal p { margin: 0 0 .6rem; }
.eho { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }

.sticky-call { display: none; }
@media (max-width: 700px) {
  .sticky-call { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--ink); border-top: 1px solid #333; }
  .sticky-call a { flex: 1; text-align: center; color: #fff; text-decoration: none; font-weight: 600; padding: .95rem 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
  .sticky-call a + a { border-left: 1px solid #333; background: #fff; color: var(--ink); }
  body { padding-bottom: 54px; }
}

/* misc */
.muted { color: var(--muted); }
.small { font-size: .86rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.stat-row { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 1.5rem 0; border-top: 1px solid var(--ink); }
.stat { padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid var(--line); }
.stat b { display: block; font-size: 1.8rem; font-weight: 300; color: var(--ink); }
.stat span { font-size: .85rem; color: var(--muted); }
.town-grid a.card h3 { margin-bottom: .2rem; }

/* Cape Cod line-art band */
.cape-rule { display: block; width: 100%; height: 56px; color: var(--ink); margin: 0; }
.brand-sub { white-space: nowrap; letter-spacing: .16em; }
.nav-toggle { white-space: nowrap; }
@media (max-width: 420px) { .brand-name { font-size: 1.15rem; letter-spacing: .18em; } .brand-sub { font-size: .56rem; letter-spacing: .1em; } }

/* calculators */
.calc { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin: 1rem 0 2rem; }
@media (min-width: 960px) { .calc { grid-template-columns: 1.15fr 1fr; align-items: start; } .calc-out { position: sticky; top: 100px; } }
.calc fieldset { border: 0; border-top: 1px solid var(--ink); padding: 1.25rem 0 .5rem; margin: 0 0 1rem; }
.calc legend { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; padding: 0 .5rem 0 0; }
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.calc .row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .calc .row, .calc .row.three { grid-template-columns: 1fr; } }
.calc .field { margin-bottom: 1rem; }
.calc .hint { display: block; font-size: .78rem; color: var(--muted); margin-top: .3rem; line-height: 1.4; }
.calc .opt { display: flex; gap: 1.25rem; flex-wrap: wrap; margin: .25rem 0 1rem; }
.calc .opt label, .calc label.inline { display: inline-flex; align-items: center; gap: .45rem; text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 500; margin: 0; }
.calc .opt input, .calc label.inline input { width: auto; accent-color: #000; }
.calc-out { background: var(--ink); color: #fff; padding: 2rem; }
.calc-out .big { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; margin: .25rem 0 .5rem; color: #fff; }
.calc-out .eyebrow { color: #bdbdbd; margin: 0; }
.calc-out table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .93rem; }
.calc-out td, .calc-out th { padding: .55rem 0; border-bottom: 1px solid #333; text-align: left; color: #e6e6e6; }
.calc-out tr.grp th { color: #fff; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding-top: 1rem; border-bottom-color: #555; }
.calc-out .num { text-align: right; font-variant-numeric: tabular-nums; }
.calc-out .meta { font-size: .85rem; color: #bdbdbd; margin: .3rem 0; }
.calc-out .meta b { color: #fff; font-weight: 600; }
.calc-out .btn { background: #fff; color: #000; border-color: #fff; }
.calc-out .btn:hover { background: transparent; color: #fff; }
.calc-email { border-top: 1px solid var(--ink); margin-top: 2.5rem; padding-top: 1.5rem; }
.disclaimer { font-size: .8rem; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: .9rem; margin-top: 1.5rem; }
.page-head .wrap { position: relative; }
.head-art { position: absolute; right: 24px; bottom: -2.5rem; width: 300px; height: auto; pointer-events: none; }
.page-head h1, .page-head .lede { max-width: calc(100% - 330px); }
@media (max-width: 1000px) { .head-art { display: none; } .page-head h1, .page-head .lede { max-width: none; } }
figure.diagram { margin: 2rem 0 2.5rem; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.diagram-scroll { overflow-x: auto; }
.diagram-scroll svg { width: 100%; min-width: 620px; height: auto; display: block; }
figure.diagram figcaption { font-size: .82rem; color: var(--muted); margin-top: .75rem; }
.map-fig { margin: 2.5rem 0 0; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.cape-map { width: 100%; max-width: 900px; height: auto; display: block; margin: 0 auto; }
.map-town circle { fill: #000; transition: r .15s; }
.map-town text { font-size: 15px; font-weight: 600; fill: #000; letter-spacing: .02em; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.map-town:hover circle { r: 7; }
.map-town:hover text { text-decoration: underline; }
.map-fig figcaption { text-align: center; font-size: .8rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.cape-map a, .cape-map a text { text-decoration: none; }
.cape-map { max-width: 760px; }

/* featured homes */
.home-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin: 1.5rem 0 1rem; }
.home-card { border: 1px solid var(--ink); display: flex; flex-direction: column; background: #fff; }
.home-art { display: block; position: relative; background: var(--mist); border-bottom: 1px solid var(--ink); padding: 1rem 1rem 0; }
.home-art svg { width: 100%; height: auto; display: block; }
.home-status { position: absolute; top: 12px; left: 12px; background: #000; color: #fff; font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: .3rem .6rem; }
.home-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.home-body .eyebrow { margin-bottom: .35rem; }
.home-body h3 { margin: 0; font-size: 1.4rem; font-weight: 500; }
.home-price { font-size: 1.6rem; font-weight: 300; letter-spacing: -.02em; margin: .2rem 0 .3rem; }
.home-head { color: var(--muted); margin-bottom: .6rem; }
.home-hl { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .9rem; }
.home-hl li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.courtesy { font-size: .8rem; font-weight: 600; margin: 0 0 .3rem; }
.home-meta { font-size: .74rem; color: var(--muted); }
.home-actions { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; padding-top: .5rem; }
.home-actions .btn { padding: .7rem 1rem; font-size: .7rem; }
.home-art.has-photo { padding: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.home-art.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.home-art.has-photo:hover img { transform: scale(1.03); }
.home-art.has-photo .home-fallback { display: none; }
.home-fallback { display: block; }
.open-house { display: inline-block; align-self: flex-start; border: 1px solid #000; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .6rem; margin: 0 0 .8rem; }
@media (min-width: 1100px) { .home-grid.four { grid-template-columns: repeat(4, 1fr); } }
