/* =====================================================================
   South Carolina Water Damage Restoration Pros
   Design variant 1 "Emergency" - charcoal #111827 + blue #1D4ED8,
   red #DC2626 CTA, split hero, sharp 4px corners, 64px section rhythm,
   flat cards with a top accent rule, light sticky header + alert strip.
   Mobile-first: single column, scaling up with min-width breakpoints.
   No external fonts, no CDN, no raster images.
   ===================================================================== */

:root {
  --ink: #111827;
  --ink-2: #1f2937;
  --ink-soft: #374151;
  --accent: #1d4ed8;
  --accent-dark: #1e3a8a;
  --accent-tint: #eff4ff;
  --cta: #dc2626;
  --cta-dark: #b91c1c;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --paper: #ffffff;
  --paper-alt: #f4f6f9;
  --muted: #4b5563;
  --radius: 4px;
  --rhythm: 64px;
  --rhythm-sm: 44px;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.08), 0 8px 24px rgba(17, 24, 39, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", 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);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.85rem;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

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

a:hover {
  color: var(--accent-dark);
}

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

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.15em;
}

li {
  margin-bottom: 0.35em;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

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

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

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-cta {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}

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

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-invert {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-outline-invert:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-invert {
  background: #fff;
  border-color: #fff;
  color: var(--cta-dark);
}

.btn-invert:hover {
  background: #f3f4f6;
  color: var(--cta-dark);
}

.btn-panel {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-panel:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-lg {
  padding: 15px 22px;
  font-size: 1.05rem;
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: 4px;
}

.btn-header {
  padding: 10px 14px;
}

/* ------------------------------------------------------- alert + header -- */

.alert-strip {
  background: var(--ink);
  color: #f9fafb;
  font-size: 0.9rem;
}

.alert-strip .wrap {
  padding: 8px 18px;
}

.alert-strip p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  justify-content: center;
  text-align: center;
}

.alert-strip strong {
  color: #fff;
}

.alert-strip span {
  color: #d1d5db;
}

.alert-strip a {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand-drop {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.site-nav {
  display: none;
}

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

.site-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-strip {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
}

.nav-strip ul {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 9px 18px;
  list-style: none;
  white-space: nowrap;
}

.nav-strip a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

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

.hero {
  background: linear-gradient(180deg, var(--accent-tint) 0%, #fff 62%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding-top: 34px;
  padding-bottom: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.hero-lede {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 18px;
}

.hero-points,
.benefits,
.callout-list,
.takeaway-list,
.panel-list,
.tag-list,
.city-grid,
.trust-strip ul,
.stat-row,
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-points li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.hero-points svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.hero-panel {
  margin-top: 26px;
  background: linear-gradient(155deg, var(--ink) 0%, var(--accent-dark) 100%);
  color: #e5e7eb;
  padding: 24px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  color: #fff;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding-bottom: 10px;
}

.hero-panel p {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.panel-list li {
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 0.96rem;
}

.panel-list li:last-child {
  border-bottom: 0;
}

.panel-list strong {
  color: #fff;
}

.hero-stats {
  background: var(--ink);
  color: #e5e7eb;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px 0;
}

.stat-row li {
  font-size: 0.86rem;
  line-height: 1.4;
  margin: 0;
}

.stat-row strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

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

.trust-strip {
  background: var(--ink);
  color: #e5e7eb;
  padding: 22px 0;
}

.trust-strip ul {
  display: grid;
  gap: 16px;
}

.trust-strip li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
}

.trust-strip svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: #60a5fa;
}

.trust-strip strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
}

.trust-strip span {
  font-size: 0.9rem;
  color: #d1d5db;
}

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

.page-hero {
  position: relative;
  background: linear-gradient(120deg, var(--ink) 0%, var(--accent-dark) 78%, var(--accent) 100%);
  color: #e5e7eb;
  padding: 34px 0 40px;
  overflow: hidden;
}

.page-hero h1 {
  color: #fff;
  font-size: 1.9rem;
}

.page-hero p {
  max-width: 46em;
  color: #dbeafe;
}

.page-hero .eyebrow {
  color: #93c5fd;
}

.inline-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.hero-edge {
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--cta) 0 42px, transparent 42px 64px);
}

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

.breadcrumbs {
  padding-top: 14px;
}

.breadcrumbs nav {
  font-size: 0.85rem;
}

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

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

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

.section {
  padding: var(--rhythm-sm) 0;
}

.section-alt {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 50em;
  margin-bottom: 22px;
}

.section-head h2 {
  position: relative;
  padding-top: 14px;
  font-size: 1.45rem;
}

.section-head h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 4px;
  background: var(--cta);
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.prose {
  max-width: 62em;
}

.prose h2 {
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.4em;
}

.note {
  background: var(--accent-tint);
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

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

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 18px 6px;
}

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

.card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.card a {
  text-decoration: none;
}

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

.card-cta {
  border-top-color: var(--cta);
}

/* ---------------------------------------------------------- two columns -- */

.two-col {
  display: grid;
  gap: 22px;
}

.benefits {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 18px 8px;
  height: fit-content;
}

.benefits li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.callout {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 8px;
}

.callout h3 {
  margin-bottom: 12px;
}

.callout-list li {
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 8px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.callout-list li:last-child {
  border-bottom: 0;
}

.takeaways {
  background: var(--accent-tint);
  border: 1px solid #c7d7fe;
  border-radius: var(--radius);
  padding: 20px 20px 4px;
  margin: 0 0 26px;
}

.takeaways h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
}

.takeaway-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.96rem;
}

.takeaway-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--cta);
}

