/* =========================================================================
   Fort Irwin Water Damage Experts
   Palette: navy base, safety orange reserved exclusively for "call".
   Type: Archivo (display) + IBM Plex Sans (body).
   Device: one "water line" rule per page, at the hero boundary.
   ========================================================================= */

:root {
  /* Base */
  --ink: #0b1b2b;
  --ink-deep: #061320;
  --ink-soft: #1c3449;
  --surface: #f2f5f7;
  --paper: #ffffff;
  --line: #d3dde4;

  /* Text */
  --text: #11212f;
  --text-muted: #4c5f6f;
  --text-on-dark: #e8eef3;
  --text-on-dark-muted: #9fb3c2;

  /* Accents — orange is the call action and nothing else.
     Text on orange is navy, not white: white gives only 2.87:1 and fails WCAG AA,
     while navy gives 6.08:1 and matches real hazard-signage convention.
     Hover brightens rather than darkens, which keeps contrast above 7:1. */
  --signal: #ff6a1a;
  --signal-bright: #ff8534;
  --signal-ink: #0b1b2b;
  --waterline: #1e6e8c;
  --alert: #b42318;

  /* Fluid type scale */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.09rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.28rem + 0.6vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --step-5: clamp(2.6rem, 1.7rem + 4.2vw, 4.75rem);

  --shell: 74rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --block: clamp(3rem, 2rem + 4vw, 5.5rem);

  --radius: 3px;
  --radius-lg: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  /* Room for the sticky call bar on phones */
  padding-bottom: 4.75rem;
}

@media (min-width: 46rem) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--waterline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--signal);
  color: var(--signal-ink);
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: 600;
}

.skip:focus {
  left: 0;
}

/* ---------- Display type ------------------------------------------------ */

h1,
h2,
h3,
h4 {
  font-family: Archivo, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.021em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-2);
  font-weight: 700;
}
h4 {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
  max-width: 68ch;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ---------- Masthead ---------------------------------------------------- */

.masthead {
  background: var(--ink);
  color: var(--text-on-dark);
  position: relative;
  z-index: 20;
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  margin-right: auto;
  padding: 0.6rem 0;
  /* basis 0 so the brand never claims enough width to wrap the Menu button
     onto a second row — it shrinks instead */
  flex: 1 1 0;
  min-width: 0;
}

.brand__mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border-radius: 50% 50% 50% 4px;
  background: linear-gradient(150deg, #3aa8cc, var(--waterline) 60%, #10465a);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
  transform: rotate(-12deg);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand__name {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  letter-spacing: -0.022em;
  font-size: clamp(0.88rem, 0.78rem + 0.45vw, 1.02rem);
}

.brand__note {
  font-size: 0.72rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.005em;
}

/* On phones the sticky bottom bar already carries the always-open message,
   so the strapline only costs header height here. */
@media (max-width: 36rem) {
  .brand__note {
    display: none;
  }
}

.sitenav {
  flex-basis: 100%;
  order: 3;
  display: none;
}

.sitenav[data-open='true'] {
  display: block;
}

.sitenav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sitenav a {
  display: block;
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sitenav a:hover,
.sitenav a[aria-current='page'] {
  color: #fff;
}

.sitenav a[aria-current='page'] {
  box-shadow: inset 3px 0 0 var(--signal);
  padding-left: 0.7rem;
}

.navtoggle {
  display: inline-flex;
  flex: none;
  order: 2;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text-on-dark);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.navtoggle__bars,
.navtoggle__bars::before,
.navtoggle__bars::after {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  content: '';
}

.navtoggle__bars {
  position: relative;
}

.navtoggle__bars::before {
  position: absolute;
  top: -5px;
}

.navtoggle__bars::after {
  position: absolute;
  top: 5px;
}

.masthead__call {
  display: none;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  color: var(--signal-ink);
  background: var(--signal);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
}

.masthead__call:hover {
  background: var(--signal-bright);
  color: var(--signal-ink);
}

/* Show the header call button exactly where the sticky bottom bar stops */
@media (min-width: 46rem) {
  .masthead__call {
    display: inline-flex;
    order: 3;
  }
}

@media (min-width: 60rem) {
  .navtoggle {
    display: none;
  }
  .sitenav {
    display: block;
    flex-basis: auto;
    order: 2;
  }
  .sitenav ul {
    flex-direction: row;
    gap: 1.5rem;
    padding: 0;
  }
  .sitenav a {
    border-bottom: 0;
    padding: 0.35rem 0;
  }
  .sitenav a[aria-current='page'] {
    box-shadow: inset 0 -3px 0 var(--signal);
    padding-left: 0;
  }
}

/* ---------- Hero -------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) 0;
}

/* Faint depth-of-water gradient, bottom-weighted */
.hero::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  background: linear-gradient(180deg, transparent, rgba(30, 110, 140, 0.26));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 4rem);
}

/* Inner pages: same treatment, less vertical weight than the homepage hero */
.hero--short {
  padding-top: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
}

.hero--short h1 {
  font-size: var(--step-4);
  max-width: 30ch;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: #ffd9c2;
  margin-bottom: 1.4rem;
}

.hero__pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(255, 106, 26, 0.75);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}

