:root {
  --bg: #f8f6f3;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #6b6560;
  --border: #e7e2dc;
  --accent: #0f4c5c;
  --accent-soft: #e8f4f8;
  --gold: #b8860b;
  --shadow: 0 2px 8px rgba(28, 25, 23, 0.06), 0 12px 40px rgba(28, 25, 23, 0.05);
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 243, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
  line-height: 1;
}
.logo-lockup:hover .logo-mark { transform: scale(1.04); }
.logo-mark {
  flex-shrink: 0;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(15, 76, 92, 0.18);
  transition: transform 0.15s ease;
}
.logo-text { white-space: nowrap; }
.logo-accent { color: var(--accent); }
.logo { font-weight: 700; letter-spacing: -0.03em; font-size: 1.05rem; }
.logo span { color: var(--accent); }

nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
nav a:hover { color: var(--text); }
nav a.active { color: var(--accent); font-weight: 600; }

.guide-hero {
  padding: 3rem 0 2rem;
}

.guide-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 18ch;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
  letter-spacing: -0.02em;
}

.hood-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.hood-card:hover {
  transform: translateY(-2px);
  border-color: #cfd8dc;
}

.hood-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.hood-card .zip-badge {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.hood-card p { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

.tips-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.tips-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.tips-list li::before {
  content: "→ ";
  color: var(--accent);
  font-weight: 700;
}

.service-hub-card {
  display: grid;
  gap: 0.35rem;
}
.service-hub-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%);
}
.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.service-links a {
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}
.service-links a:hover { border-color: var(--accent); color: var(--accent); }

.neighborhood-detail .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #cfd8dc;
}

.card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card .value { margin-top: 0.75rem; font-size: 0.8rem; color: var(--gold); font-weight: 600; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.stat strong { display: block; font-size: 1.2rem; color: var(--accent); }
.stat span { font-size: 0.8rem; color: var(--muted); }

.layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 3rem;
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  nav { display: none; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.panel .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }

form { display: grid; gap: 0.75rem; }
label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}

textarea { min-height: 90px; resize: vertical; }

button {
  border: 0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

button:hover { filter: brightness(1.05); }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.success, .error {
  display: none;
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: 10px;
}

.success { background: #ecfdf5; color: #065f46; }
.error { background: #fef2f2; color: #991b1b; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.bullets { margin: 1rem 0 0 1.1rem; color: var(--muted); font-size: 0.92rem; }
.bullets li { margin: 0.35rem 0; }

.service-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.service-pick {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  background: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  text-align: center;
}

.service-pick:hover, .service-pick.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.faq { margin-top: 1.5rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }

.prose h2 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.prose p { color: var(--muted); margin-bottom: 0.75rem; max-width: 65ch; }
.prose a { color: var(--accent); text-decoration: underline; }

.consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--muted);
}
.consent input { width: auto; margin-top: 0.2rem; flex-shrink: 0; }
.consent a { color: var(--accent); text-decoration: underline; }

.prospect-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 1rem;
}
.prospect-table th, .prospect-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0.35rem;
  text-align: left;
  vertical-align: top;
}
.prospect-table th { color: var(--muted); font-weight: 600; }

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}
.page-links a {
  font-size: 0.82rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
}
.page-links a:hover { border-color: var(--accent); color: var(--accent); }

.location-picker {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fdfcfa;
}

.zip-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: -0.25rem 0 0;
  line-height: 1.45;
}

.optional {
  font-weight: 500;
  color: #9ca3af;
}

.fixed-location-text {
  margin: 0.25rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.zip-map-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.zip-map-table th,
.zip-map-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.zip-map-table th {
  color: var(--muted);
  font-weight: 600;
}