/* ============================================================
   Homepage conversion layer (2026-10-26)
   Patterns borrowed from a proven home-services funnel:
   1. .hero-book    booking card in the first screen
   2. .sc-card--after + .sc-cta--bar   process ends on the feeling
   3. .why-lisa     pillars + credentials row
   4. .review-sources   where the reviews live
   5. .touch-trio   call / online / office in the closing CTA
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── 1. Hero booking card ── */
.hero-book {
  position: relative;
  z-index: 2;
  width: 400px;
  flex-shrink: 0;
  margin: 0 var(--s-20,80px) var(--s-14,56px) auto;
  padding: var(--s-7,28px) var(--s-7,28px) var(--s-6,24px);
  background: rgba(253,250,246,0.97);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  color: var(--black);
}
.hb-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: var(--s-2,8px);
}
.hero-book h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.2px;
  color: var(--black);
  margin-bottom: var(--s-2,8px);
}
.hb-sub {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: var(--s-4,16px);
}
.hb-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  margin-bottom: var(--s-3,12px);
}
.hb-toggle label { position: relative; cursor: pointer; }
.hb-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.hb-toggle span {
  display: block;
  text-align: center;
  padding: 10px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}
.hb-toggle input:checked + span { background: var(--black); color: #fff; }
.hb-toggle input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: -2px; }
.hb-field { display: block; margin-bottom: var(--s-2,8px); }
.hb-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2,8px); }
.hb-field input {
  width: 100%;
  height: 44px;
  padding: 0 var(--s-3,12px);
  font: 400 14px/1 var(--sans);
  color: var(--black);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.2s;
}
.hb-field input::placeholder { color: #8a8580; }
.hb-field input:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.hb-submit {
  width: 100%;
  margin-top: var(--s-2,8px);
  padding: 15px 0;
  font: 600 12px/1 var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--black);
  border: 1px solid var(--black);
  cursor: pointer;
  transition: background 0.3s;
}
.hb-submit:hover { background: #333; }
.hb-submit:disabled { opacity: 0.6; cursor: wait; }
.hb-submit:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.hb-consent {
  font-size: 10px;
  line-height: 1.5;
  color: #77716b;
  margin-top: var(--s-3,12px);
}
.hb-consent a { color: inherit; text-decoration: underline; }
.hb-message:empty { display: none; }
.hb-message { margin-top: var(--s-3,12px); font-size: 13px; line-height: 1.55; }
.hb-message.error { color: #9b2c2c; }
.hb-message h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: var(--s-2,8px);
}
.hb-message a { color: inherit; }
.hero-guides {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: var(--s-3,12px);
  color: rgba(255,255,255,0.6);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.hero-guides a { color: rgba(255,255,255,0.88); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); }
.hero-guides a:hover { color: #fff; border-color: #fff; }
.hero .hero-ctas { display: block; }
.hero .hero-call { margin-top: 0; }

@media (min-width: 1025px) {
  .hero { min-height: 720px; }
  .hero-content { padding-right: var(--s-10,40px); }
}
/* Below desktop the card stacks under the headline, so the hero grows to fit. */
@media (max-width: 1024px) {
  .hero {
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding-top: var(--s-24,96px);
  }
  .hero-content { max-width: none; padding-top: var(--s-8,32px); padding-bottom: var(--s-8,32px); }
  .hero-book { width: auto; max-width: 560px; margin: 0 var(--s-20,80px) var(--s-12,48px); }
}
@media (max-width: 768px) {
  .hero { padding-top: 64px; }
  .hero-content { padding: var(--s-10,40px) var(--s-6,24px) var(--s-6,24px); }
  .hero-book { margin: 0 var(--s-4,16px) var(--s-8,32px); padding: var(--s-6,24px) var(--s-5,20px); }
  .hero-book h2 { font-size: 24px; }
}
@media (max-width: 400px) {
  .hb-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── 2. Process: five chapters, ending on the exhale ── */
.sale-chapters .sc-grid { grid-template-columns: repeat(5, 1fr); }
.sc-card--after { border-color: rgba(196,154,142,0.45); background: rgba(196,154,142,0.06); }
.sc-card--after h3 { font-style: italic; }
.sc-cta--bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-4,16px) var(--s-8,32px);
  padding: var(--s-8,32px);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.sc-cta-lead {
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
}
.sc-cta--bar .sc-cta-note { margin-top: 0; flex-basis: 100%; }
.sc-cta-note a { color: rgba(255,255,255,0.85); }
@media (max-width: 1240px) {
  .sale-chapters .sc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .sale-chapters .sc-grid { grid-template-columns: 1fr; }
  .sc-cta--bar { padding: var(--s-6,24px) 0 0; }
  .sc-cta-lead { font-size: 18px; text-align: center; }
}

/* ── 3. Why Lisa: portrait left, numbered pillars right, credentials band ── */
.why-lisa {
  background: var(--off-white);
  padding: var(--s-30,120px) var(--s-14,56px) var(--s-16,64px);
}
.wl-inner { max-width: 1280px; margin: 0 auto; }
.wl-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-20,80px);
  align-items: center;
  margin-bottom: var(--s-20,80px);
}
.wl-portrait { position: relative; margin: 0; padding: 0 0 var(--s-10,40px) 0; }
.wl-portrait::before {
  /* offset frame behind the photo */
  content: '';
  position: absolute;
  top: 24px; left: -24px; right: 24px; bottom: 64px;
  border: 1px solid var(--mauve);
  opacity: 0.45;
}
.wl-portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
}
.wl-quote {
  position: absolute;
  right: -40px;
  bottom: 0;
  width: min(340px, 80%);
  padding: var(--s-6,24px) var(--s-7,28px);
  background: var(--deep-navy);
  color: #fff;
  box-shadow: 0 24px 50px rgba(9,43,74,0.25);
}
.wl-quote-stars { display: block; color: var(--gold); font-size: 12px; letter-spacing: 3px; margin-bottom: var(--s-3,12px); }
.wl-quote blockquote {
  margin: 0 0 var(--s-3,12px);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
}
.wl-quote cite {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #c49a8e;
}
.wl-copy .intro-label { margin-bottom: var(--s-4,16px); }
.wl-copy h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--black);
  margin-bottom: var(--s-5,20px);
}
.wl-copy h2 em { font-style: italic; color: var(--deep-navy); }
.wl-lead { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--text-secondary); max-width: 520px; margin-bottom: var(--s-8,32px); }
.wl-rows { list-style: none; margin: 0 0 var(--s-8,32px); padding: 0; border-top: 1px solid var(--border); }
.wl-row {
  display: grid;
  grid-template-columns: 36px 52px 1fr;
  gap: var(--s-4,16px);
  align-items: start;
  padding: var(--s-6,24px) 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.wl-num { font-family: var(--serif); font-size: 15px; color: var(--mauve); padding-top: 14px; }
.wl-badge {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
}
.wl-icon { width: 26px; height: 26px; color: var(--mauve); }
.wl-row h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  color: var(--deep-navy);
  margin: 4px 0 6px;
}
.wl-row p { font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--text-secondary); max-width: 440px; }
.wl-row:hover .wl-badge { border-color: var(--mauve); }
.wl-cta { display: inline-flex; }
.wl-creds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.wl-cred {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center;
  padding: var(--s-6,24px) var(--s-4,16px);
  background: #fff;
}
.wl-cred--logo img { width: 128px; height: 128px; display: block; margin: -24px 0; }
.wl-cred-k { font-size: 10px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--mauve); }
.wl-cred-v { font-family: var(--serif); font-size: 15px; color: var(--black); line-height: 1.3; }
@media (max-width: 1100px) {
  .wl-split { grid-template-columns: 1fr 1fr; gap: var(--s-12,48px); }
  .wl-quote { right: -16px; }
}
@media (max-width: 768px) {
  .why-lisa { padding: var(--s-16,64px) var(--s-6,24px) var(--s-12,48px); }
  .wl-split { grid-template-columns: 1fr; gap: var(--s-10,40px); margin-bottom: var(--s-12,48px); }
  .wl-portrait { max-width: 440px; margin: 0 auto; padding-left: 16px; }
  .wl-portrait::before { left: 0; top: 16px; right: 16px; }
  .wl-quote { right: -8px; width: 86%; }
  .wl-row { grid-template-columns: 28px 44px 1fr; gap: var(--s-3,12px); }
  .wl-badge { width: 44px; height: 44px; }
  .wl-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 4. Review sources ── */
.review-sources {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-4,16px);
  margin-top: var(--s-3,12px);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.review-sources a {
  color: var(--deep-navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ── 5. Closing CTA: three ways in ── */
.touch-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-8,32px);
  width: 100%;
  padding-top: var(--s-8,32px);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.touch-k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: var(--s-2,8px);
}
.touch-v {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  color: #fff;
  text-decoration: none;
  margin-bottom: var(--s-2,8px);
}
.touch-v:hover { text-decoration: underline; text-underline-offset: 4px; }
.touch-v--addr { font-size: 16px; }
.touch-note { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.5; }
.touch-note a { color: rgba(255,255,255,0.85); }
@media (max-width: 900px) {
  .touch-trio { grid-template-columns: 1fr; gap: var(--s-6,24px); }
}
.cta--photo .cta-inner { max-width: 780px; }
.hero-book [hidden] { display: none !important; }

/* ── 6. Sold gallery (hidden until listings.json has 3+ Sold homes) ── */
.sold-gallery { background: #fff; padding: var(--s-24,96px) var(--s-14,56px); }
.sold-gallery[hidden] { display: none; }
.sg-inner { max-width: 1320px; margin: 0 auto; }
.sg-header { text-align: center; margin-bottom: var(--s-8,32px); }
.sg-header .rule-draw { margin-left: auto; margin-right: auto; }
.sg-header h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  color: var(--black);
}
.sg-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2,8px); margin-bottom: var(--s-10,40px); }
.sg-tabs button {
  font: 600 11px/1 var(--sans);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
}
.sg-tabs button[aria-pressed="true"] { background: var(--deep-navy); border-color: var(--deep-navy); color: #fff; }
.sg-tabs button:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.sg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6,24px); }
.sg-card { display: block; text-decoration: none; color: var(--black); }
.sg-card[hidden] { display: none; }
.sg-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--off-white); }
.sg-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.sg-card:hover .sg-img img { transform: scale(1.04); }
.sg-tag {
  position: absolute; left: 12px; top: 12px;
  font: 600 10px/1 var(--sans); letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 10px; background: rgba(255,255,255,0.92); color: var(--black);
}
.sg-title { display: block; font-family: var(--serif); font-size: 19px; margin-top: var(--s-3,12px); }
.sg-meta { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
@media (max-width: 1024px) { .sg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) { .sold-gallery { padding: var(--s-14,56px) var(--s-4,16px); } .sg-grid { gap: var(--s-4,16px); } }

/* ── Rounded cards (Lisa, 2026-10-26) ── */
.hero-book { border-radius: 18px; }
.hb-toggle { border-radius: 10px; overflow: hidden; }
.hb-field input { border-radius: 10px; }
.hb-submit { border-radius: 999px; }
.recent-result-panel { border-radius: 18px; }
