/* =========================================================
   South Bend Cash Home Buyers — landing page stylesheet
   ========================================================= */

:root {
  --green-900: #0e4f33;
  --green-700: #1a8754;
  --green-600: #20a065;
  --green-100: #e7f6ee;
  --ink-900:   #0f172a;
  --ink-700:   #334155;
  --ink-500:   #64748b;
  --ink-300:   #cbd5e1;
  --ink-100:   #f1f5f9;
  --bg:        #ffffff;
  --bg-alt:    #f7faf8;
  --gold:      #d4a017;
  --gold-600:  #b8870e;
  --gold-300:  #f0c54a;
  --gold-100:  #fdf3d4;
  --radius:    12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, .12), 0 8px 10px -6px rgba(15, 23, 42, .08);
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

p { margin: 0 0 1em; }

.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;
}

.container { width: 92%; max-width: var(--max-w); margin: 0 auto; }
.container-narrow { max-width: 800px; }
.text-center { text-align: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4em;
  padding: .85em 1.4em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--green-700); color: #fff;
  box-shadow: var(--shadow-sm), inset 0 -3px 0 var(--gold-600);
}
.btn-primary:hover {
  background: var(--green-600); color: #fff;
  box-shadow: var(--shadow-md), inset 0 -3px 0 var(--gold);
}
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-300); }
.btn-ghost:hover { border-color: var(--green-700); color: var(--green-700); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: #fff; color: var(--green-900); border-color: #fff; }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn-sm { padding: .6em 1em; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- TOPBAR ---------- */
.topbar {
  background: var(--green-900); color: #d8f1e3; font-size: .85rem;
  border-bottom: 2px solid var(--gold);
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 0;
  gap: 1rem; flex-wrap: wrap;
}
.topbar-text { opacity: .9; }
.topbar-star { color: var(--gold-300); margin-right: .15rem; }
.topbar-phone { color: #fff; font-weight: 600; }
.topbar-phone:hover { color: #fff; opacity: .85; text-decoration: none; }

/* ---------- HEADER ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--ink-100);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink-900); font-size: 1.1rem;
}
.logo:hover { text-decoration: none; }
.logo-text strong { font-weight: 800; color: var(--green-700); }
.logo-light { color: #fff; }
.logo-light .logo-text strong { color: #9be8b8; }

.nav-list {
  list-style: none; display: flex; align-items: center; gap: 1.4rem;
  margin: 0; padding: 0;
}
.nav-list a { color: var(--ink-700); font-weight: 500; font-size: .95rem; }
.nav-list a:hover { color: var(--green-700); text-decoration: none; }
.nav-list .btn { color: #fff; }

.nav-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  padding: .5rem; border-radius: 8px;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  content: ''; display: block;
  width: 24px; height: 2px; background: var(--ink-900); border-radius: 2px;
  transition: transform .15s ease, opacity .15s ease;
}
.hamburger { position: relative; }
.hamburger::before { position: absolute; top: -7px; left: 0; }
.hamburger::after  { position: absolute; top:  7px; left: 0; }

/* ---------- HERO ---------- */
.hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(26,135,84,.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  padding: 3.5rem 0 4rem;
}
.hero-inner {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .8rem; font-weight: 700;
  color: var(--green-700);
  background: var(--green-100);
  padding: .35rem .75rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.hero-copy h1 { margin-bottom: .8rem; }
.hero-copy .lead { font-size: 1.15rem; color: var(--ink-700); margin-bottom: 1.5rem; }
.hero-points {
  list-style: none; padding: 0; margin: 0 0 1.75rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.2rem;
}
@media (max-width: 520px) { .hero-points { grid-template-columns: 1fr; } }
.hero-points li { display: flex; align-items: center; gap: .55rem; font-weight: 500; color: var(--ink-700); }
.check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700); font-weight: 700;
  flex-shrink: 0;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }

.hero-trust {
  display: flex; gap: 1.75rem; flex-wrap: wrap;
  padding-top: 1.25rem; border-top: 1px solid var(--ink-100);
}
.trust-item { display: flex; flex-direction: column; gap: .15rem; }
.trust-item strong { font-size: 1.4rem; color: var(--green-700); font-weight: 800; }
.trust-item .gold-star { color: var(--gold); margin-left: 1px; text-shadow: 0 1px 0 rgba(184,135,14,.25); }
.trust-item span { font-size: .85rem; color: var(--ink-500); }

/* ---------- LEAD FORM ---------- */
.hero-form { position: relative; }
@media (min-width: 961px) {
  .hero-form { position: sticky; top: 84px; }
}
.form-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green-700) 0%, var(--green-700) 60%, var(--gold) 60%, var(--gold) 100%);
}
.form-title { font-size: 1.4rem; margin-bottom: .25rem; color: var(--green-900); }
.form-sub { color: var(--ink-500); margin-bottom: 1.25rem; font-size: .95rem; }

