/* styles.css — theme_11 "Terracotta Workshop Guide" for insuranceagencyphoenix.com */
:root {
  --bg: #fbf7f4;
  --surface: #ffffff;
  --ink: #271c19;
  --accent: #c2410c;
  --accent-soft: #ffedd5;
  --muted: #6b5b53;
  --line: #e7ddd6;
  --pass: #166534;
  --fail: #991b1b;
  --warn-bg: #fef3c7;
  --warn-ink: #92400e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, .brand { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 0.4em 0; }
h2 { font-size: 1.5rem; margin-top: 2.2em; }
h3 { font-size: 1.1rem; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 0.9rem 1.25rem;
  background: var(--surface); border-bottom: 2px solid var(--accent);
}
.brand { font-size: 1.25rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.brand em { color: var(--accent); font-style: normal; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.site-nav a:hover { color: var(--accent); }

main { max-width: 960px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.hero { padding: 1.5rem 0 0.5rem; }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--accent); font-weight: 700; margin: 0; }
.lede { font-size: 1.08rem; max-width: 46rem; }
.lede-small { color: var(--muted); font-size: 0.92rem; max-width: 46rem; }

.disclosure-bar {
  background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: 8px; padding: 0.8rem 1rem; margin: 1.25rem 0;
  font-size: 0.9rem;
}

/* Wizard */
.wizard {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.25rem; margin-top: 1rem;
  box-shadow: 0 1px 3px rgba(39,28,25,0.08);
}
.wizard-steps {
  display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none;
  padding: 0; margin: 0 0 0.75rem;
}
.wizard-steps li {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: 0.85rem; background: var(--bg);
}
.wizard-steps li.active { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); font-weight: 700; }
.wizard-steps li.done { border-color: var(--pass); color: var(--pass); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--line); color: var(--ink); font-size: 0.75rem; font-weight: 700;
}
.wizard-steps li.active .step-num, .wizard-steps li.done .step-num { background: var(--accent); color: #fff; }
.progress-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 1.25rem; }
.progress-fill { height: 100%; background: var(--accent); transition: width 0.25s ease; }
.wizard-panel[hidden] { display: none; }

.field-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem 1rem; margin: 0.5rem 0 1rem;
}
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; }
.field input, .field select {
  width: 100%; padding: 0.55rem 0.65rem; border: 1px solid var(--line);
  border-radius: 6px; background: var(--bg); color: var(--ink); font-size: 0.95rem;
}
.field .hint { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }
.field.full { grid-column: 1 / -1; }
.check-row { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.88rem; }
.check-row input { margin-top: 0.3rem; }

.results { margin-top: 0.5rem; }
.verdict {
  border-radius: 8px; padding: 0.7rem 1rem; font-weight: 600;
  background: var(--warn-bg); color: var(--warn-ink); margin-bottom: 1rem;
}
.verdict.clean { background: #dcfce7; color: var(--pass); }
.verdict.attention { background: var(--warn-bg); color: var(--warn-ink); }
.verdict.review { background: #fee2e2; color: var(--fail); }

.metric-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem; margin-bottom: 1rem;
}
.metric { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.9rem; }
.metric .k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.metric .v { font-family: Georgia, serif; font-size: 1.15rem; font-weight: 700; }

.scenario-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem; margin-bottom: 1rem;
}
.scenario-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.9rem 1rem;
}
.scenario-card.recommended { border-color: var(--accent); border-width: 2px; }
.scenario-card h4 { margin: 0 0 0.4rem; font-family: Georgia, serif; }
.scenario-card .sc-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.15rem 0; }
.scenario-card .sc-row span:first-child { color: var(--muted); }
.scenario-card .sc-total { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--accent); color: #fff; margin-left: 0.4rem; vertical-align: middle; }

.reason-list { list-style: none; padding: 0; margin: 0.5rem 0 1rem; }
.reason-list li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; font-size: 0.92rem; }
.reason-list li::before { content: "•"; position: absolute; left: 0.5rem; color: var(--accent); font-weight: 700; }
.reason-list li.pass::before { content: "✓"; color: var(--pass); }
.reason-list li.fail::before { content: "✗"; color: var(--fail); }

.checklist { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.checklist h3 { margin-top: 0; }

.chart-wrap { margin: 1.25rem 0; }
.chart-wrap h3 { margin-bottom: 0.4rem; }
.chart-caption { font-size: 0.8rem; color: var(--muted); }
#chart { width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
table.ref { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.9rem; }
table.ref th, table.ref td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; }
table.ref th { background: var(--accent-soft); font-family: Georgia, serif; }
table.ref td.num, table.ref th.num { text-align: right; font-variant-numeric: tabular-nums; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.btn {
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  padding: 0.65rem 1.3rem; font-size: 0.95rem; font-weight: 700; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }

.site-footer { border-top: 2px solid var(--accent); background: var(--surface); margin-top: 2rem; }
.footer-inner { max-width: 960px; margin: 0 auto; padding: 1.25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.6rem; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { font-size: 0.8rem; color: var(--muted); margin: 0; }

section { margin-top: 2.5rem; }
.faq { border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 0.5rem 0 0.3rem; }

@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .field-grid { grid-template-columns: 1fr; }
}
