/* BuySellVest homepage.
   Order: tokens, base, shared components, header, sections (page order), footer, responsive. */

/* Metric-matched fallbacks so text does not jump when the web fonts arrive. */
@font-face {
  font-family: "Libre Caslon Text Fallback"; src: local("Georgia");
  size-adjust: 107.13%; ascent-override: 90.54%; descent-override: 24.27%; line-gap-override: 0%;
}
@font-face {
  font-family: "Public Sans Fallback"; src: local("Arial");
  size-adjust: 103.03%; ascent-override: 92.2%; descent-override: 21.84%; line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand, sampled from the logo */
  --navy: #0A2D45;
  --navy-deep: #072235;
  --teal: #00787A;
  --teal-soft: #E2F0EF;
  --mint: #8ED6CB;
  /* Action color: the logo teal, darkened on hover */
  --action: var(--teal);
  --action-dark: #005F61;
  /* Brass: star ratings only */
  --brass: #B5852F;
  /* Neutrals */
  --paper: #F2F6F7;
  --white: #fff;
  --ink: #14212B;
  --muted: #51606B;
  --line: #DCE4E8;

  --serif: "Libre Caslon Text", "Libre Caslon Text Fallback", Georgia, serif;
  --sans: "Public Sans", "Public Sans Fallback", Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(7, 34, 53, .16);
  --gap: 24px;
  --pad: 72px;

  /* Band-scoped colors. .band--paper and .band--navy override these. */
  --bg: var(--white);
  --text: var(--ink);
  --head: var(--navy);
  --soft: var(--muted);
  --card: var(--white);
  --card-line: var(--line);
  --accent: var(--teal);
  --tile: var(--teal-soft);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
[id] { scroll-margin-top: 92px; }

h1, h2 { font-family: var(--serif); font-weight: 700; color: var(--head); text-wrap: balance; }
h1 { font-size: 52px; line-height: 1.12; letter-spacing: -.01em; }
h2 { font-size: 34px; line-height: 1.2; max-width: 22em; margin-bottom: 32px; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--head); text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .band--navy :focus-visible, .site-footer :focus-visible, .mobilebar :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 14px; background: var(--white); border-radius: var(--radius-sm); }
.sprite { position: absolute; }

/* ---------- Layout ---------- */
.wrap { max-width: 1208px; margin-inline: auto; padding-inline: 24px; }
.band { padding-block: var(--pad); background: var(--bg); color: var(--text); }
.band--paper { --bg: var(--paper); }
.band--navy {
  --bg: var(--navy); --text: var(--white); --head: var(--white); --soft: rgba(255, 255, 255, .82);
  --card: rgba(255, 255, 255, .06); --card-line: rgba(255, 255, 255, .18);
  --accent: var(--mint); --tile: rgba(255, 255, 255, .1);
}
/* :where keeps this at single-class weight so component text colors can override it. */
.band :where(p) { color: var(--soft); }
.center { text-align: center; margin-inline: auto; }
h2.center { max-width: none; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Section heading with something beside it */
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; margin-bottom: 32px; }
.head-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 36px; }
.head-row h2, .head-split h2 { margin-bottom: 0; }
.head-row p { font-size: 17px; }
.head-split p { font-size: 17px; }

/* ---------- Shared components ---------- */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; stroke-width: 2; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--radius-sm);
  background: var(--action); color: var(--white); font-weight: 700; font-size: 16px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--action-dark); }
.btn:disabled { opacity: .7; cursor: default; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--outline { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn--outline:hover { background: rgba(255, 255, 255, .1); }

.call-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; text-decoration: none; }
.call-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.card { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 6px; }
.icon-tile { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 10px; background: var(--tile); color: var(--accent); }


.stars { display: inline-flex; gap: 2px; color: var(--brass); }
.stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }

.checklist li { display: flex; gap: 10px; padding: 5px 0; }
.checklist .icon { margin-top: 4px; color: var(--accent); }
.checklist .tradeoff, .checklist .tradeoff .icon { color: var(--soft); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; max-width: 1208px; height: 72px; margin-inline: auto; padding-inline: 24px; }
/* The logo file has transparent padding around the mark; the margins trim it. */
.brand img { height: 62px; width: auto; margin: -11px -6px -13px; }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu a {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; border-radius: 6px;
  background: none; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.menu a:hover { color: var(--teal); }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; color: var(--navy); font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-phone .icon { color: var(--teal); }
.nav-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.burger { display: none; padding: 10px; margin-right: -10px; border: 0; background: none; color: var(--navy); cursor: pointer; }
.mnav { display: none; flex-direction: column; padding: 4px 24px 20px; border-top: 1px solid var(--line); }
.mnav.open { display: flex; }
.mnav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }

