/* ==========================================================================
   Drainbusters, Lower Sackville
   Night navy with a safety-orange accent: the colours of a 2 a.m. call-out.
   Zilla Slab + Public Sans.
   ========================================================================== */

:root {
  /* Colours */
  --ink: #0c1622;
  --ink-deep: #060c14;
  --charcoal: #121f2e;
  --graphite: #1d2d40;
  --graphite-light: #2c405a;
  --silver: #b6c2cf;
  --silver-light: #e9eef3;
  --paper: #f5f3ee;
  --paper-deep: #e9e6df;
  --white: #ffffff;
  --text: #15202b;
  --text-muted: #55606c;
  --text-on-dark: #f1f4f7;
  --text-on-dark-muted: #b6c2cf;
  --line: #d8d4cb;
  --line-dark: rgba(255, 255, 255, 0.14);
  --input-border: #aaa59b;
  --placeholder: #6a737d;
  --silver-shine: #ffffff;
  --silver-shadow: #8fa0b3;
  --water: #5fb4e0;

  --accent: #c2410c;
  --accent-light: #cc4b10; /* 4.58:1 with white text, so the top of the orange gradients still passes */
  --accent-deep: #9a330a;
  --accent-ink: #a8380a;
  --accent-on-dark: #ff8a4c;
  --accent-glint: #ffd6bd;
  --accent-rgb: 194, 65, 12;
  --dark-rgb: 12, 22, 34;
  --error: #b3261e;

  /* Type */
  --font-heading: "Zilla Slab", Rockwell, Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.55rem + 2.1vw, 3.25rem);
  --fs-h1: clamp(2.375rem, 1.6rem + 3.9vw, 4.5rem);
  --fs-statement: clamp(2.5rem, 1.6rem + 4.4vw, 5.25rem);

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --container: 75rem;
  --nav-height: 4.75rem;
  --marquee-h: 4rem;
  --strip-h: 4.25rem;
  /* Marquee + strip: both show on the first desktop screen, under the hero */
  --below-hero: calc(var(--marquee-h) + var(--strip-h));

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-card: 0 4px 16px rgba(var(--dark-rgb), 0.06), 0 1px 3px rgba(var(--dark-rgb), 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-card-hover: 0 28px 56px rgba(var(--dark-rgb), 0.14), 0 10px 20px rgba(var(--dark-rgb), 0.08);
  --shadow-nav: 0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-btn: 0 4px 15px rgba(var(--accent-rgb), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --shadow-btn-hover: 0 12px 30px rgba(var(--accent-rgb), 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
  scroll-padding-bottom: 6rem; /* keeps focused items clear of the chat button */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-md);
}

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

a {
  color: var(--accent-ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color var(--transition-fast);
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--silver-light);
}

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

dl,
dd {
  margin: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.on-dark {
  color: var(--text-on-dark);
}

.on-dark a:not(.btn) {
  color: var(--accent-on-dark);
}

.on-dark a:not(.btn):hover {
  color: var(--white);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  color: var(--white);
  background: var(--accent-deep);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-md);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.4s var(--ease-spring);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-deep) 100%);
  box-shadow: var(--shadow-btn);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-lg {
  min-height: 56px;
  padding: 0.9rem 1.75rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* Secondary actions are plain underlined links */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.text-link:hover {
  color: var(--accent-ink);
  text-decoration-color: currentColor;
}

.on-dark .text-link--light,
.text-link--light {
  color: var(--text-on-dark);
}

.on-dark .text-link--light:hover,
.text-link--light:hover {
  color: var(--accent-glint);
}

/* ---------- Logo (type wordmark until we have his logo file) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--text-on-dark);
  text-decoration: none;
  line-height: 1;
}

.logo-mark {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  color: var(--accent-on-dark);
  transition: transform 0.6s var(--ease-spring);
}

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

.logo-word {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.logo-word em {
  font-style: normal;
  color: var(--accent-on-dark);
}

.logo-sub {
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

.logo:hover .logo-mark {
  transform: rotate(90deg);
}

/* ---------- Header and nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header--solid,
.site-header.scrolled,
.site-header.menu-open {
  background: var(--ink);
  box-shadow: var(--shadow-nav);
}

.site-header.scrolled::after,
.site-header--solid::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 40%, transparent 100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--nav-height);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu: solid opaque panel */
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-md) var(--gutter) var(--space-xl);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  box-shadow: var(--shadow-nav);
}

.nav-menu.open {
  display: flex;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}

.nav-links a:hover {
  color: var(--accent-on-dark);
}

/* Dropdowns: Services and About list every page under them. On phones each
   one opens in place inside the menu panel. */
