/* Visual upgrades layered on top of site.css + extra.css */

/* ---------- Hero: left-aligned column + background photo ---------- */
.homepage .hero {
  background:
    linear-gradient(90deg, #faf7f0 0%, #faf7f0f2 38%, #faf7f0cc 62%, #faf7f0b3 100%),
    linear-gradient(0deg, #faf7f0 0%, #faf7f000 30%),
    var(--edit-bg, url(https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=1600&q=65&fit=crop&auto=format)) center 30% / cover no-repeat;
}
.homepage .hero-grid > div:first-child { text-align: left; }
.homepage .hero-sub { text-align: left; text-align-last: left; text-shadow: none; }
.homepage .hero-points { justify-content: flex-start; flex-wrap: wrap; }
.homepage .hero-proof { justify-content: flex-start; }
@media (width <= 640px) {
  .homepage .hero { background: linear-gradient(#faf7f0e6, #faf7f0), var(--edit-bg, url(https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=750&q=55&fit=crop&auto=format)) center / cover; padding-bottom: 40px; }
  .homepage .hero-points, .homepage .hero-proof { justify-content: flex-start; }
  .homepage .hero-proof-text { text-align: left; }
}

/* ---------- Stats band ---------- */
.stats-band { background: var(--green-deep); color: var(--paper); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font: 700 clamp(32px, 4vw, 46px)/1 Fraunces, serif; color: #fff; }
.stat-num .star { color: #f3b23a; font-size: .7em; vertical-align: .15em; margin-left: 4px; }
.stat-label { margin-top: 10px; font: 600 11.5px 'IBM Plex Mono', monospace; letter-spacing: .08em; text-transform: uppercase; color: #bfe3d2; }
@media (width <= 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

/* ---------- Hover polish ---------- */
.homepage .benefit, .homepage .testi-card, .homepage .sold-card, .situation {
  transition: transform .25s ease, box-shadow .25s ease;
}
.homepage .benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.homepage .sold-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.homepage .testi-card:hover, .situation:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.homepage .btn-primary { transition: transform .15s, box-shadow .2s, background .15s; }
.homepage .btn-primary:hover { box-shadow: 0 1px #00000014, 0 12px 26px #1f6f505c; }
.homepage .reveal { transition-duration: .8s; transition-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* ---------- Footer contact links ---------- */
.homepage .foot-contact a { color: inherit; text-decoration: none; border-bottom: 1px dotted transparent; transition: color .15s, border-color .15s; }
.homepage .foot-contact a:hover { color: var(--green-deep); border-bottom-color: currentColor; }
#root .form-msg a { color: inherit; font-weight: 700; text-decoration: underline; }

/* ---------- Situations we help with ---------- */
.situations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.situation {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.situation > div:last-child { width: 100%; }
.situation h3 { text-align: center; }
.situation-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: var(--green-pale); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
}
.situation-icon svg { width: 22px; height: 22px; }
.situation h3 { font-size: 17px; margin-bottom: 6px; }
/* Fixed text width so every description wraps to exactly two lines at any screen size */
.situation p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; width: 100%; max-width: 290px; margin: 0 auto; }
.situations-cta { text-align: center; margin-top: 32px; }
@media (width <= 1080px) { .situations-grid { grid-template-columns: 1fr 1fr; } }
@media (width <= 600px) { .situations-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.review-summary {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px 8px 10px;
}
.review-summary .score { font: 700 20px Fraunces, serif; color: var(--ink); background: var(--green-pale); border-radius: 999px; padding: 4px 12px; }
.review-summary .stars-gold { color: #f3b23a; letter-spacing: 2px; font-size: 16px; }
.review-summary small { color: var(--ink-soft); font-size: 13px; }
.homepage .testi-card { position: relative; padding-top: 34px; box-shadow: var(--shadow); }
.homepage .testi-card::before {
  content: '“'; position: absolute; top: 4px; right: 22px;
  font: 700 84px/1 Fraunces, serif; color: var(--green-pale);
}
.homepage .testi-stars { color: #f3b23a; font-size: 16px; }
.homepage .testi-avatar { width: 44px; height: 44px; font-size: 13px; background: var(--green-deep); color: var(--paper); }
.verified {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 3px;
  font: 600 10.5px 'IBM Plex Mono', monospace; letter-spacing: .04em; text-transform: uppercase; color: var(--green);
}
.verified svg { width: 12px; height: 12px; }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar { display: none; }
@media (width <= 760px) {
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #faf7f0f2; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px #15120f14;
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 10px; border-radius: 10px; font: 700 15px Inter, sans-serif; text-decoration: none;
  }
  .mobile-bar svg { width: 17px; height: 17px; }
  .mobile-bar .call { border: 1.5px solid var(--green-deep); color: var(--green-deep); background: var(--white); }
  .mobile-bar .offer { background: var(--green-deep); color: var(--paper); }
  body.has-mobile-bar { padding-bottom: 76px; }
}

/* ---------- Listings page in brand colors ---------- */
.listings-page { background: var(--paper); font-family: Inter, sans-serif; }
.listings-header h1 { color: var(--ink); font-family: Fraunces, serif; font-weight: 600; letter-spacing: -.01em; }
.listings-header p { color: var(--ink-soft); }
.filters-bar { border: 1px solid var(--line); box-shadow: var(--shadow); }
.filter-group label { color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.filter-group input, .filter-group select { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-family: Inter, sans-serif; }
.filter-group input:focus, .filter-group select:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-pale); }
.listing-card { border: 1px solid var(--line); box-shadow: var(--shadow); }
.listing-card:hover { box-shadow: var(--shadow-lg); }
.listing-image-placeholder { background: linear-gradient(135deg, var(--paper-deep), var(--line)); color: var(--ink-soft); }
.listing-status { background: var(--green-deep); font-family: 'IBM Plex Mono', monospace; letter-spacing: .05em; border-radius: 6px; }
.listing-status.sold { background: var(--rust); }
.listing-status.pending { background: #e8a020; }
.listing-title { color: var(--ink); font-family: Fraunces, serif; font-weight: 600; }
.listing-address, .listing-details { color: var(--ink-soft); }
.listing-price { color: var(--green-deep); font-family: Fraunces, serif; font-weight: 600; }
.listing-description { color: var(--ink-soft); }
.listings-empty h3 { font-family: Fraunces, serif; color: var(--ink); }
.listings-page .spinner { border-color: var(--line); border-top-color: var(--green-deep); }

/* ---------- About page: headings centered, body text left-aligned ---------- */
.about-page h1, .about-page h2, .about-page h3,
.about-page .section-eyebrow, .about-page .about-team-name, .about-page .about-team-role { text-align: center; }
.about-page p { text-align: left; text-align-last: left; }
.about-page .about-value-icon { margin-left: auto; margin-right: auto; }
/* "What we stand for": fixed text width so every value is exactly three lines */
.about-page .about-value-card p { width: 100%; max-width: 205px; margin: 0 auto; }
@media (width <= 1140px) { .about-page .about-values { grid-template-columns: repeat(2, 1fr); } }
@media (width <= 600px) { .about-page .about-values { grid-template-columns: 1fr; } }
.about-page .about-hero { background: var(--edit-bg, url(https://images.unsplash.com/photo-1570129477492-45c003edd2be?w=1400&h=600&fit=crop)) 50% / cover no-repeat; }
/* Portrait photo: taller frame, keep the face in view */
.about-page .team-photo { height: 340px; object-position: 50% 18%; }
/* Keep short paragraphs as a centered block so left-aligned lines don't hug the page edge */
.about-page .about-hero-content p, .about-page .section-head p, .about-page .about-cta-text {
  max-width: 620px; margin-left: auto; margin-right: auto;
}
.about-page .about-hero-content p, .about-page .about-cta-text { width: fit-content; }

/* ---------- Blog articles: left-aligned, comfortable reading ---------- */
.blog-post-body { text-align: left; }
.blog-post-body p { font-size: 17px; line-height: 1.8; margin-bottom: 20px; color: var(--ink-soft); }
.blog-post-body h3 { margin: 32px 0 12px; font-size: 22px; }
.blog-post-body strong { color: var(--ink); }
.blog-post-page .blog-post-title, .blog-post-page .blog-post-cat, .blog-post-page .blog-post-meta, .blog-back-btn { text-align: left; }
.blog-post-hero-img { border-radius: 18px; }
.homepage .blog-post-cta .btn-primary { background: var(--paper); color: var(--green-deep); }
.homepage .blog-post-cta .btn-primary:hover { background: #fff; }

/* ---------- Justified paragraphs across the whole site ---------- */
/* #root gives this priority over the per-section alignment rules above */
#root p {
  text-align: justify;
  text-align-last: left;
  /* Never split a word across two lines with a hyphen (e.g. "net-work") */
  hyphens: manual;
  -webkit-hyphens: manual;
}
#root, #root * { hyphens: manual; -webkit-hyphens: manual; }
/* Short one-line lines inside centered cards/banners stay centered */
#root .stub-desc, #root .stub-call, #root .final-cta p, #root .blog-post-cta p,
#root .sop-privacy, #root .contact-success p, #root .listings-empty p {
  text-align: center;
  text-align-last: center;
}

/* ---------- Private "Admin" button (only shown to a logged-in admin) ---------- */
.admin-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 95;
  background: var(--ink); color: var(--paper) !important; text-decoration: none;
  font: 600 13px Inter, sans-serif; padding: 9px 14px; border-radius: 999px;
  box-shadow: 0 6px 18px #15120f40; opacity: .85; transition: opacity .15s, transform .15s;
}
.admin-fab:hover { opacity: 1; transform: translateY(-2px); }
@media (width <= 760px) { body.has-mobile-bar .admin-fab { bottom: 86px; } }

/* ---------- Headings kept on a single line (desktop/tablet) ---------- */
.homepage .section-head:has(.one-line) { max-width: none; }
.homepage .section-head h2.one-line { text-align: center; }
/* The paragraph under these headings: centered, at a readable width */
#root .homepage .section-head:has(.one-line) p,
#root .homepage .how-section .section-head p {
  text-align: center;
  text-align-last: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (width > 700px) {
  .homepage .section-head h2.one-line {
    white-space: nowrap;
    font-size: clamp(22px, 3.1vw, 40px);
  }
}

/* ---------- Splash screen (first page of each visit) ---------- */
/* The splash markup is in each page's HTML (shown at first paint); the inline head script adds .splash-done after 1.1 s. */
html.splash:not(.splash-done) body { background: #1f6f50; }
html.splash:not(.splash-done) #root { visibility: hidden; }
.splash-screen.splash-static { display: none; }
html.splash .splash-screen.splash-static { display: flex; }
html.splash-done .splash-screen.splash-static { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .32s ease, visibility 0s linear .32s; }
@media (prefers-reduced-motion: reduce) { .splash-dot, .splash-logo, .splash-content { animation: none !important; } }

/* ---------- Popup offer form ---------- */
.offer-popup {
  position: fixed; inset: 0; z-index: 1000; background: #15120f8c;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: opacity .25s ease; overflow-y: auto;
}
.offer-popup.open { opacity: 1; }
.offer-popup .offer-popup-card {
  position: relative; width: 100%; max-width: 460px; text-align: center;
  transform: translateY(16px) scale(.97); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
}
.offer-popup.open .offer-popup-card { transform: none; }
.offer-popup-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); cursor: pointer; font-size: 14px;
}
.offer-popup-close:hover { background: var(--paper-deep); color: var(--ink); }
.offer-popup .stub-head { padding-right: 56px; }
.offer-popup .stub-stamp { display: none; }
.link-plain { background: none; border: 0; padding: 0; font: inherit; color: var(--green-deep); font-weight: 600; text-decoration: underline; cursor: pointer; }
@media (width <= 560px) {
  .offer-popup { align-items: flex-end; padding: 0; }
  .offer-popup .offer-popup-card { max-width: none; border-radius: 18px 18px 0 0; }
}

/* =====================================================================
   Animations (all switched off for visitors who prefer reduced motion)
   ===================================================================== */
@keyframes copFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes copFadeLeft { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes copFadeIn { from { opacity: 0; } to { opacity: 1; } }

.homepage .nav { transition: box-shadow .25s ease, background .25s ease; }
.homepage .nav.scrolled { box-shadow: 0 6px 22px #15120f14; }

@media (prefers-reduced-motion: no-preference) {
  /* Page-top entrance: waits for html.ready:not(.ext) (set when the splash ends) */
  html.anim:not(.ready) :is(
    .homepage .hero-grid > div:first-child > *, .homepage .stub-wrap,
    .about-hero-content > *, .contact-hero-text > *, .contact-hero-img,
    .blog-hero .wrap > *, .listings-header > *, .sop-header > *, .pdp-wrap
  ) { opacity: 0; }

  html.ready:not(.ext) .homepage .hero-grid > div:first-child > *,
  html.ready:not(.ext) .about-hero-content > *,
  html.ready:not(.ext) .contact-hero-text > *,
  html.ready:not(.ext) .blog-hero .wrap > *,
  html.ready:not(.ext) .listings-header > *,
  html.ready:not(.ext) .sop-header > * { animation: copFadeUp .7s cubic-bezier(.2, .7, .2, 1) backwards; }

  html.ready:not(.ext) :is(.homepage .hero-grid > div:first-child, .about-hero-content, .contact-hero-text, .blog-hero .wrap, .listings-header, .sop-header) > :nth-child(2) { animation-delay: .08s; }
  html.ready:not(.ext) :is(.homepage .hero-grid > div:first-child, .about-hero-content, .contact-hero-text, .blog-hero .wrap, .listings-header, .sop-header) > :nth-child(3) { animation-delay: .16s; }
  html.ready:not(.ext) :is(.homepage .hero-grid > div:first-child, .about-hero-content, .contact-hero-text, .blog-hero .wrap, .listings-header, .sop-header) > :nth-child(4) { animation-delay: .24s; }
  html.ready:not(.ext) :is(.homepage .hero-grid > div:first-child, .about-hero-content, .contact-hero-text, .blog-hero .wrap, .listings-header, .sop-header) > :nth-child(5) { animation-delay: .32s; }

  html.ready:not(.ext) .homepage .stub-wrap, html.ready:not(.ext) .contact-hero-img { animation: copFadeLeft .8s .2s cubic-bezier(.2, .7, .2, 1) backwards; }
  html.ready:not(.ext) .pdp-wrap { animation: copFadeIn .5s ease backwards; }

  /* Cards in a grid fade up one after another when the grid scrolls into view */
  .homepage .reveal.stagger { opacity: 1; transform: none; }
  .homepage .reveal.stagger > * { opacity: 0; }
  .homepage .reveal.stagger.in > * { opacity: 1; animation: copFadeUp .6s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms); }

  /* Cards that load later (blog, listings, featured homes) */
  .blog-grid > *, .listings-grid > *, .featured-grid > *, .blog-featured-card { animation: copFadeUp .6s cubic-bezier(.2, .7, .2, 1) backwards; }
  :is(.blog-grid, .listings-grid, .featured-grid) > :nth-child(2) { animation-delay: .07s; }
  :is(.blog-grid, .listings-grid, .featured-grid) > :nth-child(3) { animation-delay: .14s; }
  :is(.blog-grid, .listings-grid, .featured-grid) > :nth-child(4) { animation-delay: .21s; }
  :is(.blog-grid, .listings-grid, .featured-grid) > :nth-child(5) { animation-delay: .28s; }
  :is(.blog-grid, .listings-grid, .featured-grid) > :nth-child(n+6) { animation-delay: .35s; }
  .blog-post-page .blog-post-wrap { animation: copFadeUp .6s cubic-bezier(.2, .7, .2, 1) backwards; }
  .sell-done .stub, .contact-success { animation: copFadeUp .5s cubic-bezier(.2, .7, .2, 1) backwards; }

  /* Small hover touches */
  .btn svg, .btn [data-icon] svg { transition: transform .2s ease; }
  .btn:hover svg, .btn:hover [data-icon] svg { transform: translateX(3px); }
  .benefit-icon, .situation-icon, .about-value-icon, .contact-info-icon { transition: transform .3s cubic-bezier(.2, .9, .3, 1.4), background .2s; }
  .benefit:hover .benefit-icon, .situation:hover .situation-icon,
  .about-value-card:hover .about-value-icon, .contact-info-card:hover .contact-info-icon { transform: scale(1.1) rotate(-6deg); }
  .about-value-card, .contact-info-card { transition: transform .25s ease, box-shadow .25s ease; }
  .about-value-card:hover, .contact-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .blog-card-img img, .blog-featured-img img, .listing-image img, .featured-img img, .about-mission-img img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .blog-card:hover .blog-card-img img, .blog-featured-card:hover .blog-featured-img img,
  .listing-card:hover .listing-image img, .featured-card:hover .featured-img img,
  .about-mission-img:hover img { transform: scale(1.05); }
  .blog-card-img, .blog-featured-img, .listing-image, .about-mission-img { overflow: hidden; }
  .stub-proof-icon svg { animation: copFadeIn .6s .9s both; }
  .faq-a { transition: max-height .35s ease; }
}

/* ---------- AI-written articles (/blog/<slug>) ---------- */
.ai-post-body h2 { font: 600 clamp(22px, 2.6vw, 28px)/1.25 Fraunces, serif; color: var(--ink); margin: 40px 0 14px; text-align: left; }
.ai-post-body h3 { font: 600 19px/1.3 Fraunces, serif; color: var(--ink); margin: 26px 0 10px; text-align: left; }
.ai-post-body ul, .ai-post-body ol { margin: 0 0 20px 22px; padding: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; text-align: left; }
.ai-post-body li { margin-bottom: 6px; }
.ai-post-body a { color: var(--green-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ai-post-body .ai-faq { border-top: 1px solid var(--line); }
.ai-post-body .ai-faq h3 { margin-top: 22px; }
.ai-post-body .ai-cta { background: var(--green-deep); border-radius: 18px; padding: 32px 28px; margin: 40px 0 24px; text-align: center; }
.ai-post-body .ai-cta h2 { color: var(--paper); margin: 0 0 10px; text-align: center; }
#root .ai-post-body .ai-cta p { color: #bfe3d2; text-align: center; text-align-last: center; margin: 0 0 14px; }
.ai-post-body .ai-cta .btn-primary { background: var(--paper); color: var(--green-deep); width: auto; display: inline-flex; text-decoration: none; }
.ai-post-body .ai-cta .ai-cta-call, .ai-post-body .ai-cta .ai-cta-call a { color: #fff; }
#root .ai-post-body .ai-disclaimer { font-size: 13.5px; line-height: 1.6; color: var(--muted, #8a8378); border-top: 1px solid var(--line); padding-top: 16px; }
.ai-preview-bar { background: #fef3c7; color: #92400e; text-align: center; font-weight: 600; font-size: 14px; padding: 10px 16px; }

/* ---------- Local SEO landing pages (/we-buy-houses/*, /services/*) ---------- */
.lp-page .lp-crumbs { background: var(--paper); border-bottom: 1px solid var(--line); font: 500 13px/1.4 Inter, sans-serif; padding: 12px 0; }
.lp-page .lp-crumbs a { color: var(--green-deep); text-decoration: none; }
.lp-page .lp-crumbs a:hover { text-decoration: underline; }
.lp-page .lp-crumbs span[aria-current] { color: var(--ink-soft); }
.lp-page .lp-sep { color: var(--line); margin: 0 8px; }
.lp-page .lp-hero { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%); padding: 56px 0 48px; }
.lp-page .lp-hero h1 { font-family: Fraunces, serif; font-weight: 600; color: var(--ink); font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 820px; }
.lp-page .lp-lead { font: 400 18px/1.6 Inter, sans-serif; color: var(--ink-soft); max-width: 720px; margin-bottom: 24px; }
.lp-page .lp-form { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 10px; max-width: 820px; }
.lp-page .lp-form input { font: 400 16px Inter, sans-serif; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); min-width: 0; }
.lp-page .lp-form input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.lp-page .lp-form .btn { width: auto; white-space: nowrap; }
.lp-page .lp-hero-note { font: 400 14px/1.5 Inter, sans-serif; color: var(--ink-soft); margin-top: 12px; }
.lp-page .lp-hero-note a { color: var(--green-deep); font-weight: 600; }
.lp-page .lp-section { padding: 56px 0; }
.lp-page .lp-alt { background: var(--paper); }
.lp-page .lp-narrow { max-width: 820px; }
.lp-page .lp-section h2 { font-family: Fraunces, serif; font-weight: 600; color: var(--ink); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin: 0 0 16px; }
.lp-page .lp-section h2 a { color: inherit; text-decoration: none; }
.lp-page .lp-section h2:not(:first-child) { margin-top: 36px; }
.lp-page .lp-section h3 { font: 700 17px/1.35 Inter, sans-serif; color: var(--ink); margin: 20px 0 8px; }
.lp-page .lp-section p { font: 400 16.5px/1.7 Inter, sans-serif; color: var(--ink-soft); margin: 0 0 14px; }
.lp-page .lp-section p a, .lp-page .lp-list a { color: var(--green-deep); font-weight: 600; }
.lp-page .lp-list { margin: 0 0 16px; padding-left: 22px; font: 400 16.5px/1.7 Inter, sans-serif; color: var(--ink-soft); }
.lp-page .lp-list li { margin-bottom: 6px; }
.lp-page .lp-steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-page .lp-steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.lp-page .lp-steps h3 { margin-top: 8px; }
.lp-page .lp-step-num { font: 600 12px IBM Plex Mono, monospace; color: var(--rust); letter-spacing: .08em; }
.lp-page .lp-steps p { font-size: 15px; margin: 0; }
.lp-page .lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lp-page .lp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-decoration: none; transition: border-color .15s, transform .15s; }
.lp-page .lp-card:hover { border-color: var(--green); transform: translateY(-2px); }
.lp-page .lp-card h3 { margin: 0 0 8px; }
.lp-page .lp-card p { font-size: 15px; flex: 1; }
.lp-page .lp-more { font: 700 14px Inter, sans-serif; color: var(--green-deep); }
.lp-page .lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.lp-page .lp-chips a, .lp-page .lp-chips span { font: 500 14px Inter, sans-serif; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); text-decoration: none; }
.lp-page .lp-chips a { color: var(--green-deep); border-color: var(--green-pale); background: var(--green-pale); }
.lp-page .lp-chips a:hover { border-color: var(--green); }
.lp-page .lp-small { font-size: 15px !important; }
.lp-page .lp-mt { margin-top: 32px !important; }
.lp-page .lp-counties { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 24px; }
.lp-page .lp-counties h3 { margin: 14px 0 4px; }
.lp-page .lp-counties p { font-size: 15px; margin: 0; text-align: left !important; }
.lp-page .lp-counties a { color: var(--green-deep); font-weight: 600; }
.lp-page .lp-faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.lp-page .lp-faq summary { cursor: pointer; list-style: none; font: 600 17px/1.4 Inter, sans-serif; color: var(--ink); padding: 14px 32px 14px 0; position: relative; }
.lp-page .lp-faq summary::-webkit-details-marker { display: none; }
.lp-page .lp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--green-deep); }
.lp-page .lp-faq details[open] summary::after { content: "\2212"; }
.lp-page .lp-faq details p { margin: 0 0 14px; }
.lp-page .lp-cta { background: var(--green-deep); border-radius: 18px; padding: 44px 32px; text-align: center; }
.lp-page .lp-cta h2 { color: #fff !important; margin-bottom: 12px; }
#root .lp-page .lp-cta p { color: rgba(255,255,255,.8); text-align: center; text-align-last: center; max-width: 560px; margin: 0 auto 24px; }
.lp-page .lp-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-page .lp-cta .btn { width: auto; }
.lp-page .lp-cta .btn-primary { background: #fff; color: var(--green-deep); }
.lp-page .lp-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
#root .lp-page .lp-disclaimer { font-size: 13px; color: var(--ink-soft); opacity: .8; margin-top: 20px; }
@media (max-width: 860px) {
  .lp-page .lp-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .lp-page .lp-hero { padding: 36px 0 32px; }
  .lp-page .lp-form { grid-template-columns: 1fr; }
  .lp-page .lp-form .btn { width: 100%; }
  .lp-page .lp-steps { grid-template-columns: 1fr; }
  .lp-page .lp-section { padding: 40px 0; }
  .lp-page .lp-cta { padding: 32px 20px; }
}

/* ---------- Footer: areas and services links (internal linking) ---------- */
.homepage .foot-seo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; padding: 22px 0; border-top: 1px solid var(--line); margin-top: 22px; }
.homepage .foot-seo-title { font: 600 12px IBM Plex Mono, monospace; letter-spacing: .08em; text-transform: uppercase; color: #9e3a24; margin: 0 0 10px; }
.homepage .foot-seo div div { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.homepage .foot-seo a { font: 500 14px Inter, sans-serif; text-decoration: none; color: var(--ink-soft); display: inline-block; padding: 5px 0; min-height: 24px; }
.homepage .foot-seo a:hover { color: var(--green-deep); text-decoration: underline; }
@media (max-width: 640px) { .homepage .foot-seo { grid-template-columns: 1fr; text-align: center; } .homepage .foot-seo div div { justify-content: center; } }

/* Homepage "Situations" titles now link to the service pages */
.homepage .situation h3 a { color: inherit; text-decoration: none; }
.homepage .situation h3 a:hover { text-decoration: underline; }

/* ---------- Home sale calculator (/home-sale-calculator) ---------- */
.lp-page .calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.lp-page .calc-inputs { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.lp-page .calc-inputs h2, .lp-page .calc-inputs > .calc-fine { grid-column: 1 / -1; margin: 0 !important; }
.lp-page .calc-field { display: flex; flex-direction: column; gap: 6px; font: 600 14px/1.3 Inter, sans-serif; color: var(--ink); }
.lp-page .calc-field input { font: 500 16px Inter, sans-serif; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); width: 100%; min-width: 0; }
.lp-page .calc-field input:focus { outline: 2px solid var(--green); outline-offset: 1px; background: #fff; }
.lp-page .calc-field small { font: 400 12.5px/1.4 Inter, sans-serif; color: var(--ink-soft); }
.lp-page .calc-results { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.lp-page .calc-results h2 { margin: 0 0 4px !important; }
.lp-page .calc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.lp-page .calc-card span { font: 600 12px IBM Plex Mono, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.lp-page .calc-card strong { font: 600 34px/1.1 Fraunces, serif; color: var(--ink); }
.lp-page .calc-card small { font: 400 13.5px/1.45 Inter, sans-serif; color: var(--ink-soft); }
.lp-page .calc-green { background: var(--green-pale); border-color: var(--green-pale); }
.lp-page .calc-green strong { color: var(--green-deep); }
#root .lp-page .calc-warn { background: #fdecea; border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #8a2b1d; margin: 0; text-align: left; }
.lp-page .calc-results .btn { width: 100%; }
#root .lp-page .calc-fine { font-size: 12.5px; color: var(--ink-soft); margin: 0; text-align: left; }
@media (max-width: 860px) {
  .lp-page .calc { grid-template-columns: 1fr; }
  .lp-page .calc-results { position: static; }
}
@media (max-width: 520px) { .lp-page .calc-inputs { grid-template-columns: 1fr; padding: 18px; } }

/* Blog page: free calculator banner */
.homepage .blog-tool-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--green-pale); border-radius: 14px; padding: 18px 22px; margin: 8px 0 4px; text-decoration: none; color: var(--ink); }
.homepage .blog-tool-banner b { font: 600 18px Fraunces, serif; display: block; margin-bottom: 2px; }
.homepage .blog-tool-banner span { font: 400 14px Inter, sans-serif; color: var(--ink-soft); }
.homepage .blog-tool-banner em { font: 700 14px Inter, sans-serif; font-style: normal; color: var(--green-deep); white-space: nowrap; }
@media (max-width: 640px) { .homepage .blog-tool-banner { flex-direction: column; align-items: flex-start; } }
#root .lp-page .calc-field, #root .lp-page .calc-field small { text-align: left; text-align-last: left; }

/* Landing pages: headings centered, body text left (lists, FAQ questions and answers, county lists) */
#root .lp-page .lp-section h2, #root .lp-page .lp-narrow > h3 { text-align: center; }
#root .lp-page .lp-list, #root .lp-page .lp-list li,
#root .lp-page .lp-faq summary, #root .lp-page .lp-faq details p,
#root .lp-page .lp-counties, #root .lp-page .lp-steps li, #root .lp-page .lp-card { text-align: left; text-align-last: left; }

/* Landing page hero: whole block centered (eyebrow, heading, intro, form, note) */
#root .lp-page .lp-hero .wrap { text-align: center; }
#root .lp-page .lp-hero h1, #root .lp-page .lp-lead, #root .lp-page .lp-form { margin-left: auto; margin-right: auto; }
#root .lp-page .lp-lead, #root .lp-page .lp-hero-note { text-align: center; text-align-last: center; }
#root .lp-page .lp-form input { text-align: left; }

/* Call/text consent under lead forms */
#root .form-consent, .offer-popup .form-consent { font: 400 11.5px/1.5 Inter, sans-serif; color: var(--ink-soft, #4a453e); opacity: .85; margin: 10px auto 0; max-width: 560px; text-align: center; text-align-last: center; }
#root .contact-form .form-consent, #root .sop-form .form-consent { text-align: left; text-align-last: left; margin-left: 0; }

/* AI article → matching city/county page */
.homepage .ai-local-box { display: flex; flex-direction: column; gap: 4px; margin: 28px 0 8px; padding: 18px 22px; border-radius: 14px; background: var(--green-pale); text-decoration: none; color: var(--ink); border: 1px solid var(--green-pale); }
.homepage .ai-local-box:hover { border-color: var(--green); }
.homepage .ai-local-box b { font: 600 18px Fraunces, serif; }
.homepage .ai-local-box span { font: 600 14px Inter, sans-serif; color: var(--green-deep); }

/* Homepage: Areas we serve (links to every city and county page) */
.homepage .home-areas { background: var(--paper); }
.homepage .home-areas-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.homepage .home-areas-group h3 { font: 600 20px Fraunces, serif; margin: 0 0 12px; text-align: center; }
.homepage .home-areas-group h3 a { color: var(--ink); text-decoration: none; }
.homepage .home-areas-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.homepage .home-areas-chips a { font: 500 14px Inter, sans-serif; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--green-deep); text-decoration: none; min-height: 24px; }
.homepage .home-areas-chips a:hover { border-color: var(--green); background: var(--green-pale); }
@media (max-width: 860px) { .homepage .home-areas-grid { grid-template-columns: 1fr; } }