/* ---------- Hero and lead form ---------- */
.hero { position: relative; isolation: isolate; background: var(--navy); color: var(--white); --head: var(--white); }
.hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* Readability overlay: heavier on the left, where the copy sits. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 45, 69, .96) 0%, rgba(10, 45, 69, .88) 38%, rgba(10, 45, 69, .5) 68%, rgba(10, 45, 69, .2) 100%);
}
.hero .wrap { padding-block: 64px; }
.hero-copy { max-width: 760px; }
/* Breaks the headline between its two sentences where there is room for each on one line. */
.br-wide { display: none; }
@media (min-width: 881px) { .br-wide { display: inline; } }
.hero-place { margin-bottom: 14px; color: var(--mint); font-size: 15px; font-weight: 600; }
.hero-sub { max-width: 32em; margin: 18px 0 28px; font-size: 21px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.hero-note { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.hero-phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--white); font-size: 18px; font-weight: 700; text-decoration: none; }
.hero-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-phone .icon { color: var(--mint); }

.lead-form { position: relative; max-width: 620px; }
/* The button sits inset in the white bar so white surrounds it on navy bands and on the photo. */
.addr-bar { display: flex; gap: 6px; padding: 6px; overflow: hidden; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); }
.addr-bar:focus-within { outline: 3px solid var(--white); outline-offset: 2px; }
.addr-bar input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 0; background: none; color: var(--ink); font-size: 17px; outline: none; }
.addr-bar .btn:focus-visible { outline-color: var(--navy); }
::placeholder { color: #66737D; opacity: 1; }

.lf-step2 { display: none; margin-top: 10px; padding: 20px; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); color: var(--ink); text-align: left; }
.lead-form.advanced .lf-next { display: none; }
.lead-form.advanced .lf-step2 { display: block; }
.lf-step2-title { color: var(--navy); font-size: 17px; font-weight: 700; }
.lf-step2-note { margin: 2px 0 14px; color: var(--muted); font-size: 14px; }
.lf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.lf-fields label { color: var(--ink); font-size: 14px; font-weight: 600; }
.lf-fields .lf-wide { grid-column: 1 / -1; }
.lf-fields input { display: block; width: 100%; height: 48px; margin-top: 4px; padding: 0 14px; border: 1px solid #9AA6AF; border-radius: var(--radius-sm); background: var(--white); font-size: 16px; font-weight: 400; }
.lead-form .lf-step2 :focus-visible { outline-color: var(--teal); }
.lf-website { position: absolute; left: -9999px; width: 1px; height: 1px; }
.lf-submit { width: 100%; }
.lf-done { display: none; padding: 18px 20px; background: var(--white); border-radius: 10px; color: var(--navy); font-weight: 700; text-align: left; }
.lead-form.complete .addr-bar, .lead-form.complete .lf-step2 { display: none; }
.lead-form.complete .lf-done { display: block; }
.lf-error { margin-top: 10px; padding: 10px 14px; background: #FDECEC; border-radius: var(--radius-sm); color: #8F1D1D; font-size: 15px; font-weight: 600; text-align: left; }

/* Address suggestions (only rendered when a Places key is configured in site.js) */
/* Address suggestions: site.js appends this to <body> and positions it in viewport coordinates. */
.lf-ac { display: none; position: fixed; z-index: 1000; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); color: var(--ink); text-align: left; }
.lf-ac.on { display: block; }
.lf-ac-options { overflow-y: auto; overscroll-behavior: contain; }
.lf-ac li { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.35; cursor: pointer; }
.lf-ac li b { display: block; font-weight: 600; }
.lf-ac li small { display: block; color: var(--muted); font-size: 13px; }
.lf-ac li.active, .lf-ac li:hover { background: var(--teal-soft); }
.lf-ac-attribution { display: flex; justify-content: flex-end; padding: 8px 14px; }
.lf-ac-attribution img { height: 16px; width: auto; max-width: none; }

/* ---------- How it works ---------- */
/* Second doorway in the hero, and the address box in the behind-on-payments section */
.bp-cue { margin-top: 22px; }
.bp-cue a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: var(--radius-sm); color: var(--white); font-weight: 700; text-decoration: none; }
.bp-cue a:hover { background: rgba(255, 255, 255, .12); }
.bp-form { margin-top: 24px; }