.nav-item {
  display: flex;
  align-items: stretch;
}

.nav-item > a {
  flex: 1 1 auto;
}

.nav-links a.is-current {
  color: var(--accent-on-dark);
}

.sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  min-height: 48px;
  padding: 0;
  color: var(--text-on-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  cursor: pointer;
}

.sub-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.sub-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.sub-toggle:hover {
  color: var(--accent-on-dark);
}

.nav-links .sub-menu a {
  min-height: 44px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  border-bottom: 0;
}

.nav-links .sub-menu a:hover,
.nav-links .sub-menu a[aria-current="page"] {
  color: var(--accent-on-dark);
}

@media (max-width: 1023.98px) {
  /* The open menu scrolls on its own when the dropdowns make it taller than the screen */
  .nav-menu {
    max-height: calc(100svh - var(--nav-height));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sub-menu {
    display: none;
    padding: 0.25rem 0 0.5rem 1rem;
    border-bottom: 1px solid var(--line-dark);
  }

  .has-sub.open > .sub-menu {
    display: block;
  }

  /* The chat button would cover the menu's phone button: tuck it away while the menu is open */
  .site-header.menu-open ~ div > #cc-chat-toggle {
    visibility: hidden;
  }
}

.btn-nav {
  align-self: flex-start;
  border-radius: var(--radius-full);
  padding-inline: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  /* Room under the note for the floating chat button on phones */
  padding-bottom: 6.5rem;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg picture {
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Phones and tablets: the text would cover a full-screen photo, so the photo
   gets its own band above the text. The band takes whatever height is left
   over, and fades into the dark under the headline. */
@media (max-width: 1023.98px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0;
  }

  .hero-bg {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    min-height: 11rem;
    margin-bottom: var(--space-md);
    /* Keeps the slow zoom inside the band */
    overflow: hidden;
  }

  .hero-bg picture {
    position: absolute;
    inset: 0;
  }

  /* Phones get their own portrait crop of the photo */
  .hero-bg img {
    object-position: 50% 50%;
  }

  .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--dark-rgb), 0.92) 0%, rgba(var(--dark-rgb), 0.8) 20%, rgba(var(--dark-rgb), 0) 38%, rgba(var(--dark-rgb), 0) 70%, var(--ink) 94%);
  }

  .hero-overlay {
    display: none;
  }

}

@media (max-width: 767.98px) {
  /* The headline says it and the services marquee lists it right below */
  .hero-text {
    display: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--dark-rgb), 0.75) 0%, rgba(var(--dark-rgb), 0) 24%),
    linear-gradient(0deg, rgba(var(--dark-rgb), 0.96) 0%, rgba(var(--dark-rgb), 0.82) 50%, rgba(var(--dark-rgb), 0.35) 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.hero-content {
  max-width: 44rem;
}

.hero-title {
  font-size: var(--fs-h1);
  line-height: 1.04;
}

.hero-kicker {
  display: block;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--silver);
}

.hero-line {
  display: block;
}

.highlight {
  color: var(--accent-on-dark);
}

/* Keeps a phrase on one line so a heading wraps where it reads well */
.keep {
  white-space: nowrap;
}

.hero-text {
  max-width: 36rem;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-xl);
}

/* Glass note about the hero photo (tablet and up: on phones it would sit
   under the chat button) */
.hero-note {
  display: none;
  gap: 0.15rem;
  align-self: flex-start;
  max-width: 19rem;
  min-height: 44px;
  padding: 0.9rem 1.25rem;
  color: var(--text-on-dark);
  text-decoration: none;
  background: rgba(var(--dark-rgb), 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color var(--transition-base), transform 0.4s var(--ease-spring);
}

.on-dark a.hero-note,
.on-dark a.hero-note:hover {
  color: var(--text-on-dark);
}

.hero-note:hover {
  background: rgba(var(--dark-rgb), 0.65);
  transform: translateY(-3px);
}

.hero-note-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-on-dark-muted);
}

.hero-note-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-note-more {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-on-dark);
}

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  align-items: center;
  min-height: var(--marquee-h);
  overflow: hidden;
  /* Raised 3D band: lit top edge, shaded bottom edge */
  background: linear-gradient(180deg, var(--graphite) 0%, var(--charcoal) 45%, var(--ink-deep) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -6px 12px rgba(0, 0, 0, 0.45);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 600;
  color: var(--silver-light);
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.marquee-item::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-inline: 1.75rem;
  /* Glossy bead instead of a flat dot */
  background: radial-gradient(circle at 35% 30%, var(--accent-glint) 0%, var(--accent-light) 40%, var(--accent-deep) 100%);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.75), 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* ---------- Service area strip ---------- */
