/* ============================================================================
   MEDFORD LEAK DETECTIVES — THEME "IRONSIDE" (LEAD-GEN OPTIMIZED)
   Industrial dispatch-desk / masthead aesthetic: Deep Navy + Signal Red
   High-conversion pay-per-call architecture for Medford & Rogue Valley, OR
   ============================================================================ */

:root {
  --navy: #0b1e3a;
  --navy-2: #10294c;
  --navy-dark: #061122;
  --accent: #ee2439;
  --accent-dark: #c91529;
  --accent-bright: #ff4357;
  --accent-soft: #ff7e8e;
  --accent-tint: #fbe0e3;
  --blue: #0c6096;
  --blue-light: #dceef5;
  --cream: #f4f3ed;
  --paper: #ffffff;
  --ink: #172238;
  --muted: #5e6b80;
  --line: #dce1e5;
  --green: #1a8a60;
  --green-glow: #38d39f;
  --yellow: #ffc857;
  --heading: "Archivo Narrow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 4px 12px rgba(11, 30, 58, 0.08);
  --shadow-md: 0 12px 30px rgba(11, 30, 58, 0.12);
  --shadow-hard: 5px 5px 0 rgba(11, 30, 58, 0.22);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.75rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.65rem); }
h4 { font-size: 1.1rem; }

p {
  margin-top: 0;
  margin-bottom: 1.2em;
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 10px;
}

/* ============================================================================
   COMPONENTS & BUTTONS
   ============================================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--heading);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

.eyebrow-light {
  color: var(--accent-bright);
}
.eyebrow-light::before {
  background: var(--accent-bright);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.button:hover {
  background: var(--accent-dark);
  box-shadow: 2px 2px 0 rgba(11, 30, 58, 0.28);
  transform: translate(3px, 3px);
  color: #fff;
}

.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  box-shadow: none;
}

.button-outline:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
  transform: none;
}

.button-navy {
  background: var(--navy);
  color: #ffffff;
}
.button-navy:hover {
  background: var(--navy-2);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.button-block {
  width: 100%;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================================================
   TOP UTILITY BAR & HEADER
   ============================================================================ */

.utility-bar {
  background: var(--navy-dark);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-inner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dispatch-status {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-glow);
  box-shadow: 0 0 0 3px rgba(56, 211, 159, 0.25);
  margin-right: 9px;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 211, 159, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(56, 211, 159, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 211, 159, 0); }
}

