/* Fair Auto Shops — contemporary utility directory */
:root {
  --ink: #1c2420;
  --muted: #5a6560;
  --border: #e2e8e4;
  --border-strong: #cfd8d2;
  --bg: #f6f7f5;
  --card: #ffffff;
  --accent: #1f4d3a;
  --accent-hover: #16382b;
  --accent-soft: #e9f2ed;
  --accent-mid: #2d6b52;
  --charcoal: #2a3230;
  --warn-bg: #f7f4ea;
  --warn-border: #ddd4b0;
  --warn-ink: #6b6348;
  --link: #1f4d3a;
  --focus: #2d6b52;
  --shadow: 0 1px 2px rgba(28, 36, 32, 0.04), 0 4px 12px rgba(28, 36, 32, 0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 40rem;
  --wide: 56rem;
  --header-h: 3.5rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* —— Sticky header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
}
.site-header .inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.5rem;
  justify-content: space-between;
}
.site-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-title:hover { color: var(--accent-hover); text-decoration: none; }
.site-title:focus-visible { outline-offset: 4px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

/* —— Main —— */
main {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}
main.wide { max-width: var(--wide); }

h1 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  color: var(--charcoal);
}
h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}
h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.55;
  max-width: 38rem;
}
.meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* —— Hero (home) —— */
.hero {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 { margin-bottom: 0.5rem; }
.hero .lede { font-size: 1.1rem; margin-bottom: 1.25rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(31, 77, 58, 0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}
.btn-primary:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* —— Criteria / cards —— */
.criteria {
  background: var(--accent-soft);
  border: 1px solid #c8ddd2;
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.criteria h2 { margin-top: 0; }
.criteria ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.criteria li { margin-bottom: 0.4rem; }

.card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0 1.75rem;
}
.shop-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}
.shop-card:hover { border-color: var(--border-strong); }
.shop-card .area {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-mid);
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.shop-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}
.shop-card .why {
  margin: 0.5rem 0 0.65rem;
  color: var(--ink);
}
.shop-card .details {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.shop-card .sources {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  line-height: 1.55;
}
.shop-card .sources a {
  display: inline-block;
  margin: 0.2rem 0.75rem 0.1rem 0;
  font-weight: 500;
}

.badge {
  display: inline-block;
  font-size: 0.68rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  vertical-align: middle;
  white-space: nowrap;
}

.filter-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
  line-height: 1.55;
}

/* —— Area jump pills —— */
.area-jump {
  font-size: 0.825rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}
.area-jump a {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  box-shadow: 0 1px 1px rgba(28, 36, 32, 0.03);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.area-jump a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.area-jump a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* —— CTA / forms —— */
.cta-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1.75rem 0;
  background: var(--card);
  box-shadow: var(--shadow);
}
.cta-box h2 { margin-top: 0; }

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.form-field {
  margin: 0 0 1rem;
}
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}
.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  max-width: 24rem;
  padding: 0.55rem 0.75rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  line-height: 1.4;
}
.form-field input:disabled,
.form-field textarea:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--accent);
  background: var(--card);
}
.form-actions { margin: 0.25rem 0 0; }

/* —— Metro lists —— */
.metro-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
}
.metro-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.55rem;
  box-shadow: var(--shadow);
}
.metro-list.coming li {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  border-style: dashed;
}
.metro-list a { font-weight: 600; text-decoration: none; }
.metro-list a:hover { text-decoration: underline; }
.metro-list .badge { margin-left: 0.35rem; }

/* —— Guide / pledge —— */
.guide ol { padding-left: 1.25rem; }
.guide li { margin-bottom: 0.7rem; }
.pledge {
  border-left: 3px solid var(--accent);
  padding: 0.15rem 0 0.15rem 1.1rem;
  margin: 1.5rem 0;
  color: var(--muted);
  background: transparent;
}

/* —— Footer (quiet) —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  background: transparent;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

code {
  font-size: 0.88em;
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

@media (max-width: 560px) {
  html { font-size: 16px; }
  .site-header { padding: 0.65rem 1rem; }
  .site-header .inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
  .site-nav { gap: 0.1rem; }
  .site-nav a { padding: 0.3rem 0.5rem; font-size: 0.82rem; }
  main { padding: 1.5rem 1rem 2.75rem; }
  .shop-card { padding: 1rem; }
  .hero .lede { font-size: 1.02rem; }
}
