/* Shared styles. Per-site color tokens live in theme.css. */

:root {
  --ink: #172026;
  --ink-soft: #3d4d59;
  --muted: #5c6d78;
  --paper: #f6f1ea;
  --paper-deep: #e8e1d6;
  --card: #ffffff;
  --line: #d9d1c5;
  --accent: #1b5f8a;
  --accent-dark: #0e3d5c;
  --accent-soft: #e4eef5;
  --cta: #c05621;
  --cta-dark: #9a3f12;
  --ok: #1b6b45;
  --ok-soft: #e5f4ec;
  --warn: #8a4b12;
  --warn-soft: #f8edd9;
  --danger-soft: #f8e8e4;
  --shadow: 0 10px 30px rgba(23, 32, 38, 0.08);
  --radius: 16px;
  --header-h: 76px;
  --font-sans: "Avenir Next", Avenir, "Helvetica Neue", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.disclosure-bar {
  background: var(--accent-dark);
  color: #eef6fb;
  font-size: 14px;
  text-align: center;
  padding: 8px 16px;
}
.disclosure-bar a { color: #fff; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 240, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-referral {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.recording-note {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.wordmark {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: max-content;
}
.wordmark .name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.wordmark .badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-top: 2px;
}
.wordmark-footer .badge { color: rgba(255,255,255,.82); }
nav.primary {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
}
nav.primary a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
}
nav.primary a:hover { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.btn-cta {
  background: var(--cta);
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.btn-cta:hover { background: var(--cta-dark); }
.btn-dark {
  background: var(--accent-dark);
  color: #fff !important;
}
.btn-dark:hover { background: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff; }

main { display: block; }

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

.hero {
  padding: 48px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
h1, h2, h3, .serif { font-family: var(--font-serif); letter-spacing: -0.02em; }
h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.12;
  font-weight: 560;
  margin: 0 0 16px;
}
h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 560;
  margin: 0 0 12px;
}
h3 { font-size: 22px; margin: 0 0 8px; font-weight: 560; }
.lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 18px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 0 0 6px; }

.callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  margin: 18px 0;
}
.callout.emergency {
  background: var(--danger-soft);
  border-left-color: #9b2c1a;
}
.callout.warn {
  background: var(--warn-soft);
  border-left-color: var(--warn);
}

.form-card, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-card {
  padding: 22px;
  position: relative;
}
.form-card h2 { font-size: 24px; }
.form-note { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 5px;
  color: var(--ink-soft);
}
.field { margin: 0 0 12px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 8px 0 14px;
}
.consent input { margin-top: 4px; flex: 0 0 auto; }
.form-success {
  display: none;
  background: var(--ok-soft);
  color: var(--ok);
  border-radius: 12px;
  padding: 16px;
  font-weight: 600;
}
.form-error {
  display: none;
  background: var(--danger-soft);
  color: #9b2c1a;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 15px;
}
.form-card.is-success .form-fields { display: none; }
.form-card.is-success .form-success { display: block; }

.section { padding: 20px 0 48px; }
.section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.step-num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.step p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.step h3 { font-size: 18px; }

.cards-3, .cards-2 {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit;
}
.service-card svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.cta-band {
  background: var(--accent-dark);
  color: #eef6fb;
  border-radius: 18px;
  padding: 28px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 20px;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 28px; }
.cta-band p { margin: 0; color: #cfe0eb; }
.cta-band .btn-cta { flex-shrink: 0; }

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.city-pill {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 0 0 8px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
}
.faq details p { margin: 10px 0 4px; color: var(--ink-soft); font-size: 16px; }

footer.site-footer {
  background: #132028;
  color: #c9d5dd;
  padding: 36px 0 28px;
  margin-top: 20px;
  font-size: 15px;
}
footer.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.footer-disclosure {
  border-top: 1px solid #2a3d48;
  padding-top: 18px;
  color: #9aafbb;
  font-size: 13.5px;
}
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a { text-decoration: none; color: #d7e2e8; }

.page-hero {
  padding: 36px 0 10px;
}
.page-hero h1 { max-width: 18ch; }

.prose-wrap { max-width: 760px; }

.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 240, 234, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px rgba(23,32,38,0.08);
}
.mobile-cta .btn { width: 100%; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 24px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.stat .n {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
  display: block;
}
.stat .l { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
table.leads {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.leads th, table.leads td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  white-space: nowrap;
}
table.leads th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: #faf8f4;
}
table.leads tr:last-child td { border-bottom: 0; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}
.tag-live { background: var(--ok-soft); color: var(--ok); }
.tag-call { background: var(--accent-soft); color: var(--accent-dark); }
.tag-form { background: #eee8ff; color: #4c3480; }
.tag-missed { background: var(--danger-soft); color: #9b2c1a; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.filters a, .filters span {
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
}
.filters a.active, .filters a:hover { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }

.flow {
  display: grid;
  gap: 12px;
  margin: 20px 0 32px;
}
.flow-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  align-items: start;
}
.flow-item .status {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 8px;
  text-align: center;
  align-self: start;
}
.status-auto { background: var(--ok-soft); color: var(--ok); }
.status-human { background: var(--warn-soft); color: var(--warn); }
.status-sim { background: #ececec; color: #4a4a4a; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.legend { font-size: 14px; color: var(--muted); }

@media (max-width: 880px) {
.cta-band { display: block; }
  .cta-band .btn { margin-top: 16px; }
  nav.primary { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  header.site-header.is-open nav.primary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
  }
  .mobile-cta { display: block; }
  body.has-mobile-cta { padding-bottom: 76px; }
  .btn-header-call { display: none; }
  h1 { font-size: 34px; }
  .hero { padding-top: 28px; }
}
.nav-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 881px) {
  .nav-toggle { display: none !important; }
}

/* Simplified homepage + short form */
.hero-simple { padding: 36px 0 12px; }
.btn-call-xl {
  display: inline-flex;
  width: 100%;
  max-width: 420px;
  padding: 16px 22px;
  font-size: 22px;
  margin: 8px 0 22px;
  border-radius: 999px;
}
.how-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
}
.how-lines li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--ink-soft);
}
.how-lines li::before {
  content: counter(how) ".";
  counter-increment: how;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--accent);
  min-width: 1.2em;
}
.how-lines { counter-reset: how; }
.emergency-line {
  font-size: 14px;
  color: #9b2c1a;
  margin: 16px 0 0;
  max-width: 36rem;
}
.section-tight { padding-top: 12px; padding-bottom: 40px; }
.area-line { margin: 22px 0 10px; color: var(--ink-soft); }
.one-line-disclosure {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 4px 0 12px;
}
.optional { font-weight: 400; color: var(--muted); letter-spacing: 0; text-transform: none; }
.form-card h2 { margin-bottom: 14px; }

