/* ============================================================
   BC HOMEWATCH — design tokens
   Concept: a storm/weather-alert dashboard for home trades.
   Battle Creek gets hard seasons — ice, wind, flood, freeze —
   and this site frames each trade as the "response" to a
   specific seasonal threat.
   ============================================================ */

:root {
  /* color */
  --ink: #10161c;        /* near-black navy — dark sections, header */
  --slate: #2c3a4a;      /* secondary dark — cards on dark bg, borders */
  --slate-soft: #46586b; /* lighter slate for muted text on dark */
  --cloud: #eef1f4;      /* light section background */
  --paper: #ffffff;
  --line: #d8dee4;       /* hairline borders on light bg */

  --amber: #f2a93b;      /* signature accent — "watch" level alert */
  --amber-ink: #7a4c05;  /* text-safe darker amber for on-light use */
  --storm-red: #c13b33;  /* "warning" level — urgent CTAs only */
  --pine: #3f6659;       /* "calm / resolved" level — reassurance */

  /* type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 3px; /* signage, not soft app UI — sharp corners */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--storm-red);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { animation: none; }
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }
@media (max-width: 640px) {
  section { padding: 48px 0; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--amber);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--paper);
  white-space: nowrap;
}
.logo span { color: var(--amber); }

.main-nav {
  display: flex;
  gap: 22px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}
.main-nav a {
  text-decoration: none;
  color: #c7cfd7;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
.main-nav a:hover, .main-nav a.active { color: var(--paper); border-color: var(--amber); }

.call-btn {
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  white-space: nowrap;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}
.call-btn:hover { background: #ffbf5e; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle {
    display: inline-block;
    background: none;
    border: 1px solid var(--slate-soft);
    color: var(--paper);
    padding: 8px 10px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.8rem;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 16px 24px 20px;
    border-bottom: 3px solid var(--amber);
    gap: 14px;
  }
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(242,169,59,0.06), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 18px 0 16px;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero p.lede {
  font-size: 1.1rem;
  color: #c7cfd7;
  max-width: 52ch;
  margin: 0 0 28px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #ffbf5e; }
.btn-ghost { border-color: var(--slate-soft); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }

/* ---------- threat board (signature element) ---------- */
.threat-board {
  border-top: 1px solid var(--slate);
  padding: 30px 0 0;
}
.threat-board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.threat-board-head h2 {
  font-size: 1rem;
  color: #c7cfd7;
  letter-spacing: 0.06em;
}
.threat-board-head .ts {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-soft);
}
.threat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 760px) {
  .threat-grid { grid-template-columns: repeat(2, 1fr); }
}
.threat-tile {
  padding: 20px 18px 24px;
  border-right: 1px solid var(--slate);
  border-top: 3px solid var(--level-color, var(--pine));
  text-decoration: none;
  color: var(--paper);
  background: rgba(255,255,255,0.02);
  transition: background 0.15s ease;
}
.threat-tile:nth-child(2n) { border-right: 0; }
@media (min-width: 761px) {
  .threat-tile:nth-child(2n) { border-right: 1px solid var(--slate); }
  .threat-tile:last-child { border-right: 0; }
}
.threat-tile:hover { background: rgba(255,255,255,0.06); }
.threat-tile .icon { width: 30px; height: 30px; margin-bottom: 14px; color: var(--level-color, var(--pine)); }
.threat-tile .level {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--level-color, var(--pine));
  margin-bottom: 6px;
}
.threat-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--paper);
}
.threat-tile p {
  font-size: 0.85rem;
  color: #a9b3bd;
  margin: 0;
}
.threat-board-foot {
  border-top: 1px solid var(--slate);
  padding: 14px 0 34px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--slate-soft); margin: 0; font-size: 0.95rem; }

/* ---------- section headers ---------- */
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.section-head p { color: var(--slate-soft); margin: 0; font-size: 1.02rem; }
.bg-cloud { background: var(--cloud); }