@keyframes pulse {
  70%,
  100% {
    box-shadow: 0 0 0 0.7rem rgba(255, 106, 26, 0);
  }
}

.hero h1 {
  font-size: var(--step-5);
  color: #fff;
  max-width: 24ch;
  margin-bottom: 0.5em;
}

.hero__sub {
  font-size: var(--step-1);
  color: var(--text-on-dark-muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

/* The phone number is the display type — the largest element on the page */
.phonebox {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--signal);
  color: var(--signal-ink);
  text-decoration: none;
  padding: 1rem 1.5rem 1.15rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 30px -12px rgba(255, 106, 26, 0.55);
  transition: background 0.15s ease;
}

.phonebox:hover {
  background: var(--signal-bright);
  color: var(--signal-ink);
}

.phonebox__label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.phonebox__number {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.phonebox--compact .phonebox__number {
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.25rem);
}

.hero__assurances {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem 1.75rem;
  font-size: var(--step--1);
  color: var(--text-on-dark-muted);
}

.hero__assurances li {
  padding-left: 1.4rem;
  position: relative;
}

.hero__assurances li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: 2px solid var(--waterline);
}

@media (min-width: 40rem) {
  .hero__assurances {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
}

/* ---------- The water line --------------------------------------------- */

.waterline {
  height: 10px;
  background: repeating-linear-gradient(
      90deg,
      var(--waterline) 0 14px,
      #2b89aa 14px 28px
    )
    bottom / 100% 3px no-repeat;
  background-color: rgba(30, 110, 140, 0.4);
  position: relative;
}

.waterline::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: rgba(255, 255, 255, 0.07);
}

/* ---------- Generic section --------------------------------------------- */

.band {
  padding-block: var(--block);
}

.band--tint {
  background: var(--surface);
}

.band--dark {
  background: var(--ink);
  color: var(--text-on-dark);
}

.band--dark h2,
.band--dark h3 {
  color: #fff;
}

.band--dark p {
  color: var(--text-on-dark-muted);
}

.band__head {
  max-width: 54ch;
  margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem);
}

.band__head p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

.band--dark .band__head p {
  color: var(--text-on-dark-muted);
}

/* ---------- Damage timeline (a genuine sequence) ------------------------ */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.band--dark .timeline {
  border-color: rgba(255, 255, 255, 0.16);
}

