/* Two Rivers Water Damage Restoration Pros - Mobile-First CSS */
:root {
  --navy: #0a2540;
  --navy-dark: #061a2e;
  --blue: #1a5f9e;
  --blue-light: #2b7bc1;
  --teal: #0d9488;
  --teal-light: #14b8a6;
  --surface: #f0f4f8;
  --surface-alt: #e2e8f0;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #475569;
  --border: #cbd5e1;
  --danger: #b91c1c;
  --warning-bg: #fef3c7;
  --warning-border: #f59e0b;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 4px 16px rgba(10, 37, 64, 0.12);
  --header-h: 64px;
  --sticky-h: 56px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

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

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}

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

.brand {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  line-height: 1.2;
  max-width: 55%;
}
.brand span { display: block; font-size: 0.75em; font-weight: 500; opacity: 0.9; }

.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: 0.65rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
  transition: background 0.15s;
}
.header-call:hover, .header-call:focus { background: var(--teal-light); outline: 2px solid var(--white); outline-offset: 2px; }

/* Nav */
.nav-toggle {
  display: none;
}
.nav-details {
  position: relative;
}
.nav-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}
.nav-details > summary::-webkit-details-marker { display: none; }
.nav-details[open] > summary { background: rgba(255,255,255,0.1); border-radius: var(--radius); }

.nav-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--navy-dark);
  min-width: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  margin-top: 0.25rem;
}
.nav-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-menu a:hover, .nav-menu a:focus { background: rgba(255,255,255,0.1); }

@media (min-width: 900px) {
  .nav-details > summary { display: none; }
  .nav-menu {
    position: static;
    display: flex !important;
    background: transparent;
    box-shadow: none;
    min-width: auto;
    padding: 0;
    margin: 0;
    gap: 0.25rem;
  }
  .nav-menu a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
  }
  .header-call { font-size: 1rem; padding: 0.7rem 1.25rem; }
}

/* Main content */
main { display: block; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 2rem 0 2.5rem;
}
.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  font-weight: 800;
}
.hero .quick-answer {
  background: rgba(255,255,255,0.12);
  border-left: 4px solid var(--teal-light);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
}
.hero .key-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.hero .key-facts li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.hero .key-facts li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-light);
  font-weight: 700;
}

.cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  min-height: 56px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.15s, transform 0.1s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--teal-light);
  outline: 3px solid var(--white);
  outline-offset: 2px;
}
.cta-primary:active { transform: scale(0.98); }

.disclosure-line {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.75rem;
  text-align: center;
}

.secondary-link {
  display: inline-block;
  color: var(--white);
  margin-top: 1rem;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.secondary-link:hover, .secondary-link:focus { opacity: 0.85; }

/* Sections */
.section {
  padding: 2.5rem 0;
}
.section-alt {
  background: var(--surface);
}
.section h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.3;
}
.section h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--navy);
  margin: 1.75rem 0 0.75rem;
}

.direct-answer {
  background: var(--surface);
  border-left: 4px solid var(--blue);
  padding: 1rem 1.25rem;
  margin: 0 0 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue); }
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.card h3 a {
  color: var(--navy);
  text-decoration: none;
}
.card h3 a:hover, .card h3 a:focus { color: var(--blue); text-decoration: underline; }
.card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* CTA bands */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { margin: 0 0 1.25rem; opacity: 0.95; }
.cta-band .cta-primary { max-width: 420px; margin: 0 auto; }

/* Safety callout */
.safety-box {
  background: var(--warning-bg);
  border: 2px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.safety-box h3 {
  margin: 0 0 0.5rem;
  color: #92400e;
  font-size: 1.1rem;
}
.safety-box ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.safety-box li { margin-bottom: 0.35rem; }

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

/* Lists */
ul.signs, ul.causes {
  padding-left: 1.25rem;
}
ul.signs li, ul.causes li { margin-bottom: 0.4rem; }

ol.process {
  padding-left: 1.25rem;
  counter-reset: step;
}
ol.process li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--white);
}
.faq summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-answer {
  padding: 1rem 1.25rem;
  color: var(--text);
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.trust-strip span::before {
  content: "•";
  color: var(--teal);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
}
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--white); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand { font-weight: 700; color: var(--white); font-size: 1.05rem; margin-bottom: 0.5rem; }
.footer-disclosure {
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.4rem; }

/* Sticky mobile call bar */
.sticky-call {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--teal);
  padding: 0.5rem 1rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
}
.sticky-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  min-height: 48px;
  border-radius: var(--radius);
}
.sticky-call a:focus { outline: 3px solid var(--white); outline-offset: 2px; }

@media (min-width: 900px) {
  .sticky-call { display: none; }
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.last-reviewed {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.875rem;
  padding: 0.75rem 0;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 0.35rem; }

/* Page content spacing */
.page-content p { margin: 0 0 1rem; }
.page-content ul, .page-content ol { margin: 0 0 1.25rem; }

/* Focus visible for accessibility */
:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
}

a:focus:not(:focus-visible) { outline: none; }

/* Print */
@media print {
  .site-header, .sticky-call, .cta-band, .nav-details { display: none !important; }
  body { padding-bottom: 0; color: #000; }
}