.utility-meta {
  display: flex;
  gap: 20px;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.main-nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.brand img {
  display: block;
  max-width: 240px;
  max-height: 48px;
  width: auto;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-family: var(--heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.18s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-phone {
  display: flex;
  flex-direction: column;
  text-align: right;
  white-space: nowrap;
}

.nav-phone-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.nav-phone-number {
  font-family: var(--heading);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  white-space: nowrap;
}

.nav-phone-number:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--navy);
  border: 0;
  cursor: pointer;
  padding: 9px;
  flex-direction: column;
  justify-content: space-around;
  border-radius: 3px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #ffffff;
  transition: all 0.2s ease;
}

/* ============================================================================
   HERO SECTIONS
   ============================================================================ */

.hero {
  position: relative;
  background-color: var(--navy-dark);
  background-image: 
    linear-gradient(135deg, rgba(6, 17, 34, 0.93) 0%, rgba(11, 30, 58, 0.88) 55%, rgba(16, 41, 76, 0.84) 100%),
    url('../images/hero-leak-detection-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 80px 0 100px;
  overflow: hidden;
  border-bottom: 5px solid var(--accent);
}

.hero.hero-underground {
  background-image: 
    linear-gradient(135deg, rgba(6, 17, 34, 0.93) 0%, rgba(11, 30, 58, 0.88) 55%, rgba(16, 41, 76, 0.84) 100%),
    url('../images/underground-water-line-bg.jpg');
}

.hero.hero-burst-pipe {
  background-image: 
    linear-gradient(135deg, rgba(6, 17, 34, 0.93) 0%, rgba(11, 30, 58, 0.88) 55%, rgba(16, 41, 76, 0.84) 100%),
    url('../images/burst-pipe-repair-bg.jpg');
}

.hero.hero-repair {
  background-image: 
    linear-gradient(135deg, rgba(6, 17, 34, 0.93) 0%, rgba(11, 30, 58, 0.88) 55%, rgba(16, 41, 76, 0.84) 100%),
    url('../images/emergency-leak-repair-bg.jpg');
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
  gap: 50px;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-lede {
  display: block;
  max-width: 680px;
  margin-bottom: 30px;
  padding: 14px 18px;
  border-left: 4px solid var(--accent-bright);
  border-radius: 3px;
  background: rgba(6, 17, 34, 0.78);
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-badge-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-bright);
}

/* Hero Dispatch Card */
.dispatch-card {
  background: #ffffff;
  color: var(--ink);
  border: 2px solid var(--navy);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35);
  padding: 34px;
  position: relative;
}

.dispatch-card-header {
  border-bottom: 2px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.dispatch-card-header h3 {
  margin-bottom: 4px;
}

.dispatch-card-header p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.dispatch-card-phone {
  background: var(--cream);
  border-left: 4px solid var(--accent);
  padding: 16px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}

.dispatch-card-phone span {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.dispatch-card-phone a {
  font-family: var(--heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-dark);
}

/* ============================================================================
   SECTIONS & LAYOUT
   ============================================================================ */

.section {
  padding: 90px 0;
  position: relative;
}

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

.section-navy {
  background-color: var(--navy);
  color: #ffffff;
}
.section-navy h2, .section-navy h3 {
  color: #ffffff;
}

.section-head {
  max-width: 820px;
  margin-bottom: 50px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0;
}

.section-navy .section-head p {
  color: #b9cadc;
}

/* Warning / Alert Banner */
.alert-banner {
  background: var(--accent-tint);
  border-left: 5px solid var(--accent);
  padding: 18px 24px;
  margin-bottom: 40px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.alert-banner strong {
  display: block;
  font-family: var(--heading);
  font-size: 1.1rem;
  color: var(--accent-dark);
  text-transform: uppercase;
}

/* ============================================================================
   SERVICES GRID & CARDS
   ============================================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--paper);
  border: 2px solid var(--line);
  padding: 34px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}

.service-card-num {
  font-family: var(--heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.98rem;
  flex-grow: 1;
  margin-bottom: 24px;
}

.service-card-link {
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-card-link::after {
  content: "→";
  color: var(--accent);
  transition: transform 0.15s ease;
}

.service-card:hover .service-card-link::after {
  transform: translateX(5px);
}

/* ============================================================================
   PROCESS STEPS (NON-INVASIVE WORKFLOW)
   ============================================================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
  counter-reset: step-counter;
}

.process-step {
  background: #ffffff;
  border-top: 4px solid var(--navy);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.process-step-num {
  font-family: var(--heading);
  font-size: 3rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 10px;
}

.process-step h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ============================================================================
   LOCATIONS & NEIGHBORHOODS TARGETING
   ============================================================================ */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.location-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  border-left: 5px solid var(--accent);
  transition: transform 0.15s ease;
}

.location-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--navy);
}

.location-card h4 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.location-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.neighborhood-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  background: var(--cream);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid var(--line);
}

/* ============================================================================
   FAQ ACCORDIONS
   ============================================================================ */

.faq-list {
  max-width: 860px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--line);
  background: #ffffff;
  margin-bottom: 14px;
}