/* ---------- service grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  gap: 18px;
}
.service-card:hover { border-color: var(--amber); }
.service-card .icon { width: 34px; height: 34px; flex-shrink: 0; color: var(--amber-ink); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.service-card p { margin: 0 0 10px; color: var(--slate-soft); font-size: 0.92rem; }
.service-card .go { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber-ink); }

/* ---------- trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
@media (max-width: 760px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
.trust-item .n { font-family: var(--font-display); font-size: 1.8rem; }
.trust-item .l { font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate-soft); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- service area ---------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.area-list li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 12px;
  background: var(--paper);
}

/* ---------- lead form ---------- */
.lead-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
}
@media (max-width: 800px) { .lead-panel { grid-template-columns: 1fr; padding: 28px; } }
.lead-copy h2 { font-size: 1.6rem; margin-bottom: 14px; }
.lead-copy p { color: #c7cfd7; margin: 0 0 20px; }
.lead-copy .call-line {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--amber);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}
.lead-copy .hours { font-size: 0.85rem; color: var(--slate-soft); }

form.lead-form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a9b3bd;
}
.field input, .field select, .field textarea {
  background: #1a222b;
  border: 1px solid var(--slate);
  color: var(--paper);
  padding: 11px 12px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.lead-form .btn-primary { border: none; cursor: pointer; margin-top: 4px; width: 100%; }
.form-note { font-size: 0.78rem; color: var(--slate-soft); margin: 4px 0 0; }
.form-status { font-family: var(--font-mono); font-size: 0.85rem; margin-top: 8px; }
.form-status.ok { color: var(--pine); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.2rem; color: var(--amber-ink); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 12px 0 0; color: var(--slate-soft); max-width: 68ch; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #a9b3bd;
  padding: 48px 0 28px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr;
  gap: 28px;
  margin-bottom: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-size: 0.78rem;
  color: var(--paper);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: #a9b3bd; }
.footer-grid a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid var(--slate);
  padding-top: 20px;
  font-size: 0.76rem;
  color: var(--slate-soft);
  line-height: 1.6;
}

/* ---------- niche page hero variant ---------- */
.niche-hero { padding-bottom: 56px; }
.niche-hero .badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 26px; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid var(--slate-soft);
  color: #c7cfd7;
  padding: 6px 11px;
  border-radius: var(--radius);
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick { width: 20px; height: 20px; flex-shrink: 0; color: var(--pine); margin-top: 2px; }

/* ---------- hero illustration (blueprint-style diagrams) ---------- */
.hero-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-illustration { max-width: 320px; margin: 0 auto 8px; order: -1; }
}
.hero-illustration svg { width: 100%; height: auto; }
.hero-illustration text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

/* ---------- trust / vetting ---------- */
.vetting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .vetting-grid { grid-template-columns: 1fr; } }
.vetting-item { display: flex; gap: 14px; align-items: flex-start; }
.vetting-item .icon-wrap {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber-ink);
}
.vetting-item .icon-wrap svg { width: 20px; height: 20px; }
.vetting-item h3 { font-size: 1rem; margin-bottom: 4px; }
.vetting-item p { margin: 0; color: var(--slate-soft); font-size: 0.9rem; }

/* ---------- testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.testimonial-card .stars {
  color: var(--amber-ink);
  font-family: var(--font-mono);
  margin-bottom: 12px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}
.testimonial-card p { margin: 0 0 16px; color: var(--ink); font-size: 0.95rem; }
.testimonial-card .who {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--slate-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.testimonial-note {
  font-size: 0.8rem;
  color: var(--slate-soft);
  margin-top: 18px;
  font-style: italic;
}

/* ---------- resources / guides ---------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .resource-grid { grid-template-columns: 1fr; } }
.resource-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.resource-card .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-ink);
  margin-bottom: 10px;
  display: inline-block;
}
.resource-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.resource-card p { color: var(--slate-soft); margin: 0; font-size: 0.92rem; }
.resource-card p + p { margin-top: 10px; }

/* ---------- map card (static, works with no live host) ---------- */
.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  padding: 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.map-card svg { width: 64px; height: 64px; flex-shrink: 0; color: var(--amber); }
.map-card .map-copy { flex: 1; min-width: 200px; }
.map-card .map-copy .addr { font-family: var(--font-mono); color: #c7cfd7; font-size: 0.92rem; margin: 4px 0 0; }
.map-card a.btn-ghost { flex-shrink: 0; }

/* ---------- about page extras ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.value-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { margin: 0; color: var(--slate-soft); font-size: 0.92rem; }
