/* Lathed & Confused brokerage site styles */

:root {
  color-scheme: light;
  --paper: #FCFBF8;        /* planed maple */
  --band: #F1EADD;         /* kraft band */
  --ink: #2E2015;          /* walnut ink */
  --ink-soft: #6B5B4A;
  --rule: #D9CFBF;
  --crayon: #46217E;       /* logo purple */
  --crayon-press: #351863;
  --tick: #5EA50A;         /* lathe lime */
  --num: #D96628;          /* wordmark orange */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1D150E;
    --band: #281F15;
    --ink: #F0E9DD;
    --ink-soft: #B7A892;
    --rule: #43372A;
    --crayon: #BA9CF2;
    --crayon-press: #CDB6F6;
    --tick: #8ED832;
    --num: #F0935C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1D150E;
  --band: #281F15;
  --ink: #F0E9DD;
  --ink-soft: #B7A892;
  --rule: #43372A;
  --crayon: #BA9CF2;
  --crayon-press: #CDB6F6;
  --tick: #8ED832;
  --num: #F0935C;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 1.04rem;
  line-height: 1.6;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

a { color: var(--crayon); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--crayon-press); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--crayon);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.7rem, 6.5vw, 4.3rem); max-width: 16ch; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); max-width: 24ch; }
h3 { font-size: 1.35rem; }
p  { max-width: 62ch; margin: 0 0 1em; }
.lede { font-size: 1.18rem; color: var(--ink); max-width: 56ch; }
.soft { color: var(--ink-soft); }

/* ---------- header ---------- */
header.site {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
header.site::before {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(90deg,
    #46217E 0 56px,
    #7BC618 56px 112px,
    #E6AC1E 112px 168px,
    #E8703A 168px 224px);
}
.masthead {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 18px 0;
}
.wordmark {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600; font-size: 1.5rem; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.stamp {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border: 2.5px solid var(--ink); border-radius: 6px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
}
nav.main { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
nav.main a {
  color: var(--ink); text-decoration: none;
  font-family: "Barlow Condensed", sans-serif; font-size: 1.1rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2.5px solid transparent;
}
nav.main a:hover { border-bottom-color: var(--crayon); }
nav.main a[aria-current="page"] { border-bottom-color: var(--ink); }
.phone { font-family: "Barlow", sans-serif; font-weight: 600; font-size: 0.98rem; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.tallyline {
  margin-top: 44px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 14px 2px;
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  font-size: 1rem;
}
.tallyline .tick { flex: none; align-self: center; }
.tallyline strong { font-weight: 600; }

/* crayon tick */
.tick {
  display: inline-block; width: 20px; height: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 11px 22px 13px;
  border-radius: 5px;
  border: 2.5px solid var(--crayon);
  background: var(--crayon); color: var(--paper);
  text-decoration: none; cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--crayon-press); border-color: var(--crayon-press); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { border-color: var(--crayon); color: var(--crayon); background: transparent; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.band { background: var(--band); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* numbered process (a real sequence) */
ol.process {
  list-style: none; counter-reset: step;
  margin: 28px 0 0; padding: 0;
  border-top: 2px solid var(--ink);
}
ol.process li {
  counter-increment: step;
  display: grid; grid-template-columns: 64px 1fr; gap: 0 18px;
  padding: 20px 2px; border-bottom: 1px solid var(--rule);
}
ol.process li::before {
  content: counter(step);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2.1rem; font-weight: 600; color: var(--num);
  line-height: 1;
}
ol.process h3 { margin-bottom: 4px; }
ol.process p { margin: 0; }

/* ---------- tally tables ---------- */
table.tally {
  width: 100%; border-collapse: collapse; margin-top: 24px;
  font-size: 1rem;
}
table.tally caption {
  text-align: left; font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem; font-weight: 600; padding-bottom: 10px;
}
table.tally th {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.08rem;
  text-align: left; padding: 10px 14px 10px 0;
  border-bottom: 2px solid var(--ink);
}
table.tally td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.tally td:first-child { font-weight: 600; white-space: nowrap; }
table.tally .tick { vertical-align: -2px; margin-right: 8px; }
.table-scroll { overflow-x: auto; }

/* ---------- split columns ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
form.quote { margin-top: 28px; max-width: 560px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: "Barlow Condensed", sans-serif;
  font-weight: 600; font-size: 1.1rem; margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px;
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink-soft); border-radius: 5px;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note {
  margin-top: 14px; padding: 12px 14px;
  border: 1.5px solid var(--crayon); border-radius: 5px;
  color: var(--ink); background: var(--band);
  display: none;
}
.form-note.show { display: block; }

/* ---------- footer ---------- */
footer.site {
  margin-top: 40px;
  border-top: 2px solid var(--ink);
  padding: 30px 0 40px;
  font-size: 0.95rem; color: var(--ink-soft);
}
footer.site .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--ink); }

@media (max-width: 560px) {
  .hero { padding: 48px 0 40px; }
  section { padding: 44px 0; }
  ol.process li { grid-template-columns: 44px 1fr; }
}