.faq-item summary {
  padding: 20px 24px;
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-content {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 1rem;
  border-top: 1px solid var(--cream);
}

/* ============================================================================
   EMERGENCY CTA STRIP & FORMS
   ============================================================================ */

.cta-banner {
  position: relative;
  background-color: var(--navy);
  background-image: 
    linear-gradient(135deg, rgba(6, 17, 34, 0.93) 0%, rgba(16, 41, 76, 0.88) 100%),
    url('../images/burst-pipe-repair-bg.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 65px 0;
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
}

/* ============================================================================
   FULL-SERVICE PLUMBING & REPAIR BANNERS (BACKGROUND ENHANCED)
   ============================================================================ */

.full-service-plumbing-box,
.repair-highlight-banner {
  position: relative;
  margin-top: 36px !important;
  background-color: var(--navy) !important;
  background-image: 
    linear-gradient(90deg, rgba(6, 17, 34, 0.95) 0%, rgba(11, 30, 58, 0.92) 55%, rgba(16, 41, 76, 0.85) 100%),
    url('../images/emergency-leak-repair-bg.jpg') !important;
  background-position: center right !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  border-left: 5px solid var(--accent) !important;
  padding: 30px 32px !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  overflow: hidden;
}

.full-service-plumbing-box h3,
.repair-highlight-banner h3 {
  color: #ffffff !important;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.full-service-plumbing-box p,
.repair-highlight-banner p {
  color: #d1dced !important;
  font-size: 0.96rem;
  line-height: 1.7;
}

.full-service-plumbing-box ul,
.repair-highlight-banner ul {
  color: #d1dced !important;
}

.full-service-plumbing-box ul strong,
.repair-highlight-banner ul strong {
  color: #ffffff !important;
}

.full-service-plumbing-box a,
.repair-highlight-banner a {
  color: var(--accent-bright) !important;
  font-weight: 700;
}

.repair-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.repair-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-size: 0.90rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 3px;
}

.cta-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-banner-text h2 {
  color: #ffffff;
  margin-bottom: 10px;
}

.cta-banner-text p {
  color: #cbd5e1;
  font-size: 1.15rem;
  margin: 0;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: var(--heading);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.15s ease;
}

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

.form-success {
  display: none;
  padding: 16px;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  margin-top: 14px;
  font-weight: 700;
}
.form-success.visible {
  display: block;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
  background: var(--navy-dark);
  color: #cbd5e1;
  padding: 80px 0 30px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #8b9bb4;
}

/* Mobile Sticky Call Button */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--accent);
  color: #ffffff;
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}

.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
}

/* ============================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES & MOBILE/ANDROID OPTIMIZATION)
   ============================================================================ */

.article-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 45px;
  align-items: start;
}

.content-sidebar-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 45px;
  align-items: start;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .article-layout,
  .content-sidebar-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 820px) {
  .two-col-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
  }
  .locations-grid {
    grid-template-columns: 1fr !important;
  }
  .process-grid {
    grid-template-columns: 1fr !important;
  }
  .dispatch-card {
    padding: 24px 18px !important;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25) !important;
    max-width: 100% !important;
    overflow-wrap: break-word;
  }
  .dispatch-card a[href^="tel:"] {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
  }
  .utility-inner {
    min-height: 28px;
    justify-content: center;
    padding: 3px 0;
  }
  .utility-bar {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
  }
  .dispatch-status {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
  .utility-meta {
    display: none;
  }
  .main-nav {
    min-height: 56px;
    gap: 8px;
  }
  .brand {
    flex-shrink: 1;
    min-width: 0;
  }
  .brand img {
    max-width: clamp(135px, 40vw, 190px);
    max-height: 38px;
    width: auto;
    height: auto;
  }
  .header-cta {
    gap: 6px;
  }
  .header-cta .button {
    display: none;
  }
  .nav-phone {
    text-align: right;
    white-space: nowrap;
  }
  .nav-phone-label {
    font-size: 0.54rem;
    letter-spacing: 0.04em;
    line-height: 1;
  }
  .nav-phone-number {
    font-size: clamp(0.82rem, 3.1vw, 1.02rem);
    line-height: 1;
  }
  .nav-toggle {
    display: flex;
    width: 36px;
    height: 36px;
    padding: 7px;
    flex-shrink: 0;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-top: 1px solid var(--line);
    gap: 14px;
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-call-bar {
    display: block;
  }
  body {
    padding-bottom: 60px; /* Space for mobile sticky CTA */
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(1200px, calc(100% - 20px));
  }
}

@media (max-width: 480px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .shell {
    width: calc(100% - 20px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .button {
    white-space: normal !important;
    text-align: center !important;
    padding: 10px 14px !important;
    min-height: 48px !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }
  .button-block {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
  }
  .full-service-plumbing-box {
    padding: 20px 16px !important;
  }
  .dispatch-card {
    padding: 20px 14px !important;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.25) !important;
  }
  .neighborhood-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .tag {
    font-size: 0.82rem !important;
    padding: 6px 10px !important;
  }
  h1 {
    font-size: clamp(1.6rem, 7.5vw, 2.2rem) !important;
    word-break: break-word !important;
  }
  h2 {
    font-size: clamp(1.35rem, 6vw, 1.85rem) !important;
    word-break: break-word !important;
  }
  h3 {
    font-size: clamp(1.15rem, 5vw, 1.45rem) !important;
    word-break: break-word !important;
  }
  .hero-lede {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 380px) {
  .shell {
    width: calc(100% - 14px) !important;
  }
  .main-nav {
    gap: 6px;
  }
  .brand img {
    max-width: 120px;
  }
  .nav-phone-number {
    font-size: 0.78rem;
  }
  .nav-toggle {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
}


/* ============================================================================
   ARTICLES / BLOG SECTION
   ============================================================================ */

.article-hero {
  background-color: var(--navy-dark);
  color: #ffffff;
  padding: 56px 0 70px;
  border-bottom: 5px solid var(--accent);
}

.article-hero h1 {
  color: #ffffff;
  margin-bottom: 16px;
  max-width: 860px;
}

.article-hero .hero-lede {
  max-width: 700px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.82rem;
  color: #a0b3cc;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.article-body {
  max-width: 820px;
}

.article-body h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.article-body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body ul, .article-body ol {
  padding-left: 22px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 1.2em;
}

.article-body li {
  margin-bottom: 6px;
}

.article-toc {
  background: var(--cream);
  border-left: 4px solid var(--accent);
  padding: 22px 26px;
  margin: 32px 0;
  font-size: 0.94rem;
}

.article-toc h4 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--accent);
}

.article-toc ol {
  padding-left: 18px;
  margin: 0;
  color: var(--navy);
  line-height: 1.9;
}

.article-toc a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-toc a:hover {
  color: var(--accent);
}

.article-callout {
  background: var(--cream);
  border-left: 5px solid var(--accent);
  padding: 22px 26px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
}

.article-callout.warning {
  background: #fff8e1;
  border-left-color: #f59e0b;
}

.article-callout.safety {
  background: #fbe0e3;
  border-left-color: var(--accent);
}

.article-callout strong {
  display: block;
  font-family: var(--heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--navy);
}

.article-cta-inline {
  background: var(--navy);
  color: #ffffff;
  padding: 28px 30px;
  margin: 36px 0;
  border-left: 5px solid var(--accent);
  border-radius: 4px;
}

.article-cta-inline h4 {
  color: #ffffff;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.article-cta-inline p {
  color: #b9cadc;
  margin-bottom: 16px;
  font-size: 0.96rem;
}

.related-articles {
  background: var(--cream);
  padding: 36px;
  margin-top: 48px;
  border-top: 3px solid var(--line);
}

.related-articles h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.related-article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}

.related-article-card:hover {
  border-color: var(--accent);
}

.related-article-card .eyebrow {
  font-size: 0.72rem;
  margin-bottom: 0;
}

.related-article-card h4 {
  font-size: 1rem;
  margin: 0;
  line-height: 1.35;
}

.related-article-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
  flex-grow: 1;
}