/* Bevelled 3D strip with a drop shadow onto the next section */
.area-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: var(--strip-h);
  padding-block: 0.75rem;
  color: var(--white);
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-deep) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 8px 18px rgba(var(--dark-rgb), 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.area-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.area-strip p {
  margin: 0;
  font-weight: 500;
}

.area-strip .area-hours {
  font-weight: 700;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  gap: var(--space-2xl);
}

.services-intro h2 span {
  display: block;
}

.services-intro p {
  max-width: 30rem;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.services-intro .text-link {
  margin-top: var(--space-sm);
}

.svc-list {
  border-top: 2px solid var(--text);
}

.svc {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.service-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.1rem;
  color: var(--accent);
}

.svc h3 {
  margin-bottom: var(--space-xs);
}

.svc p {
  max-width: 38rem;
  color: var(--text-muted);
}

/* ---------- Proof band: the 24/7 clock ---------- */
.proof {
  position: relative;
  overflow: hidden;
  /* Night sky over the city: a faint glow from below */
  background:
    radial-gradient(ellipse at 85% 120%, rgba(var(--accent-rgb), 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 10% -20%, rgba(95, 180, 224, 0.12) 0%, transparent 50%),
    var(--charcoal);
  isolation: isolate;
}

.proof::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-light), var(--accent-deep));
}

.proof-top {
  display: grid;
  gap: var(--space-xl);
  align-items: end;
}

.proof-title {
  font-size: var(--fs-statement);
  line-height: 1;
}

.proof-title > span {
  display: block;
}

.proof-accent {
  color: var(--accent-on-dark);
}

.proof-note {
  max-width: 28rem;
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
}

/* Live clock: "Right now it's 2:14 a.m. on Sunday" */
.clock {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  margin-bottom: var(--space-lg);
  padding: 0.55rem 1rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-full);
}

.clock-dot {
  width: 0.6rem;
  height: 0.6rem;
  align-self: center;
  background: #3ddc84;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.2);
}

.clock time {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.count {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.facts {
  display: grid;
  margin-top: var(--space-3xl);
  border-top: 1px solid var(--line-dark);
}

.fact {
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--line-dark);
}

.fact dt {
  margin-bottom: var(--space-2xs);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--white);
}

.fact dd {
  color: var(--text-on-dark-muted);
}

.fact dd a {
  font-weight: 600;
}

/* ---------- Recent jobs gallery ---------- */
.jobs-head {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.jobs-head p {
  max-width: 34rem;
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: var(--space-md);
}

.gallery-item {
  margin: 0;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--paper-deep);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
}

.gallery-btn img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item--wide .gallery-btn img {
  aspect-ratio: 16 / 9;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(var(--dark-rgb), 0);
  transition: background-color var(--transition-base);
}

.gallery-overlay svg {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  color: var(--white);
  background: rgba(var(--accent-rgb), 0.92);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.gallery-btn:hover .gallery-overlay,
.gallery-btn:focus-visible .gallery-overlay {
  background: rgba(var(--dark-rgb), 0.35);
}

.gallery-btn:hover .gallery-overlay svg,
.gallery-btn:focus-visible .gallery-overlay svg {
  opacity: 1;
  transform: scale(1);
}

.gallery-caption {
  margin: var(--space-xs) 0 0;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
}

.jobs-more {
  margin-top: var(--space-xl);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--gutter);
  background: rgba(7, 7, 8, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-figure {
  margin: 0;
  max-width: min(100%, 1100px);
  text-align: center;
}

.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 10rem);
  margin-inline: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-figure figcaption {
  margin-top: var(--space-md);
  color: var(--text-on-dark);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--accent);
}

.lightbox-close {
  top: var(--space-md);
  right: var(--space-md);
}

.lightbox-prev {
  left: var(--space-sm);
}

.lightbox-next {
  right: var(--space-sm);
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

/* ---------- About ---------- */
.about {
  background: var(--paper-deep);
}

.about-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.about-photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 45%;
}

.about-copy h2 {
  margin-bottom: var(--space-lg);
}

.about-lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--text);
}

.about-copy p:not(.about-lead) {
  color: var(--text-muted);
}

.about-copy .btn {
  margin-top: var(--space-md);
}

/* ---------- CTA banner ---------- */
.cta {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 7vw, 9rem);
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-bg picture,
.cta-bg img {
  width: 100%;
  height: 100%;
}

.cta-bg img {
  object-fit: cover;
  object-position: 50% 30%;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--dark-rgb), 0.94) 0%, rgba(var(--dark-rgb), 0.78) 45%, rgba(var(--dark-rgb), 0.35) 100%),
    radial-gradient(ellipse at 90% 110%, rgba(var(--accent-rgb), 0.3) 0%, transparent 55%);
}

