/* ==========================================================================
   West Valley Plumber Pros — westvalleyplumberpros.com
   Design system: sharp & structural, cool steel-blue ↔ warm copper
   Fonts: Barlow Semi Condensed (headings) + Inter (body)
   Square corners, hard edges, accent bars — deliberately not "rounded".
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #14283a;          /* deep steel navy — headings */
  --body: #3c4f5e;         /* body text */
  --muted: #5f7384;        /* secondary text */
  --steel-900: #123a5a;
  --steel-700: #1d6098;    /* primary */
  --steel-600: #2479b4;
  --steel-100: #d3e6f3;
  --steel-50: #eef6fb;
  --copper-700: #8a4718;
  --copper-600: #a3551d;
  --copper-500: #bd6a2b;   /* warm CTA / accent */
  --copper-100: #f8e2cf;
  --sand: #f9f4ed;         /* warm alternate section bg */
  --mist: #eef5fb;         /* cool alternate section bg */
  --white: #ffffff;
  --line: #d7e3ec;
  --star: #e8a13c;
  --alert: #b3341f;        /* emergency / urgent */
  --alert-50: #fdf0ed;

  /* Type */
  --font-head: "Barlow Semi Condensed", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout — intentionally tight radii for a sharp, structural look */
  --container: 72rem;
  --radius: 2px;
  --radius-lg: 3px;
  --shadow-sm: 0 1px 2px rgba(18, 40, 58, 0.10);
  --shadow-md: 0 10px 26px -12px rgba(18, 40, 58, 0.28);
  --shadow-lg: 0 20px 48px -16px rgba(18, 40, 58, 0.30);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 260ms;

  /* z-scale */
  --z-nav: 50;
  --z-drawer: 60;
  --z-callbar: 40;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 0.55em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1.1em; }
a { color: var(--steel-700); text-decoration: none; transition: color var(--t-fast) ease; }
a:hover { color: var(--steel-900); }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }
strong { color: var(--ink); }
:focus-visible {
  outline: 3px solid var(--steel-600);
  outline-offset: 2px;
  border-radius: 0;
}
::selection { background: var(--steel-100); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--mist { background: var(--mist); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Section intros */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-700);
  margin-bottom: 0.9rem;
}
.kicker::before {
  content: "";
  width: 1.7rem;
  height: 4px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--copper-500), var(--steel-600));
}
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.lede { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons (square, structural) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.7rem;
  border-radius: 0;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
              border-color var(--t-fast) ease, box-shadow var(--t-med) var(--ease),
              transform var(--t-fast) ease;
}
/* Icons come from art.py with a viewBox but no width/height, so they must be
   sized here or they fall back to the 300x150 replaced-element default. */
.btn svg { flex: none; width: 1.25rem; height: 1.25rem; }
.btn--lg svg { width: 1.35rem; height: 1.35rem; }
.btn--call {
  background: var(--copper-500);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(138, 71, 24, 0.55);
}
.btn--call:hover { background: var(--copper-600); color: #fff; box-shadow: 0 9px 22px -6px rgba(138, 71, 24, 0.6); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--steel-900);
  border-color: var(--steel-700);
}
.btn--ghost:hover { background: var(--steel-700); color: #fff; }
.btn--light { background: #fff; color: var(--steel-900); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--steel-50); }
.btn--lg { min-height: 3.5rem; padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0;
}
.skip-link:focus { left: 0.5rem; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) ease, box-shadow var(--t-med) ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  flex: none;
}
.brand-logo {
  height: 3.75rem;
  width: auto;
  display: block;
}
@media (max-width: 30rem) { .brand-logo { height: 2.6rem; } }

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.1rem;
  flex: none;          /* never let flex shrink it into wrapping */
}
.nav-list > li { margin: 0; }
/* Scoped to direct children so it never reaches into the mega panel, where
   .btn elements need to keep their own background and colour. */
