/* Missouri Restoration Pros - design variant 0 "Deep Water"
   Navy #0B2545 + teal #0E7C7B, orange #F97316 CTA, centered gradient hero,
   rounded 12px cards, dark header, generous 72px section rhythm.
   No external fonts, no CDN, no raster images. */

:root {
  --navy: #0b2545;
  --navy-deep: #071a33;
  --teal: #0e7c7b;
  --teal-soft: #e6f4f4;
  --cta: #f97316;
  --cta-dark: #ea6a0b;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --line: #dbe3ec;
  --text: #0f172a;
  --muted: #475569;
  --radius: 12px;
  --radius-sm: 8px;
  --space: 8px;
  --shadow: 0 10px 24px rgba(11, 37, 69, 0.10);
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.08);
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.65;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--navy);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.22;
  color: var(--navy);
  margin: 0 0 calc(var(--space) * 2);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.85rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.05rem);
}

h3 {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 calc(var(--space) * 2);
}

ul,
ol {
  margin: 0 0 calc(var(--space) * 2);
  padding-left: 1.3em;
}

li {
  margin-bottom: calc(var(--space) * 0.75);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap--narrow {
  max-width: 860px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cta);
  color: #fff;
  padding: 10px 16px;
  z-index: 60;
  font-weight: 700;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 15px 26px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn--call {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}

.btn--call:hover,
.btn--call:focus {
  background: var(--cta-dark);
  color: #fff;
}

.btn--lg {
  font-size: 1.15rem;
  padding: 18px 34px;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.btn--ghost:hover,
.btn--ghost:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn--outline {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--line);
}

.btn--outline:hover,
.btn--outline:focus {
  border-color: var(--teal);
  color: var(--teal);
}

.btn__icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: calc(var(--space) * 2);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 10px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.15;
}

.brand:hover,
.brand:focus {
  color: #fff;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  color: #dce6f2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-header__call {
  margin-left: auto;
  padding: 12px 20px;
  font-size: 0.98rem;
  white-space: nowrap;
}

.site-nav + .site-header__call {
  margin-left: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font: inherit;
  font-weight: 600;
}

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 45%, var(--teal) 130%);
  color: #fff;
  text-align: center;
  padding: calc(var(--space) * 9) 0 calc(var(--space) * 8);
}

.hero h1 {
  color: #fff;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__lede {
  color: #d7e3f1;
  font-size: 1.12rem;
  max-width: 62ch;
  margin: 0 auto calc(var(--space) * 3);
}

.hero__meta {
  color: #b9cbe0;
  font-size: 0.95rem;
  margin: calc(var(--space) * 3) 0 0;
}

.hero .btn-row {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- trust strip ---------- */

.trust-strip {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--space) * 4) 0;
}

.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
}

.trust-strip svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--teal);
}

/* ---------- sections ---------- */

.section {
  padding: calc(var(--space) * 9) 0;
}

.section--alt {
  background: var(--surface-alt);
}

.section__intro {
  max-width: 70ch;
  color: var(--muted);
  margin-bottom: calc(var(--space) * 4);
}

.section__intro--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- cards / grids ---------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: calc(var(--space) * 1.25);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card__icon {
  width: 40px;
  height: 40px;
  color: var(--teal);
  margin-bottom: 14px;
}

.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card--link:hover,
.card--link:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
}

.card__more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--teal);
}

/* ---------- process ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  content: "Step " counter(step);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 8px;
}

.steps h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- benefits ---------- */

.benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.benefit svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--teal);
  margin-top: 3px;
}

.benefit h3 {
  font-size: 1.06rem;
  margin-bottom: 6px;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- city + post lists ---------- */

.city-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.city-grid li {
  margin: 0;
}

.city-grid a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.city-grid a:hover,
.city-grid a:focus {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.city-grid__meta {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
}

.alpha-group {
  margin-bottom: calc(var(--space) * 5);
}

.alpha-group__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card__meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 8px;
}

.post-card h3 {
  margin-bottom: 10px;
}

.post-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- faq ---------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cta);
  flex: none;
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq__answer {
  padding: 14px 0 6px;
  color: var(--muted);
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* ---------- prose (inner pages) ---------- */

.prose h2 {
  margin-top: calc(var(--space) * 5);
}

.prose h3 {
  margin-top: calc(var(--space) * 3.5);
}

.prose > p,
.prose li {
  color: #1f2937;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: calc(var(--space) * 2);
  font-size: 0.96rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.prose th {
  background: var(--surface-alt);
  color: var(--navy);
}

.takeaways {
  background: var(--teal-soft);
  border: 1px solid #b8dedc;
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: calc(var(--space) * 4);
}

.takeaways h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.takeaways ul {
  margin: 0;
}

.takeaways li {
  color: #123f3f;
}

.note {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: calc(var(--space) * 3);
}

.note p:last-child {
  margin-bottom: 0;
}

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  padding: 12px 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  margin: 0;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: #94a3b8;
}

/* ---------- page head ---------- */

.page-head {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 60%, var(--teal) 145%);
  color: #fff;
  padding: calc(var(--space) * 7) 0 calc(var(--space) * 6);
}

.page-head h1 {
  color: #fff;
  margin-bottom: calc(var(--space) * 1.5);
}

.page-head p {
  color: #d7e3f1;
  max-width: 68ch;
  margin: 0;
}

/* ---------- cta band ---------- */

.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: calc(var(--space) * 8) 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #cfdceb;
  max-width: 60ch;
  margin: 0 auto calc(var(--space) * 3);
}

.cta-band .btn-row {
  justify-content: center;
  margin-bottom: 0;
}

.cta-band__phone {
  display: block;
  margin-top: 18px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #b9cbe0;
  padding: calc(var(--space) * 7) 0 calc(var(--space) * 10);
  font-size: 0.94rem;
}

.site-footer a {
  color: #dbe7f5;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: calc(var(--space) * 5);
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 9px;
}

.footer-phone {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 14px;
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: calc(var(--space) * 3);
}

.site-footer__legal p {
  font-size: 0.84rem;
  line-height: 1.6;
  color: #9fb4cc;
  margin-bottom: 14px;
}

.site-footer__copy {
  font-size: 0.84rem;
  color: #8ea4bf;
}

/* ---------- sticky mobile call bar ---------- */

.call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--cta);
  box-shadow: 0 -6px 18px rgba(7, 26, 51, 0.25);
}

.call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.02rem;
}

.call-bar svg {
  width: 20px;
  height: 20px;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .city-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .trust-strip ul,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    margin: 8px 0 4px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .site-header__call {
    margin-left: auto;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  .call-bar {
    display: block;
  }

  .site-footer {
    padding-bottom: calc(var(--space) * 16);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16.5px;
  }

  .section {
    padding: calc(var(--space) * 7) 0;
  }

  .hero {
    padding: calc(var(--space) * 7) 0 calc(var(--space) * 6);
  }

  .trust-strip ul,
  .grid--2,
  .grid--3,
  .grid--4,
  .steps {
    grid-template-columns: 1fr;
  }

  .city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn,
  .btn--lg {
    width: 100%;
    padding: 16px 22px;
    font-size: 1.02rem;
  }

  .brand__text {
    font-size: 0.95rem;
  }

  .site-footer__cols {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .card--link:hover,
  .card--link:focus {
    transform: none;
  }
}

@media print {
  .site-header,
  .call-bar,
  .cta-band {
    display: none;
  }
}