.lead-form .field { margin-bottom: 1rem; }
.lead-form label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--ink-700); margin-bottom: .35rem;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--ink-300);
  border-radius: 8px;
  font: inherit; font-size: .95rem;
  color: var(--ink-900);
  background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none; border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(26,135,84,.18);
}
.lead-form textarea { resize: vertical; min-height: 84px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 480px) { .lead-form .row { grid-template-columns: 1fr; } }
.form-fineprint {
  font-size: .8rem; color: var(--ink-500); margin: .8rem 0 0; text-align: center;
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- SECTIONS ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.section-head .eyebrow { margin-bottom: .75rem; }
.section-head h2 { position: relative; padding-bottom: .9rem; margin-bottom: .9rem; }
.section-head h2::after {
  content: '';
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold), var(--gold-600));
  border-radius: 2px;
}
.section-head p { color: var(--ink-700); font-size: 1.05rem; }

/* ---------- STEPS ---------- */
.steps {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-700); color: #fff;
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 3px var(--gold-100), 0 0 0 4px var(--gold);
}
.step h3 { margin-bottom: .5rem; }
.step p  { color: var(--ink-700); margin: 0; }

/* ---------- COMPARE TABLE ---------- */
.compare { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); min-width: 580px;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.1rem; text-align: left;
  border-bottom: 1px solid var(--ink-100);
}
.compare-table th { background: var(--ink-100); font-weight: 700; font-size: .9rem; }
.compare-table th.us {
  background: var(--green-700); color: #fff;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.compare-table td.us { background: rgba(26,135,84,.06); color: var(--green-900); }
.compare-table tr:last-child td { border-bottom: 0; }
.cta-row { text-align: center; margin-top: 2rem; }

/* ---------- GRIDS ---------- */
.grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(4, 1fr);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-100);
}
.card h3 { color: var(--green-900); }
.card p  { color: var(--ink-700); margin: 0; }

/* ---------- TESTIMONIALS ---------- */
.quote {
  margin: 0; background: #fff; padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-sm);
}
.stars {
  color: var(--gold);
  font-size: 1.05rem; letter-spacing: 2px;
  margin-bottom: .85rem;
  text-shadow: 0 1px 0 rgba(184,135,14,.2);
}
.quote blockquote {
  margin: 0 0 1rem; font-size: 1.02rem; color: var(--ink-700); font-style: italic;
  position: relative; padding-left: 1.4rem;
}
.quote blockquote::before {
  content: '“'; position: absolute; left: 0; top: -.35rem;
  font-size: 2.5rem; line-height: 1; color: var(--green-700); font-family: Georgia, serif;
}
.quote figcaption { font-size: .9rem; color: var(--ink-500); font-weight: 600; }

/* ---------- AREAS ---------- */
.area-list {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem;
}
@media (max-width: 700px) { .area-list { grid-template-columns: repeat(2, 1fr); } }
.area-list li {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: 8px; padding: .65rem .9rem;
  font-weight: 500; color: var(--ink-700); text-align: center;
}
.area-zip { color: var(--ink-700); text-align: center; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: .75rem;
  transition: box-shadow .12s ease;
}
.faq details[open] { box-shadow: var(--shadow-md); border-color: var(--green-100); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink-900);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.5rem; line-height: 1;
  color: var(--green-700); font-weight: 400;
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: .8rem 0 0; color: var(--ink-700); }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p  { color: rgba(255,255,255,.85); margin: 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.site-footer { background: #0c1f17; color: #c8d6cf; }
.footer-inner {
  display: grid; gap: 2rem; padding: 3rem 0 2rem;
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; margin-bottom: .8rem; }
.footer-col p { color: #9fb6ad; margin: 0; }
.footer-col a { color: #d8e6df; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; }
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .85rem; color: #8aa499; flex-wrap: wrap;
}
.disclaimer { font-style: italic; }

/* ---------- THANK-YOU PAGE ---------- */
.thanks-page { background: var(--bg-alt); }
.thanks { padding-top: 4rem; padding-bottom: 5rem; }
.checkmark-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 800;
  margin-bottom: 1.25rem; box-shadow: var(--shadow-sm);
}
.thanks .lead { font-size: 1.2rem; color: var(--ink-700); margin-bottom: 2rem; }
.thanks-next {
  background: #fff; border-radius: var(--radius-lg);
  padding: 1.75rem; text-align: left;
  border: 1px solid var(--ink-100); box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.thanks-next h2 { font-size: 1.25rem; margin-bottom: .8rem; }
.thanks-next ol { padding-left: 1.2rem; margin: 0; color: var(--ink-700); }
.thanks-next li { margin-bottom: .5rem; }
.thanks-cta { margin-bottom: 2rem; }
.thanks-cta p { color: var(--ink-700); }
.thanks-back { color: var(--ink-500); }

/* ---------- MOBILE NAV ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: absolute; right: 4%; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch;
    background: #fff; padding: 1rem;
    border: 1px solid var(--ink-100); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: .55rem .25rem; }
  .nav-list .btn { text-align: center; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