.nav-list > li > a, .nav-list .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  line-height: inherit;
  white-space: nowrap;
}
.nav-list > li > a:hover, .nav-list .nav-trigger:hover { color: var(--steel-700); border-bottom-color: var(--steel-100); }
.nav-list > li > a[aria-current="page"] { color: var(--steel-700); border-bottom-color: var(--copper-500); }
.nav-list .nav-trigger[aria-current="true"] { color: var(--steel-700); border-bottom-color: var(--copper-500); }
.nav-trigger svg { width: 0.8rem; height: 0.8rem; transition: transform var(--t-fast) ease; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-cta { display: none; }

/* Desktop mega dropdown */
.has-mega { position: static; }
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 4px solid var(--copper-500);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-fast) ease, transform var(--t-med) var(--ease), visibility var(--t-fast);
}
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__inner {
  padding-block: 1.8rem 1.4rem;
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
}
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li { margin: 0; }

/* Multi-column so the 11 service groups pack densely. break-inside keeps a
   group and its sub-services together in one column. */
.mega__groups { column-count: 3; column-gap: 2.2rem; }
@media (min-width: 86rem) { .mega__groups { column-count: 4; column-gap: 2rem; } }
.mega__group {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 1.35rem;
}
.mega__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 0.38rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.2;
}
.mega__head svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--copper-600); }
.mega__head:hover { color: var(--steel-700); border-bottom-color: var(--copper-500); }
.mega__group li a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--body);
  line-height: 1.35;
}
.mega__group li a:hover { color: var(--steel-700); }

.mega__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.mega__foot p {
  margin: 0 auto 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 42rem;
}
.mega__foot .btn { min-height: 2.7rem; padding: 0.55rem 1.25rem; font-size: 0.9rem; }

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 0;
  background: var(--ink);
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 40, 58, 0.5);
  opacity: 0;
  transition: opacity var(--t-med) ease;
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(22rem, 90vw);
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 1.2rem 1.4rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t-med) var(--ease);
  border-left: 4px solid var(--copper-500);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__close {
  margin-left: auto;
  display: flex;
  width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  color: var(--ink);
}
.drawer nav ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.drawer nav li { margin: 0; border-bottom: 1px solid var(--mist); }
.drawer nav a {
  display: flex;
  padding: 0.85rem 0.2rem;
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--ink);
}
.drawer nav a:hover { color: var(--steel-700); }
.drawer .drawer__group {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.4rem;
  margin-bottom: 0;
}
.drawer .btn { width: 100%; margin-top: 1.4rem; }

/* Drawer accordion for the services tree */
.drawer details { border-bottom: 1px solid var(--mist); }
.drawer details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.85rem 0.2rem;
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--ink);
  cursor: pointer;
}
.drawer details > summary::-webkit-details-marker { display: none; }
.drawer details > summary svg { width: 1rem; height: 1rem; flex: none; color: var(--copper-600); transition: transform var(--t-fast) ease; }
.drawer details[open] > summary svg { transform: rotate(45deg); }
.drawer details ul { margin: 0 0 0.7rem; border-left: 2px solid var(--steel-100); padding-left: 0.8rem; }
.drawer details li { border-bottom: 0; }
.drawer details li a { padding: 0.5rem 0.2rem; font-size: 0.94rem; font-weight: 500; color: var(--body); }

/* The full nav row (brand + 7 items + call CTA) needs ~1090px of container.
   Below this the drawer takes over, and it carries the whole service tree. */
