/* East Bay Crawl Space — mobile-first */
:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --muted: #5c6b7a;
  --bg: #f7f5f1;
  --surface: #ffffff;
  --accent: #0d6e6e;
  --accent-dark: #0a5555;
  --accent-soft: #e6f3f3;
  --warm: #c4783a;
  --border: #d8dde3;
  --danger-soft: #fef3e8;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(26, 35, 50, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 720px;
  --wide: 960px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(1.55rem, 5vw, 2.05rem); }
h2 { font-size: clamp(1.25rem, 4vw, 1.55rem); margin-top: 2rem; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 650; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 0.5rem 1rem;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.logo {
  font-weight: 750;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.logo span { display: block; font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.header-cta {
  display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-call {
  background: var(--accent);
  color: #fff !important;
}
.btn-call:hover { background: var(--accent-dark); color: #fff !important; }
.btn-secondary {
  background: var(--surface);
  color: var(--accent) !important;
  border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent-soft); }
.btn-block { width: 100%; }
.nav-toggle {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 0.4rem 0.55rem; cursor: pointer; font-size: 0.85rem; color: var(--ink);
}
.site-nav {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.5rem 1rem 1rem;
}
.site-nav.open { display: block; }
.site-nav a {
  display: block;
  padding: 0.55rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  border-bottom: 1px solid var(--border);
}
.site-nav a:last-child { border-bottom: none; }
.site-nav a:hover { color: var(--accent); }
.nav-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin: 0.75rem 0 0.25rem; font-weight: 650;
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .header-inner { flex-wrap: wrap; }
  .site-nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.15rem 1.1rem;
    width: 100%;
    border-top: 1px solid var(--border);
    padding: 0.45rem 1rem 0.65rem;
    order: 3;
  }
  .site-nav a {
    display: inline; border: none; padding: 0.2rem 0; font-size: 0.9rem;
  }
  .nav-label { display: none; }
}

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem 2.5rem; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 1rem 2.5rem; }
.hero {
  background: linear-gradient(165deg, #0a5555 0%, #0d6e6e 45%, #1a8a7a 100%);
  color: #f0faf9;
  padding: 1.75rem 1rem 2rem;
}
.hero .wrap { padding-bottom: 0; }
.hero h1 { color: #fff; margin-bottom: 0.85rem; }
.hero p { color: rgba(255,255,255,0.92); }
.hero a { color: #b8f0e8; }
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}
.matching-chip {
  background: var(--danger-soft);
  border-left: 4px solid var(--warm);
  padding: 0.85rem 1rem;
  margin: 1rem 0 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.matching-chip strong { color: var(--ink); }

/* Lead card */
.lead-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin: -1.25rem auto 1.75rem;
  max-width: var(--max);
  position: relative;
  border: 1px solid var(--border);
}
.lead-card h2 { margin-top: 0; font-size: 1.15rem; }
.lead-actions { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.1rem; }
.form-note { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 0; }
.form-grid { display: grid; gap: 0.75rem; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--ink-soft); }
input, textarea, select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { min-height: 90px; resize: vertical; }
.req::after { content: " *"; color: #b33; }

/* Content cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0 0.85rem 3rem;
  border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.85rem;
  width: 2rem; height: 2rem;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 750; font-size: 0.9rem;
}
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .lead-actions { flex-direction: row; }
  .lead-actions .btn { flex: 1; }
}
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; border-collapse: collapse; font-size: 0.92rem;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
}
th, td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }
.trust-strip {
  display: grid; gap: 0.65rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.trust-strip li { list-style: none; padding-left: 1.4rem; position: relative; margin: 0; }
.trust-strip ul { list-style: none; padding: 0; margin: 0; }
.trust-strip li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.cta-band {
  background: var(--ink);
  color: #e8eef4;
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  margin: 2rem 0 1rem;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-band .btn-call { margin-top: 0.5rem; }
.breadcrumb {
  font-size: 0.8rem; color: var(--muted); margin: 1rem 0 0.5rem;
}
.breadcrumb a { color: var(--muted); }

/* Footer */
.site-footer {
  background: #121820;
  color: #a8b4c0;
  padding: 2rem 1rem 2.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
}
.footer-inner { max-width: var(--wide); margin: 0 auto; }
.footer-nav {
  display: grid; gap: 0.35rem 1.5rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .footer-nav { grid-template-columns: repeat(4, 1fr); }
}
.footer-nav a { color: #c5d0da; text-decoration: none; font-size: 0.85rem; }
.footer-nav a:hover { color: #fff; }
.footer-nav strong {
  display: block; color: #fff; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem;
}
.disclaimer {
  border-top: 1px solid #2a3544;
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  color: #8a97a6;
  font-size: 0.82rem;
}
.disclaimer a { color: #9ec9c9; }
.disclaimer strong { color: #c5d0da; }
.footer-meta { margin-top: 1.25rem; font-size: 0.8rem; color: #6b7888; }

.page-hero-lite {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1rem 1.25rem;
}
.page-hero-lite h1 { margin-bottom: 0.5rem; }
.prose { padding-top: 0.5rem; }
.prose h2:first-child { margin-top: 0.5rem; }
.loc-facts {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1rem 0 1.5rem;
}
.loc-facts h3 { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