.timeline > li {
  display: grid;
  gap: 0.15rem 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.band--dark .timeline > li {
  border-color: rgba(255, 255, 255, 0.16);
}

@media (min-width: 44rem) {
  .timeline > li {
    grid-template-columns: 11rem 1fr;
    align-items: baseline;
  }
}

.timeline__when {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  color: var(--waterline);
}

.band--dark .timeline__when {
  color: #6ec3de;
}

.timeline__what {
  margin: 0;
  max-width: 56ch;
}

.timeline > li[data-severity='critical'] .timeline__when {
  color: var(--alert);
}

.band--dark .timeline > li[data-severity='critical'] .timeline__when {
  color: #ff8d80;
}

/* ---------- Ruled list (used instead of uniform cards) ------------------ */

.ruled {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.ruled > li {
  padding: 0.85rem 0 0.85rem 1.2rem;
  border-top: 1px solid var(--line);
  box-shadow: inset 2px 0 0 var(--waterline);
  max-width: 64ch;
}

.ruled > li:last-child {
  border-bottom: 1px solid var(--line);
}

.band--dark .ruled > li {
  border-color: rgba(255, 255, 255, 0.16);
}

@media (min-width: 48rem) {
  .ruled--two {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }
  .ruled--two > li:nth-child(2) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- Service index ----------------------------------------------- */

.servicelist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 48rem) {
  .servicelist {
    grid-template-columns: repeat(2, 1fr);
  }
}

.servicelist > li {
  background: var(--paper);
}

.servicelist__link {
  display: block;
  padding: 1.5rem 1.6rem 1.65rem;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.servicelist__link:hover {
  background: var(--surface);
  border-left-color: var(--signal);
  color: inherit;
}

.servicelist__name {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: var(--step-2);
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.servicelist__summary {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--step-0);
  max-width: 44ch;
}

/* ---------- Two-column prose layout ------------------------------------ */

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }
}

.prose > h2 {
  margin-top: 2.2em;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose > h3 {
  margin-top: 1.8em;
}

.prose ul,
.prose ol {
  max-width: 64ch;
  padding-left: 1.2rem;
  margin: 0 0 1.3em;
}

.prose li {
  margin-bottom: 0.45em;
}

/* ---------- FAQ --------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-bottom: 1.4rem;
  max-width: 64ch;
}

.faq h3 {
  font-size: var(--step-1);
  margin-bottom: 0.3em;
}

.faq p {
  margin: 0;
  color: var(--text-muted);
}

/* ---------- Trailing action after a block ------------------------------- */

.band__action {
  margin-top: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  margin-bottom: 0;
}

.panel__action {
  margin: 1rem 0 0;
}

/* ---------- Embedded map ------------------------------------------------ */

.mapframe {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  line-height: 0;
}

.mapframe iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* ---------- Images ------------------------------------------------------ */

.shot {
  margin: 0 0 1.75rem;
}

.shot picture,
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.shot img {
  background: var(--surface);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.shot figcaption {
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-top: 0.6rem;
  max-width: 54ch;
}

.band--dark .shot figcaption {
  color: var(--text-on-dark-muted);
}

/* Portrait crop for the owner photo */
.shot--portrait img {
  aspect-ratio: 3 / 4;
}

/* Image sitting beside prose in a .split */
.shot--aside {
  margin-bottom: 1.25rem;
}

/* Full-bleed-ish image band */
.shot--wide img {
  aspect-ratio: 21 / 9;
}

@media (max-width: 46rem) {
  .shot--wide img {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Aside panel ------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  position: sticky;
  top: 1.5rem;
}

.panel h2,
.panel h3 {
  font-size: var(--step-1);
  margin-bottom: 0.5em;
}

.panel p {
  font-size: var(--step--1);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.panel__list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: var(--step--1);
}

.panel__list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.panel__list li:last-child {
  border-bottom: 0;
}

/* ---------- Process steps (sequence) ------------------------------------ */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }
}

.steps > li {
  counter-increment: step;
  padding-top: 2.4rem;
  position: relative;
  border-top: 2px solid var(--ink);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0.55rem;
  left: 0;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--signal);
  letter-spacing: 0.02em;
}

.steps h3 {
  font-size: var(--step-1);
  margin-bottom: 0.35em;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48ch;
}

/* ---------- Stat row ---------------------------------------------------- */

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 2rem;
}

@media (min-width: 40rem) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats dt {
  font-size: var(--step--1);
  color: var(--text-on-dark-muted);
  order: 2;
  max-width: 24ch;
}

.stats dd {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 0.3rem;
  color: #fff;
  order: 1;
}

.stats > div {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--waterline);
  padding-top: 0.9rem;
}

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--call {
  background: var(--signal);
  color: var(--signal-ink);
}