@media (min-width: 68rem) {
  .nav-list { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
}

/* Mobile sticky call bar */
.callbar {
  position: fixed;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: var(--z-callbar);
  display: flex;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) ease;
}
.callbar .btn { width: 100%; box-shadow: var(--shadow-lg); }
.js .callbar { transform: translateY(calc(100% + 1.2rem)); opacity: 0; pointer-events: none; }
.js .callbar.is-shown { transform: none; opacity: 1; pointer-events: auto; }
@media (min-width: 68rem) { .callbar { display: none; } }
body { padding-bottom: 4.6rem; }
@media (min-width: 68rem) { body { padding-bottom: 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(46rem 30rem at 110% -10%, var(--steel-100) 0%, transparent 60%),
    radial-gradient(40rem 26rem at -15% 110%, var(--copper-100) 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--mist) 100%);
}
.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
@media (min-width: 56rem) { .hero__inner { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 .accent {
  position: relative;
  color: var(--steel-700);
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.18em;
  background: var(--copper-500);
  z-index: -1;
  opacity: 0.85;
}
.hero .lede { font-size: clamp(1.08rem, 2vw, 1.22rem); max-width: 33rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.8rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.proof-item { display: flex; align-items: center; gap: 0.65rem; font-size: 0.93rem; font-weight: 700; color: var(--ink); }
.proof-item svg { width: 1.5rem; height: 1.5rem; color: var(--steel-700); flex: none; }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }
.hero__photo {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero__photo::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 7px;
  height: 100%;
  background: var(--copper-500);
  z-index: 2;
}
.hero__photo img { width: 100%; height: auto; display: block; }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  background:
    radial-gradient(36rem 22rem at 105% 0%, var(--steel-100) 0%, transparent 58%),
    linear-gradient(180deg, #fff, var(--mist));
  padding-block: clamp(2.4rem, 5vw, 3.8rem) clamp(2.2rem, 4.5vw, 3.2rem);
  border-bottom: 1px solid var(--line);
}
.page-hero--split .page-hero__inner {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 58rem) { .page-hero--split .page-hero__inner { grid-template-columns: 1.15fr 0.85fr; } }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 0.45rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.page-hero .lede { max-width: 46rem; }
.page-hero .hero__cta { margin-top: 1.4rem; }
.page-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  margin-top: 1.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}
.page-hero__proof span { display: inline-flex; align-items: center; gap: 0.5rem; }
.page-hero__proof svg { width: 1.15rem; height: 1.15rem; color: var(--copper-600); flex: none; }

/* ---------- Photo slots (drop real .webp in later) ---------- */
.photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: var(--ar, 4 / 3);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(29, 96, 152, 0.045) 14px 28px),
    linear-gradient(150deg, var(--steel-50), var(--steel-100));
  border: 1px dashed var(--steel-600);
  color: var(--steel-700);
  text-align: center;
  padding: 1.2rem;
}
.photo-slot svg { width: 2.6rem; height: 2.6rem; opacity: 0.75; }
.photo-slot b {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.photo-slot code {
  font-size: 0.76rem;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--copper-700);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.15rem 0.45rem;
  word-break: break-all;
}
.hero__photo .photo-slot { --ar: 1 / 1; border: 0; }

/* Grid and flex children default to min-width:auto, which lets wide content
   (a min-width table, a long code string) push a track past the viewport.
   Resetting it lets the inner scroll containers do their job instead. */
.grid > *, .split > *, .hero__inner > *, .page-hero__inner > *,
.footer-grid > *, .link-grid > *, .mega__inner > * { min-width: 0; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.3rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 40rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-med) var(--ease), border-color var(--t-fast) ease, transform var(--t-fast) ease;
}
/* sharp accent bar that grows on hover */
.card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 0;
  height: 4px;
  background: var(--copper-500);
  transition: width var(--t-med) var(--ease);
}
a.card { display: block; color: inherit; cursor: pointer; }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--steel-100); transform: translateY(-2px); }
.card:hover::before { width: calc(100% + 2px); }
.card__icon {
  display: inline-flex;
  width: 3.1rem;
  height: 3.1rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--steel-50);
  border: 1px solid var(--steel-100);
  color: var(--steel-700);
  margin-bottom: 1.1rem;
}
.card__icon--warm { background: var(--copper-100); border-color: #efc9a8; color: var(--copper-700); }
.card__icon svg { width: 1.6rem; height: 1.6rem; }
.card h3 a { color: inherit; }
.card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--steel-700);
}
.card:hover .more { color: var(--steel-900); }
.card .more svg { width: 1rem; height: 1rem; transition: transform var(--t-fast) var(--ease); }
.card:hover .more svg { transform: translateX(4px); }
.card p:last-of-type { margin-bottom: 0.8rem; }
.card--flush { padding: 1.4rem 1.5rem; }

