/* ============================================================
   Iron Horse Home Buyers — Shared Styles
   Palette: Iron #1B1918 · Limestone #EFE9DC · Rust #A8451F · Steel #4F6367
   Type: Big Shoulders Display (headlines) / Archivo (body) / IBM Plex Mono (labels)
   ============================================================ */

:root {
  --iron: #1B1918;
  --iron-border: #33302A;
  --limestone: #EFE9DC;
  --limestone-deep: #E4DCC8;
  --surface: #F8F5EC;
  --rust: #A8451F;
  --rust-dark: #8A3A19;
  --rust-soft: #E7CCBB;
  --steel: #4F6367;
  --ink: #211E19;
  --ink-muted: #5B564A;
  --border: #D8CFB8;
  --band-text-muted: #A89F8C;
  --on-rust: #FBF7EE;
  --shadow-sm: 0 1px 0 rgba(33,30,25,0.06);
  --shadow-md: 0 8px 24px rgba(27,25,24,0.16);
  --radius: 3px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rust); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  margin: 0 0 14px;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4.2vw, 40px); }
h3 { font-size: 20px; text-transform: none; font-weight: 700; }
p { margin: 0 0 16px; max-width: 62ch; }
p.lead { font-size: 18px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; max-width: 62ch; }
li { margin-bottom: 6px; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-block;
  margin-bottom: 12px;
}
.eyebrow.on-dark { color: #D2673B; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--rust);
  color: var(--on-rust);
}
.btn-primary:hover { background: var(--rust-dark); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--limestone);
  color: var(--limestone);
}
.btn-outline-dark:hover { background: rgba(239,233,220,0.08); }
.btn-outline-light {
  background: transparent;
  border-color: var(--iron);
  color: var(--iron);
}
.btn-outline-light:hover { background: rgba(27,25,24,0.06); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- header ---------- */
.site-header {
  background: var(--iron);
  border-bottom: 1px solid var(--iron-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.logo {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--limestone);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}
.logo span { color: #C2572E; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--band-text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a.active { color: var(--limestone); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.phone-link {
  color: var(--limestone);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14.5px;
  white-space: nowrap;
}
.phone-link:hover { color: #D2673B; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--limestone);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 6px;
}

@media (max-width: 880px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn-primary { display: none; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--iron);
    border-bottom: 1px solid var(--iron-border);
    padding: 10px 24px 20px;
  }
  .site-header.nav-open .main-nav a { padding: 10px 0; width: 100%; }
}

/* ---------- hero band ---------- */
.hero {
  background: var(--iron);
  color: var(--limestone);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(194,87,46,0.14), transparent 42%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 68px);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--iron-border);
}
.hero h1 { color: var(--limestone); max-width: 16ch; }
.hero .sub {
  font-size: 18px;
  color: var(--band-text-muted);
  max-width: 56ch;
  margin-bottom: 28px;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 30px; }
.hero .call-note { font-size: 14.5px; color: var(--band-text-muted); }
.hero .call-note strong { color: var(--limestone); }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  border-top: 1px solid var(--iron-border);
  padding-top: 22px;
  font-size: 13.5px;
  color: var(--band-text-muted);
  font-family: 'IBM Plex Mono', monospace;
}
.trust-strip span::before { content: "— "; color: #C2572E; }

/* smaller page-header variant for interior pages */
.page-hero { padding: 56px 0 46px; }
.page-hero h1 { max-width: 22ch; }
.page-hero .sub { margin-bottom: 8px; }

/* ---------- generic sections ---------- */
section.section { padding: 72px 0; }
section.section.tight { padding: 48px 0; }
.section-head { max-width: 68ch; margin-bottom: 40px; }
.section-head p { color: var(--ink-muted); font-size: 16.5px; }
.surface { background: var(--surface); }
.deep { background: var(--limestone-deep); }

/* ---------- cards / grids ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h4 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  text-transform: none;
  margin: 0 0 8px;
}
.card p { font-size: 14.5px; color: var(--ink-muted); margin: 0; max-width: none; }
.card .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--rust);
  margin-bottom: 10px;
  display: block;
}

/* steps */
.steps { counter-reset: step; display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.step:first-child { border-top: none; padding-top: 0; }
.step .stepnum {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: var(--rust);
  line-height: 1;
}
.step h4 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 18px; text-transform: none; margin: 0 0 6px; }
.step p { color: var(--ink-muted); margin: 0; }
@media (max-width: 560px) { .step { grid-template-columns: 44px 1fr; } .step .stepnum { font-size: 30px; } }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--surface); }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 15px; }
th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  background: var(--limestone-deep);
}
tr:last-child td { border-bottom: none; }
td.no { color: var(--rust); font-weight: 600; }
td.yes { color: var(--steel); font-weight: 600; }

/* callout */
.callout {
  background: var(--rust-soft);
  border-left: 3px solid var(--rust);
  padding: 18px 20px;
  border-radius: 2px;
  max-width: 66ch;
}
.callout .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-dark);
  display: block;
  margin-bottom: 6px;
}

/* faq */
.faq-item { border-top: 1px solid var(--border); padding: 22px 0; }
.faq-item:first-child { border-top: none; }
.faq-item h4 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 17px; text-transform: none; margin: 0 0 8px; }
.faq-item p { color: var(--ink-muted); margin: 0; }

/* final CTA band */
.cta-band {
  background: var(--iron);
  color: var(--limestone);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--limestone); max-width: none; }
.cta-band .sub { color: var(--band-text-muted); max-width: 52ch; margin: 0 auto 28px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- form ---------- */
.offer-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 480px;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.offer-form .field { margin-bottom: 18px; }
.offer-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.offer-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  color: var(--ink);
}
.offer-form input:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(168,69,31,0.15);
}
.form-note { font-size: 13px; color: var(--ink-muted); margin-top: 14px; margin-bottom: 0; }
.form-note.privacy { margin-top: 8px; }
.form-status { font-size: 14px; margin-top: 14px; display: none; }
.form-status.success { color: var(--steel); display: block; }
.form-status.error { color: var(--rust); display: block; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--iron);
  color: var(--band-text-muted);
  padding: 56px 0 28px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--iron-border);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h5 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--limestone);
  margin: 0 0 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--band-text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--limestone); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
}
.footer-bottom a { color: var(--band-text-muted); }

/* ---------- mobile sticky CTA bar ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--iron);
  border-top: 1px solid var(--iron-border);
  z-index: 200;
  padding: 10px 14px;
  gap: 10px;
}
@media (max-width: 700px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 66px; }
}
.mobile-cta-bar a { flex: 1; text-align: center; }

/* utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
