/* ============================================================
   Rogue Valley Cash Buyers — shared stylesheet
   Palette: bone, forest, sage, terracotta, sand, ink
   Type: Fraunces (display) + Public Sans (body)
   ============================================================ */

:root {
  --bone: #F2EEE3;
  --sand: #E6DCC3;
  --forest: #26382B;
  --forest-dark: #1A2620;
  --sage: #8B9A7C;
  --sage-dark: #66755A;
  --terracotta: #B5623E;
  --terracotta-dark: #954E30;
  --ink: #2B2822;
  --ink-soft: #55503F;
  --line: #CFC4A4;
  --white: #FFFDF8;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1120px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--terracotta-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--terracotta); }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest-dark);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em 0; max-width: 62ch; color: var(--ink-soft); }
p.lede { font-size: 1.15rem; color: var(--ink); max-width: 56ch; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Layered rule motif (Table Rocks strata) ---- */
.strata {
  height: 10px;
  background: repeating-linear-gradient(
    to right,
    var(--sage) 0 40px,
    var(--terracotta) 40px 46px,
    var(--sage) 46px 86px,
    var(--forest) 86px 90px
  );
  opacity: 0.85;
}

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---- Header ---- */
.site-header {
  background: var(--forest-dark);
  color: var(--white);
  padding: 14px 0;
  position: relative;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.brand:hover { color: var(--sand); }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--sage);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-nav a {
  color: var(--bone);
  text-decoration: none;
  font-size: 0.94rem;
}
.site-nav a:hover { color: var(--terracotta); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--white);
  border: 1px solid var(--sage);
  padding: 8px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-phone .icon { width: 18px; height: 18px; }
.header-phone:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ---- Mobile nav toggle ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bone);
  border-radius: 1px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); }
.btn-secondary {
  background: transparent;
  border-color: var(--forest-dark);
  color: var(--forest-dark);
}
.btn-secondary:hover { background: var(--forest-dark); color: var(--white); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---- Hero ---- */
.hero {
  background: var(--forest-dark);
  color: var(--bone);
  padding: 64px 0 56px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p.lede { color: var(--sand); }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--sage); }
.hero-art { width: 100%; border-radius: 4px; overflow: hidden; }

/* ---- Icons (shared line-icon set) ---- */
.icon { width: 26px; height: 26px; display: block; flex-shrink: 0; }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta-dark);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge.small { width: 44px; height: 44px; margin-bottom: 10px; }
.icon-badge.small .icon { width: 22px; height: 22px; }

/* ---- Trust bar ---- */
.trust-bar {
  background: var(--sand);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.trust-bar .container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--forest-dark);
  max-width: 160px;
}
.trust-item .icon { color: var(--terracotta-dark); margin: 0 auto 8px; }
.trust-item span {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.82rem;
  margin-top: 2px;
}

/* ---- Sections ---- */
section { padding: 64px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 40px; }

/* ---- Process steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step { border-left: 3px solid var(--sage); padding-left: 20px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--terracotta);
  margin-bottom: 6px;
}

/* ---- Situation grid ---- */
.situations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.situation-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  display: block;
}
.situation-card:hover { border-color: var(--terracotta); }
.situation-card:hover .icon-badge { background: var(--terracotta); color: var(--white); }
.situation-card h3 { margin-bottom: 8px; color: var(--forest-dark); }
.situation-card p { margin-bottom: 0; font-size: 0.95rem; }
.situation-card .arrow { color: var(--terracotta-dark); font-weight: 700; }

