/* ==========================================================================
   SEWAGE BACKUP CLEANUP BOTHELL — MASTER STYLESHEET (css/style.css)
   Easy-to-edit pure CSS. Change brand colors, typography, or spacing in :root.
   ========================================================================== */

/* 1. BRAND VARIABLES & DESIGN SYSTEM TOKENS */
:root {
  /* 60-30-10 Color Rule */
  --color-navy: #1A2B4C;         /* 60% Primary: Headers, Nav, Primary Text */
  --color-navy-dark: #121E36;    /* Darker Navy for subtle borders/surfaces */
  --color-teal: #00828A;         /* 30% Secondary: Subheadings, Links, Dividers */
  --color-teal-light: #E6F4F5;   /* Soft Teal tint for callouts & table highlights */
  --color-coral: #FF6F61;        /* 10% Accent: Call Now Buttons & Urgent Highlights */
  --color-coral-hover: #E85A4C;  /* Primary CTA hover state */
  --color-bg: #F4F6F8;           /* Main Page Background (Soft Clinical Gray) */
  --color-white: #FFFFFF;        /* Card & Surface Background */
  --color-border: #DCE2EA;       /* Hairline Border Color */
  --color-text: #1A2B4C;         /* Main Body Text */
  --color-text-muted: #4A5B78;   /* Secondary Paragraph Text */
  --color-slate: #4A5B78;        /* Alias for figure captions */
  --color-gray: #F4F6F8;         /* Alias for subtle gray surfaces */

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spatial & Radius Tokens */
  --max-width: 1220px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* 2. MODERN CSS RESET & ACCESSIBILITY BASELINE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-navy);
}