/* Service card with a nested sub-service list */
.svc-card { display: flex; flex-direction: column; }
.svc-card .sub-links {
  list-style: none;
  margin: 0.4rem 0 1.1rem;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--mist);
  flex: 1;
}
.svc-card .sub-links li { margin-bottom: 0.3rem; }
.svc-card .sub-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--body);
}
.svc-card .sub-links a::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  background: var(--copper-500);
  flex: none;
}
.svc-card .sub-links a:hover { color: var(--steel-700); }

/* ---------- Sub-service link grid ---------- */
.link-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 42rem) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .link-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.link-grid li { margin: 0; }
.link-grid a {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  height: 100%;
  padding: 1.05rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--steel-100);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-med) var(--ease), transform var(--t-fast) ease;
}
.link-grid a:hover { border-left-color: var(--copper-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.link-grid .lg-ico { flex: none; color: var(--steel-700); margin-top: 0.15rem; }
.link-grid .lg-ico svg { width: 1.45rem; height: 1.45rem; }
.link-grid strong { display: block; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; line-height: 1.2; margin-bottom: 0.2rem; }
.link-grid span { display: block; font-size: 0.89rem; font-weight: 500; color: var(--muted); line-height: 1.45; }

/* ---------- Hub blocks (/services) ---------- */
.hub-block {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--steel-700);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.hub-block > h3 { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.hub-block > h3 svg { width: 1.6rem; height: 1.6rem; color: var(--copper-600); flex: none; }
.hub-block > p { font-size: 0.97rem; }
.hub-block .sub-links { list-style: none; margin: 0 0 1.2rem; padding: 0.9rem 0 0; border-top: 1px solid var(--mist); }
.hub-block .sub-links li { margin-bottom: 0.35rem; }
.hub-block .sub-links a { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.94rem; font-weight: 600; color: var(--body); }
.hub-block .sub-links a::before { content: ""; width: 0.42rem; height: 0.42rem; background: var(--copper-500); flex: none; }
.hub-block .sub-links a:hover { color: var(--steel-700); }

/* ---------- Feature / checklist rows ---------- */
.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}
.check-list svg { width: 1.35rem; height: 1.35rem; color: var(--steel-700); flex: none; margin-top: 0.18rem; }

/* Symptom / warning list (warm accent) */
.warn-list { list-style: none; padding: 0; }
.warn-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
}
.warn-list svg { width: 1.35rem; height: 1.35rem; color: var(--copper-600); flex: none; margin-top: 0.18rem; }

/* Numbered process steps */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.2rem; }
@media (min-width: 56rem) { .steps--row { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--steel-700);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.2rem;
  margin: 0;
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--copper-500);
  margin-bottom: 0.4rem;
}
.steps h3, .steps h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.steps p { margin: 0; font-size: 0.97rem; }

/* Stats band */
.stats { display: grid; gap: 0; grid-template-columns: repeat(2, 1fr); }
.stat { text-align: center; padding: 1.2rem 0.6rem; border: 1px solid var(--line); margin: -0.5px; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--steel-900);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat span { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
@media (min-width: 56rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 56rem) { .stats--2x2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Reviews ---------- */
.review {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
}
.review__stars { display: inline-flex; gap: 0.18rem; color: var(--star); }
.review__stars svg { width: 1.1rem; height: 1.1rem; }
.review blockquote { margin: 0; font-size: 1rem; flex: 1; }
.review footer { display: flex; align-items: center; gap: 0.8rem; }
.review .avatar {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--steel-700), var(--steel-600));
  flex: none;
}
.review cite { font-style: normal; font-weight: 700; color: var(--ink); display: block; line-height: 1.3; }
.review cite small { display: block; font-weight: 500; color: var(--muted); font-size: 0.83rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 56rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.gallery figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery figcaption { padding: 0.75rem 0.95rem; font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.gallery figcaption small { display: block; font-weight: 500; color: var(--muted); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: grid; gap: 0.8rem; }
.accordion details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-med) ease;
}
.accordion details[open] { border-color: var(--steel-100); box-shadow: var(--shadow-md); }
.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--steel-700); }
.accordion summary .chev {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--steel-50);
  border: 1px solid var(--steel-100);
  color: var(--steel-700);
  transition: transform var(--t-med) var(--ease);
}
.accordion summary .chev svg { width: 1rem; height: 1rem; }
.accordion details[open] summary .chev { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 1.3rem 1.2rem; }
.accordion .acc-body p:last-child { margin-bottom: 0; }