.related-article-card a.read-more {
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.article-trust {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 24px;
  margin-top: 40px;
  border-radius: 4px;
}

.article-trust-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 800;
}

.article-trust-body h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.article-trust-body p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.articles-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.article-card {
  background: var(--paper);
  border: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}

.article-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
}

.article-card-category {
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.article-card h3 {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.3;
}

.article-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
  flex-grow: 1;
  line-height: 1.65;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  font-size: 0.82rem;
  color: var(--muted);
}

.article-card-footer a {
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.article-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cluster-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 8px;
}

@media (max-width: 820px) {
  .articles-index-grid {
    grid-template-columns: 1fr !important;
  }
  .related-articles-grid {
    grid-template-columns: 1fr !important;
  }
  .article-sidebar {
    position: static;
  }
}

/* Compact footer with free pinned location map */
.site-footer {
  padding: 52px 0 22px;
  font-size: 0.9rem;
}

.footer-grid {
  grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(150px, 0.85fr)) minmax(250px, 1.35fr);
  gap: 30px;
  margin-bottom: 34px;
}

.footer-col h4 {
  font-size: 1rem;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.footer-col p {
  margin: 0 0 12px;
  line-height: 1.55;
}

.footer-contact strong {
  color: #fff;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 7px;
}

.footer-map-wrap {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  background: #e5e7eb;
  height: 156px;
}

.footer-map {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--accent-bright);
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer-map-col {
    grid-column: span 3;
  }
  .footer-map-wrap {
    height: 180px;
  }
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 24px;
  }
  .footer-map-col {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-map-col {
    grid-column: auto;
  }
  .footer-bottom {
    gap: 8px;
  }
}

