/* ============================================================
   Kansas Restoration Pros — "Coastal" variant (2)
   Palette: slate #1E293B / emerald #047857 / amber CTA #D97706
   Wide gradient hero with angled bottom, soft shadows, dark header
   Mobile-first. System fonts. No external resources.
   ============================================================ */

:root {
  --slate-950: #0B1220;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-100: #D1FAE5;
  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --white: #FFFFFF;
  --ink: #17233B;
  --muted: #5B6B82;
  --line: #E2E8F0;

  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-lift: 0 18px 44px rgba(15, 23, 42, 0.14);
  --radius-card: 14px;
  --radius-btn: 10px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.25rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  --container: 72rem;
  --header-h: 4.25rem;
  --callbar-h: 4rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--emerald-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--amber-600); }

h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--slate-800);
  margin: 0 0 var(--space-4);
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); letter-spacing: -0.015em; margin-top: var(--space-7); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-top: var(--space-6); }

p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.35rem; }
li { margin-bottom: var(--space-2); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--slate-800);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section { padding-block: var(--space-7); }
.section--alt { background: var(--slate-50); }

.section-head { max-width: 46rem; margin-bottom: var(--space-5); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin-bottom: var(--space-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-btn);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--cta {
  background: linear-gradient(135deg, var(--amber-600), var(--amber-500));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}
.btn--cta:hover { color: var(--white); box-shadow: 0 12px 26px rgba(217, 119, 6, 0.45); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.btn--outline {
  background: var(--white);
  color: var(--slate-800);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.btn--outline:hover { border-color: var(--emerald-700); color: var(--emerald-700); }

.btn--lg { font-size: 1.12rem; padding: 1.05rem 1.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--slate-800);
  color: var(--white);
  border-bottom: 3px solid var(--emerald-700);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--amber-400); }
.brand svg { width: 1.7rem; height: 1.7rem; flex: none; }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--amber-600), var(--amber-500));
  color: var(--white);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.62rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}
.header-call:hover { color: var(--white); box-shadow: 0 6px 18px rgba(217, 119, 6, 0.55); }
.header-call svg { width: 1rem; height: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(4, 120, 87, 0.5), transparent 60%),
    radial-gradient(900px 420px at 8% 110%, rgba(217, 119, 6, 0.22), transparent 55%),
    linear-gradient(160deg, var(--slate-950) 0%, var(--slate-800) 55%, #123527 100%);
  padding-block: var(--space-8) calc(var(--space-8) + 3.5rem);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -1px;
  height: 4rem;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 92%);
}
.hero-inner { position: relative; z-index: 1; }

.hero .eyebrow { color: var(--amber-400); }
.hero h1 { color: var(--white); max-width: 21ch; }
.hero p.lead {
  font-size: clamp(1.08rem, 2.2vw, 1.25rem);
  color: #D9E2EE;
  max-width: 56ch;
  margin-bottom: var(--space-5);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }

.hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: #B9C6D6; font-size: 0.95rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta svg { width: 1rem; height: 1rem; color: var(--amber-400); }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-4);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--space-4);
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--slate-50);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.trust-item svg { width: 1.5rem; height: 1.5rem; color: var(--emerald-700); flex: none; margin-top: 0.15rem; }
.trust-item strong { display: block; color: var(--slate-800); font-size: 0.98rem; }
.trust-item span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--space-5);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  transition: box-shadow 180ms ease, transform 180ms ease;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); font-size: 0.98rem; flex-grow: 1; }
.card .text-link { margin-top: auto; align-self: flex-start; font-weight: 700; }

.card--icon .card-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 12px;
  background: var(--emerald-100);
  color: var(--emerald-700);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
}
.card--icon .card-icon svg { width: 1.6rem; height: 1.6rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-5);
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}
.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--slate-800);
  color: var(--amber-400);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
}
.steps h3 { margin-top: var(--space-2); }
.steps p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 20%, rgba(217, 119, 6, 0.28), transparent 60%),
    linear-gradient(140deg, var(--slate-900), var(--emerald-700));
  color: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.cta-band h2 { color: var(--white); margin-top: 0; }
.cta-band p { color: #D6E4DE; max-width: 52ch; margin-inline: auto; }
.cta-band .btn { margin-top: var(--space-2); }

/* ---------- Benefits ---------- */
.benefits-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.benefits-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.benefits-list svg { width: 1.4rem; height: 1.4rem; color: var(--emerald-700); flex: none; margin-top: 0.2rem; }
.benefits-list strong { color: var(--slate-800); }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: var(--space-3); }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  font-weight: 700;
  color: var(--slate-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--emerald-700);
  flex: none;
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 var(--space-5) var(--space-4); color: var(--muted); }
.faq .faq-a p { margin: 0; }

