/* DG Home Solutions LLC — shared stylesheet
   Layout concept: a property ledger — structured bands, ruled dividers, numbered sequence for the real sequential CHAMP → Offer → Close process. */

:root {
  --bg: #f3f4f1;
  --bg-raised: #ffffff;
  --fg: #16231c;
  --fg-muted: #4b564c;
  --line: #d9dbd3;
  --accent: #b8863d;
  --accent-ink: #5c4420;
  --sage: #5f7360;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14180f;
    --bg-raised: #1c231a;
    --fg: #ece8df;
    --fg-muted: #a7ad9e;
    --line: #333a2d;
    --accent: #d9a85c;
    --accent-ink: #f3dcac;
    --sage: #8aa088;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #14180f;
  --bg-raised: #1c231a;
  --fg: #ece8df;
  --fg-muted: #a7ad9e;
  --line: #333a2d;
  --accent: #d9a85c;
  --accent-ink: #f3dcac;
  --sage: #8aa088;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 0.5em;
  color: var(--fg);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 650; }

p { margin: 0 0 1em; color: var(--fg-muted); max-width: 65ch; }

a { color: var(--accent-ink); }
a.plain { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

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

.band {
  padding-block: clamp(48px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}

.band:last-of-type { border-bottom: none; }

/* Header / nav */
header.site {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand span { color: var(--accent-ink); }

nav.links {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  flex-wrap: wrap;
}

nav.links a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--fg-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

nav.links a:hover, nav.links a[aria-current="page"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 3px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #1c1203;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { filter: brightness(1.06); }

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}

.btn.ghost:hover { border-color: var(--fg-muted); }

/* Hero */
.hero {
  padding-block: clamp(56px, 10vw, 110px) clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-raised);
  align-self: start;
}

.stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.stat:last-child { border-bottom: none; padding-bottom: 0; }

.stat .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
}

.stat .value {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
}

/* Numbered process */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 36px;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  background: var(--bg-raised);
}

.step:last-child { border-right: none; }

@media (max-width: 760px) {
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
}

.step .num {
  font-family: var(--font-mono);
  color: var(--accent-ink);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}

/* Grid of benefit rows */
.ledger {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.ledger-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 640px) {
  .ledger-row { grid-template-columns: 1fr; gap: 6px; }
}

.ledger-row h3 { margin: 0; font-size: 1.05rem; }
.ledger-row p { margin: 0; }

/* Form */
form.lead {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.field { display: grid; gap: 6px; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.field input, .field textarea, .field select {
  font: inherit;
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--fg);
}

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg-raised);
}

.consent input { margin-top: 3px; }

.consent small { color: var(--fg-muted); font-size: 0.82rem; line-height: 1.5; }

.form-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.form-success {
  display: none;
  padding: 18px;
  border: 1px solid var(--sage);
  border-radius: 3px;
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 680px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.footer-grid h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.footer-grid a, .footer-grid span.copy {
  display: block;
  font-size: 0.92rem;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-grid a:hover { color: var(--fg); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--fg-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Legal pages */
.legal h2 { margin-top: 2em; font-size: 1.35rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { color: var(--fg-muted); padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal strong { color: var(--fg); }

.callout {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: var(--bg-raised);
  margin: 24px 0;
}

.callout p { margin: 0; }

table.contact-table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
}

table.contact-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.contact-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-muted);
  width: 160px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
