/* Buffalo Rent to Own Homes — mobile-first */
:root {
  --bg: #f7f5f1;
  --bg-card: #ffffff;
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --muted: #6b7280;
  --line: #e5e1d8;
  --brand: #1e3a5f;
  --brand-2: #2c5282;
  --accent: #c45c26;
  --accent-soft: #fdf0e9;
  --ok: #1f7a4d;
  --warn: #9a6700;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0; flex-wrap: wrap;
}
.logo {
  font-weight: 700; font-size: 1.05rem; color: var(--brand); text-decoration: none;
  letter-spacing: -0.02em; max-width: 14rem; line-height: 1.25;
}
.logo span { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: .45rem .7rem; cursor: pointer; font-size: .9rem; color: var(--ink);
}
.nav { display: none; width: 100%; }
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: .5rem 0 0; display: flex; flex-direction: column; gap: .15rem; }
.nav a {
  display: block; padding: .55rem .65rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.header-phone {
  font-weight: 600; color: var(--brand); text-decoration: none; font-size: .95rem; white-space: nowrap;
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .nav { display: block; width: auto; margin-left: auto; }
  .nav ul { flex-direction: row; gap: .15rem; padding: 0; align-items: center; }
  .logo { max-width: none; }
  .logo span { display: inline; margin-left: .4rem; }
}

/* Hero / sections */
.hero {
  background: linear-gradient(145deg, #1e3a5f 0%, #2a4a73 55%, #1a3048 100%);
  color: #f8fafc; padding: 2.75rem 0 3rem;
}
.hero h1 {
  margin: 0 0 .75rem; font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.15; letter-spacing: -0.03em; max-width: 18ch;
}
.hero p.lead { margin: 0 0 1.5rem; font-size: 1.05rem; color: #dbe4f0; max-width: 38rem; }
.hero-ctas { display: grid; gap: .75rem; }
@media (min-width: 640px) { .hero-ctas { grid-template-columns: 1fr 1fr; max-width: 36rem; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.15rem; border-radius: 10px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a84c1f; color: #fff; }
.btn-secondary { background: #fff; color: var(--brand); }
.btn-secondary:hover { background: #eef3f9; color: var(--brand); }
.btn-outline {
  background: transparent; color: var(--brand); border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-block { width: 100%; }

.section { padding: 2.5rem 0; }
.section-tight { padding: 1.75rem 0; }
.section h2 {
  margin: 0 0 .75rem; font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em; line-height: 1.2;
}
.section .sub { color: var(--ink-soft); margin: 0 0 1.5rem; max-width: 40rem; }
.grid-2, .grid-3 { display: grid; gap: 1rem; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card a.card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card a.card-link:hover h3 { color: var(--accent); }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; background: var(--accent-soft); color: var(--accent);
  padding: .25rem .55rem; border-radius: 999px; margin-bottom: .65rem;
}
.badge-sample { background: #fef3c7; color: #92400e; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.steps li {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1rem 1rem 3.4rem; position: relative;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1rem; top: 1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem;
  display: grid; place-items: center;
}
.steps strong { display: block; margin-bottom: .2rem; }
.note {
  background: #eef6ff; border-left: 4px solid var(--brand-2);
  padding: .9rem 1rem; border-radius: 0 8px 8px 0; color: var(--ink-soft); font-size: .95rem;
}
.note.warn { background: #fff8e8; border-left-color: var(--warn); }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .8rem; font-size: .88rem; text-decoration: none; color: var(--ink); font-weight: 500;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }

/* Forms */
.form-shell { max-width: 40rem; }
.form-progress {
  display: flex; gap: .35rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.form-progress span {
  flex: 1; min-width: 3.5rem; height: 6px; border-radius: 99px; background: var(--line);
}
.form-progress span.on { background: var(--brand); }
.form-step { display: none; }
.form-step.active { display: block; }
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem;
}
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 8px;
  font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid #93c5fd; border-color: var(--brand-2);
}
.field-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.consent {
  display: flex; gap: .65rem; align-items: flex-start;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 8px;
  padding: .85rem .9rem; margin: 1rem 0;
}
.consent input { margin-top: .2rem; flex-shrink: 0; width: auto; }
.consent label { font-weight: 500; font-size: .88rem; color: var(--ink-soft); }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.form-msg {
  margin-top: 1rem; padding: .85rem 1rem; border-radius: 8px; display: none; font-size: .95rem;
}
.form-msg.ok { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-msg.err { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Listing */
.listing-hero {
  aspect-ratio: 16/9; background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  border-radius: var(--radius); margin-bottom: 1.25rem; display: grid; place-items: center;
  color: var(--ink-soft); font-weight: 600;
}
.listing-meta { display: grid; gap: .65rem; margin: 1rem 0 1.5rem; }
@media (min-width: 560px) { .listing-meta { grid-template-columns: repeat(2, 1fr); } }
.listing-meta div {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem;
}
.listing-meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 .15rem; font-weight: 700; }
.listing-meta dd { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--brand); }

/* Footer */
.site-footer {
  background: #132033; color: #cbd5e1; padding: 2.5rem 0 1.5rem; margin-top: 2rem;
}
.site-footer a { color: #e2e8f0; }
.footer-grid { display: grid; gap: 1.5rem; margin-bottom: 1.75rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: .95rem; margin: 0 0 .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer .fine {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem;
  font-size: .8rem; color: #94a3b8;
}
.eho {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; margin-top: .75rem;
}
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.prose { max-width: 42rem; }
.prose p { color: var(--ink-soft); }
.prose ul { color: var(--ink-soft); padding-left: 1.2rem; }
.prose h2 { margin-top: 1.75rem; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  padding: .85rem 1rem; margin-bottom: .6rem;
}
.faq summary { font-weight: 650; cursor: pointer; }
.faq details p { margin: .65rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.table-simple { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table-simple th, .table-simple td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-simple th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }

/* Phone hidden until SITE.showPhone is true */
[data-phone][hidden],
[data-phone-wrap][hidden],
[data-email][hidden] { display: none !important; }