/* Owner view */
.simple-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 12px;
  justify-content: center;
}
.simple-flow-step {
  flex: 1 1 140px;
  max-width: 180px;
  text-align: center;
  padding: 8px 10px;
}
.simple-flow-step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 6px;
}
.simple-flow-step strong { display: block; margin-bottom: 4px; }
.simple-flow-step span { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
.simple-flow-arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 22px;
  padding: 0 4px;
  align-self: center;
}
.owner-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.owner-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.owner-block h2 { font-size: 24px; margin: 0 0 8px; }
.owner-block p { margin: 0 0 10px; color: var(--ink-soft); font-size: 16.5px; }
.owner-block p:last-child { margin-bottom: 0; }

@media (max-width: 880px) {
  .owner-blocks { grid-template-columns: 1fr; }
  .simple-flow-arrow { display: none; }
  .simple-flow-step { max-width: none; flex: 1 1 100%; text-align: left; display: grid; grid-template-columns: 28px 1fr; gap: 0 12px; align-items: start; }
  .simple-flow-step .n { grid-row: 1 / span 2; margin: 2px 0 0; }
  .btn-call-xl { font-size: 20px; padding: 16px 18px; max-width: none; }
}

.hero-premium {
  position: relative;
  overflow: hidden;
  color: #f7f3ec;
  padding: 56px 0 64px;
  background: linear-gradient(145deg, var(--hero-1, var(--accent-dark)) 0%, var(--hero-2, var(--accent)) 100%);
}
.hero-premium .hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-premium .hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(12,10,8,.42) 0%, rgba(12,10,8,.18) 55%, rgba(12,10,8,.08) 100%);
  pointer-events: none;
}
.hero-premium .wrap { position: relative; z-index: 2; }
.hero-premium .section-kicker,
.kicker-light {
  color: rgba(247,243,236,.8);
  letter-spacing: 0.14em;
}
.hero-premium h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero-premium .lede { color: rgba(247,243,236,.88); max-width: 38ch; }
.hero-premium .how-lines,
.hero-premium .how-lines li { color: rgba(247,243,236,.92); }
.hero-premium .how-lines li::before,
.hero-premium .how-lines li::marker { color: rgba(247,243,236,.75); }
.hero-premium .emergency-line {
  color: #f3d0c6;
  font-size: 15px;
}
.hero-premium .form-card {
  backdrop-filter: blur(8px);
}

.page-hero-soft {
  padding-top: 28px;
}
.crumbs {
  font-size: 13px;
  margin: 0 0 16px;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  padding: 0;
  margin: 0;
  color: var(--muted);
}
.crumbs li:not(:last-child)::after {
  content: " / ";
  padding: 0 8px;
  color: var(--line);
}
.crumbs a { text-decoration: none; }

.lede.tight { max-width: 54ch; }
.trust-grid, .cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.trust-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.faq-note { font-size: 14px; color: var(--muted); }
.nap { margin: 14px 0 0; }
.nap-note { display: block; margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.7); }
.wordmark-footer { color: #fff; }
.footer-blurb { margin: 12px 0 0; }
.page-form { margin-top: 28px; }
a.city-pill { text-decoration: none; }
.service-card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

@media (max-width: 900px) {
.hero-premium { padding: 36px 0 40px; }
  .hero-premium h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.hero-premium .form-card {
  background: #fff;
  color: var(--ink);
}
.hero-premium .form-card h2,
.hero-premium .form-card p,
.hero-premium .form-card label,
.hero-premium .form-card .one-line-disclosure { color: var(--ink); }

