/* DMV Appliance Clinic — Heritage Navy (see Branding/brand-guide.md) */

:root {
  --navy: #1B2A4A;
  --cream: #F7F3EA;
  --gold: #C9A227;
  --slate: #41506E;
  --sand: #EFE8D8;
  --sand-line: #E2D8C0;
  --white: #FFFFFF;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 18px;            /* senior-accessibility baseline */
  line-height: 1.55;
}

img { max-width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */
.site-header {
  background: var(--navy);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.site-header img.mark { width: 44px; height: auto; }
.site-header .word { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.01em; }
.site-header a.brand { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.site-nav { display: flex; gap: 1.1rem; margin-left: 1rem; }
.site-nav a { color: #B9C2D6; text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cream); }
@media (max-width: 560px) { .site-nav { display: none; } }
.site-header a.phone {
  margin-left: auto;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}
.site-header a.phone:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding: 4rem 0 3.2rem; }
.hero .container { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.hero img.mark { width: 110px; height: auto; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.15;
  margin: 0;
  max-width: 21ch;
  text-wrap: balance;
}
.hero p.sub { color: var(--slate); font-size: 1.2rem; margin: 0; max-width: 52ch; }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.5rem; }
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.95rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: #24365c; }
.btn-secondary { color: var(--navy); border-color: var(--gold); background: transparent; }
.btn-secondary:hover { background: rgba(201, 162, 39, 0.12); }

/* ---------- trust strip ---------- */
.trust {
  background: var(--sand);
  border-top: 1px solid var(--sand-line);
  border-bottom: 1px solid var(--sand-line);
}
.trust .container {
  display: flex;
  gap: 1.2rem 2.4rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  font-weight: 600;
}
.trust span b { color: #8A6E14; margin-right: 0.35rem; }

/* ---------- sections ---------- */
section.block { padding: 3.2rem 0; }
section.block.alt { background: var(--white); }
section.block h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  margin: 0 0 1.4rem;
}
section.block p.lead { color: var(--slate); max-width: 62ch; margin: 0 0 1.5rem; }

/* services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.service {
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}
.alt .service { background: var(--cream); }
.service h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.service p { margin: 0; color: var(--slate); font-size: 0.98rem; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; counter-reset: step; }
.step {
  background: var(--cream);
  border: 1px solid var(--sand-line);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.step h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--slate); font-size: 0.98rem; }

/* reviews */
.reviews-empty {
  background: var(--white);
  border: 1px dashed var(--sand-line);
  border-radius: 10px;
  padding: 1.4rem;
  color: var(--slate);
  max-width: 62ch;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
}
.review-card .stars { color: var(--gold); letter-spacing: 0.1em; }
.review-card p { margin: 0.4rem 0 0.2rem; }
.review-card .who { color: var(--slate); font-size: 0.9rem; }

/* about / area */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
.area-list { columns: 2; margin: 0; padding-left: 1.2rem; color: var(--slate); }

/* ---------- funnel ---------- */
#funnel { background: var(--navy); color: var(--cream); }
#funnel h2 { color: var(--cream); }
#funnel p.lead { color: #B9C2D6; }
.wizard {
  background: var(--cream);
  color: var(--navy);
  border-radius: 12px;
  padding: 1.8rem;
  max-width: 640px;
}
.wizard .q-prompt { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 1rem; }
.wizard .options { display: flex; flex-direction: column; gap: 0.6rem; }
.wizard .options button {
  text-align: left;
  font-size: 1.05rem;
  font-family: var(--sans);
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  border: 2px solid var(--sand-line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.wizard .options button:hover { border-color: var(--gold); }
.wizard input[type="text"], .wizard input[type="tel"], .wizard textarea {
  width: 100%;
  font-size: 1.05rem;
  font-family: var(--sans);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--sand-line);
  background: var(--white);
  color: var(--navy);
}
.wizard textarea { min-height: 100px; resize: vertical; }
.wizard .wiz-nav { display: flex; gap: 0.8rem; margin-top: 1.2rem; align-items: center; }
.wizard .wiz-back {
  background: none; border: none; color: var(--slate);
  font-size: 1rem; cursor: pointer; padding: 0.5rem;
}
.wizard .progress { margin-left: auto; color: var(--slate); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.wizard .summary {
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: 0.98rem;
  white-space: pre-wrap;
}
.wizard .error-note { color: #8a2b1e; font-size: 0.95rem; }

/* ---------- inner pages ---------- */
.page-narrow { max-width: 760px; }
.page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  margin: 0.8rem 0 1rem;
  text-wrap: balance;
}
.page-narrow h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 2.2rem 0 0.8rem;
}
.commitments { margin-top: 1.2rem; }
.map-embed {
  border: 1px solid var(--sand-line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1.5rem;
}
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #B9C2D6; padding: 2rem 0; font-size: 0.95rem; }
.site-footer .container { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.site-footer img.mark { width: 30px; height: auto; }
.site-footer a { color: var(--gold); }

/* ---------- mobile sticky call bar ---------- */
.callbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--gold);
  padding: 0.7rem 1rem;
  z-index: 30;
  text-align: center;
}
.callbar a {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
}
@media (max-width: 720px) {
  .callbar { display: block; }
  body { padding-bottom: 3.6rem; }
}

/* PRELAUNCH — remove when phone number goes live */
a[href^="tel:"], .callbar { display: none !important; }