.cta h2 {
  max-width: 42rem;
}

.cta h2 span {
  display: block;
}

.cta-accent {
  color: var(--accent-on-dark);
}

.cta p {
  max-width: 34rem;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-xl);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info > p {
  max-width: 28rem;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.contact-list {
  margin-top: var(--space-xl);
  border-top: 2px solid var(--text);
}

.contact-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--space-md);
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.contact-item dt {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text-muted);
  padding-top: 0.1rem;
}

.contact-item dd a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -10px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-item dd a[href^="tel:"] {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--text);
  text-decoration-color: var(--accent);
}

.form-panel {
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.5s var(--ease-spring), border-color 0.5s var(--ease-spring), transform 0.5s var(--ease-spring);
}

.form-fields {
  display: grid;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  gap: var(--space-lg);
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-field textarea::placeholder {
  color: var(--placeholder);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.3);
}

.form-field [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.field-error,
.form-error {
  margin: 0.4rem 0 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--error);
}

.form-error a {
  color: var(--error);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-captcha:empty {
  display: none;
}

.form-privacy {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.form-privacy a {
  display: inline-block;
  padding-block: 0.6rem;
}

.form-success h3 {
  margin-bottom: var(--space-sm);
}

.form-success:focus {
  outline: none;
}

/* ---------- Privacy page ---------- */
.legal {
  max-width: 50rem;
  padding-block: calc(var(--nav-height) + var(--space-2xl)) var(--space-3xl);
}

.legal h1 {
  margin-bottom: var(--space-xs);
  font-size: var(--fs-h2);
}

.legal h2 {
  margin: var(--space-xl) 0 var(--space-sm);
  font-size: var(--fs-h3);
}

.legal ul {
  margin-bottom: var(--space-md);
  padding-left: 1.25rem;
  list-style: disc;
}

.legal li {
  margin-bottom: var(--space-xs);
}

.legal-updated {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: var(--space-3xl);
  color: var(--text-on-dark-muted);
  background: var(--ink);
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer-brand p {
  max-width: 22rem;
  margin-top: var(--space-md);
}

.site-footer h2 {
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.site-footer li {
  margin-bottom: var(--space-xs);
}

.site-footer a:not(.logo):not(.social-link) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -8px;
  color: var(--text-on-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--transition-fast), transform 0.3s ease;
}

.site-footer a:not(.logo):not(.social-link):hover {
  color: var(--accent-on-dark);
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: var(--space-md);
  color: var(--text-on-dark);
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.social-link:hover {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.site-footer--bare {
  padding-top: 0;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xs) var(--space-xl);
  /* Extra room at the bottom so the chat button never covers the privacy link */
  padding-block: var(--space-lg) 5.5rem;
  font-size: var(--fs-small);
  border-top: 1px solid var(--line-dark);
}

/* ==========================================================================
   Breakpoints (mobile first)
   ========================================================================== */
@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-note {
    padding: 1rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-note {
    display: grid;
  }

  .area-strip-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
  }

  .area-hours {
    flex-shrink: 0;
  }

  .svc {
    grid-template-columns: 3rem 1fr;
    gap: var(--space-lg);
    padding-block: var(--space-xl);
  }

  .proof-top {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-2xl);
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
    border-top: 0;
  }

  .fact {
    padding: var(--space-lg) var(--space-lg) 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--line-dark);
  }

  .fact + .fact {
    padding-left: var(--space-lg);
    border-left: 1px solid var(--line-dark);
  }

  .jobs-head {
    grid-template-columns: 1fr 1.2fr;
    align-items: end;
    gap: var(--space-2xl);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .gallery-item--tall {
    grid-row: span 2;
  }

  .gallery-item--tall .gallery-btn,
  .gallery-item--tall .gallery-btn picture {
    height: calc(100% - 2.1rem);
  }

  .gallery-item--tall .gallery-btn img {
    height: 100%;
    aspect-ratio: auto;
  }

  .lightbox-prev {
    left: var(--space-lg);
  }

  .lightbox-next {
    right: var(--space-lg);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-links {
    display: flex;
    gap: var(--space-xl);
  }

  .nav-links a {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    font-size: 1rem;
    border-bottom: 0;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
  }

  .nav-links a:hover::after,
  .nav-links a:focus-visible::after {
    width: 100%;
  }

  .nav-links a:hover {
    color: var(--white);
  }

  .btn-nav {
    align-self: center;
    min-height: 46px;
    padding: 0.65rem 1.4rem;
  }

  /* Hero, marquee and strip all fit in the first desktop screen */
  .hero {
    min-height: calc(100svh - var(--below-hero));
    padding-top: calc(var(--nav-height) + 1.5rem);
    padding-bottom: clamp(2rem, 5vh, 4rem);
  }

  .hero--page {
    min-height: 100svh;
  }

  .hero-title {
    font-size: clamp(2.5rem, min(4.4vw, 8vh), 3.9rem);
  }

  .hero-content {
    max-width: 50rem;
  }

  .marquee {
    height: var(--marquee-h);
    padding-block: 0;
  }

  .area-strip {
    height: var(--strip-h);
    padding-block: 0;
  }

  /* On load the chat button sits inside the strip, clear of its text. It drops
     to its usual spot once the page scrolls. */
  .area-strip-inner {
    justify-content: flex-start;
    gap: clamp(1.25rem, 2.5vw, 2.5rem);
    font-size: clamp(0.9375rem, 1.35vw, 1.0625rem);
    white-space: nowrap;
  }

  .site-header:not(.scrolled):not(.site-header--solid) ~ div > #cc-chat-toggle {
    bottom: calc((var(--strip-h) - 53px) / 2);
  }

  .hero-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(var(--dark-rgb), 0.65) 0%, rgba(var(--dark-rgb), 0) 22%),
      linear-gradient(90deg, rgba(var(--dark-rgb), 0.97) 0%, rgba(var(--dark-rgb), 0.93) 50%, rgba(var(--dark-rgb), 0.72) 62%, rgba(var(--dark-rgb), 0.15) 84%, rgba(var(--dark-rgb), 0) 100%);
  }

  /* Beside the headline on tablets (desktop moves it down onto the counter) */
  .hero-note {
    align-self: flex-start;
    flex-shrink: 0;
    /* The marble is pale, so the glass needs more body for white text */
    background: rgba(var(--dark-rgb), 0.7);
  }

  .hero-note:hover {
    background: rgba(var(--dark-rgb), 0.82);
  }

  .services-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-3xl);
    align-items: start;
  }

  .services-intro {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
  }

  .about-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--space-3xl);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-3xl);
  }
}