.btn--call:hover {
  background: var(--signal-bright);
  color: var(--signal-ink);
}

.btn--large {
  font-size: var(--step-1);
  padding: 1rem 1.9rem;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.band--dark .btn--ghost,
.finalcall .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.band--dark .btn--ghost:hover,
.finalcall .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ---------- Breadcrumbs ------------------------------------------------- */

.crumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
}

.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0.7rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
}

.crumbs li + li::before {
  content: '/';
  color: var(--text-muted);
  margin-right: 0.6rem;
}

.crumbs a {
  color: var(--text-muted);
}

.crumbs [aria-current='page'] {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Final call block -------------------------------------------- */

.finalcall {
  background: var(--ink-deep);
  color: var(--text-on-dark);
  padding-block: var(--block);
}

.finalcall__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .finalcall__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, auto);
    gap: 3rem;
  }
}

.finalcall h2 {
  color: #fff;
  font-size: var(--step-3);
}

.finalcall p {
  color: var(--text-on-dark-muted);
  margin-bottom: 0;
}

.finalcall__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

/* ---------- Service areas ----------------------------------------------- */

.counties {
  display: grid;
  gap: 1.75rem 2.5rem;
}

@media (min-width: 46rem) {
  .counties {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 68rem) {
  .counties {
    grid-template-columns: repeat(3, 1fr);
  }
}

.county {
  border-top: 2px solid var(--ink);
  padding-top: 0.85rem;
  break-inside: avoid;
}

.county__name {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  margin: 0 0 0.1rem;
}

.county__count {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}

.county__cities {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--text-muted);
  columns: 2;
  column-gap: 1.25rem;
}

.county__cities li {
  margin-bottom: 0.2rem;
  break-inside: avoid;
}

/* ---------- Contact ----------------------------------------------------- */

.contactgrid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 54rem) {
  .contactgrid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.detail {
  border-top: 2px solid var(--ink);
  padding-top: 0.9rem;
  margin-bottom: 1.75rem;
}

.detail__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}

.detail__value {
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.015em;
  margin: 0;
  font-style: normal;
}

.detail__value a {
  text-decoration: none;
  color: var(--ink);
}

.detail__value a:hover {
  text-decoration: underline;
}

.detail__note {
  font-size: var(--step--1);
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

/* ---------- Sticky call (phones) ---------------------------------------- */

.stickycall {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  background: var(--signal);
  box-shadow: 0 -6px 20px -8px rgba(0, 0, 0, 0.45);
  padding-bottom: env(safe-area-inset-bottom);
}

.stickycall__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  padding: 0.6rem 1rem 0.7rem;
  color: var(--signal-ink);
  text-decoration: none;
}

