/* Company site v2: craft-system look. System serif headlines,
   system sans body, ink on paper, one deep-green accent. No web
   fonts, no JS required except the intake form. */

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --wash: #f4f2ec;
  --ink: #1d1a16;
  --muted: #5d564a;
  --line: #e2ddd1;
  --accent: #14532d;
  --accent-ink: #0d3a20;
  --focus: #b45309;
  --radius: 8px;
  --shell: 1080px;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16130f;
    --wash: #201c16;
    --ink: #ece7dc;
    --muted: #a89f8d;
    --line: #38322a;
    --accent: #7bc79a;
    --accent-ink: #a5e0bd;
    --focus: #d99a3d;
  }

  .button {
    background: var(--accent);
    border-color: var(--accent);
    color: #0e1a14;
  }

  .button:hover {
    background: var(--accent-ink);
    color: #0e1a14;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; max-width: var(--measure); }
li { margin-bottom: 0.4rem; max-width: var(--measure); }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-ink); }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.draft {
  margin: 0;
  padding: 0.45rem 1rem;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.lang { font-size: 0.9rem; }

/* Hero: left-aligned, concrete, one accent rule */

.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  background: var(--accent);
  margin-bottom: 1.25rem;
}

.hero p.lede {
  font-size: 1.25rem;
  max-width: 56ch;
}

.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.4rem; }

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--accent);
}

.button:hover { background: var(--accent-ink); color: #fff; }

.button.ghost {
  background: transparent;
  color: var(--accent);
}

.button.ghost:hover { background: var(--wash); color: var(--accent-ink); }

/* Sections */

.section { padding: 2.75rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.wash { background: var(--wash); }
.section.wash + .section { border-top: none; }

.kicker {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Offer lines: numbered rows, not identical cards */

.lines { list-style: none; margin: 1.5rem 0 0; padding: 0; }

.lines > li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  max-width: none;
}

.lines > li:last-child { border-bottom: 1px solid var(--line); }

.line-no {
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.lines h3 { margin-bottom: 0.25rem; }
.lines p { margin-bottom: 0.4rem; }
.lines .fit { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* Process: three steps with numerals */

.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.steps > li {
  counter-increment: step;
  border-top: 3px solid var(--accent);
  padding-top: 0.9rem;
  max-width: none;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

/* Honesty blocks */

.note {
  border: 1px solid var(--ink);
  border-top: 4px solid var(--ink);
  background: var(--paper);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}

.note strong { display: block; margin-bottom: 0.25rem; }

.wash .note { background: var(--paper); }

ul.tight { padding-left: 1.25rem; }
ul.tight li { margin-bottom: 0.3rem; }

.two-col { display: grid; gap: 2rem; }
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

/* FAQ */

.faq { margin: 1.25rem 0 0; max-width: var(--measure); }
.faq dt { font-weight: 700; margin-top: 1.1rem; }
.faq dd { margin: 0.25rem 0 0; color: var(--ink); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p { margin-bottom: 0.5rem; }
.muted { color: var(--muted); }

/* Intake form */

form.intake { max-width: var(--measure); margin-top: 1.5rem; }

form.intake label { display: block; font-weight: 600; margin: 1rem 0 0.3rem; }
form.intake .hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }

form.intake input[type="text"],
form.intake input[type="email"],
form.intake input[type="tel"],
form.intake select,
form.intake textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

form.intake textarea { min-height: 7rem; resize: vertical; }

form.intake input:focus-visible,
form.intake select:focus-visible,
form.intake textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

form.intake fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
}

form.intake legend { font-weight: 700; padding: 0 0.4rem; }
form.intake .checks label { font-weight: 400; margin: 0.35rem 0; }
form.intake button { margin-top: 1.4rem; cursor: pointer; font-size: 1rem; }

/* Chatbot widget (chatbot.js injects its own DOM) */

.chat-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border: 1px solid var(--accent);
  cursor: pointer;
  z-index: 50;
}

.chat-fab:hover { background: var(--accent-ink); }

.chat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  width: min(22rem, calc(100vw - 2.5rem));
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-top: 4px solid var(--ink);
  z-index: 50;
}

.chat-msgs { overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }

.chat-msg p { margin-bottom: 0.3rem; font-size: 0.95rem; }
.chat-msg.user { align-self: flex-end; color: var(--muted); font-size: 0.95rem; }
.chat-msg.bot { align-self: flex-start; }

.chat-form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; color: var(--ink); background: var(--paper); }
.chat-form button { cursor: pointer; font-size: 0.95rem; }