/* Heavy below-fold sections render on demand */
.about,
.contact,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* ==========================================================================
   Premium animations (motion allowed only)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Hero */
  .hero-bg img {
    animation: hero-zoom-out 20s ease-out forwards;
  }

  .hero-kicker {
    animation: slide-down 0.8s var(--ease-spring) 0.2s both;
  }

  .highlight {
    background: linear-gradient(100deg, var(--accent-on-dark) 0%, var(--accent-on-dark) 40%, var(--accent-glint) 50%, var(--accent-on-dark) 60%, var(--accent-on-dark) 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shimmer 4s ease 1s both;
  }

  .hero-note {
    animation: pop-in 0.6s var(--ease-spring) 0.9s both;
  }

  .btn-pulse {
    animation: pulse-glow 2.5s ease-in-out 2s infinite;
  }

  .btn-nav {
    animation: nav-cta-pulse 2s ease-in-out infinite;
  }

  .btn-pulse:hover,
  .btn-nav:hover {
    animation-play-state: paused;
  }

  /* Marquee */
  .marquee-track {
    animation: scroll-marquee 13s linear infinite;
  }

  /* The live dot breathes, and the 24 and 7 pop in, then bounce */
  .clock-dot {
    animation: live-dot 2.4s ease-in-out infinite;
  }

  .js .proof:not(.counted) .count {
    opacity: 0;
  }

  .js .proof.counted .count {
    animation: pop-in 0.6s var(--ease-spring) both;
  }

  .js .proof.counted .count + .count,
  .js .proof.counted .proof-accent .count {
    animation-delay: 0.2s;
  }

  .js .proof.counted .count.bounce,
  .js .proof.counted .proof-accent .count.bounce {
    animation: stat-bounce 0.9s ease both;
  }

  /* Scroll reveals (only when JS is running) */
  .js .fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s var(--ease-spring), transform 1.2s var(--ease-spring);
  }

  .js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .js .svc-list .svc:nth-child(2) { transition-delay: 0.08s; }
  .js .svc-list .svc:nth-child(3) { transition-delay: 0.16s; }
  .js .svc-list .svc:nth-child(4) { transition-delay: 0.24s; }
  .js .svc-list .svc:nth-child(5) { transition-delay: 0.32s; }

  .js .gallery .gallery-item:nth-child(3n + 2) { transition-delay: 0.1s; }
  .js .gallery .gallery-item:nth-child(3n) { transition-delay: 0.2s; }

  .js .facts.fade-in .fact {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring);
  }

  .js .facts.visible .fact {
    opacity: 1;
    transform: none;
  }

  .js .facts .fact:nth-child(2) { transition-delay: 0.15s; }
  .js .facts .fact:nth-child(3) { transition-delay: 0.3s; }

  /* Service icons pop in as each row reveals */
  .js .svc .service-icon {
    transform: scale(0);
  }

  .js .svc.visible .service-icon {
    animation: icon-pop 0.6s var(--ease-spring) 0.3s both;
  }

  .svc:hover .service-icon {
    color: var(--accent-deep);
    transition: color var(--transition-base);
  }

  /* Gallery: lift and slow zoom */
  .gallery-btn:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
  }

  .gallery-btn:hover img {
    transform: scale(1.05);
  }

  .lightbox.open .lightbox-figure {
    animation: lightbox-zoom 0.4s var(--ease-spring) both;
  }

  /* About image slow zoom on reveal */
  .about-photo img {
    transform: scale(1.15);
  }

  .about-photo.visible img {
    transform: scale(1);
    transition: transform 12s linear;
  }

  /* Cards and panels */
  .form-panel:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-10px);
  }

  .about-photo {
    transition: box-shadow 0.5s var(--ease-spring);
  }

  .about-photo:hover {
    box-shadow: var(--shadow-card-hover);
  }

  /* Micro-interactions */
  .contact-item:hover {
    transform: translateX(8px);
  }

  .site-footer a:not(.logo):not(.social-link):hover {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .marquee-track {
    animation-duration: 12s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding: 0.4rem var(--gutter);
  }

  .marquee-item {
    font-size: 1rem;
    line-height: 1.5;
  }

  .marquee-item::after {
    margin-inline: 0.9rem;
  }

  .marquee-item:nth-child(n + 9) {
    display: none;
  }

  .marquee-item:nth-child(8)::after {
    display: none;
  }

  .btn,
  .hero-note,
  .contact-item,
  .gallery-btn,
  .gallery-btn img,
  .form-panel,
  .site-footer a {
    transition: color var(--transition-fast), background-color var(--transition-fast), opacity var(--transition-fast);
  }

  .btn:hover,
  .hero-note:hover,
  .gallery-btn:hover,
  .gallery-btn:hover img {
    transform: none;
  }
}

