/* DEMC site — one stylesheet, no frameworks, no web fonts (fast on rural phones).
   To change colors, edit the four values right below. */
:root {
  --ink: #1e2a22;        /* main text */
  --muted: #5a665e;      /* secondary text */
  --accent: #c8781e;     /* buttons and links (warm East Texas clay) */
  --accent-dark: #a2600f;
  --paper: #fbfaf6;      /* page background */
  --panel: #f0ece2;      /* alternate section background */
  --line: #d9d4c7;
  --error: #b3261e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
section { padding: 48px 0; }
section.alt { background: var(--panel); }
.fine { font-size: .9rem; color: var(--muted); }
.opt { font-weight: normal; color: var(--muted); }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1.1rem; }
nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink); font-size: .95rem; }
@media (max-width: 600px) { nav a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 14px 22px; border-radius: 8px; border: 2px solid var(--accent);
  font-weight: 600; font-size: 1rem; cursor: pointer; min-height: 48px; line-height: 1.2;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--accent-dark); }
.btn.small { padding: 8px 14px; min-height: 40px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero .lead { font-size: 1.15rem; max-width: 640px; }
.hero .btn { margin: 0 8px 10px 0; }

/* two-column with photo */
.two { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .two { grid-template-columns: 3fr 2fr; } }
.photo { margin: 0; }
.placeholder {
  aspect-ratio: 4 / 3; border: 2px dashed var(--line); border-radius: 10px;
  display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-size: .9rem;
}
figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* offer cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.card p:last-child { margin-bottom: 0; }

/* steps */
.steps { padding-left: 0; list-style: none; counter-reset: step; max-width: 720px; }
.steps li { position: relative; padding-left: 52px; margin-bottom: 18px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

/* faq */
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
summary { padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none; position: relative; min-height: 48px; }
summary::after { content: "+"; position: absolute; right: 16px; top: 12px; color: var(--accent-dark); font-size: 1.3rem; }
details[open] summary::after { content: "–"; }
details p { padding: 0 16px 14px; margin: 0; }

/* form */
form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 16px; }
.field { margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email] {
  width: 100%; font: inherit; padding: 12px; border: 1px solid #a9a394; border-radius: 8px; min-height: 48px; background: #fff;
}
input:focus { outline: 3px solid #f1c48a; outline-offset: 1px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: normal; margin: 6px 0; min-height: 32px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.consent { background: var(--panel); border-radius: 8px; padding: 12px; }
.consent .check { font-size: .95rem; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--error); font-weight: 600; }
.done { background: #e6f1e8; border: 1px solid #b6d4bb; border-radius: 12px; padding: 20px 16px; }
form .btn { width: 100%; margin-top: 4px; }
@media (min-width: 640px) { form .btn { width: auto; } }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .95rem; }
footer a { color: inherit; }

/* hero kicker */
.kicker { color: var(--accent-dark); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: .85rem; margin-bottom: 8px; }

/* FAQ search */
.search { margin-bottom: 16px; }
.search input { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #a9a394; border-radius: 8px; min-height: 48px; background: #fff; }
.faq-none { background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; }
.visually-hidden { position: absolute; left: -9999px; }

/* preview switch: ribbon and form note only show when <body data-preview="true"> */
.ribbon { display: none; background: #1e2a22; color: #fff; text-align: center; padding: 8px 16px; font-size: .9rem; font-weight: 600; }
.preview-only { display: none; }
body[data-preview="true"] .ribbon { display: block; }
body[data-preview="true"] .preview-only { display: block; font-weight: 600; color: var(--ink); }
body[data-preview="true"] .placeholder { background: #e4e2db; border-style: solid; color: #4d5650; font-weight: 600; }

/* byline and About Chad */
.byline { color: var(--muted); margin-bottom: 10px; }
blockquote { margin: 0 0 1em; padding: 4px 0 4px 16px; border-left: 4px solid var(--accent); }
blockquote p { font-style: italic; }
blockquote p:last-child { margin-bottom: 0; }
.placeholder.second { margin-top: 14px; aspect-ratio: 16 / 10; }

.done ol { padding-left: 22px; } .done li { margin-bottom: 8px; }
