/* ============================================================================
   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('/assets/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('/assets/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('/assets/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('/assets/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 {
  font-size: 1.18rem;
  color: #d1dced;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 620px;
}

.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('/assets/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('/assets/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: 1.6fr 1fr 1fr 1.2fr;
  gap: 50px;
  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)
   ============================================================================ */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 820px) {
  .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));
    max-width: 100%;
  }
  .hero-grid,
  .hero-grid > *,
  .section .shell,
  .section .shell > *,
  .cta-banner-inner,
  .footer-grid,
  .footer-col {
    min-width: 0;
    max-width: 100%;
  }
  .hero h1,
  .hero-lede,
  .section h1,
  .section h2,
  .section h3,
  .section p,
  .cta-banner-text {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .hero-lede {
    width: 100%;
  }
  .services-grid,
  .process-grid,
  .locations-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section .shell > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 30px !important;
    min-width: 0;
    max-width: 100%;
  }
  .service-card,
  .location-card,
  .process-step,
  .dispatch-card,
  .full-service-plumbing-box,
  .repair-highlight-banner {
    min-width: 0;
    max-width: 100%;
  }
  .hero-actions {
    align-items: stretch;
  }
  .hero-actions .button,
  .cta-banner .button,
  .button-block {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .table-wrap,
  table {
    max-width: 100%;
    overflow-x: auto;
  }
}

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