/* ---- Comparison table ---- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--white);
}
.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.compare th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest-dark);
  background: var(--sand);
}
.compare td.highlight { color: var(--terracotta-dark); font-weight: 700; }

/* ---- FAQ accordion ---- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 1.1rem; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  margin: 0;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: 600;
  color: var(--forest-dark);
  text-align: left;
  cursor: pointer;
}
.faq-q:hover { color: var(--terracotta-dark); }
.faq-q::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--terracotta-dark);
  transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.faq-item.is-open .faq-a { max-height: 600px; }
.faq-a p { margin: 0 0 20px 0; }

/* ---- Local / info blocks ---- */
.local-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--white);
  border-left: 3px solid var(--terracotta);
  padding: 14px 18px;
  margin-top: 20px;
  max-width: 62ch;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--forest-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
}
.chip:hover { background: var(--terracotta); color: var(--white); border-color: var(--terracotta); }

/* ---- Areas We Serve grid ---- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.area-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}
.area-card h3 { margin-bottom: 6px; font-size: 1.15rem; }
.area-card p { font-size: 0.93rem; margin-bottom: 0; }

/* ---- Form ---- */
.form-alert {
  display: none;
  background: var(--terracotta);
  color: var(--white);
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
}
.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
}
.lead-form h2 { font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--forest-dark);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 90px; }
.form-disclosure { font-size: 0.8rem; color: var(--ink-soft); margin-top: 12px; }

/* honeypot field, hidden from real users, visible to spam bots that fill everything */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--terracotta);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--white); margin: 0 auto 24px; }
.cta-band .btn-secondary { border-color: var(--white); color: var(--white); }
.cta-band .btn-secondary:hover { background: var(--white); color: var(--terracotta-dark); }

/* ---- Footer ---- */
.site-footer {
  background: var(--forest-dark);
  color: var(--sand);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: var(--sand); text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--terracotta); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid var(--sage-dark);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--sage);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- Utility ---- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-32 { margin-top: 32px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .situations { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Phones: collapse the nav behind a hamburger, tighten spacing, keep
   the call button visible (and tappable) at all times. */
@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .site-header .container { flex-wrap: nowrap; }
  .brand { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--forest-dark);
    border-top: 1px solid var(--sage-dark);
    padding: 4px 18px 18px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    z-index: 30;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.02rem;
  }
  .header-phone .phone-text { display: none; }
  .header-phone { padding: 10px; border-radius: 50%; }

  .hero { padding: 40px 0 34px; }
  .hero .container { gap: 32px; }
  section { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .lead-form { padding: 22px 18px; }
  .cta-band { padding: 40px 0; }
  .steps { gap: 24px; }
}

@media (max-width: 600px) {
  .situations { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar .container { gap: 24px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   Article / FAQ cluster pages (probate question pages, etc.)
   ============================================================ */

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--sage);
  margin: 0 0 16px 0;
}
.breadcrumb a { color: var(--sand); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.6; }

/* ---- Simple article hero (no illustration) ---- */
.article-hero { background: var(--forest-dark); color: var(--bone); padding: 44px 0 40px; }
.article-hero .container { display: block; }
.article-hero h1 { color: var(--white); max-width: 900px; }
.article-hero p.lede { color: var(--sand); max-width: 68ch; }
.article-hero .hero-actions { margin-top: 24px; }

/* ---- Quick-answer callout ---- */
.quick-answer {
  background: var(--white);
  border-left: 4px solid var(--terracotta);
  padding: 20px 24px;
  margin: 8px 0 36px;
  max-width: 68ch;
}
.quick-answer .label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--terracotta-dark);
  margin-bottom: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.quick-answer p { margin: 0; color: var(--ink); font-size: 1.05rem; max-width: none; }

/* ---- Article body typography ---- */
.article-body { max-width: 720px; }
.article-body h2 { margin-top: 1.5em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 1.2em; font-size: 1.15rem; }
.article-body ul, .article-body ol {
  padding-left: 22px;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 1.1em 0;
}
.article-body li { margin-bottom: 7px; }
.article-body li strong { color: var(--ink); }

/* ---- Related questions grid (reuses situation-card look) ---- */
.related-head { max-width: 640px; margin-bottom: 28px; }
.related-head h2 { margin-bottom: 6px; }

/* ---- Hub intro band ---- */
.hub-intro { max-width: 68ch; }

/* ---- Article hero image ---- */
.article-hero-image {
  margin-top: 32px;
  border-radius: 4px;
  overflow: hidden;
  height: 380px;
}
.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .article-hero-image { height: 220px; }
}
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

