/* Ascending Asset — "Summit" brand: navy & brass, Fraunces headings, Inter text. */
:root {
  --navy: #14213D; --brass: #C9A86A; --brass-deep: #8A6A35; --linen: #F5F3EE;
  --surface: #FFFFFF; --ink-muted: #4A5568; --on-navy-muted: #C9D1E0; --border: #E2E8F0;
  --field: #B7BFCB; --problem: #B42318;
  --serif: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.5 var(--sans); color: var(--navy); background: var(--surface); }
a { color: var(--navy); } a:hover { color: var(--brass-deep); }
h1, h2, .h2 { font-family: var(--serif); font-weight: 600; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; }
h2, .h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.12; }
.h3 { font-size: 19px; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 1000px; } .mid { max-width: 960px; }
.center { text-align: center; }
.muted { color: var(--ink-muted); } .small { font-size: 14px; } .tiny { font-size: 13px; } .strong { font-weight: 600; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-muted); max-width: 640px; margin: 0 auto; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 3px; color: var(--brass-deep); }
.stack > * + * { margin-top: 16px; } .stack-s > * + * { margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Top bar */
.topbar { background: var(--navy); padding: 14px 24px; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
/* Jumping to a section (like #offer) stops below the top bar, not under it. */
[id] { scroll-margin-top: 88px; }
.topbar-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1180px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { stroke: var(--brass); flex: none; }
.brand-words { display: flex; flex-direction: column; }
.brand-name { font-family: var(--serif); font-size: 21px; line-height: 1; color: #fff; }
.brand-sub { font-size: 9px; font-weight: 600; letter-spacing: 4px; color: var(--brass); margin-top: 4px; }
.call { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 8px; background: var(--brass); color: var(--navy); font-weight: 700; text-decoration: none; }
a.call:hover { color: var(--navy); }

/* On a computer the call button opens this box (a computer can't place the call). */
.topbar-row { position: relative; }
.call-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 25; width: min(280px, calc(100vw - 32px)); background: #fff; color: var(--navy);
  border-radius: 12px; padding: 18px; box-shadow: 0 16px 40px rgba(20,33,61,.25); display: flex; flex-direction: column; gap: 10px;
  animation: rise .25s ease-out both; }
.call-panel-number { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.call-panel .btn { width: 100%; }
.panel-buttons { display: flex; gap: 10px; }
/* Call/Text on phones; Copy on computers (they can't place calls). */
.on-computer { display: none !important; }
@media (hover: hover) and (pointer: fine) { .on-computer { display: inline-flex !important; } .on-phone { display: none !important; } }
.panel-call, .panel-email { display: flex; flex-direction: column; gap: 10px; }
.panel-email { border-top: 1px solid var(--border); padding-top: 12px; }
.panel-offer { font-size: 14px; }
.call-panel-address { font-weight: 600; overflow-wrap: anywhere; }
/* On computers email comes first, then the online offer, then call or text. */
@media (hover: hover) and (pointer: fine) {
  .call-panel { width: 300px; }
  .panel-email { order: 1; border-top: 0; padding-top: 0; }
  .call-panel-address { font-family: var(--serif); font-weight: 600; font-size: 20px; text-decoration: none; }
  .panel-offer { order: 2; display: flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid var(--navy);
    border-radius: 8px; font-weight: 600; text-decoration: none; }
  .panel-call { order: 3; border-top: 1px solid var(--border); padding-top: 12px; }
  .panel-call .call-panel-number { font-size: 20px; }
}

/* Sections */
.hero { padding: 72px 24px 56px; }
.hero .wrap > * + * { margin-top: 28px; }
.band { padding: 72px 24px; }
.soft, .soft-page { background: var(--linen); }

.situations { display: flex; flex-wrap: wrap; gap: 16px; text-align: left; }
.situation { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--navy); }
.situation.picked { border: 2px solid var(--navy); padding: 21px; }
.situation-title { font-weight: 600; font-size: 18px; }

.offer-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.how { flex: 1 1 360px; min-width: 0; }
.how > * + * { margin-top: 16px; }
.formula { display: flex; flex-direction: column; gap: 10px; }
.formula-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #fff; border-radius: 8px; }
.formula-row.total { background: var(--navy); color: #fff; font-weight: 600; }
.formula-row.total strong { color: var(--brass); }

/* Seller form */
.offer-form { flex: 1 1 420px; min-width: 0; background: #fff; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.offer-form fieldset, .choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step-title { font-family: var(--serif); font-weight: 600; font-size: 26px; margin-bottom: 14px; padding: 0; }
.choices { display: flex; flex-direction: column; gap: 10px; }
.choices legend { font-size: 14px; font-weight: 500; margin-bottom: 10px; padding: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
input[type=text], input[type=tel], input[type=email], input[type=password], textarea, select {
  font: inherit; font-weight: 400; color: var(--navy); min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--field); border-radius: 4px; background: #fff; width: 100%; }
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--brass-deep); outline-offset: 1px; }
.choice { flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 8px; font-weight: 400; font-size: 16px; cursor: pointer; }
.choice:has(input:checked) { border: 2px solid var(--navy); padding: 0 13px; }
.progress .bar { height: 6px; background: var(--border); border-radius: 3px; margin-top: 8px; }
.progress .fill { height: 6px; width: 33%; background: var(--navy); border-radius: 3px; transition: width .3s ease; }
.progress { display: none; } .js .progress { display: block; }
.form-buttons { display: flex; gap: 12px; }
.form-buttons .btn { flex: 1; }
.problem { color: var(--problem); font-size: 14px; font-weight: 500; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.picked-note { background: var(--linen); padding: 10px 14px; border-radius: 8px; }

.btn { font: inherit; font-weight: 600; min-height: 52px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--navy); cursor: pointer; font-size: 17px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.ghost { background: #fff; color: var(--navy); }
.btn.small { min-height: 36px; font-size: 14px; padding: 0 12px; }
.link-btn { background: none; border: 0; padding: 8px; font: inherit; color: var(--on-navy-muted); text-decoration: underline; cursor: pointer; }

/* Comparison */
.table-box { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; margin-top: 32px; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-top: 1px solid var(--border); }
.compare thead th { background: var(--navy); color: #fff; border-top: 0; }
.compare tbody tr:nth-child(even) { background: var(--linen); }
.compare td:last-child { color: var(--ink-muted); }

/* Who we are */
.about-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about-photo { flex: 1 1 360px; min-width: 0; max-width: 520px; aspect-ratio: 4 / 3; height: auto; border-radius: 16px; object-fit: cover; }
.about-placeholder { background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.about-placeholder .mark { width: 96px; height: 67px; }
.about-placeholder span { font-family: var(--serif); font-size: 28px; color: #fff; }
.about-text { flex: 1 1 400px; min-width: 0; }
.about-text > * + * { margin-top: 16px; }
.lead-left { font-size: 18px; line-height: 1.6; color: var(--ink-muted); }

/* Privacy policy */
.policy { max-width: 760px; }
.policy h1 { font-size: clamp(32px, 5vw, 44px); }
.policy h2 { font-size: 24px; margin-top: 36px; }
.policy p, .policy li { line-height: 1.65; color: var(--ink-muted); }
.policy p + p, .policy h2 + p, .policy h2 + ul, .policy p + ul { margin-top: 12px; }
.policy ul { padding-left: 22px; margin: 0; }
.policy ul + p { margin-top: 12px; }
.policy li + li { margin-top: 6px; }
.policy strong { color: var(--navy); }

.counties { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.county { flex: 1 1 280px; padding: 24px; border-radius: 8px; background: var(--navy); color: var(--on-navy-muted); display: flex; flex-direction: column; gap: 6px; }
.county-name { font-family: var(--serif); font-size: 24px; color: #fff; }

.footer { padding: 48px 24px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.footer-call { display: flex; flex-direction: column; gap: 4px; }
.footer-phone { font-family: var(--serif); font-size: 34px; }
.footer-phone a { text-decoration: none; }

/* Sign-in and the private app */
.signin { max-width: 420px; margin: 0 auto; padding: 64px 24px; }
.signin-brand { background: var(--navy); border-radius: 16px; padding: 18px 20px; margin-bottom: 20px; }
.card-box { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.app-nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: 16px; }
.app-nav a { color: #fff; font-weight: 600; text-decoration: none; }
.app-nav a[aria-current] { border-bottom: 2px solid var(--brass); }
.app-nav .soon { color: var(--on-navy-muted); opacity: .75; }
.signout { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.who { color: #fff; font-size: 14px; }
.lead-top { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-start; }
.lead-top > div { flex: 1 1 320px; min-width: 0; }
.lead-contact { margin-top: 10px; }
.lead-notes { margin-top: 10px; white-space: pre-line; background: var(--linen); padding: 12px 14px; border-radius: 8px; }
.status-form select { min-height: 40px; padding: 6px 10px; }
.lead + .lead { margin-top: 16px; }

/* The top bar on scroll: on computers it shrinks to a slim strip (logo words
   fade out); on phones it slides away and a round call bubble appears in the
   bottom-right corner, where a thumb can reach it. See site.js. */
.topbar { transition: padding .35s ease, transform .35s ease, background-color .35s ease, box-shadow .35s ease; }
/* On the homepage the bar floats over the page (fixed) and the page keeps a
   fixed gap for it, so the bar shrinking never moves the content beneath it.
   (If the content moved, the scroll position would jump and the bar would
   flicker between big and small when scrolling slowly.) */
.float-bar { padding-top: 80px; }
.float-bar .topbar { position: fixed; left: 0; right: 0; top: 0; will-change: transform; }
.brand-words { max-width: 240px; max-height: 60px; overflow: hidden; white-space: nowrap; transition: opacity .25s ease, max-width .35s ease, max-height .35s ease; }
.call { transition: min-height .35s ease, padding .35s ease, font-size .35s ease, transform .2s ease, filter .2s ease; }
.call-bubble { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 60px; height: 60px; border-radius: 50%;
  background: var(--brass); color: var(--navy); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(20,33,61,.28); opacity: 0; visibility: hidden; pointer-events: none;
  transform: scale(.5) translateY(16px);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.9,.3,1.3), visibility .35s; }
.call-bubble:hover { color: var(--navy); filter: brightness(1.08); }
.mark { transition: transform .35s ease; transform-origin: left center; }
@media (min-width: 561px) {
  /* About 72px tall at the top of the page, about 46px once scrolled. */
  .scrolled .topbar { padding-top: 5px; padding-bottom: 5px; background: rgba(20,33,61,.94);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(20,33,61,.18); }
  .scrolled .brand-words { opacity: 0; max-width: 0; max-height: 0; }
  .scrolled .mark { transform: scale(.8); }
  .scrolled .call { min-height: 36px; padding: 0 14px; font-size: 14px; }
}
@media (max-width: 560px) {
  .float-bar { padding-top: 60px; }
  .bar-hidden .topbar { transform: translateY(-100%); }
  .bar-hidden:not(.typing) .call-bubble { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
}

/* Movement: gentle, and off for anyone who has asked for less motion. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 110; } to { stroke-dashoffset: 0; } }
.roof { stroke-dasharray: 110; animation: draw .9s ease-out both; }
.roof-2 { animation-delay: .2s; } .roof-3 { animation-delay: .4s; }
.intro { animation: rise .7s ease-out both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; } .d3 { animation-delay: .35s; }
.card, .btn { transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(20,33,61,.10); }
.btn:hover, a.call:hover { filter: brightness(1.08); transform: translateY(-1px); }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 560px) {
  .hero, .band { padding: 48px 16px; }
  .offer-form { padding: 22px; }
  /* On phones the top bar stays one slim row: logo and a smaller call button. */
  .topbar { padding: 10px 16px; }
  .topbar-row { flex-wrap: nowrap; gap: 10px; }
  .brand-name { font-size: 17px; white-space: nowrap; }
  .brand .mark { width: 32px; height: 22px; }
  .call { min-height: 40px; padding: 0 12px; font-size: 14px; gap: 6px; white-space: nowrap; }
  [id] { scroll-margin-top: 72px; }
  .app-nav { margin-left: 0; }
}