@keyframes hero-zoom-out {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gold-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.5) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 8px 40px rgba(var(--accent-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
}

@keyframes nav-cta-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
}

@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes icon-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes lightbox-zoom {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes live-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0.05); }
}

@keyframes stat-bounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-12px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-6px); }
  60% { transform: translateY(0); }
  75% { transform: translateY(-2px); }
}

@keyframes star-pop {
  0% { transform: scale(0) rotate(-30deg); }
  70% { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ==========================================================================
   Drainbusters additions: multi-page parts
   ========================================================================== */

/* Current page in the nav */
.nav-links a[aria-current="page"] {
  color: var(--accent-on-dark);
}

/* Services list rows link to their own pages */
.svc h3 a {
  color: var(--text);
  text-decoration: none;
}

.svc h3 a::after {
  content: " \2192";
  color: var(--accent);
  transition: margin-left var(--transition-base);
}

.svc h3 a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.svc-note {
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-ink);
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

.review-feature {
  margin: 0;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s var(--ease-spring), border-color 0.4s var(--ease-spring);
}

.review-feature blockquote {
  margin: var(--space-md) 0 var(--space-lg);
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

.review-feature figcaption {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.review-feature figcaption strong {
  color: var(--text);
}

.stars {
  display: flex;
  gap: 0.2rem;
  color: #e0a100;
}

.stars svg {
  width: 1.1rem;
  height: 1.1rem;
}

.reviews-copy p {
  max-width: 30rem;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + clamp(2.5rem, 2rem + 3vw, 4.5rem)) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 120%, rgba(var(--accent-rgb), 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 0%, rgba(95, 180, 224, 0.1) 0%, transparent 45%),
    var(--ink);
  isolation: isolate;
}

/* A run of pipe along the bottom edge */
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(180deg, var(--graphite-light) 0%, var(--graphite) 50%, var(--ink-deep) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero h1 {
  max-width: 48rem;
  font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  line-height: 1.05;
}

.page-hero .hero-kicker {
  margin-bottom: var(--space-sm);
}

.page-hero-text {
  max-width: 40rem;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
}

.page-hero .hero-actions {
  margin-top: var(--space-xl);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 var(--space-lg);
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--graphite-light);
}

.crumbs a {
  display: inline-block;
  padding-block: 0.6rem;
  margin-block: -0.6rem;
  color: var(--text-on-dark);
}

/* ---------- Article layout: copy plus a sticky call card ---------- */
.page-layout {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
}

.prose {
  max-width: 44rem;
}

.prose > * + * {
  margin-top: var(--space-md);
}

.prose h2 {
  margin-top: var(--space-2xl);
  font-size: clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: var(--space-xl);
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose .lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--text);
}

.checks {
  display: grid;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.checks li {
  position: relative;
  padding-left: 1.9rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.checks--two {
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: var(--space-xs) var(--space-xl);
}

/* Safety callout */
.callout {
  padding: var(--space-lg);
  background: #fff4ec;
  border: 1px solid #f3c9ae;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
}

.callout strong {
  display: block;
  margin-bottom: var(--space-2xs);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text);
}

.callout p {
  color: var(--text);
}

.page-photo {
  margin: var(--space-xl) 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.page-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-photo figcaption {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-small);
  color: var(--text-muted);
  background: var(--white);
}

/* Sticky call card */
.call-card {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  color: var(--text-on-dark);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(var(--accent-rgb), 0.25) 0%, transparent 60%),
    var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(var(--dark-rgb), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
}

.call-card h2 {
  font-size: 1.5rem;
  color: var(--white);
}

.call-card p {
  margin-top: var(--space-sm);
  color: var(--text-on-dark-muted);
}

.call-card .btn {
  width: 100%;
  margin-top: var(--space-lg);
}

.call-card .text-link {
  margin-top: var(--space-xs);
}

.call-card dl {
  margin-top: var(--space-lg);
  border-top: 1px solid var(--line-dark);
}

.call-card dl div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-sm);
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--line-dark);
}