/* ---- Secondary (call) button on dark hero backgrounds ---- */
.hero .btn-secondary, .article-hero .btn-secondary { border-color: var(--sand); color: var(--white); }
.hero .btn-secondary:hover, .article-hero .btn-secondary:hover { background: var(--white); color: var(--forest-dark); }

/* ==== Lead-conversion additions (2026-10-04) ==== */

/* Hero quick-start: address field that hands off to the full form */
.quick-offer { margin-top: 28px; max-width: 560px; }
.quick-offer label { display: block; color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.2; margin-bottom: 16px; }
.quick-offer-row { display: flex; gap: 10px; }
.quick-offer input {
  flex: 1; min-width: 0;
  padding: 15px 16px; font-size: 1.1rem; font-family: var(--font-body);
  border: 1px solid var(--sage); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
}
.quick-offer .btn { white-space: nowrap; }
.quick-offer + .hero-actions { margin-top: 16px; }

.optional { font-weight: 400; color: var(--ink-soft); font-size: 0.85em; }

/* Submit button while sending */
.btn[disabled] { opacity: 0.75; cursor: progress; }

/* Brief highlight when the visitor lands on the form from the hero */
.lead-form.is-highlighted { box-shadow: 0 0 0 3px var(--terracotta); transition: box-shadow 0.3s; }

/* Sticky phone action bar (injected by nav.js) */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--forest-dark); border-top: 2px solid var(--terracotta);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .mobile-cta a {
    flex: 1; text-align: center; text-decoration: none;
    padding: 12px 6px; border-radius: var(--radius);
    font-weight: 700; font-size: 0.95rem;
    color: var(--white); border: 1px solid var(--sage);
  }
  .mobile-cta a.primary { background: var(--terracotta); border-color: var(--terracotta); }
  .mobile-cta a.is-hidden { display: none; }
  body.has-mobile-cta { padding-bottom: 72px; }
}

/* Phones: show the headline and address box first, not the illustration */
@media (max-width: 640px) {
  .hero-art { display: none; }
  .quick-offer-row { flex-direction: column; }
  .quick-offer .btn { width: 100%; text-align: center; }
  .hero-actions .btn { flex: 1; text-align: center; }
}


/* Oregon wholesaler disclosure (required: at least 10-point bold) */
.footer-disclosure { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--sage-dark); }
.footer-disclosure p { font-size: 14px; font-weight: 700; line-height: 1.5; margin: 0; color: var(--sand); }
.footer-disclosure a { text-decoration: underline; color: inherit; font-size: inherit; }
.related-inline { margin-top: 24px; }

/* ---- Honest fit check: cash sale vs. listing (homepage) ---- */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.fit-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sage);
  padding: 24px 26px;
}
.fit-col.fit-no { border-top-color: var(--line); }
.fit-col h3 { color: var(--forest-dark); margin-bottom: 12px; }
.fit-col ul { margin: 0 0 0 1.1em; padding: 0; }
.fit-col li { margin-bottom: 8px; }
.fit-col p { margin: 12px 0 0; font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .fit-grid { grid-template-columns: 1fr; }
}

/* Situation cards: compact two-up tiles on phones so a long list
   doesn't push the form miles down the page. */
@media (max-width: 600px) {
  .situations.compact-mobile { grid-template-columns: 1fr 1fr; gap: 12px; }
  .situations.compact-mobile .situation-card { padding: 16px; }
  .situations.compact-mobile .situation-card h3 { font-size: 1rem; margin-bottom: 0; }
  .situations.compact-mobile .situation-card p,
  .situations.compact-mobile .situation-card .arrow { display: none; }
  .situations.compact-mobile .icon-badge { margin-bottom: 10px; }
}
