/* Texas Home Intelligence — base design system */

:root {
  --ink: #101826;
  --ink-soft: #3a4557;
  --paper: #ffffff;
  --paper-alt: #f5f7fa;
  --line: #e2e6ec;
  --brand: #0f3d5c;
  --brand-dark: #0a2740;
  --accent: #d97b29;
  --accent-dark: #b5611c;
  --good: #1e7a4c;
  --sample: #8a5a00;
  --sample-bg: #fff3dc;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 38, 0.06), 0 8px 24px rgba(16, 24, 38, 0.06);
  --max: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); }
a:hover { color: var(--accent-dark); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }

ul { color: var(--ink-soft); }

/* ---- Top utility bar + nav ---- */
.topbar {
  background: var(--brand-dark);
  color: #cfe0ee;
  font-size: 0.82rem;
}
.topbar .wrap { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }

.site-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand-mark {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-dark); color: #fff !important; }

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 14px 0 0;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(180deg, #f5f9fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 48px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  background: #fdeee0;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero p.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 46em; }
.microcopy { font-size: 0.85rem; color: var(--ink-soft); margin-top: 12px; }
.microcopy .sep { margin: 0 8px; color: var(--line); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--brand-dark);
  border: 1.5px solid var(--brand-dark);
}
.btn.secondary:hover { background: var(--brand-dark); color: #fff; }
.btn.block { display: block; width: 100%; text-align: center; }

/* Sample brief mock card in hero */
.brief-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.brief-preview h4 { margin: 0 0 10px; font-size: 0.95rem; color: var(--brand-dark); }
.brief-preview .row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.brief-preview .row:last-child { border-bottom: none; }
.brief-preview .row b { color: var(--ink); }
.tag-ready { display: inline-block; font-size: 0.72rem; font-weight: 800; color: var(--good); background: #e5f3ea; padding: 3px 9px; border-radius: 999px; }

/* ---- Sections ---- */
section.block { padding: 46px 0; }
section.block.alt { background: var(--paper-alt); }
section.block h2 { max-width: 40em; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.94rem; }
.icon-badge {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: #eaf1f8;
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 12px;
}

.image-note {
  border: 1px dashed var(--line);
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 8px 0 20px;
}
.image-note b { color: var(--ink); }

/* ---- Data / sample badges ---- */
.sample-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--sample);
  background: var(--sample-bg);
  border: 1px solid #f0d9a8;
  padding: 3px 9px;
  border-radius: 999px;
}
.data-card { border-left: 3px solid var(--brand); }
.data-card .metric-label { font-size: 0.82rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.data-card .metric-note { font-size: 0.82rem; margin-top: 6px; }
.data-meta { font-size: 0.8rem; color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 12px 0 20px; }
table.data-table th, table.data-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.data-table th { background: var(--paper-alt); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: "+"; color: var(--accent); font-size: 1.2rem; font-weight: 800; }
.faq-item[open] summary:after { content: "\2212"; }
.faq-item p { margin-top: 10px; margin-bottom: 0; }

/* ---- Footer ---- */
.site-footer {
  background: var(--brand-dark);
  color: #c6d6e4;
  padding: 40px 0 26px;
  margin-top: 40px;
  font-size: 0.88rem;
}
.site-footer a { color: #e8f0f7; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-top: 18px; font-size: 0.8rem; color: #9ab2c6; }
.disclaimer-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 18px 0;
}
.draft-flag {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #9a4b00;
  background: #fff0dd;
  border: 1px solid #f2c78c;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ---- Intake / prototype flow ---- */
.step-shell {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
}
.progress-track { display: flex; gap: 6px; margin-bottom: 20px; }
.progress-track span { flex: 1; height: 5px; border-radius: 4px; background: var(--line); }
.progress-track span.done { background: var(--accent); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea, .field select {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; background: #fff;
}
.field textarea { min-height: 100px; resize: vertical; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card {
  border: 1.5px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; font-weight: 600; font-size: 0.9rem;
  background: #fff;
}
.choice-card.selected { border-color: var(--accent); background: #fff6ec; }
.step-actions { display: flex; justify-content: space-between; margin-top: 22px; }
.link-btn { background: none; border: none; color: var(--ink-soft); font: inherit; cursor: pointer; padding: 12px 4px; }
.proto-banner {
  background: #fdf3e2; border-bottom: 1px solid #f0d9a8; color: #6b4b12;
  font-size: 0.85rem; text-align: center; padding: 9px 16px;
}

/* ---- Brief output ---- */
.brief-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.brief-doc header { background: var(--brand-dark); color: #fff; padding: 20px 26px; }
.brief-doc header h2 { color: #fff; margin: 0; }
.brief-section { padding: 20px 26px; border-bottom: 1px solid var(--line); }
.brief-section:last-child { border-bottom: none; }
.brief-section h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand); margin-bottom: 10px; }

.cta-band {
  background: var(--brand-dark);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0ee; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