.call-card dt {
  color: var(--text-on-dark-muted);
}

.call-card dd {
  font-weight: 600;
  text-align: right;
}

/* Other services, at the bottom of a service page */
.related {
  padding-block: var(--space-3xl);
  background: var(--paper-deep);
}

.related h2 {
  margin-bottom: var(--space-xl);
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
}

.related-list {
  display: grid;
  gap: 0 var(--space-xl);
  border-top: 2px solid var(--text);
}

.related-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color var(--transition-fast), padding var(--transition-base);
}

.related-list a::after {
  content: "\2192";
  color: var(--accent);
}

.related-list a:hover {
  color: var(--accent-ink);
}

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 2px solid var(--text);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  min-height: 3.5rem;
  padding-block: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base);
}

.faq-item[open] summary::after {
  content: "\2212";
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.faq-item summary:hover {
  color: var(--accent-ink);
}

.faq-answer {
  padding-bottom: var(--space-lg);
  max-width: 42rem;
  color: var(--text-muted);
}

/* ---------- Service areas ---------- */
.towns {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.town {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring), border-color 0.5s var(--ease-spring);
}

.town h2 {
  font-size: var(--fs-h3);
}

.town p {
  margin-top: var(--space-xs);
  color: var(--text-muted);
}

/* ---------- Payment methods ---------- */
.pay-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.pay-list li {
  padding: 0.3rem 0.75rem;
  font-size: var(--fs-small);
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
}

.form-urgent {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  font-size: var(--fs-small);
  background: #fff4ec;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.form-urgent a {
  font-weight: 700;
}

@media (min-width: 768px) {
  .related-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 1024px) {
  /* Tight at 1024 with the two dropdown arrows: keep the phone and tagline on one line */
  .nav-links {
    gap: var(--space-md);
  }

  .nav-menu {
    gap: var(--space-md);
  }

  .btn-nav,
  .logo-sub {
    white-space: nowrap;
  }

  .reviews-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-3xl);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 21rem;
    gap: var(--space-3xl);
  }

  .page-aside {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
  }

  .related-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .nav-links,
  .nav-menu {
    gap: var(--space-xl);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .review-feature:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
  }

  /* Review stars pop in one by one: on reveal in the reviews, on load in the hero */
  .js .review-feature .stars svg {
    transform: scale(0);
  }

  .js .review-feature.visible .stars svg,
  .hero-note .stars svg {
    animation: star-pop 0.3s var(--ease-spring) both;
  }

  .stars svg:nth-child(1) { animation-delay: 0.2s; }
  .stars svg:nth-child(2) { animation-delay: 0.3s; }
  .stars svg:nth-child(3) { animation-delay: 0.4s; }
  .stars svg:nth-child(4) { animation-delay: 0.5s; }
  .stars svg:nth-child(5) { animation-delay: 0.6s; }

  /* The hero note pops in at 0.9s, so its stars follow it */
  .hero-note .stars svg:nth-child(1) { animation-delay: 1.2s; }
  .hero-note .stars svg:nth-child(2) { animation-delay: 1.3s; }
  .hero-note .stars svg:nth-child(3) { animation-delay: 1.4s; }
  .hero-note .stars svg:nth-child(4) { animation-delay: 1.5s; }
  .hero-note .stars svg:nth-child(5) { animation-delay: 1.6s; }

  .call-card:hover,
  .town:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
  }

  .town:hover {
    border-color: var(--accent);
  }

  .related-list a:hover {
    padding-inline: var(--space-xs);
  }

  .svc h3 a:hover::after {
    margin-left: 0.3rem;
  }

  .faq-item[open] .faq-answer {
    animation: slide-down 0.5s var(--ease-spring) both;
  }

  .page-photo img {
    transition: transform var(--transition-slow);
  }

  .page-photo:hover img {
    transform: scale(1.05);
  }

  .js .page-hero .crumbs,
  .js .page-hero .hero-kicker {
    animation: slide-down 0.8s var(--ease-spring) 0.2s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-feature,
  .call-card,
  .town {
    transition: border-color var(--transition-fast);
  }
}

