/* =============================================================
   Emergency Plumbers — Global Stylesheet
   Pure CSS3. Mobile-first. Design tokens via custom properties.
   Sections:
   1.  Design tokens (:root)
   2.  Reset & base
   3.  Typography
   4.  Layout helpers (container, grid, section)
   5.  Buttons & CTAs
   6.  Header & navigation (desktop + mobile)
   7.  Hero
   8.  Cards & panels
   9.  Trust / feature strips
   10. Steps / process
   11. Forms
   12. FAQ accordion
   13. Breadcrumbs
   14. Tables / directory
   15. Footer
   16. Mobile sticky call bar
   17. Utilities
   18. Responsive breakpoints
   19. Reduced motion / print
   ============================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand palette */
  --navy-900: #0a1733;   /* midnight / deepest */
  --navy-800: #0e2149;   /* deep navy */
  --navy-700: #15306b;   /* rich blue-navy */
  --blue-600: #1f52c9;   /* rich blue */
  --blue-500: #2a66e8;
  --cyan-500: #19c3e6;   /* electric cyan accent */
  --cyan-400: #43d4f0;
  --cyan-050: #e7f8fc;
  --orange-600: #e8580c; /* emergency CTA */
  --orange-500: #ff6a1a;
  --orange-050: #fff1e8;

  /* Neutrals */
  --white: #ffffff;
  --grey-050: #f6f8fb;   /* light cool grey background */
  --grey-100: #eef2f7;
  --grey-200: #dde4ee;
  --grey-300: #c6d0de;
  --grey-400: #9aa7ba;
  --grey-500: #6b7a90;
  --slate-700: #33415c;  /* body text */
  --slate-800: #26324a;
  --charcoal: #1a2133;   /* headings */

  /* Semantic */
  --color-bg: var(--white);
  --color-bg-alt: var(--grey-050);
  --color-text: var(--slate-700);
  --color-heading: var(--charcoal);
  --color-primary: var(--blue-600);
  --color-primary-dark: var(--navy-800);
  --color-accent: var(--cyan-500);
  --color-emergency: var(--orange-600);
  --color-border: var(--grey-200);
  --color-muted: var(--grey-500);
  --color-success: #1f9d61;
  --color-danger: #c62f2f;

  /* Typography */
  --font-sans: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.3rem;
  --fs-xl: 1.6rem;
  --fs-2xl: 2.05rem;
  --fs-3xl: 2.6rem;
  --fs-4xl: 3.25rem;
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-base: 1.65;

  /* Spacing scale (8pt-ish) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 23, 51, 0.06), 0 1px 3px rgba(10, 23, 51, 0.08);
  --shadow: 0 6px 18px rgba(10, 23, 51, 0.08), 0 2px 6px rgba(10, 23, 51, 0.06);
  --shadow-lg: 0 18px 44px rgba(10, 23, 51, 0.14);
  --shadow-cyan: 0 10px 30px rgba(25, 195, 230, 0.25);
  --shadow-orange: 0 10px 26px rgba(232, 88, 12, 0.28);

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 76px;

  /* Motion */
  --t-fast: 140ms ease;
  --t: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.2rem; }
strong { color: var(--color-heading); font-weight: 700; }

/* Visible focus for all interactive elements (WCAG 2.2) */
:focus-visible {
  outline: 3px solid var(--cyan-500);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--navy-800);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 2000;
  transition: top var(--t);
  font-weight: 600;
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  color: var(--color-heading);
  line-height: var(--lh-tight);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-3xl); margin-bottom: var(--space-4); }