/* ---------- Promise strip under the hero ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding-block: 22px; text-align: center; }
.stats li { padding-inline: 12px; color: var(--navy); font-size: 17px; font-weight: 700; text-wrap: balance; }
.stats li + li { border-left: 1px solid var(--line); }

.steps .card { position: relative; }
.step-num { position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 15px; font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 32px; }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; gap: 14px; }
.review blockquote { flex: 1; color: var(--ink); font-size: 17px; }
.review figcaption { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.review b { display: block; }
.review small { color: var(--muted); font-size: 14px; }
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; }

/* ---------- Offer math: one line under the cash vs. listing cards ---------- */
.offer-math { margin-top: var(--gap); padding: 16px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; text-wrap: balance; }
.offer-math b { color: var(--navy); }
.offer-math span { padding-inline: 4px; color: var(--teal); font-weight: 700; }

/* ---------- Cash or listing ---------- */
#topdollar .card h3 { font-size: 20px; margin-bottom: 2px; }
#topdollar .card p { margin-bottom: 10px; }

/* ---------- About, areas and FAQ (one two-column section) ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about h2 { margin-bottom: 20px; }
.about h3 { margin: 28px 0 8px; }
.about p + p { margin-top: 14px; }
.areas li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.areas li:last-child { border-bottom: 1px solid var(--line); }
.areas b { color: var(--navy); font-size: 17px; white-space: nowrap; }
.areas span { color: var(--muted); font-size: 15px; text-align: right; }

.faq-list { padding: 0 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; color: var(--navy); font-size: 17px; font-weight: 700; text-align: left; cursor: pointer; }
.faq-q::after { content: "+"; flex: none; color: var(--teal); font-size: 26px; font-weight: 400; line-height: 1; }
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { display: none; padding: 0 40px 20px 0; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* ---------- Plain text pages (privacy, not found) ---------- */
.prose { max-width: 808px; }
.prose h1 { font-size: 40px; margin-bottom: 8px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.prose p + p, .prose ul, .prose ul + p { margin-top: 12px; }
.prose ul { padding-left: 22px; list-style: disc; }
.prose a:not(.btn) { color: var(--teal); text-underline-offset: 3px; }
.prose .updated { color: var(--muted); }
.prose .btn { margin-top: 12px; }

/* ---------- Final call to action ---------- */
.final .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final h2 { margin-bottom: 24px; }
.final .lead-form { width: 100%; }
.final-note { margin-top: 14px; font-size: 15px; }
.final .hero-phone { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 28px; background: var(--navy-deep); color: rgba(255, 255, 255, .8); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { margin-bottom: 14px; }
.footer-brand img { height: 38px; width: auto; }
.footer-title { margin-bottom: 8px; color: var(--white); font-weight: 700; }
.site-footer a { display: block; width: fit-content; padding: 4px 0; color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.disclaimer { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .7); font-size: 13px; }

/* ---------- Sticky action bar (phones and small tablets) ---------- */
.mobilebar { display: none; position: fixed; inset: auto 0 0; z-index: 60; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px; background: var(--navy-deep); }
.mobilebar .btn { min-height: 48px; padding: 0 10px; }
.mobilebar .btn:not(.btn--outline) { background: var(--white); color: var(--navy); }
.mobilebar .btn:not(.btn--outline):hover { background: var(--teal-soft); }
/* Step 2 of a form is open: get the bar out of the way of the fields. */
body:has(.lead-form.advanced:not(.complete)) .mobilebar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu, .nav-phone, .nav-cta { display: none; }
  .burger { display: block; margin-left: auto; }
}
@media (max-width: 880px) {
  :root { --pad: 56px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; margin-bottom: 24px; }
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .head-split, .about { grid-template-columns: 1fr; gap: 24px; }
  .about { gap: 44px; }
  .head-row, .head-split { margin-bottom: 24px; }
  .hero::before { background: linear-gradient(180deg, rgba(10, 45, 69, .92) 40%, rgba(10, 45, 69, .72)); }
  .hero-photo { object-position: center; }
  .hero .wrap { padding-block: 48px 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobilebar { display: grid; }
  .site-footer { padding-bottom: 96px; } /* room for the sticky bar */
}
@media (max-width: 600px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .wrap, .nav { padding-inline: 16px; }
  .mnav { padding-inline: 16px; }
  .grid--4, .grid--3, .grid--2, .lf-fields { grid-template-columns: 1fr; }
  .grid { gap: 16px; }
  .hero-sub { font-size: 18px; margin: 14px 0 22px; }
  .addr-bar { flex-direction: column; }
  .addr-bar input { flex: none; }
  .stats .wrap { grid-template-columns: 1fr 1fr; gap: 14px 0; padding-block: 18px; }
  .stats li:nth-child(odd) { border-left: 0; }
  .stats li { font-size: 16px; }
  .faq-list { padding: 0 16px; }
  .faq-a { padding-right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn { transition: background-color .15s, border-color .15s; }
}