/* Footer with two link columns */
@media (min-width: 768px) {
  .footer-grid--4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid--4 {
    grid-template-columns: 1.4fr 1.1fr 0.9fr 1.1fr;
  }
}

.hero-note .stars {
  margin-bottom: 0.2rem;
}

/* Below-fold sections on inner pages render on demand */
.related,
.reviews {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

/* 404: no photo band, so clear the fixed header on every screen */
.hero.hero--page {
  justify-content: center;
  padding-top: calc(var(--nav-height) + var(--space-2xl));
}

/* ---------- Hero photo: the vessel sink (2026-12-05) ---------- */
/* Phones and tablets: keep the faucet and the drain in the band */
.hero-bg img {
  object-position: 50% 40%;
}

/* Tablets get a wide, short band: centre it on the drain */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero-bg img {
    object-position: 50% 64%;
  }
}

/* Desktop: the photo is a portrait panel on the right, fading into the navy
   behind the headline, so it shows at its own sharpness */
@media (min-width: 1024px) {
  .hero-bg {
    left: auto;
    width: 46%;
    overflow: hidden;
  }

  .hero:not(.hero--page) .hero-overlay {
    background:
      linear-gradient(180deg, rgba(var(--dark-rgb), 0.7) 0%, rgba(var(--dark-rgb), 0) 20%),
      radial-gradient(ellipse 55% 75% at 8% 95%, rgba(var(--accent-rgb), 0.16) 0%, transparent 70%),
      linear-gradient(90deg, var(--ink) 0%, var(--ink) 54%, rgba(var(--dark-rgb), 0.55) 57.5%, rgba(var(--dark-rgb), 0.12) 62%, rgba(var(--dark-rgb), 0) 66%);
  }

  /* Down on the marble counter, under the bowl */
  .hero-note {
    align-self: flex-end;
  }
}

/* ---------- Desktop dropdowns ---------- */
@media (min-width: 1024px) {
  .nav-menu {
    max-height: none;
    overflow: visible;
  }

  .has-sub {
    position: relative;
  }

  .nav-item {
    align-items: center;
  }

  .sub-toggle {
    width: 44px;
    min-height: 44px;
    margin: 0 -0.85rem 0 -0.25rem;
    color: var(--text-on-dark-muted);
    border-bottom: 0;
  }

  .sub-toggle svg {
    width: 15px;
    height: 15px;
  }

  .sub-menu {
    position: absolute;
    top: calc(100% + 0.9rem);
    left: -1rem;
    z-index: 10;
    min-width: 15rem;
    padding: 0.5rem;
    background: var(--ink);
    border: 1px solid var(--line-dark);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-nav);
    opacity: 0;
    visibility: hidden;
  }

  /* Bridges the gap between the link and the panel so hover holds */
  .sub-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 1.1rem;
  }

  .sub-menu--wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.25rem;
    width: 32rem;
  }

  .has-sub.open > .sub-menu {
    opacity: 1;
    visibility: visible;
  }

  .nav-links .sub-menu a {
    justify-content: flex-start;
    padding: 0 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-on-dark);
    border-radius: var(--radius-sm);
  }

  .nav-links .sub-menu a::after {
    content: none;
  }

  .nav-links .sub-menu a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .has-sub:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
  }

  .has-sub:hover .sub-toggle {
    color: var(--accent-on-dark);
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .sub-menu {
    transform: translateY(8px);
    transition: opacity 200ms ease, transform 0.35s var(--ease-spring), visibility 0s linear 0.35s;
  }

  .has-sub.open > .sub-menu {
    transform: none;
    transition-delay: 0s;
  }
}

@media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .has-sub:hover > .sub-menu {
    transform: none;
    transition-delay: 0s;
  }
}