h2 { font-size: var(--fs-2xl); margin-bottom: var(--space-4); }
h3 { font-size: var(--fs-lg); margin-bottom: var(--space-3); font-weight: 700; }
h4 { font-size: var(--fs-md); margin-bottom: var(--space-2); font-weight: 700; }
p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }
.lead {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--slate-700);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--color-accent);
  display: inline-block;
}
.section-head { max-width: 760px; margin-bottom: var(--space-6); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- 4. LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--space-8); }
.section.tight { padding-block: var(--space-7); }
.section--alt { background: var(--color-bg-alt); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #d6e0f2;
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy .eyebrow { color: var(--cyan-400); }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.flow > * + * { margin-top: var(--space-4); }

/* ---------- 5. BUTTONS & CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn .ico { width: 20px; height: 20px; flex: none; }

.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-500); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--emergency { background: var(--color-emergency); color: #fff; box-shadow: var(--shadow-orange); }
.btn--emergency:hover { background: var(--orange-500); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--grey-300); }
.btn--ghost:hover { border-color: var(--color-primary); background: var(--grey-050); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { background: var(--grey-050); transform: translateY(-2px); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--fs-md); }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row.center { justify-content: center; }

/* ---------- 6. HEADER & NAVIGATION ---------- */
.topbar {
  background: var(--navy-900);
  color: #c4d2ec;
  font-size: var(--fs-sm);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 40px;
  padding-block: 0.35rem;
}
.topbar a { color: #dbe6fb; }
.topbar__points { display: flex; gap: var(--space-5); list-style: none; padding: 0; margin: 0; }
.topbar__points li { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar__points .ico { width: 16px; height: 16px; color: var(--cyan-400); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 800; color: var(--navy-800); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: 1.12rem; letter-spacing: -0.02em; color: var(--navy-800); }
.brand__tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }

/* Primary nav (desktop) */
.primary-nav { display: none; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0; }
.primary-nav > ul > li { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--slate-800);
  font-size: 0.97rem;
}
.nav-link:hover { background: var(--grey-050); color: var(--navy-800); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--color-primary); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.3rem;
  height: 2px; background: var(--color-accent); border-radius: 2px;
}
.has-dropdown > .nav-link .caret { width: 14px; height: 14px; transition: transform var(--t); }
.has-dropdown:hover > .nav-link .caret,
.has-dropdown:focus-within > .nav-link .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  list-style: none;
  margin: 0;
  z-index: 1001;
}
.dropdown.dropdown--wide { min-width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--slate-800);
  font-weight: 600;
  font-size: 0.93rem;
}
.dropdown a small { display: block; font-weight: 500; color: var(--color-muted); font-size: 0.78rem; }
.dropdown a:hover { background: var(--cyan-050); color: var(--navy-800); text-decoration: none; }
.dropdown__foot { grid-column: 1 / -1; border-top: 1px solid var(--color-border); margin-top: 4px; padding-top: 4px; }
.dropdown__foot a { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-call { display: none; }
.header-call .num { font-size: 1.05rem; }

/* Burger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0;
  background: var(--grey-050);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin-inline: auto; transition: transform var(--t), opacity var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(92vw, 380px);
  background: #fff;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform var(--t);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }
.mobile-nav__close {
  width: 44px; height: 44px; border: 1px solid var(--color-border); background: var(--grey-050);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--navy-800);
}
.mobile-nav details { border-bottom: 1px solid var(--color-border); }
.mobile-nav details > summary {
  list-style: none; cursor: pointer; padding: 0.85rem 0.25rem;
  font-weight: 700; color: var(--navy-800); display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav details > summary::-webkit-details-marker { display: none; }
.mobile-nav details > summary .caret { width: 16px; height: 16px; transition: transform var(--t); }
.mobile-nav details[open] > summary .caret { transform: rotate(180deg); }
.mobile-nav details .submenu { list-style: none; padding: 0 0 0.6rem; margin: 0; }
.mobile-nav details .submenu a { display: block; padding: 0.55rem 0.75rem; color: var(--slate-700); font-weight: 600; border-radius: var(--radius-sm); }
.mobile-nav details .submenu a:hover { background: var(--cyan-050); text-decoration: none; }
.mobile-nav > a.m-link { padding: 0.85rem 0.25rem; font-weight: 700; color: var(--navy-800); border-bottom: 1px solid var(--color-border); }
.mobile-nav .btn { margin-top: var(--space-2); }
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(10, 23, 51, 0.5);
  z-index: 1150; opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.nav-backdrop.open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  background-color: var(--navy-900);
  background-image:
    linear-gradient(150deg, rgba(10,23,51,0.94) 0%, rgba(14,33,73,0.86) 45%, rgba(21,48,107,0.78) 100%),
    url("/assets/images/photos/plumber-radiator-pipe.jpg");
  background-size: cover;
  background-position: center;
  color: #e6edfa;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(25,195,230,0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(31,82,201,0.22), transparent 45%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center; padding-block: var(--space-8); }
.hero h1 { color: #fff; font-size: var(--fs-3xl); }
.hero__lead { font-size: var(--fs-md); color: #c7d4ee; max-width: 56ch; }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.5rem 0.9rem; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 600; color: #e6edfa;
}
.hero__badge .ico { width: 18px; height: 18px; color: var(--cyan-400); }
.hero__cta { margin-top: var(--space-6); }
.hero__panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  backdrop-filter: blur(4px);
}
.hero__panel h2 { color: #fff; font-size: var(--fs-lg); }
.hero-visual {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(25,195,230,0.14), rgba(31,82,201,0.10));
  border: 1px solid rgba(255,255,255,0.14);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
}

/* ---------- 8. CARDS & PANELS ---------- */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--cyan-400); }
.card--link:hover { text-decoration: none; }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: var(--space-4);
  background: var(--cyan-050); color: var(--color-primary);
}
.card__icon .ico { width: 28px; height: 28px; }
.card h3 { color: var(--navy-800); }
.card p { color: var(--slate-700); font-size: 0.97rem; }
.card__link { margin-top: auto; padding-top: var(--space-4); font-weight: 700; color: var(--color-primary); display: inline-flex; align-items: center; gap: 0.4rem; }
.card--link .card__link .ico { transition: transform var(--t); width: 16px; height: 16px; }
.card--link:hover .card__link .ico { transform: translateX(4px); }
.card--emergency { border-top: 4px solid var(--color-emergency); }

.panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.panel--accent { border-left: 5px solid var(--color-accent); }
.panel--warn { background: var(--orange-050); border: 1px solid #f6cdb3; border-left: 5px solid var(--color-emergency); }
.panel--info { background: var(--cyan-050); border: 1px solid #bfeaf4; border-left: 5px solid var(--color-accent); }
.panel--warn h3, .panel--info h3 { color: var(--navy-800); }

/* ---------- 9. TRUST / FEATURE STRIPS ---------- */
.feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.feature__icon {
  width: 46px; height: 46px; flex: none; border-radius: var(--radius);
  background: var(--navy-800); color: var(--cyan-400);
  display: grid; place-items: center;
}
.feature__icon .ico { width: 24px; height: 24px; }
.feature h3 { font-size: var(--fs-md); margin-bottom: 0.3rem; }
.feature p { font-size: 0.95rem; }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.stat { text-align: center; padding: var(--space-4); }
.stat__num { font-size: var(--fs-2xl); font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; }
.section--navy .stat__num { color: #fff; }
.stat__label { font-size: var(--fs-sm); color: var(--color-muted); }
.section--navy .stat__label { color: #a9bbda; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: 0.65rem; align-items: flex-start; }
.checklist .ico { width: 22px; height: 22px; color: var(--color-success); flex: none; margin-top: 2px; }
.section--navy .checklist .ico { color: var(--cyan-400); }

/* ---------- 10. STEPS / PROCESS ---------- */
.steps { display: grid; gap: var(--space-5); counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step__num {
  width: 48px; height: 48px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  color: #fff; font-weight: 800; font-size: 1.2rem;
  display: grid; place-items: center; margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.step h3 { color: var(--navy-800); }

/* ---------- 11. FORMS ---------- */
.form { display: grid; gap: var(--space-4); }
.form-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 700; color: var(--navy-800); font-size: 0.95rem; }
.field .hint { font-size: var(--fs-xs); color: var(--color-muted); font-weight: 500; }
.field .req { color: var(--color-danger); }
.input, .textarea, .select {
  font-family: inherit;
  font-size: var(--fs-base);
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--slate-800);
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31,82,201,0.15);
}
.textarea { min-height: 130px; resize: vertical; }
.input:user-invalid, .textarea:user-invalid, .select:user-invalid { border-color: var(--color-danger); }
.field__error { color: var(--color-danger); font-size: var(--fs-sm); font-weight: 600; display: none; }
.field.has-error .field__error { display: block; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--color-danger); }
.form-note { font-size: var(--fs-sm); color: var(--color-muted); }
.form-status { padding: var(--space-4); border-radius: var(--radius); font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status--ok { background: #e8f7ef; color: #15663f; border: 1px solid #b7e3cb; }
.form-status--err { background: #fdeaea; color: #8f1f1f; border: 1px solid #f2c0c0; }
fieldset { border: 0; padding: 0; margin: 0; }
.radio-row, .checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; }
.radio-row input, .checkbox-row input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--color-primary); }

/* ---------- 12. FAQ ACCORDION ---------- */
.faq { display: grid; gap: var(--space-3); }
.faq-item { border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.25rem;
  font-weight: 700; color: var(--navy-800); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { position: relative; width: 20px; height: 20px; flex: none; }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; background: var(--color-primary); border-radius: 2px;
}
.faq-item summary .plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-item summary .plus::after { left: 9px; top: 0; width: 2px; height: 20px; transition: transform var(--t); }
.faq-item[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-item[open] summary { color: var(--color-primary); }
.faq-item .faq-body { padding: 0 1.25rem 1.2rem; }
.faq-item .faq-body p { color: var(--slate-700); }

/* ---------- 13. BREADCRUMBS ---------- */
.breadcrumbs { background: var(--grey-050); border-bottom: 1px solid var(--color-border); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.8rem 0; margin: 0; font-size: var(--fs-sm); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--grey-400); }
.breadcrumbs a { color: var(--slate-700); font-weight: 600; }
.breadcrumbs [aria-current="page"] { color: var(--color-muted); font-weight: 500; }

/* Hero quote form (white card placed on the right of hero / page-hero) */
.ph-grid { display: grid; gap: var(--space-6); }
.ph-content { min-width: 0; }
@media (min-width: 960px) {
  .ph-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--space-7); }
}
.hero-form {
  background: #fff;
  color: var(--slate-700);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
}
.hero-form__title { color: var(--navy-800); font-size: var(--fs-lg); margin-bottom: 0.25rem; }
.hero-form__sub { font-size: var(--fs-sm); color: var(--color-muted); margin-bottom: var(--space-4); }
.hero-form .form { gap: var(--space-3); }
.hero-form .field label { font-size: 0.9rem; }
.hero-form .textarea { min-height: 84px; }
.hero-form .checkbox-row span { font-size: 0.8rem; color: var(--color-muted); font-weight: 500; }
.hero-form .checkbox-row a { font-weight: 600; }
/* Honeypot: present in the DOM but hidden from people and assistive tech */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Photographic media */
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; margin: 0; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel-media { border-radius: var(--radius); overflow: hidden; margin-bottom: var(--space-4); aspect-ratio: 16 / 10; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Page intro band */
.page-hero {
  background-color: var(--navy-900);
  background-image:
    linear-gradient(150deg, rgba(10,23,51,0.93), rgba(14,33,73,0.86)),
    url("/assets/images/photos/industrial-valves.jpg");
  background-size: cover;
  background-position: center;
  color: #dbe6fb;
  padding-block: var(--space-8);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(25,195,230,0.16), transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #c7d4ee; max-width: 62ch; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-5); }

/* ---------- 14. TABLES / DIRECTORY ---------- */
.directory { display: grid; gap: var(--space-5); }
.region-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-5); box-shadow: var(--shadow-sm);
}
.region-card h3 { color: var(--navy-800); display: flex; align-items: center; gap: 0.5rem; }
.region-card h3 .ico { width: 20px; height: 20px; color: var(--color-accent); }
.region-card ul { list-style: none; padding: 0; margin: var(--space-3) 0 0; columns: 2; gap: var(--space-4); }
.region-card ul li { margin-bottom: 0.4rem; break-inside: avoid; }
.region-card ul a { font-weight: 600; font-size: 0.93rem; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table caption { text-align: left; color: var(--color-muted); font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.data-table th, .data-table td { text-align: left; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--color-border); }
.data-table th { background: var(--grey-050); color: var(--navy-800); font-weight: 700; }
.data-table tr:last-child td { border-bottom: 0; }

/* Content prose (articles / legal) */
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-5); }
.prose ul, .prose ol { display: grid; gap: 0.4rem; margin-bottom: var(--space-4); }
.prose li { line-height: 1.55; }
.prose blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 0.5rem 0 0.5rem 1.2rem; margin: var(--space-5) 0; color: var(--slate-800); font-style: italic;
}
.prose img { border-radius: var(--radius); margin-block: var(--space-5); }
.toc { background: var(--grey-050); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-4) var(--space-5); }
.toc h2 { font-size: var(--fs-md); margin-top: 0; }
.toc ol { margin: 0; }

