/* ==========================================================================
   Mississippi Water Damage Pros - Design Variant 2 "Coastal"
   Palette: slate #1E293B + emerald #047857, amber #D97706 CTA
   Hero: wide gradient with angled bottom | Cards: soft shadows | Dark header
   ========================================================================== */

:root {
  --slate: #1E293B;
  --slate-deep: #0F172A;
  --slate-soft: #334155;
  --emerald: #047857;
  --emerald-dark: #065F46;
  --emerald-tint: #ECFDF5;
  --amber: #D97706;
  --amber-dark: #B45309;
  --amber-tint: #FFFBEB;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #1E293B;
  --muted: #475569;
  --line: #E2E8F0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lift: 0 16px 40px rgba(15, 23, 42, 0.14);
  --section-space: clamp(3.25rem, 7vw, 5.5rem);
  --container: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  line-height: 1.22;
  color: var(--slate);
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.3rem); }

p { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-space); }
.section-alt { background: var(--surface); }
.section-tint { background: linear-gradient(180deg, var(--emerald-tint), var(--bg) 85%); }

.section-head { max-width: 720px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: #fff;
  padding: 0.65rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-call {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.32);
}
.btn-call:hover { background: var(--amber-dark); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--slate);
  color: var(--slate);
}
.btn-outline:hover { background: var(--slate); color: #fff; }
.btn-xl { padding: 1rem 1.6rem; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--slate);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.28);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand:hover { color: #fff; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #A7F3D0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav { display: none; }
.site-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--amber);
}
.header-call { display: none; }
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}
.nav-open .site-nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--slate-deep);
  padding: 0.75rem 1.25rem 1.25rem;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.4);
}
.nav-open .site-nav ul { flex-direction: column; gap: 0; }
.nav-open .site-nav a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-open .header-call { display: none; }

@media (min-width: 900px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .header-call { display: inline-flex; }
}

/* ---------- Hero (Coastal: wide gradient, angled bottom) ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1100px 420px at 82% -10%, rgba(4, 120, 87, 0.55), transparent 62%),
    linear-gradient(135deg, var(--slate) 0%, var(--slate-deep) 55%, #064E3B 140%);
  padding: clamp(3rem, 8vw, 5.25rem) 0 calc(clamp(3rem, 8vw, 5.25rem) + 3rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 0 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% 55%;
  height: 320px;
  background: radial-gradient(closest-side, rgba(217, 119, 6, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(167, 243, 208, 0.5);
  border-radius: 999px;
  color: #A7F3D0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: #CBD5E1;
  max-width: 660px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.6rem 0 1rem;
}
.hero-note { font-size: 0.92rem; color: #94A3B8; margin: 0; }
.hero-note strong { color: #FCD34D; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
}
.trust-strip svg { width: 20px; height: 20px; flex: none; color: var(--emerald); }
@media (min-width: 760px) {
  .trust-strip ul { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--emerald);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1rem; }
.card .card-link {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.card .card-link::after { content: " \2192"; }
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--emerald-tint);
  color: var(--emerald);
  margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: step; }
.process li {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem 1.3rem 1.3rem 4.2rem;
}
.process li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  font-weight: 800;
}
.process h3 { margin-bottom: 0.3rem; font-size: 1.08rem; }
.process p { margin: 0; color: var(--muted); font-size: 0.96rem; }
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
.benefit {
  display: flex;
  gap: 0.9rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
}
.benefit svg { width: 24px; height: 24px; flex: none; color: var(--amber); margin-top: 0.2rem; }
.benefit h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.benefit p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- Cities grid ---------- */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}
.cities-grid a {
  display: block;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  color: var(--slate);
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
}
.cities-grid a:hover { border-color: var(--emerald); color: var(--emerald-dark); }
@media (min-width: 700px) { .cities-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cities-grid { grid-template-columns: repeat(4, 1fr); } }

.city-letter-group { margin-bottom: 2rem; }
.city-letter-group h2 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.5rem;
}
.city-letter-group h2 span { font-size: 0.9rem; color: var(--muted); font-weight: 600; }

/* ---------- Blog cards ---------- */
.post-card { display: flex; flex-direction: column; }
.post-meta { font-size: 0.82rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; margin-bottom: 0.5rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.8rem; max-width: 860px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--slate);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--amber);
  font-weight: 800;
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.15rem 1.1rem; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 300px at 15% 0%, rgba(4, 120, 87, 0.5), transparent 60%),
    linear-gradient(120deg, var(--slate-deep), var(--slate));
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #CBD5E1; max-width: 640px; margin-inline: auto; }
.cta-band .btn { margin-top: 0.75rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  padding: 0.65rem 0;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; color: #94A3B8; }
.breadcrumbs a { text-decoration: none; font-weight: 600; }
.breadcrumbs [aria-current="page"] { color: var(--muted); font-weight: 600; }

/* ---------- Prose (legal / about) ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul li { margin-bottom: 0.4rem; }
.prose .lede { font-size: 1.1rem; color: var(--slate-soft); }

/* ---------- Info panel ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}
.panel h2, .panel h3 { margin-top: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 22px; height: 22px; color: var(--emerald); flex: none; margin-top: 0.15rem; }
.contact-list strong { display: block; color: var(--slate); }
.contact-list a { font-weight: 700; }

.area-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.area-tags li {
  background: var(--emerald-tint);
  color: var(--emerald-dark);
  border: 1px solid #A7F3D0;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.steps-simple { list-style: none; counter-reset: mini; margin: 0; padding: 0; }
.steps-simple li { position: relative; padding: 0 0 1.1rem 2.6rem; }
.steps-simple li::before {
  counter-increment: mini;
  content: counter(mini);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-tint);
  border: 2px solid var(--amber);
  color: var(--amber-dark);
  font-weight: 800;
  font-size: 0.9rem;
}
.steps-simple h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.steps-simple p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-deep);
  color: #CBD5E1;
  padding: 3rem 0 7.5rem;
  margin-top: 0;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 0.8rem; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.94rem; }
.footer-brand p { font-size: 0.94rem; max-width: 340px; }
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.12rem;
  color: #FCD34D !important;
  margin-top: 0.4rem;
}
.footer-phone svg { width: 20px; height: 20px; }
.footer-disclaimers {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}
.footer-disclaimers p { font-size: 0.78rem; color: #94A3B8; line-height: 1.6; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.25rem; font-size: 0.85rem; }
.footer-copy { font-size: 0.82rem; color: #94A3B8; margin-top: 1rem; }

/* ---------- Sticky mobile call bar ---------- */
.call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--amber);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.3);
}
.call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1rem;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.02rem;
}
.call-bar a:hover { color: #fff; background: var(--amber-dark); }
.call-bar svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .call-bar { display: none; }
  .site-footer { padding-bottom: 3rem; }
}

/* ---------- Hero subpage variant ---------- */
.hero-inner-page { padding: clamp(2.4rem, 6vw, 3.8rem) 0 calc(clamp(2.4rem, 6vw, 3.8rem) + 3rem); }
.hero-breadcrumb-space { margin-top: 0; }

/* ---------- 404 ---------- */
.error-code { font-size: clamp(3.5rem, 12vw, 6rem); font-weight: 800; color: var(--amber); line-height: 1; margin: 0; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.note-box {
  background: var(--amber-tint);
  border: 1px solid #FDE68A;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  color: var(--slate-soft);
}
.note-box p:last-child { margin-bottom: 0; }

@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;
  }
}
