/* Liberty Bail Bonds — fictional demo */
:root {
  --bg: #161310;
  --ink: #F3EDE0;
  --accent: #C9A227;
  --panel: #211B14;
  --line: #3A3226;
  --muted: #B9AE99;
  --radius: 2px;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Room for the fixed call bar */
  padding-bottom: 76px;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #161310;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(3rem, 9vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.5rem; letter-spacing: 0.04em; }

p { margin: 0 0 1em; }
a { color: var(--ink); }

.kicker {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 19, 16, 0.97);
  border-bottom: 2px solid var(--accent);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-rule {
  width: 0.35rem;
  height: 2.2rem;
  background: var(--accent);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.brand-accent { color: var(--accent); }

.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.site-nav a:hover { color: var(--accent); }

.header-call {
  text-decoration: none;
  text-align: right;
  line-height: 1.25;
  border-left: 1px solid var(--line);
  padding-left: 1.2rem;
}
.header-call-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.header-call-num { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 4rem; }

.hero h1 { max-width: 10ch; margin-bottom: 1.2rem; }
.lede { font-size: 1.25rem; max-width: 46ch; color: var(--ink); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.btn-gold { background: var(--accent); color: #161310; }
.btn-gold:hover { background: #A8861D; border-color: #A8861D; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; text-align: center; }

.hero-phone {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 2.2rem 0 1.4rem;
}
.hero-phone a { color: var(--accent); text-decoration: none; }

.hero-reassure {
  list-style: none;
  margin: 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; border-top: 3px solid var(--accent); }
.section-head { margin-bottom: 3rem; }

/* Staggered steps — the asymmetry */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem; }
.step {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 46rem;
}
.step-offset { margin-left: 12%; }
.step-offset-2 { margin-left: 24%; }
.step-num {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 0.9;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--muted); max-width: 52ch; }

/* Band section */
.section-band { background: var(--panel); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.checklist { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.checklist li {
  padding-left: 1.8rem;
  position: relative;
  color: var(--ink);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 1rem;
  height: 3px;
  background: var(--accent);
}
.ready-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--bg);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
.conf-note {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  max-width: 44ch;
}
.contact-alt { margin-top: 1.5rem; font-weight: 600; }
.contact-alt a { color: var(--accent); }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--muted);
}
.optional { text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
input[type="text"], input[type="tel"], textarea {
  width: 100%;
  font: 400 1rem var(--font-body);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
input::placeholder, textarea::placeholder { color: #7A6F5C; }
input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { resize: vertical; }

/* Honeypot — offscreen, never display:none */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-msg {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.ok { background: #2A331F; border: 1px solid #7A8F4C; color: #D8E4B8; }
.form-msg.err { background: #3A2222; border: 1px solid #A86060; color: #F0C8C8; }

/* ---------- Sticky call bar ---------- */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--accent);
  color: #161310;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.call-bar-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #161310;
}
.call-bar-text { font-weight: 500; }
.call-bar-num { font-weight: 700; font-size: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 3px solid var(--accent);
  padding: 3rem 0 calc(2.5rem + env(safe-area-inset-bottom));
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.site-footer p { margin: 0 0 0.4rem; color: var(--muted); }
.site-footer nav { display: flex; gap: 1.5rem; align-items: flex-start; }
.demo-disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  font-size: 0.9rem;
  color: #7A6F5C;
  margin: 0;
}

/* ---------- Legal pages ---------- */
.legal { max-width: 46rem; }
.legal .lede { color: var(--muted); }
.legal h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}
.legal .updated { margin-top: 3rem; color: #7A6F5C; font-size: 0.95rem; }

/* ---------- Reveal (initial states set in JS only) ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.32s ease-out, transform 0.32s ease-out;
}
.js-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .step-offset { margin-left: 6%; }
  .step-offset-2 { margin-left: 12%; }
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 17px; padding-bottom: 70px; }
  .step { grid-template-columns: 4.5rem 1fr; gap: 1rem; }
  .step-num { font-size: 3.5rem; }
  .step-offset, .step-offset-2 { margin-left: 0; }
  .field-row { grid-template-columns: 1fr; }
  .header-call-num { font-size: 0.95rem; }
  .contact-form, .ready-card { padding: 1.4rem; }
  .call-bar-text { display: none; }
  .call-bar { gap: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