.stickycall__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.stickycall__number {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

@media (min-width: 46rem) {
  .stickycall {
    display: none;
  }
}

/* ---------- Footer ------------------------------------------------------ */

.footer {
  background: var(--ink);
  color: var(--text-on-dark-muted);
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 2rem;
  font-size: var(--step--1);
}

.footer__grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 40rem) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62rem) {
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.footer__name {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.022em;
  color: #fff;
  margin: 0 0 0.4rem;
}

.footer__line {
  margin: 0 0 0.75rem;
  max-width: 34ch;
}

.footer__phone {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  color: var(--signal);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.footer__phone:hover {
  color: var(--signal-bright);
}

.footer__address {
  font-style: normal;
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.footer__heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 0.8rem;
  font-family: 'IBM Plex Sans', sans-serif;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li {
  margin-bottom: 0.45rem;
}

.footer__list a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
}

.footer__list a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 2rem;
  justify-content: space-between;
  font-size: 0.78rem;
}

.footer__base p {
  margin: 0;
  max-width: none;
}

/* ---------- Legal pages ------------------------------------------------- */

.legal {
  max-width: 68ch;
}

.legal h2 {
  font-size: var(--step-2);
  margin-top: 2em;
}

.legal h2:first-of-type {
  margin-top: 1em;
}

.legal__updated {
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* ---------- Motion & print --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .stickycall,
  .masthead__call,
  .navtoggle,
  .finalcall {
    display: none;
  }
  body {
    padding-bottom: 0;
    color: #000;
  }
}

/* ---------- Blog ------------------------------------------------------- */

.leadpost__link,
.postcard__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.leadpost__link {
  display: grid;
  gap: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .leadpost__link {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

.leadpost__title {
  font-size: var(--step-3);
  margin-bottom: 0.4em;
}

.leadpost__link:hover .leadpost__title {
  color: var(--waterline);
}

.leadpost__excerpt {
  color: var(--text-muted);
  font-size: var(--step-1);
  line-height: 1.55;
  margin-bottom: 0.8rem;
}

.leadpost .shot {
  margin-bottom: 0;
}

.postgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 2.75rem);
}

@media (min-width: 42rem) {
  .postgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .postgrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.postcard__shot {
  margin-bottom: 0.9rem;
}

.postcard__shot img {
  aspect-ratio: 3 / 2;
}

.postcard__title {
  font-size: var(--step-1);
  line-height: 1.2;
  margin-bottom: 0.35em;
}

.postcard__link:hover .postcard__title {
  color: var(--waterline);
}

.postcard__excerpt {
  color: var(--text-muted);
  font-size: var(--step--1);
  margin-bottom: 0.5rem;
}

.postcard__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.posthead {
  max-width: 24ch;
  max-width: 60rem;
  margin-bottom: 1.75rem;
}

.posthead h1 {
  font-size: var(--step-4);
  max-width: 24ch;
}

.posthead__meta {
  font-size: var(--step--1);
  color: var(--text-muted);
  margin: 0;
}

.postbody > h2 {
  margin-top: 2em;
}

.callout {
  border-left: 4px solid var(--signal);
  background: var(--surface);
  padding: 1.1rem 1.3rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.callout p {
  margin: 0;
  font-weight: 500;
}

.steps--stacked {
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.tablewrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.datatable {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--step--1);
  min-width: 32rem;
}

.datatable th,
.datatable td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.datatable thead th {
  background: var(--surface);
  font-family: Archivo, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.datatable tbody th {
  font-weight: 600;
  color: var(--ink);
}

.datatable tr:last-child th,
.datatable tr:last-child td {
  border-bottom: 0;
}

/* ---------- Social links ------------------------------------------------ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
}

.social__link {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.social__link:hover {
  color: var(--ink);
  background: var(--signal);
  border-color: var(--signal);
}

.social__icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  display: block;
}

/* ---------- City page sections ------------------------------------------ */

.risks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 2.5rem;
}

@media (min-width: 52rem) {
  .risks {
    grid-template-columns: repeat(2, 1fr);
  }
}

.risks--compact {
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.risks > li {
  border-top: 2px solid var(--ink);
  padding-top: 0.85rem;
}

.band--tint .risks > li {
  border-top-color: var(--waterline);
}

.risks h3 {
  font-size: var(--step-1);
  margin-bottom: 0.3em;
}

.risks p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
}

/* Landmark chips */
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: var(--step--1);
  color: var(--text);
}

.chip--near {
  border-style: dashed;
  color: var(--text-muted);
}

.chip__note {
  color: var(--text-muted);
  font-size: 0.72rem;
}

/* Nearby city links */
.nearby {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 42rem) {
  .nearby {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }
  .nearby > li:nth-child(2) {
    border-top: 0;
  }
}

@media (min-width: 64rem) {
  .nearby {
    grid-template-columns: repeat(4, 1fr);
  }
  .nearby > li:nth-child(-n + 4) {
    border-top: 0;
  }
}

.nearby > li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 42rem) {
  .nearby > li {
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
}

.nearby a {
  font-weight: 500;
  text-decoration: none;
}

.nearby a:hover {
  text-decoration: underline;
}

.nearby__miles {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex: none;
}

.panel__list strong {
  font-family: Archivo, sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

/* The homepage city directory becomes links once city pages exist */
.county__cities a {
  color: var(--text-muted);
  text-decoration: none;
}

.county__cities a:hover {
  color: var(--ink);
  text-decoration: underline;
}