/* ---------- City grid ---------- */
.city-groups { display: grid; gap: var(--space-6); }
.city-group h2 { margin-bottom: var(--space-3); font-size: 1.25rem; display: flex; align-items: baseline; gap: var(--space-3); }
.city-group h2 .count { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.city-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: var(--space-2);
}
.city-list a {
  display: block;
  padding: 0.55rem 0.85rem;
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--slate-700);
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.city-list a:hover { border-color: var(--emerald-700); color: var(--emerald-700); background: var(--emerald-100); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-block: var(--space-4); }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.35rem; margin: 0; }
.breadcrumbs li + li::before { content: "/"; color: #B6C2D2; }
.breadcrumbs a { color: var(--slate-600); text-decoration: none; }
.breadcrumbs a:hover { color: var(--emerald-700); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--slate-800); font-weight: 600; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  color: var(--white);
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(4, 120, 87, 0.45), transparent 60%),
    linear-gradient(155deg, var(--slate-950), var(--slate-800));
  padding-block: var(--space-7);
}
.page-hero h1 { color: var(--white); max-width: 26ch; margin-bottom: var(--space-3); }
.page-hero p.lead { color: #C7D3E0; max-width: 60ch; margin: 0 0 var(--space-4); font-size: 1.08rem; }
.page-hero .breadcrumbs a { color: #AEBBCB; }
.page-hero .breadcrumbs [aria-current] { color: var(--white); }

/* ---------- Article / prose ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-6); }
.prose ul li, .prose ol li { color: var(--ink); }

.takeaways {
  background: var(--emerald-100);
  border-left: 4px solid var(--emerald-700);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}
.takeaways h2 { margin-top: 0; font-size: 1.15rem; }
.takeaways ul { margin-bottom: 0; }
.takeaways li { color: var(--ink); }

.callout-box {
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
}
.callout-box--alert {
  background: #FDF3E3;
  border-color: #F2D9AC;
  border-left: 4px solid var(--amber-600);
}
.callout-box h3 { margin-top: 0; }
.callout-box p:last-child, .takeaways p:last-child { margin-bottom: 0; }

/* ---------- Two-col layout (sidebar CTA on desktop) ---------- */
.with-aside {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}
.aside-cta {
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
}
.aside-cta h2 { margin-top: 0; font-size: 1.2rem; }
.aside-cta .phone-big { display: block; font-size: 1.45rem; font-weight: 800; color: var(--amber-600); text-decoration: none; margin-bottom: var(--space-2); }
.aside-cta .phone-big:hover { color: var(--emerald-700); }
.aside-cta p { font-size: 0.95rem; color: var(--muted); }

/* ---------- Data table (ZIPs / facts) ---------- */
.fact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.fact-table th, .fact-table td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-table tr:last-child td { border-bottom: 0; }
.fact-table th { background: var(--slate-50); color: var(--slate-800); width: 42%; }
.fact-table td { color: var(--muted); }

.zip-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.zip-chip {
  background: var(--slate-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.2rem 0.6rem;
  font-size: 0.88rem;
  color: var(--slate-700);
}

/* ---------- Blog ---------- */
.post-list { display: grid; gap: var(--space-5); }
.post-card { display: flex; flex-direction: column; gap: var(--space-2); }
.post-meta { font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-900);
  color: #9FB0C3;
  padding-block: var(--space-7) calc(var(--space-6) + var(--callbar-h));
  font-size: 0.94rem;
  margin-top: var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid #22304A;
}
.footer-brand { display: flex; align-items: center; gap: var(--space-2); color: var(--white); font-weight: 800; font-size: 1.1rem; margin-bottom: var(--space-3); }
.footer-brand svg { width: 1.6rem; height: 1.6rem; }
.site-footer h2 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 var(--space-3); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--space-5); }
.footer-nav li { margin-bottom: var(--space-2); break-inside: avoid; }
.footer-nav a { color: #B9C6D6; text-decoration: none; }
.footer-nav a:hover { color: var(--amber-400); text-decoration: underline; }
.footer-phone { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--white); font-weight: 800; font-size: 1.2rem; text-decoration: none; margin-bottom: var(--space-2); }
.footer-phone:hover { color: var(--amber-400); }
.footer-disclaimers { padding-top: var(--space-5); display: grid; gap: var(--space-3); }
.footer-disclaimers p { margin: 0; font-size: 0.82rem; line-height: 1.55; color: #7E90A7; }
.footer-bottom { padding-top: var(--space-4); font-size: 0.82rem; color: #64778E; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  background: var(--slate-800);
  border-top: 1px solid #2C3B52;
  padding: 0.6rem var(--space-4);
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
}
.mobile-callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-500));
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.45);
}
.mobile-callbar svg { width: 1.1rem; height: 1.1rem; }

/* ---------- Responsive ---------- */
@media (min-width: 48em) {
  .with-aside { grid-template-columns: minmax(0, 1fr) 20rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 47.99em) {
  .mobile-callbar { display: block; }
  body { padding-bottom: var(--callbar-h); }
  .site-footer { padding-bottom: calc(var(--space-6) + var(--callbar-h) + 1rem); }
  .hero { padding-block: var(--space-7) calc(var(--space-7) + 3rem); }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