/* ---------- Area chips ---------- */
.area-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48rem) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .area-grid { grid-template-columns: repeat(4, 1fr); } }
/* Inside a split column there is only half the container to work with, so the
   3- and 4-column variants would overflow. Higher specificity wins regardless
   of media-query order. */
.split .area-grid { grid-template-columns: repeat(2, 1fr); }
.area-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--ink);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-med) ease, transform var(--t-fast) ease;
}
.area-card:hover { border-color: var(--steel-100); box-shadow: var(--shadow-md); color: var(--steel-900); transform: translateY(-2px); }
.area-card svg { width: 1.2rem; height: 1.2rem; color: var(--copper-500); flex: none; }

/* ---------- Brand strip ---------- */
.brand-strip {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 0.8rem;
  max-width: 54rem;
}
.brand-strip--left { justify-content: flex-start; margin: 1.5rem 0 0; max-width: none; }
.brand-strip li {
  margin: 0;
  padding: 0.55rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ---------- Trust band: continuous right-to-left marquee ---------- */
.trust-band {
  background: var(--steel-900);
  color: #fff;
  padding-block: 1.1rem;
  overflow: hidden;
}
.marquee { overflow: hidden; }
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Animation only starts once main.js has cloned enough items to loop cleanly,
   so there is no visible jump on the first pass. */
.marquee__track.is-running {
  animation: marquee var(--dur, 40s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-inline: clamp(1.6rem, 3.5vw, 3rem);
  margin: 0;
  flex: none;
}
.marquee__item svg {
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
  color: var(--copper-500);
}
.marquee__txt { display: flex; flex-direction: column; line-height: 1.2; }
.marquee__txt strong {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  white-space: nowrap;
}
.marquee__txt span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #9dbdd6;
  white-space: nowrap;
}
/* No JS, or reduced motion: the four items simply sit centred and still. */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none !important;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.8rem;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, var(--steel-900) 0%, var(--steel-700) 60%, #2b86c4 100%);
  border-radius: var(--radius-lg);
  border-left: 6px solid var(--copper-500);
  color: #eaf3fa;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  display: grid;
  gap: 1.6rem;
  align-items: center;
}
@media (min-width: 56rem) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 106, 43, 0.42), transparent 65%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { margin: 0; color: #cfe5f3; }
.cta-band .btn--call { box-shadow: 0 8px 28px -6px rgba(0, 0, 0, 0.4); }
.cta-band .phone-note { display: block; margin-top: 0.6rem; font-size: 0.88rem; color: #a9cfe8; text-align: center; }

/* ---------- Two-column content split ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
  .split > .order-first { order: -1; }
}
.split--top { align-items: start; }
.split__art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.split__art svg, .split__art img { width: 100%; height: auto; display: block; }
.split__art.map-embed { line-height: 0; }
.split__art.map-embed iframe {
  width: 100%;
  aspect-ratio: 13 / 9;
  display: block;
  border: 0;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  min-width: 34rem;
}
table.data th, table.data td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--mist); }
table.data th {
  background: var(--steel-900);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
table.data tr:last-child td { border-bottom: 0; }
table.data td strong { white-space: nowrap; }
table.data tbody tr:nth-child(even) { background: var(--steel-50); }
.table-note { font-size: 0.86rem; color: var(--muted); margin-top: 0.8rem; }

/* ---------- Callouts ---------- */
.note-box {
  margin: 1.8rem 0;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--steel-100);
  border-left: 5px solid var(--steel-700);
  background: var(--steel-50);
  border-radius: 0;
  font-size: 0.98rem;
}
.note-box strong:first-child { color: var(--steel-900); }
.note-box p:last-child { margin-bottom: 0; }
.note-box--warm { border-color: #efc9a8; border-left-color: var(--copper-500); background: var(--sand); }
.note-box--warm strong:first-child { color: var(--copper-700); }
.note-box--alert { border-color: #f0c4bb; border-left-color: var(--alert); background: var(--alert-50); }
.note-box--alert strong:first-child { color: var(--alert); }
.pullquote {
  margin: 2.2rem 0;
  padding: 1.6rem 1.8rem;
  border-left: 5px solid var(--copper-500);
  background: var(--sand);
  border-radius: 0;
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--ink);
}

/* ---------- Related / next-step pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.pill-row li { margin: 0; }
.pill-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease;
}
.pill-row a:hover { border-color: var(--copper-500); color: var(--copper-700); }
.pill-row a svg { width: 0.9rem; height: 0.9rem; color: var(--copper-500); flex: none; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card::before { display: none; }
.post-card__media { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.post-card__media svg { width: 100%; height: 100%; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__media .photo-slot { --ar: 16 / 9; width: 100%; height: 100%; border: 0; }
.post-card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 0.55rem; text-transform: uppercase; letter-spacing: 0.04em; }
.post-card .meta .tag { color: var(--copper-700); }
.post-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.post-card p { flex: 1; font-size: 0.98rem; }

/* Article (blog post) typography */
.prose { max-width: 46rem; }
.prose > p:first-of-type { font-size: 1.16rem; color: var(--ink); }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.7em; }
.prose figure { margin: 2.2rem 0; }
.prose figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 0.6rem; text-align: center; }
.prose .table-wrap { margin: 1.8rem 0; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-hero-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 2rem 0 0;
}
.article-hero-art svg, .article-hero-art img { width: 100%; height: auto; display: block; }