/* Review / testimonial */
.review {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-5); box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column;
}
.review__stars { color: #f5a623; letter-spacing: 2px; margin-bottom: var(--space-3); }
.review p { font-size: 1rem; color: var(--slate-800); }
.review__by { margin-top: auto; padding-top: var(--space-4); font-weight: 700; color: var(--navy-800); font-size: 0.95rem; }
.review__by span { display: block; font-weight: 500; color: var(--color-muted); font-size: var(--fs-sm); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  color: #fff; border-radius: var(--radius-xl); padding: var(--space-7);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(25,195,230,0.3), transparent 70%); border-radius: 50%;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd9f1; }
.cta-band .btn-row { position: relative; z-index: 1; margin-top: var(--space-5); }

.tag { display: inline-block; background: var(--cyan-050); color: var(--navy-700); font-size: var(--fs-xs); font-weight: 700; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); letter-spacing: 0.03em; }

/* ---------- 15. FOOTER ---------- */
.site-footer { background: var(--navy-900); color: #a9bbda; font-size: 0.95rem; }
.site-footer a { color: #cdd9f1; }
.site-footer a:hover { color: #fff; }
.footer-top { padding-block: var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #7e90b4; }
.footer-brand p { margin-top: var(--space-4); max-width: 42ch; }
.footer-col h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-contact { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.footer-contact a, .footer-contact span { display: inline-flex; gap: 0.6rem; align-items: center; }
.footer-contact .ico { width: 18px; height: 18px; color: var(--cyan-400); flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: var(--space-5); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; align-items: center; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: var(--space-4); list-style: none; padding: 0; margin: 0; }
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a { width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); display: grid; place-items: center; }
.footer-social a:hover { background: var(--blue-600); }
.footer-social .ico { width: 20px; height: 20px; }
.footer-disclaimer { font-size: var(--fs-xs); color: #7e90b4; margin-top: var(--space-5); line-height: 1.5; }

/* ---------- 16. MOBILE STICKY CALL BAR ---------- */
.mobile-callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(10,23,51,0.1);
  padding: 0.5rem; gap: 0.5rem;
}
.mobile-callbar .btn { padding: 0.8rem 0.5rem; font-size: 0.95rem; }
.mobile-callbar .btn .ico { width: 18px; height: 18px; }

/* ---------- 17. UTILITIES ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--color-muted); }
.nowrap { white-space: nowrap; }
.full { width: 100%; }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-list a, .pill-list span {
  display: inline-block; padding: 0.45rem 0.9rem; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--color-border); font-weight: 600; font-size: 0.9rem; color: var(--slate-800);
}
.pill-list a:hover { border-color: var(--color-accent); color: var(--navy-800); text-decoration: none; background: var(--cyan-050); }
.divider { height: 1px; background: var(--color-border); border: 0; margin-block: var(--space-6); }
.spacer-bottom { margin-bottom: var(--space-6); }
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.icon-list li { display: flex; gap: 0.65rem; align-items: flex-start; }
.icon-list .ico { width: 20px; height: 20px; color: var(--color-primary); flex: none; margin-top: 3px; }

/* ---------- 18. RESPONSIVE ---------- */
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  :root { --fs-3xl: 2.9rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
  .split--wide { grid-template-columns: 1.2fr 0.8fr; }
}
@media (min-width: 1024px) {
  :root { --fs-3xl: 3.2rem; --fs-4xl: 3.6rem; }
  .primary-nav { display: block; }
  .header-call { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
  .header-call .num { font-weight: 800; color: var(--navy-800); }
  .header-call .lbl { font-size: var(--fs-xs); color: var(--color-muted); font-weight: 600; }
  .nav-toggle { display: none; }
  .mobile-callbar { display: none; }
  body { padding-bottom: 0 !important; }
}
/* Header call number: only show the text block on wider desktops to avoid crowding */
.header-call .num, .header-call .lbl { white-space: nowrap; }
@media (max-width: 1199px) { .header-call { display: none !important; } }
/* add bottom padding on mobile so content clears the sticky call bar */
@media (max-width: 1023px) {
  body { padding-bottom: 72px; }
}
/* Top bar is redundant on small screens (Call Now + sticky call bar cover it) */
@media (max-width: 640px) {
  .topbar { display: none; }
}
@media (min-width: 641px) and (max-width: 1023px) {
  .topbar__points li:nth-child(2), .topbar__points li:nth-child(3) { display: none; }
}

/* ---------- 19. REDUCED MOTION / PRINT ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .btn:hover, .card--link:hover { transform: none; }
}
@media print {
  .site-header, .mobile-callbar, .mobile-nav, .nav-backdrop, .topbar, .cta-band, .mobile-nav__close { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
