/* ============================================================
   ROWHOME READY — style.css
   Palette: deep navy #102A43 | brick #B8462F | amber #F5A623
            warm paper #F7F3EA | muted teal #317A7A
   Type: Bitter (slab serif display) + Source Sans 3 (body)
   Feel: calm, civic field guide. Checklists, clear hierarchy,
   subtle brick pattern. Never panicky.
   ============================================================ */

:root {
  --navy: #102A43;
  --navy-soft: #243B53;
  --brick: #B8462F;
  --brick-deep: #93351F;
  --amber: #F5A623;
  --amber-soft: #FDEBC8;
  --paper: #F7F3EA;
  --paper-deep: #EFE8D8;
  --teal: #317A7A;
  --teal-deep: #245F5F;
  --ink: #26343F;
  --ink-soft: #5F6B76;
  --line: #DDD5C2;
  --white: #FFFFFF;
  --ok: #2E7D4F;
  --r: 12px;
  --shadow: 0 4px 16px rgba(16, 42, 67, 0.10);
  --slab: "Bitter", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

a { color: var(--teal-deep); }
.shell { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- brick pattern helper ---------- */
.brickline {
  height: 10px;
  background:
    repeating-linear-gradient(90deg,
      var(--brick) 0 42px, var(--paper) 42px 46px);
}

/* ---------- header ---------- */
.hdr { background: var(--navy); color: var(--white); }
.hdr-inner {
  max-width: 1080px; margin: 0 auto; padding: 15px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--slab);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.wordmark .roof {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brick);
  color: var(--white);
  border-radius: 7px;
  font-size: 1rem;
}
.wordmark span.rt { color: var(--amber); }
.hnav { display: flex; gap: 3px; flex-wrap: wrap; }
.hnav a {
  color: #B9C7D6;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 7px;
}
.hnav a:hover, .hnav a.on { background: var(--navy-soft); color: var(--white); }
.hnav a.urgent { background: var(--brick); color: var(--white); }
.hnav a.urgent:hover { background: var(--brick-deep); }

/* ---------- emergency banner ---------- */
.danger-bar {
  background: var(--amber-soft);
  border-bottom: 2px solid var(--amber);
  color: #6B4A05;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ---------- hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 20px 64px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 100%;
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255,255,255,0.03) 34px 36px),
    repeating-linear-gradient(90deg, transparent 0 68px, rgba(255,255,255,0.03) 68px 70px);
  pointer-events: none;
}
.hero-inner { max-width: 1080px; margin: 0 auto; position: relative; }
.hero .tag {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 5px;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--slab);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  max-width: 720px;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { color: #B9C7D6; font-size: 1.1rem; max-width: 600px; margin-top: 14px; }

/* ---------- emergency path grid ---------- */
.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.path {
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--line);
  border-left: 6px solid var(--brick);
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  display: block;
}
.path:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.path .ico { font-size: 1.7rem; }
.path h3 {
  font-family: var(--slab);
  font-weight: 800;
  font-size: 1.12rem;
  margin: 8px 0 4px;
  color: var(--navy);
}
.path p { font-size: 0.9rem; color: var(--ink-soft); }
.path .go { font-weight: 800; color: var(--brick); font-size: 0.85rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: var(--sans);
  transition: background 0.15s;
}
.btn-brick { background: var(--brick); color: var(--white); }
.btn-brick:hover { background: var(--brick-deep); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-deep); }
.btn-line { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 8px 15px; font-size: 0.85rem; }

/* ---------- sections ---------- */
.blk { padding: 54px 0; }
.blk-white { background: var(--white); }
.blk-navy { background: var(--navy); color: var(--white); }
.blk-head { margin-bottom: 26px; max-width: 640px; }
.blk-head .k {
  color: var(--brick);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.blk-head h2 {
  font-family: var(--slab);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--navy);
  margin-top: 4px;
}
.blk-navy .blk-head h2 { color: var(--white); }
.blk-head p { color: var(--ink-soft); margin-top: 8px; }
.blk-navy .blk-head p { color: #B9C7D6; }

/* ---------- 911 callout ---------- */
.call-911 {
  background: #FBE9E4;
  border: 2px solid var(--brick);
  border-radius: var(--r);
  padding: 18px 22px;
  margin: 20px 0;
  color: #7C2A17;
  font-size: 0.98rem;
}
.call-911 strong { font-family: var(--slab); }

/* ---------- checklist cards (guides) ---------- */
.check-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  margin-bottom: 20px;
}
.check-card h2 {
  font-family: var(--slab);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-card h2 .stepno {
  background: var(--navy);
  color: var(--amber);
  font-size: 0.95rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.check-card.donot { border-left: 6px solid var(--brick); }
.check-card.docu { border-left: 6px solid var(--teal); }
.steps { list-style: none; }
.steps li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px dashed var(--line);
  font-size: 0.98rem;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 16px; height: 16px;
  border: 2.5px solid var(--teal);
  border-radius: 4px;
  background: var(--white);
}
.steps.xlist li::before {
  content: "✕";
  border-color: var(--brick);
  color: var(--brick);
  font-weight: 800;
  font-size: 0.7rem;
  text-align: center;
  line-height: 15px;
}

/* ---------- directory cards ---------- */
.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.pro-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  transition: box-shadow 0.15s;
}
.pro-card:hover { box-shadow: var(--shadow); }
.pro-card.featured { border: 2px solid var(--amber); }
.feat-tab {
  position: absolute; top: -11px; left: 16px;
  background: var(--amber);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 5px;
}
.pro-card h3 {
  font-family: var(--slab);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--navy);
}
.pro-card h3 a { color: var(--navy); text-decoration: none; }
.pro-card h3 a:hover { color: var(--brick); }
.pro-where { color: var(--ink-soft); font-size: 0.86rem; font-weight: 700; }
.svc-row { display: flex; flex-wrap: wrap; gap: 6px; }
.svc {
  font-size: 0.73rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--navy-soft);
  border: 1px solid var(--line);
}
.svc-teal { background: #E2EFEF; color: var(--teal-deep); border-color: #BFDCDC; }
.attested {
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--paper);
  border-radius: 7px;
  padding: 8px 11px;
}
.pro-meta { font-size: 0.76rem; color: var(--ink-soft); margin-top: auto; }
.sample-mark {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8A6207;
  background: var(--amber-soft);
  border: 1px dashed var(--amber);
  padding: 2px 8px;
  border-radius: 5px;
}