/* ---------------------------------------------------------------- steps -- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 6px 62px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.steps h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.steps p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cta);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--accent);
  margin-left: 12px;
}

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

.faq details p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ------------------------------------------------------------ tag+cities -- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}

.tag-list li {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 5px 11px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
}

.city-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin: 0 0 22px;
}

.city-grid li {
  margin: 0;
}

.city-grid a {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 11px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.city-grid a:hover {
  border-left-color: var(--cta);
  background: var(--accent-tint);
}

.city-grid span {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
}

.alpha-group {
  margin-bottom: 26px;
}

.alpha-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
}

.alpha-group h3 span {
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0;
  padding: 2px 8px;
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------- table -- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 20px;
  font-size: 0.94rem;
}

caption {
  text-align: left;
}

th,
td {
  text-align: left;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  vertical-align: top;
}

thead th {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

tbody tr:nth-child(even) {
  background: var(--paper-alt);
}

/* ----------------------------------------------------------------- blog -- */

.post-list {
  display: grid;
  gap: 16px;
}

.post-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px;
  margin: 0;
}

.post-list h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.post-list p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.post-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 10px;
}

.read-more {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.read-more::after {
  content: " \2192";
}

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

.cta-band {
  background: linear-gradient(120deg, var(--cta-dark) 0%, var(--cta) 100%);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: 1.5rem;
}

.cta-band p {
  color: #fee2e2;
  max-width: 46em;
  margin: 0 auto 20px;
}

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

.site-footer {
  background: var(--ink);
  color: #d1d5db;
  padding: 40px 0 96px;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  gap: 26px;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

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

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

.site-footer a {
  color: #d1d5db;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-phone {
  display: inline-block;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}

.footer-disclaimers {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-disclaimers a {
  color: #bfdbfe;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 18px;
  padding-top: 14px;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ------------------------------------------------------------- call bar -- */

.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--cta);
  box-shadow: 0 -2px 12px rgba(17, 24, 39, 0.25);
}

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

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

/* ------------------------------------------------------------ breakpoints */

@media (min-width: 640px) {
  h1 {
    font-size: 2.2rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .page-hero h1 {
    font-size: 2.3rem;
  }

  .section-head h2,
  .prose h2 {
    font-size: 1.65rem;
  }

  .hero-cta,
  .inline-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .trust-strip ul {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  body {
    font-size: 17.5px;
  }

  :root {
    --rhythm: 76px;
  }

  .section {
    padding: var(--rhythm) 0;
  }

  .site-nav {
    display: block;
  }

  .nav-strip {
    display: none;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    padding-top: 54px;
    padding-bottom: 48px;
  }

  .hero-panel {
    margin-top: 0;
    padding: 30px 28px;
  }

  .two-col {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }

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

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

  .steps li {
    padding: 52px 18px 6px;
  }

  .steps li::before {
    left: 18px;
    top: 14px;
  }

  .trust-strip ul {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .call-bar {
    display: none;
  }

  .site-footer {
    padding-bottom: 48px;
  }
}

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

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