/* In-article / in-page diagrams */
.diagram {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
figure.figure { margin: 0; }
figure.figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.7rem;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #aec3d2;
  margin-top: clamp(3rem, 7vw, 5rem);
  font-size: 0.95rem;
  border-top: 4px solid var(--copper-500);
}
.site-footer .footer-grid {
  display: grid;
  gap: 2.4rem;
  padding-block: 3.4rem 2.4rem;
}
@media (min-width: 56rem) { .site-footer .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; } }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #aec3d2; }
.site-footer a:hover { color: #fff; }
/* The lockup uses navy text, so on the dark footer it sits in a white plate. */
.site-footer .brand {
  display: inline-flex;
  background: #fff;
  padding: 0.75rem 1rem;
  margin: 0 0 1.1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--copper-500);
}
.site-footer .brand-logo { height: 2.7rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .foot-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-top: 0.4rem;
}
.foot-phone svg { flex: none; width: 1.35rem; height: 1.35rem; }
.site-footer .foot-phone:hover { color: var(--copper-500); }
.site-footer .hours td { padding: 0.15rem 0; }
.site-footer .hours td:first-child { padding-right: 1.2rem; color: #84a0b2; }
.footer-services {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.8rem;
}
.footer-services h4 { margin-bottom: 0.9rem; }
.footer-services ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem 1.4rem;
  grid-template-columns: repeat(2, 1fr);
  font-size: 0.9rem;
}
@media (min-width: 46rem) { .footer-services ul { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .footer-services ul { grid-template-columns: repeat(4, 1fr); } }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
  font-size: 0.83rem;
  color: #84a0b2;
}

/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.d-1 { --d: 90ms; } .d-2 { --d: 180ms; } .d-3 { --d: 270ms; } .d-4 { --d: 360ms; }

/* Gentle float for hero art accents */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floaty { animation: floaty 7s ease-in-out infinite; }
.floaty--slow { animation-duration: 10s; }

/* Falling drip motif for plumbing artwork */
@keyframes drip {
  0% { transform: translateY(-6px); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(26px); opacity: 0; }
}
.drip { transform-box: fill-box; animation: drip 3.2s ease-in infinite; }
.drip--2 { animation-delay: 1.1s; }
.drip--3 { animation-delay: 2.2s; }

/* Soft pulse halo on call buttons */
@keyframes halo {
  0% { box-shadow: 0 0 0 0 rgba(189, 106, 43, 0.45); }
  70% { box-shadow: 0 0 0 14px rgba(189, 106, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(189, 106, 43, 0); }
}
.btn--pulse { animation: halo 2.6s ease-out infinite; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