/* ---------- filters ---------- */
.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  margin-bottom: 24px;
}
.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 13px;
}
.fld label {
  display: block;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.fld select, .fld input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.94rem;
  color: var(--ink);
}
.fld select:focus, .fld input:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}
.tickrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.tick {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84rem; font-weight: 800;
  color: var(--navy-soft);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  user-select: none;
}
.tick input { accent-color: var(--teal); cursor: pointer; }
.tick:has(input:checked) { background: var(--teal); border-color: var(--teal); color: var(--white); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.rescount { font-weight: 800; color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- profile ---------- */
.p-hero { background: var(--navy); color: var(--white); padding: 44px 20px; }
.p-hero h1 { font-family: var(--slab); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.p-hero .sub { color: #B9C7D6; margin-top: 6px; font-weight: 700; }
.p-cols { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
@media (max-width: 860px) { .p-cols { grid-template-columns: 1fr; } }
.facts { list-style: none; }
.facts li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.94rem;
}
.facts li:last-child { border-bottom: none; }
.facts .k { color: var(--ink-soft); font-weight: 700; }
.facts .v { font-weight: 700; text-align: right; color: var(--navy); }
.sidebox {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--r);
  padding: 22px;
  margin-bottom: 18px;
}
.sidebox h3 { font-family: var(--slab); font-weight: 800; font-size: 1.05rem; color: var(--navy); margin-bottom: 12px; }
.sidebox .btn { width: 100%; margin-bottom: 8px; }
.smallnote {
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--paper);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 6px;
}

/* ---------- notices ---------- */
.notice {
  background: var(--amber-soft);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  padding: 15px 19px;
  font-size: 0.93rem;
  color: #6B4A05;
  margin: 18px 0;
}
.notice-teal { background: #E2EFEF; border-color: var(--teal); color: var(--teal-deep); }

/* ---------- utility numbers table ---------- */
.util-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.util-table th, .util-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
.util-table th {
  font-family: var(--slab);
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.util-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }

/* ---------- forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  max-width: 720px;
}
.form-card h2 { font-family: var(--slab); font-weight: 800; font-size: 1.3rem; color: var(--navy); margin-bottom: 16px; }
.frow { margin-bottom: 15px; }
.frow label {
  display: block;
  font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.frow input, .frow select, .frow textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--paper);
}
.frow textarea { min-height: 110px; resize: vertical; }
.frow input:focus, .frow select:focus, .frow textarea:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}

/* ---------- content ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--slab); font-weight: 800; font-size: 1.4rem; color: var(--navy); margin: 30px 0 10px; }
.prose h3 { font-size: 1.05rem; margin: 20px 0 8px; color: var(--navy); }
.prose p, .prose li { color: #37444F; margin-bottom: 10px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 14px; }

.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
}
.hidden { display: none !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; }

/* ---------- footer ---------- */
.ftr { background: var(--navy); color: #93A5B8; padding: 44px 20px 30px; font-size: 0.87rem; }
.ftr-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
}
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } }
.ftr h4 { font-family: var(--slab); color: var(--white); font-size: 0.98rem; margin-bottom: 12px; }
.ftr a { color: #93A5B8; text-decoration: none; display: block; padding: 3px 0; }
.ftr a:hover { color: var(--amber); }
.ftr-legal {
  max-width: 1080px; margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--navy-soft);
  font-size: 0.79rem;
  color: #6E8098;
}
.skip-link {
  position: absolute; left: -9999px;
  background: var(--amber); color: var(--navy);
  padding: 10px 16px; z-index: 100; font-weight: 800;
}
.skip-link:focus { left: 10px; top: 10px; }

@media (max-width: 640px) {
  .hero { padding: 40px 20px 48px; }
  .hdr-inner { justify-content: center; }
  .hnav { justify-content: center; }
  .paths { grid-template-columns: 1fr; }
  .path { padding: 18px; }
}
