/* Kaukauna Water Damage Restoration Pros - Mobile-first CSS */
:root {
  --navy: #0a2540;
  --blue: #1e4a7a;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --surface: #f0f5f9;
  --white: #ffffff;
  --text: #1a2332;
  --text-muted: #4a5568;
  --border: #d1dce6;
  --danger: #b91c1c;
  --success: #047857;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 8px 24px rgba(10, 37, 64, 0.12);
  --header-h: 64px;
  --sticky-h: 60px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  padding-top: var(--header-h);
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px) + 8px);
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

img, svg { max-width: 100%; height: auto; display: none; } /* no images */

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal); }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 10000;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--navy);
  color: var(--white);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  line-height: 1.25;
  max-width: 55%;
}
.brand:hover, .brand:focus { color: var(--teal-light); }

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
  transition: background 0.2s;
}
.header-call:hover, .header-call:focus {
  background: var(--teal-light);
  color: var(--white);
}

/* Nav */
.nav-toggle {
  display: none;
}
.nav-details {
  position: relative;
}
.nav-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  color: var(--white);
  font-weight: 600;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
}
.nav-details > summary::-webkit-details-marker { display: none; }
.nav-details > summary::after {
  content: "☰";
  font-size: 1.4rem;
  margin-left: 4px;
}
.nav-details[open] > summary::after { content: "✕"; }

.nav-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--navy);
  min-width: 260px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 1001;
}
.nav-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-menu a:hover, .nav-menu a:focus {
  background: var(--blue);
  color: var(--white);
}

@media (min-width: 900px) {
  .nav-details > summary { display: none; }
  .nav-menu {
    position: static;
    display: flex !important;
    flex-wrap: wrap;
    background: transparent;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    gap: 4px;
  }
  .nav-menu a {
    padding: 8px 10px;
    border: none;
    font-size: 0.875rem;
    border-radius: 4px;
  }
}

/* Main layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

main { min-height: 60vh; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 32px 0 40px;
  text-align: left;
}
.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero .quick-answer {
  background: rgba(255,255,255,0.1);
  border-left: 4px solid var(--teal-light);
  padding: 16px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
  line-height: 1.55;
}
.hero .key-facts {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
}
.hero .key-facts li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.hero .key-facts li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--teal-light);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  width: 100%;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--teal-light);
  color: var(--white);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  width: 100%;
  margin-top: 10px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--navy);
  color: var(--white);
}

@media (min-width: 600px) {
  .btn-primary, .btn-secondary { width: auto; min-width: 280px; }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
  .btn-secondary { margin-top: 0; }
}

/* Disclosure */
.disclosure {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 12px;
  line-height: 1.4;
}
.referral-note {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin: 20px 0;
  color: var(--text-muted);
}

/* Sections */
section {
  padding: 40px 0;
}
section:nth-child(even) {
  background: var(--surface);
}
.section-title {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 750;
  line-height: 1.3;
}
.section-intro {
  margin-bottom: 24px;
  max-width: 70ch;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 600px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.card a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* CTA bands */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 36px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin-bottom: 12px;
}
.cta-band p {
  margin-bottom: 20px;
  opacity: 0.95;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-band .btn-primary {
  max-width: 360px;
  margin: 0 auto;
}

/* Safety callout */
.safety-box {
  background: #fef2f2;
  border: 2px solid #fecaca;
  border-left: 5px solid var(--danger);
  padding: 18px 20px;
  border-radius: var(--radius);
  margin: 24px 0;
}
.safety-box h3 {
  color: var(--danger);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.safety-box ul {
  margin: 8px 0 0 18px;
}
.safety-box li { margin-bottom: 6px; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}
tr:nth-child(even) { background: var(--surface); }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-list details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-list summary {
  padding: 16px 18px;
  font-weight: 600;
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  list-style: none;
  color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  color: var(--teal);
  font-weight: 700;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list .faq-answer {
  padding: 0 18px 18px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* Lists */
ul.plain, ol.plain {
  margin: 12px 0 12px 20px;
}
ul.plain li, ol.plain li {
  margin-bottom: 8px;
}

/* Process steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.steps li {
  position: relative;
  padding: 16px 16px 16px 56px;
  margin-bottom: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 30px;
  height: 30px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  padding: 40px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-col h4 {
  color: var(--teal-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: block;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.footer-bottom a { color: rgba(255,255,255,0.85); }
.entity-sentence {
  margin: 12px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Sticky call bar */
.sticky-call {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--teal);
  z-index: 999;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.sticky-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--sticky-h);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  width: 100%;
}
.sticky-call a:hover, .sticky-call a:focus {
  background: var(--teal-light);
  color: var(--white);
}
@media (min-width: 900px) {
  .sticky-call { display: none; }
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.875rem;
  padding: 12px 0;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--blue); }
.breadcrumbs span { margin: 0 6px; color: var(--border); }

/* Last reviewed */
.last-reviewed {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 60px 16px;
}
.error-page h1 {
  font-size: 3rem;
  color: var(--navy);
  margin-bottom: 12px;
}

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

/* Print */
@media print {
  .site-header, .sticky-call, .nav-details { display: none; }
  body { padding: 0; }
  a { color: inherit; }
}