/* Orange County Foundation & Basement Connect — shared stylesheet
   No external dependencies. System font stack. Mobile-first. */

:root {
  --navy: #14304d;
  --navy-dark: #0d2237;
  --slate: #3d4f61;
  --ink: #1c2b39;
  --bg: #ffffff;
  --bg-soft: #f2f5f8;
  --line: #c9d4de;
  --accent: #e8590c;       /* safety orange — used sparingly */
  --accent-dark: #b44408;  /* for small text on white (contrast-safe) */
  --ok-bg: #e6f4ea;
  --ok-ink: #14532d;
  --warn-bg: #fdf1e3;
  --warn-ink: #7a3c06;
  --radius: 10px;
  --maxw: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem;
}

img { max-width: 100%; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 0;
}
.brand { color: #fff; text-decoration: none; line-height: 1.25; }
.brand:hover { color: #fff; }
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: 0.01em; display: block; }
.brand-tag { font-size: 0.85rem; color: #cfdce8; display: block; }
.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center;
}
.main-nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.main-nav a:hover { text-decoration: underline; color: #fff; }
.header-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 0.65rem 1.15rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}
.btn:hover { background: var(--navy-dark); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--bg-soft); color: var(--navy); }

/* ---------- Hero / sections ---------- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 2.2rem 0 2rem; }
.hero h1 { margin-top: 0; }
h1 { font-size: 2rem; line-height: 1.2; color: var(--navy-dark); margin: 0 0 0.75rem; }
h2 { font-size: 1.45rem; line-height: 1.3; color: var(--navy); margin: 2rem 0 0.6rem; }
h3 { font-size: 1.15rem; color: var(--navy); margin: 1.4rem 0 0.4rem; }
main { padding-bottom: 2.5rem; }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 46rem; }
section { padding: 0.5rem 0; }

.disclosure {
  background: var(--warn-bg);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  color: var(--ink);
  font-size: 0.98rem;
}
.disclosure strong { color: var(--warn-ink); }

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1rem 0; }
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .cards.three { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: 1fr 1fr 1fr; } }
.steps li {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; position: relative;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  display: inline-block; background: var(--accent); color: #fff; font-weight: 800;
  width: 1.8rem; height: 1.8rem; line-height: 1.8rem; text-align: center;
  border-radius: 50%; margin-bottom: 0.5rem;
}

.town-list { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
@media (min-width: 48rem) { .town-list { columns: 3; } }

/* ---------- Tools (checker / picker) ---------- */
.tool {
  background: #fff; border: 2px solid var(--navy); border-radius: var(--radius);
  padding: 1.2rem; margin: 1.25rem 0;
}
.tool h2, .tool h3 { margin-top: 0; }
.tool-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
.tool-row .field { flex: 1 1 12rem; }
.tool-result { margin-top: 1rem; }
.result-ok, .result-out, .form-notice {
  border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-top: 0.75rem;
}
.result-ok { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid #9ecfae; }
.result-out { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #ecc493; }
.form-notice { background: var(--warn-bg); color: var(--warn-ink); border: 1px solid #ecc493; }

.picker-options { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.75rem 0; }
.picker-btn {
  background: var(--bg-soft); border: 2px solid var(--slate); color: var(--ink);
  border-radius: 999px; padding: 0.5rem 1rem; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.picker-btn:hover { border-color: var(--navy); }
.picker-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag-chip {
  display: inline-block; background: var(--navy); color: #fff; border-radius: 999px;
  padding: 0.15rem 0.7rem; font-size: 0.9rem; font-weight: 700; margin-left: 0.4rem;
}

/* ---------- Forms ---------- */
.lead-form {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; margin: 1.25rem 0;
}
.lead-form h2, .lead-form h3 { margin-top: 0; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; color: var(--navy-dark); }
.field .hint { font-weight: 400; font-size: 0.9rem; color: var(--slate); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea {
  width: 100%; padding: 0.6rem 0.7rem; font-size: 1rem; font-family: inherit;
  border: 1.5px solid var(--slate); border-radius: 6px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 5.5rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; flex: none; }
.check label { font-size: 0.95rem; }
fieldset.field { border: 1.5px solid var(--slate); border-radius: 6px; padding: 0.75rem 1rem 0.5rem; }
fieldset.field legend { font-weight: 700; color: var(--navy-dark); padding: 0 0.3rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.radio-row label { display: inline-flex; gap: 0.4rem; align-items: center; font-weight: 400; }
.next-strip {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 0.9rem 1.1rem; margin-top: 1rem; font-size: 0.98rem;
}
.next-strip strong { color: #ffb98a; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FAQ ---------- */
.faq dt { font-weight: 700; color: var(--navy-dark); margin-top: 1rem; }
.faq dd { margin: 0.25rem 0 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #d7e2ec; margin-top: 2rem; }
.site-footer a { color: #fff; }
.footer-inner { padding: 1.8rem 0 1.4rem; }
.footer-name { font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-fine { font-size: 0.9rem; color: #aebfce; }