/* Keyboard Focus Ring Compliance (WCAG AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

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

/* 3. TYPOGRAPHY & UTILITY CLASSES */
h1, h2, h3, h4 {
  color: var(--color-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

.text-Link,
.prose a {
  color: var(--color-teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-Link:hover,
.prose a:hover {
  color: var(--color-navy);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
  display: block;
}

.kicker-light {
  color: #4DD0D8;
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* 4. LAYOUT CONTAINERS & GRIDS */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.section-white {
  background-color: var(--color-white);
}

.section-gray {
  background-color: var(--color-bg);
}

.section-navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section-navy h2,
.section-navy h3,
.section-navy strong {
  color: var(--color-white);
}

.section-navy p {
  color: rgba(255, 255, 255, 0.82);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2.75rem;
  align-items: start;
}

/* 5. HEADER & TOP BAR NAVIGATION */
.site-header {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1.5rem;
}

.brand-wordmark {
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-wordmark:hover {
  color: #4DD0D8;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
}

.main-nav > li {
  position: relative;
}

.main-nav a,
.dropdown-toggle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  min-height: 40px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active,
.dropdown-toggle:hover,
.dropdown-parent.open .dropdown-toggle {
  color: var(--color-white);
  border-bottom-color: var(--color-coral);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 360px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(26, 43, 76, 0.18);
  padding: 0.75rem;
  list-style: none;
  z-index: 200;
}

.dropdown-parent.open .dropdown-menu {
  display: block;
}

@media (min-width: 961px) {
  .dropdown-parent:hover .dropdown-menu {
    display: block;
  }
}

.dropdown-menu li a {
  display: block;
  padding: 0.55rem 0.75rem;
  min-height: 42px;
  color: var(--color-navy);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border-bottom: none !important;
  white-space: normal;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
  background-color: var(--color-bg);
  color: var(--color-teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.45rem 0.75rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* 6. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.35rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  border: none;
  text-decoration: none !important;
  text-align: center;
}

.btn-coral {
  background-color: var(--color-coral);
  color: var(--color-white) !important;
}

.btn-coral:hover {
  background-color: var(--color-coral-hover);
  color: var(--color-white) !important;
}

.btn-navy {
  background-color: var(--color-navy);
  color: var(--color-white) !important;
}

.btn-navy:hover {
  background-color: var(--color-teal);
  color: var(--color-white) !important;
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  min-height: 48px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* 7. HERO SECTION */
.hero {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.15rem;
  text-wrap: balance;
}

.hero p {
  color: rgba(255, 255, 255, 0.94);
}

.hero-lead {
  font-size: 1.08rem;
  color: #FFFFFF;
  margin-bottom: 1.75rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
}

.hero-trust-strip strong {
  display: block;
  color: var(--color-white);
  margin-bottom: 0.15rem;
}

.hero-trust-strip span {
  color: rgba(255, 255, 255, 0.88);
}

.hero-image-card {
  background-color: var(--color-navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.hero-image-caption {
  padding: 1.1rem 1.25rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.breadcrumb a {
  color: #4DD0D8;
}

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

/* 8. CARDS, CALLOUTS & DIRECT ANSWER BOXES */
.direct-answer-box {
  background-color: var(--color-bg);
  border-left: 4px solid var(--color-teal);
  padding: 1.35rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.75rem;
}

.direct-answer-box h2,
.direct-answer-box h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--color-navy);
}

.direct-answer-box p {
  color: var(--color-navy);
  font-size: 0.96rem;
  margin: 0;
}

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease;
  min-width: 0;
}

.card:hover {
  border-color: var(--color-teal);
}

.card-gray {
  background-color: var(--color-bg);
}

.card-navy {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.card-navy h2,
.card-navy h3,
.card-navy h4,
.card-navy strong {
  color: var(--color-white);
}

.card-navy p,
.card-navy li {
  color: #F1F5F9;
}

.card-navy .check-list li {
  color: #F1F5F9;
}

.card-dark-translucent {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  min-width: 0;
  color: var(--color-white);
}

.card-dark-translucent h2,
.card-dark-translucent h3,
.card-dark-translucent h4,
.card-dark-translucent strong {
  color: var(--color-white);
}

.card-dark-translucent p {
  color: #F1F5F9;
  line-height: 1.55;
}

.card-dark-translucent li {
  color: #F1F5F9;
}

.card-dark-translucent .check-list li {
  color: #F1F5F9;
}

.card-dark-translucent .mono-num {
  color: var(--color-white);
}

.card-footer-link {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.4;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.check-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-teal);
  font-weight: 700;
}

/* 9. TABLES */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  max-width: 100%;
}

.data-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.9rem 1rem;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  vertical-align: top;
}

.data-table tr.highlight-row td {
  background-color: var(--color-teal-light);
  color: var(--color-navy);
  font-weight: 500;
}

/* 10. FORMS */
.form-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  min-width: 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  min-height: 44px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--color-navy);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-teal);
  background-color: var(--color-white);
}

/* 11. FOOTER & STICKY MOBILE CALL BAR */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 4fr 4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer h2,
.site-footer h3 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  display: inline-block;
  padding: 0.15rem 0;
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-disclosure {
  padding-top: 1.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background-color: var(--color-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 0.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  z-index: 300;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.22);
}

.mobile-sticky-cta > span {
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.mobile-sticky-cta .btn {
  flex-shrink: 0;
  min-height: 38px;
}

/* 12. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1100px) {
  .main-nav {
    gap: 1.15rem;
  }

  .header-inner {
    gap: 1rem;
  }
}

@media (max-width: 1024px) {
  .split-layout,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 960px) {
  .site-header {
    position: relative;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    background-color: var(--color-navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.25rem;
    border-bottom: 2px solid var(--color-teal);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
    z-index: 250;
  }

  .main-nav.mobile-open {
    display: flex;
  }

  .main-nav > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav > li:last-child {
    border-bottom: none;
  }

  .main-nav > li > a,
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.7rem 0.25rem;
    min-height: 44px;
    font-size: 0.95rem;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    margin: 0.25rem 0 0.65rem;
    padding: 0.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 0;
  }

  .hero-lead {
    font-size: 0.98rem;
    margin-bottom: 1.35rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5,
  .hero-trust-strip {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .card,
  .form-card,
  .card-dark-translucent {
    padding: 1.25rem;
  }

  .direct-answer-box {
    padding: 1.15rem 1.2rem;
  }

  .form-control {
    font-size: 1rem; /* Prevents iOS Safari auto-zoom on input focus */
  }

  .site-footer {
    padding: 2.75rem 0 5rem;
  }

  .mobile-sticky-cta {
    display: flex;
  }

  .btn {
    min-height: 44px;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 1rem;
  }

  .header-inner {
    height: 62px;
    gap: 0.5rem;
  }

  .main-nav {
    top: 62px;
    max-height: calc(100vh - 62px);
  }

  .brand-wordmark {
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 0.45rem;
  }

  /* Compact top bar call CTA on narrow phones so Brand + Phone + Menu fit cleanly */
  .header-actions .btn-coral {
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem;
    min-height: 38px;
  }

  .header-actions .btn-coral > span:first-child {
    display: none;
  }

  .mobile-menu-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    min-height: 38px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .btn {
    white-space: normal;
    line-height: 1.3;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.84rem;
  }
}

/* 13. REDUCED MOTION & PRINT COMPLIANCE */
@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;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .mobile-sticky-cta,
  .form-card {
    display: none !important;
  }

  body,
  .section {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
}
