/* ==========================================================================
   Boss Waste — custom styles
   Loaded after Bootstrap 5.3.8. Bootstrap supplies the reset, the grid and the
   offcanvas; everything visual below is the design's own industrial treatment.

   Contents
   01  Design tokens
   02  Base elements
   03  Layout helpers
   04  Icons
   05  Buttons
   06  Section headings
   07  Header and navigation
   08  Hero
   09  Intro band
   10  Media figures
   11  Split bands
   12  Service band
   13  Stat tiles
   14  Case studies
   15  Coverage — map, form, chips
   16  Accreditations
   17  Closing band
   18  Footer
   19  WhatsApp widget
   20  Motion
   21  Responsive
   ========================================================================== */


/* ==========================================================================
   01  Design tokens
   ========================================================================== */

:root {
  /* Type families */
  --font-display: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Neutral ramp — near-white paper to ink */
  --paper: #f5f6f7;
  --white: #ffffff;
  --n-200: #dfe2e5;
  --n-500: #5e666c;
  --n-900: #101315;

  /* Brand green */
  --green-700: #16702a;
  --green-600: #33a843;
  --green-500: #46c757;
  --green-200: #bfe9c6;

  /* Action orange — the design's primary CTA colour */
  --orange-500: #e8641a;
  --orange-600: #ce550f;
  --orange-200: #f2a272;
  --orange-ink: #1a0d04;

  /* Surfaces */
  --bg-page: #1a1a19;
  --bg-surface: #211d1a;
  --bg-black: #000000;
  --bg-field: #111110;

  /* Text */
  --text-body: rgba(241, 242, 240, .78);
  --text-heading: #f1f2f0;
  --text-muted: rgba(241, 242, 240, .56);
  --text-on-dark: #f1f2f0;
  --text-brand: var(--green-500);

  /* Lines */
  --border-hairline: rgba(241, 242, 240, .14);
  --border-panel: rgba(255, 255, 255, .24);
  --border-panel-hover: rgba(255, 255, 255, .34);
  --border-inverse: rgba(245, 246, 247, .22);
  --rule-accent: var(--green-500);

  /* Type scale */
  --fs-display-1: 76px;  --lh-display-1: .95;
  --fs-h1: 44px;         --lh-h1: 1;
  --fs-h2: 34px;         --lh-h2: 1.05;
  --fs-h3: 21px;         --lh-h3: 1.25;
  --fs-body-lg: 19px;    --lh-body-lg: 1.6;
  --fs-body: 17px;       --lh-body: 1.65;
  --fs-body-sm: 15px;    --lh-body-sm: 1.6;
  --fs-caption: 13px;    --lh-caption: 1.4;

  --tracking-display: .005em;
  --tracking-eyebrow: .18em;

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;

  --gutter: 24px;
  --page-max: 1200px;
  --bar-max: 1440px;

  /* Shared inset from the viewport edge, so the hero headline and the floating
     WhatsApp button line up on the same right-hand edge. */
  --edge-inset: 24px;
  --section-y: 96px;
  --section-y-tight: 64px;

  /* Controls */
  --control-h: 48px;
  --control-h-sm: 38px;
  --control-h-lg: 56px;
  --field-h: 50px;

  /* Radii — the industrial pass keeps hard edges, controls stay pill */
  --r-0: 0;
  --r-1: 2px;
  --r-pill: 999px;

  /* Depth */
  --shadow-2: 0 6px 18px rgba(20, 24, 26, .08);
  --shadow-3: 0 18px 44px rgba(20, 24, 26, .14);
  --shadow-panel: 0 34px 80px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .12);
  --shadow-panel-hover: 0 40px 90px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .16);

  /* Motion */
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 320ms;
  --dur-reveal: 420ms;
  --ease-out: cubic-bezier(.2, .7, .3, 1);
  --transition-control:
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}


/* ==========================================================================
   02  Base elements
   ========================================================================== */

body {
  background: var(--bg-page);
  color: var(--text-body);
  font: 400 var(--fs-body) / var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: var(--tracking-display);
}

h1, h2 {
  text-transform: uppercase;
}

p {
  margin: 0 0 var(--sp-4);
}

a {
  color: var(--text-brand);
  text-decoration: none;
  border-bottom: 1px solid var(--green-200);
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

a:hover {
  color: var(--white);
  border-bottom-color: var(--green-500);
}

a[href^="tel:"] {
  border-bottom: none;
}

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

::selection {
  background: var(--green-500);
  color: var(--n-900);
}

/* Focus is invisible in the source design; AA needs it visible everywhere. */
:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
}

.bw-skip {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background: var(--green-500);
  color: var(--n-900);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: translateY(-200%);
}

.bw-skip:focus {
  transform: translateY(0);
}

.bw-sprite {
  display: none;
}

/* In-page jumps clear the sticky header rather than hiding under it. */
:target,
[id="main"],
[id="coverage"],
[id="closing"],
[id="svc-commercial"],
[id="svc-domestic"],
[id="services-title"],
[id="plant-title"] {
  scroll-margin-top: 128px;
}


/* ==========================================================================
   03  Layout helpers
   ========================================================================== */

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

/* The design's own 3-up grid and its two breakpoints. */
.bw-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}

.bw-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  font: 600 var(--fs-caption) / var(--lh-caption) var(--font-body);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-brand);
}

.bw-eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 4px;
  background: var(--rule-accent);
}

/* The recurring card treatment: gradient over concrete, hairline, deep shadow. */
.bw-panel {
  background-image:
    linear-gradient(165deg, rgba(42, 42, 40, .9) 0%, rgba(26, 26, 25, .93) 55%, rgba(16, 16, 15, .95) 100%),
    url("../images/texture-concrete.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-panel);
  border-radius: var(--r-0);
  box-shadow: var(--shadow-panel);
}


/* ==========================================================================
   04  Icons
   ========================================================================== */

.bw-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bw-icon--14 { width: 14px; height: 14px; }
.bw-icon--15 { width: 15px; height: 15px; }
.bw-icon--16 { width: 16px; height: 16px; }
.bw-icon--18 { width: 18px; height: 18px; }
.bw-icon--20 { width: 20px; height: 20px; }
.bw-icon--22 { width: 22px; height: 22px; }
.bw-icon--24 { width: 24px; height: 24px; }
.bw-icon--26 { width: 26px; height: 26px; }


/* ==========================================================================
   05  Buttons
   ========================================================================== */

.bw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: var(--control-h);
  padding-inline: var(--sp-5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-body-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-control);
}

.bw-btn--sm { height: var(--control-h-sm); padding-inline: var(--sp-4); font-size: var(--fs-caption); }
.bw-btn--lg { height: var(--control-h-lg); padding-inline: var(--sp-6); font-size: var(--fs-body); }
.bw-btn--block { width: 100%; }

.bw-btn--primary {
  background: var(--orange-500);
  color: var(--orange-ink);
}

.bw-btn--primary:hover {
  background: var(--orange-600);
  color: var(--orange-ink);
  transform: translateY(-1px);
}

.bw-btn--secondary {
  background: transparent;
  color: var(--orange-200);
  border-color: var(--orange-500);
}

.bw-btn--secondary:hover {
  background: rgba(232, 100, 26, .14);
  border-color: var(--orange-200);
  color: var(--orange-200);
  transform: translateY(-1px);
}

.bw-btn:active {
  transform: translateY(1px);
}

/* The uppercase display arrow-link used inside panels and cards. */
.bw-linkall,
.bw-readmore,
.bw-case__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border: none;
  font: 600 var(--fs-caption) / var(--lh-caption) var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bw-linkall,
.bw-case__cta {
  color: var(--orange-200);
}

.bw-linkall:hover {
  color: var(--orange-500);
}


/* ==========================================================================
   06  Section headings
   ========================================================================== */

.bw-heading {
  max-width: 760px;
}

.bw-heading--center {
  margin-inline: auto;
  text-align: center;
}

.bw-heading--center .bw-eyebrow {
  justify-content: center;
}

.bw-heading__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--text-heading);
}

.bw-heading__highlight {
  color: var(--green-500);
}

/* Two-tone headings. A heading that carries a highlight splits into a
   lighter, slightly tracked lead-in and a heavier, larger payoff line.
   Single-phrase headings (no highlight) stay solid 700 so they never read
   as thin. */
.bw-heading__title:has(.bw-heading__highlight) {
  font-weight: 700;
  font-size: calc(var(--fs-h2) * .62);
  line-height: 1.2;
  letter-spacing: .14em;
}

.bw-heading__highlight {
  display: block;
  margin-top: .15em;
  font-weight: 800;
  font-size: 2.1em;
  line-height: .95;
  letter-spacing: -.015em;
  text-wrap: balance;
}

/* Closing band: the payoff line becomes the statement. */
.bw-closing .bw-heading__highlight {
  font-size: 2.6em;
  letter-spacing: -.02em;
}

.bw-heading__lead {
  margin: var(--sp-4) 0 0;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--text-body);
}

.bw-prose {
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
}

.bw-prose p:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   07  Header and navigation
   ========================================================================== */

/* Out of flow and transparent, so the hero runs up behind it. The nav's own
   black pill carries the contrast, so no band is needed under it. */
.bw-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  padding: var(--sp-4) var(--gutter);
}

.bw-header__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  max-width: var(--bar-max);
  height: 72px;
  margin-inline: auto;
  padding: 0 var(--sp-3) 0 var(--sp-4);
  background: var(--bg-black);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}

.bw-header__brand,
.bw-footer__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: none;
}

.bw-header__brand img {
  height: 44px;
  width: auto;
}

.bw-header__nav {
  flex: 1 1 0;
  min-width: 0;
}

.bw-navlist {
  display: flex;
  justify-content: center;
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bw-navlist__link {
  display: block;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(247, 247, 247, .66);
}

.bw-navlist__link:hover,
.bw-navlist__link.is-active {
  color: var(--text-on-dark);
}

.bw-navlist__link.is-active {
  border-bottom-color: var(--green-500);
}

/* margin-left:auto keeps the actions hard right once the nav — which is the
   flex spacer on desktop — is hidden behind the burger on smaller screens. */
.bw-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 0 0 auto;
  margin-left: auto;
}

.bw-quote {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 8px 0 18px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--orange-500);
  color: var(--orange-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--transition-control);
}

.bw-quote:hover {
  background: var(--orange-600);
  color: var(--orange-ink);
}

.bw-quote__short {
  display: none;
}

.bw-quote__dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(26, 13, 4, .2);
}

.bw-burger {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border-inverse);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

/* Offcanvas menu — the design has no mobile nav, so this is built to match it. */
.bw-offcanvas {
  width: min(360px, 86vw);
  background: var(--bg-page);
  border-left: 1px solid var(--border-hairline);
}

.bw-offcanvas .offcanvas-header {
  padding: var(--sp-5);
  border-bottom: 1px solid var(--border-hairline);
}

.bw-offcanvas__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  text-transform: uppercase;
}

/* Bootstrap hangs the header's right-alignment off .btn-close's own auto
   margin, not off the header — so a custom close button has to supply it or
   it sits jammed against the title with the whole right side empty. */
.bw-offcanvas__close {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-inverse);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.bw-offcanvas .offcanvas-body {
  padding: var(--sp-5);
}

.bw-offcanvas__list {
  margin: 0 0 var(--sp-6);
  padding: 0;
  list-style: none;
}

.bw-offcanvas__list a {
  display: block;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.bw-offcanvas__list a:hover {
  color: var(--green-500);
}

.bw-offcanvas__tel {
  display: block;
  margin-top: var(--sp-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-on-dark);
  text-align: center;
}


/* ==========================================================================
   08  Hero
   ========================================================================== */

.bw-hero {
  position: relative;
  background: var(--bg-black);
  overflow: hidden;
}

.bw-hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
}

.bw-hero__media,
.bw-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-black);
}

.bw-hero__scrim {
  position: absolute;
  inset: auto 0 0;
  height: 13%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 55%, #000 100%);
}

.bw-hero__headline {
  position: absolute;
  left: 0;
  right: var(--edge-inset);
  bottom: max(24%, 160px);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.bw-hero__headline h1 {
  max-width: 400px;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  text-align: right;
  color: var(--text-on-dark);
  text-shadow: 5px 5px 0 #000, 0 2px 28px rgba(0, 0, 0, .9);
}

.bw-hero__headline h1 {
  font-weight: 500;
  letter-spacing: .03em;
}

.bw-hero__accent {
  display: block;
  margin-top: .06em;
  color: var(--green-500);
  font-weight: 800;
  font-size: 1.3em;
  line-height: .96;
  letter-spacing: -.012em;
}

.bw-hero__play {
  position: absolute;
  left: 6%;
  bottom: 8%;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.bw-hero__playbtn {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 2px solid rgba(247, 247, 247, .85);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: var(--text-on-dark);
  cursor: pointer;
  transition: var(--transition-control);
}

.bw-hero__playbtn:hover {
  background: rgba(0, 0, 0, .7);
  border-color: var(--green-500);
}

.bw-hero__playlabel {
  font: 600 var(--fs-caption) / var(--lh-caption) var(--font-body);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-on-dark);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}


/* ==========================================================================
   09  Intro band
   ========================================================================== */

.bw-intro {
  background: linear-gradient(178deg, #000 0%, #121211 14%, #1a1a19 40%, #1a1a19 100%);
}

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

.bw-intro__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}

.bw-routecard {
  padding: var(--sp-6);
  background-image:
    linear-gradient(158deg, rgba(12, 11, 9, .82) 0%, rgba(12, 11, 9, .72) 55%, rgba(12, 11, 9, .86) 100%),
    url("../images/texture-concrete.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(241, 242, 240, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

/* Same lift-and-lighten as the other panels. */
.bw-routecard:hover {
  background-image:
    linear-gradient(158deg, rgba(12, 11, 9, .66) 0%, rgba(12, 11, 9, .56) 55%, rgba(12, 11, 9, .72) 100%),
    url("../images/texture-concrete.jpg");
  border-color: rgba(241, 242, 240, .3);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .14);
  transform: translateY(-4px);
}

/* Embossed heading: stamped into the concrete, per the design. */
.bw-routecard__title {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: #9a9992;
  text-shadow:
    0 -2px 2px rgba(0, 0, 0, .95),
    0 -1px 0 rgba(0, 0, 0, .9),
    0 1px 0 rgba(255, 255, 255, .42),
    0 2px 3px rgba(255, 255, 255, .16);
}

.bw-routecard__body {
  margin-bottom: var(--sp-5);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--white);
}


/* ==========================================================================
   10  Media figures
   ========================================================================== */

.bw-figure {
  margin: 0;
}

.bw-figure__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
}

.bw-figure__frame--4x3 { aspect-ratio: 4 / 3; }
.bw-figure__frame--1x1 { aspect-ratio: 1 / 1; }

.bw-figure__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bw-figure__caption {
  margin-top: var(--sp-3);
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: rgba(255, 255, 255, .6);
}


/* ==========================================================================
   11  Split bands
   ========================================================================== */

.bw-split {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
  padding-block: var(--section-y);
}

.bw-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bw-split--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }


/* ==========================================================================
   12  Service band
   ========================================================================== */

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

.bw-services__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  align-items: flex-end;
  justify-content: space-between;
}

.bw-services__head > .bw-heading {
  flex: 1 1 460px;
  min-width: 0;
}

.bw-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  align-items: flex-end;
  justify-content: flex-end;
}

.bw-jump {
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  border: none;
}

.bw-jump__icon {
  width: 84px;
  height: 84px;
  filter: invert(1);
  opacity: .92;
}

.bw-jump__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bw-jump__label {
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: #17140f;
  color: var(--white);
  font: 600 var(--fs-caption) / var(--lh-caption) var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.bw-jump__dot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(232, 100, 26, .28);
  transition: var(--transition-control);
}

.bw-jump:hover .bw-jump__dot {
  background: #f07a2e;
}

.bw-services__panels {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

.bw-svcpanel {
  padding: var(--sp-7);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

/* The domestic panel sits a shade darker than the commercial one. */
#svc-commercial {
  background-image:
    linear-gradient(165deg, rgba(52, 52, 50, .88) 0%, rgba(34, 34, 33, .92) 55%, rgba(20, 20, 19, .94) 100%),
    url("../images/texture-concrete.jpg");
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}

#svc-commercial:hover {
  background-image:
    linear-gradient(165deg, rgba(66, 66, 63, .84) 0%, rgba(44, 44, 42, .9) 55%, rgba(26, 26, 25, .92) 100%),
    url("../images/texture-concrete.jpg");
}

#svc-domestic {
  background-image:
    linear-gradient(165deg, rgba(46, 46, 44, .9) 0%, rgba(28, 28, 27, .93) 55%, rgba(16, 16, 15, .95) 100%),
    url("../images/texture-concrete.jpg");
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
}

#svc-domestic:hover {
  background-image:
    linear-gradient(165deg, rgba(60, 60, 57, .86) 0%, rgba(38, 38, 36, .9) 55%, rgba(22, 22, 21, .93) 100%),
    url("../images/texture-concrete.jpg");
}

.bw-svcpanel:hover {
  border-color: rgba(255, 255, 255, .26);
  box-shadow: 0 34px 80px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: translateY(-4px);
}

.bw-svcpanel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.bw-svcpanel__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--white);
  text-shadow:
    0 -1px 1px rgba(0, 0, 0, .9),
    0 1px 0 rgba(255, 255, 255, .35),
    0 2px 3px rgba(0, 0, 0, .55);
}

.bw-svc {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  height: 100%;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-inverse);
}

.bw-svc__icon {
  width: 40px;
  height: 40px;
  margin-left: -2px;
  filter: invert(1);
}

.bw-svc__body {
  flex: 1;
}

.bw-svc__title {
  margin-bottom: var(--sp-2);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--green-500);
}

.bw-svc__text {
  margin: 0;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: rgba(247, 247, 247, .82);
}

.bw-svc__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.bw-readmore {
  color: var(--text-on-dark);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out);
}

.bw-readmore:hover {
  color: var(--text-on-dark);
  transform: scale(1.08);
}

.bw-svc__meta {
  font-size: var(--fs-caption);
  color: rgba(247, 247, 247, .6);
}


/* ==========================================================================
   13  Stat tiles
   ========================================================================== */

.bw-proof {
  background: var(--bg-page);
}

.bw-proof__inner {
  padding-block: var(--sp-7);
}

.bw-stat {
  position: relative;
  overflow: hidden;
  padding: var(--sp-6);
  /* Tighter than --shadow-panel so it fits inside .bw-proof__inner's padding */
  box-shadow: 0 12px 28px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

/* Same lift-and-lighten as the service panels, with the shadow kept short. */
.bw-stat:hover {
  background-image:
    linear-gradient(165deg, rgba(60, 60, 57, .86) 0%, rgba(38, 38, 36, .9) 55%, rgba(22, 22, 21, .93) 100%),
    url("../images/texture-concrete.jpg");
  border-color: var(--border-panel-hover);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .16);
  transform: translateY(-4px);
}

.bw-stat__glyph {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 132px;
  height: 132px;
  color: rgba(255, 255, 255, .06);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bw-stat__value {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 66px;
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--white);
}

.bw-stat__label {
  margin: var(--sp-3) 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-500);
}

.bw-stat__note {
  position: relative;
  margin: var(--sp-1) 0 0;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: rgba(255, 255, 255, .72);
}


/* ==========================================================================
   14  Case studies
   ========================================================================== */

.bw-work {
  background: var(--bg-page);
}

.bw-work__inner {
  padding-block: var(--sp-8);
}

.bw-work__heading {
  margin-bottom: var(--sp-6);
}

.bw-case {
  display: block;
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.bw-case:hover {
  border-color: var(--border-panel-hover);
  box-shadow: var(--shadow-panel-hover);
  transform: translateY(-3px);
}

.bw-case__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform var(--dur-reveal) var(--ease-out);
}

.bw-case:hover .bw-case__img {
  transform: scale(1.03);
}

.bw-case__body {
  padding: var(--sp-5);
}

.bw-case__service {
  margin: 0 0 var(--sp-2);
  font: 600 var(--fs-caption) / var(--lh-caption) var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-500);
}

.bw-case__title {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--white);
}

.bw-case__location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, .66);
}

.bw-work__more {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-6);
}


/* ==========================================================================
   15  Coverage — map, form, chips
   ========================================================================== */

.bw-coverage {
  background: var(--bg-page);
}

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

.bw-coverage__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--sp-7);
  align-items: start;
  margin-top: var(--sp-6);
}

/* Coverage map. It sits straight on the page — no plate behind it — so the gaps
   between regions (the Thames, the estuary, the coast) read as the dark ground. */
.bw-map {
  display: block;
  width: 100%;
  height: auto;
}

.bw-map__region {
  cursor: pointer;
}

/* The borders are transparent, so the traced gaps between regions show the page
   through as dark seams. Width is kept so the focus and selected strokes below
   have something to grow from. */
.bw-map__region path {
  fill: var(--bw-map-fill);
  stroke: transparent;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: filter var(--dur-base) var(--ease-out);
}

.bw-map__region text {
  fill: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  text-anchor: middle;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, .45);
  stroke-width: 5;
  pointer-events: none;
}

/* No stroke on hover — a white edge is what we just removed — so the fill
   carries the affordance on its own and has to lift further to register. */
.bw-map__region:hover path {
  filter: brightness(1.35);
}

/* The shapes are irregular, so a rectangular ring round the bounding box reads
   as a stray box. Focus thickens the region's own outline instead. */
.bw-map__region:focus {
  outline: none;
}

.bw-map__region:focus-visible path {
  stroke: var(--green-500);
  stroke-width: 5;
  filter: brightness(1.2);
}

.bw-map__region[aria-pressed="true"] path {
  stroke: var(--orange-500);
  stroke-width: 5;
  filter: brightness(1.2);
}

/* Region fills, sampled from the client's artwork. */
.bw-map__region[data-code="NW"] { --bw-map-fill: #064c90; }
.bw-map__region[data-code="N"]  { --bw-map-fill: #3b70b4; }
.bw-map__region[data-code="E"]  { --bw-map-fill: #3c72b5; }
.bw-map__region[data-code="W"]  { --bw-map-fill: #3e7bbd; }
.bw-map__region[data-code="EC"] { --bw-map-fill: #10508d; }
.bw-map__region[data-code="SW"] { --bw-map-fill: #084c91; }
.bw-map__region[data-code="WC"] { --bw-map-fill: #19548c; }
.bw-map__region[data-code="SE"] { --bw-map-fill: #18548d; }
.bw-map__region[data-code="RM"] { --bw-map-fill: #1074c3; }
.bw-map__region[data-code="CM"] { --bw-map-fill: #1980ce; }
.bw-map__region[data-code="CO"] { --bw-map-fill: #3990d4; }
.bw-map__region[data-code="SS"] { --bw-map-fill: #2f8ed5; }
.bw-map__region[data-code="DA"] { --bw-map-fill: #a1bb27; }
.bw-map__region[data-code="ME"] { --bw-map-fill: #4e9937; }
.bw-map__region[data-code="BR"] { --bw-map-fill: #a0ba29; }
.bw-map__region[data-code="TN"] { --bw-map-fill: #31883a; }
.bw-map__region[data-code="CT"] { --bw-map-fill: #7bb048; }

.bw-form {
  display: grid;
  gap: var(--sp-5);
  padding: var(--sp-7);
}

.bw-form__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
}

.bw-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-4);
}

.bw-label {
  display: block;
  float: none;
  width: auto;
  margin-bottom: var(--sp-2);
  padding: 0;
  font: 600 var(--fs-caption) / var(--lh-caption) var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .66);
}

.bw-req {
  color: var(--orange-500);
}

.bw-input {
  width: 100%;
  min-height: var(--field-h);
  padding: 0 14px;
  background: var(--bg-field);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-0);
  font-family: var(--font-body);
  font-size: 16px;
}

.bw-input::placeholder {
  color: rgba(255, 255, 255, .4);
}

.bw-input:focus {
  border-color: var(--green-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(70, 199, 87, .28);
}

.bw-input--code {
  font-family: var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bw-textarea {
  min-height: 96px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

.bw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.bw-chip {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-caption);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-control);
}

/* Only shown once something is actually selected, so it is never a dead control. */
.bw-clear {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding: 0;
  border: none;
  background: none;
  color: var(--orange-200);
  font: 600 var(--fs-caption) / var(--lh-caption) var(--font-body);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out);
}

.bw-clear:hover {
  color: var(--orange-500);
}

.bw-chip[aria-pressed="true"] {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: var(--orange-ink);
}

.bw-chip--code {
  min-width: 54px;
  font-family: var(--font-mono);
}

.bw-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--orange-500);
  color: var(--orange-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-body-sm);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-control);
}

.bw-submit:hover {
  background: var(--orange-600);
}

.bw-sent {
  padding: var(--sp-6);
  background: rgba(70, 199, 87, .1);
  border: 1px solid rgba(70, 199, 87, .45);
}

.bw-sent__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
}

.bw-sent__tick {
  display: flex;
  color: var(--green-500);
}

.bw-sent__body {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: rgba(255, 255, 255, .84);
}

/* Honeypot: parked off-screen rather than display:none, so a bot that
   ignores CSS still fills it and gives itself away. */
.bw-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bw-form__error {
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--orange-500);
  background: rgba(232, 100, 26, .14);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--white);
}

.bw-form__error:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 100, 26, .35);
}

.bw-form__error a {
  color: inherit;
  font-weight: 600;
}

/* Pulled up under the button so it reads as its footnote, not a new row. */
.bw-form__note {
  margin: calc(var(--sp-3) * -1) 0 0;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: rgba(255, 255, 255, .56);
}

.bw-form__note a {
  color: inherit;
}

.bw-submit[disabled] {
  opacity: .6;
  cursor: progress;
}


/* ==========================================================================
   16  Accreditations
   ========================================================================== */

.bw-accred {
  background: var(--bg-page);
}

.bw-accred__inner {
  padding-block: var(--section-y-tight);
  text-align: center;
}

.bw-accred__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: stretch;
  justify-content: center;
  margin: var(--sp-6) 0 0;
  padding: 0;
  list-style: none;
}

.bw-accred__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 132px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-1);
  background: var(--bg-surface);
}

.bw-accred__logo {
  height: 74px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}

.bw-accred__logo--fors { height: 82px; }
.bw-accred__logo--afc { height: 78px; }

.bw-accred__name {
  margin-top: var(--sp-2);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ==========================================================================
   17  Closing band
   ========================================================================== */

.bw-closing {
  background: var(--bg-page);
}

.bw-closing__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--sp-7);
  align-items: center;
  padding-block: var(--section-y-tight);
}

.bw-closing__actions {
  display: grid;
  gap: var(--sp-4);
  justify-items: start;
}

.bw-closing__tel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.05;
  color: var(--text-on-dark);
}

.bw-closing__tel:hover {
  color: var(--green-500);
}

.bw-closing__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}


/* ==========================================================================
   18  Footer
   ========================================================================== */

.bw-footer {
  background: var(--bg-black);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.bw-footer__inner {
  padding-block: var(--sp-9) var(--sp-6);
}

.bw-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-7);
  align-items: start;
}

.bw-footer__brand img {
  height: 56px;
  width: auto;
}

.bw-footer__address {
  margin: var(--sp-5) 0 0;
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  font-style: normal;
  color: rgba(247, 247, 247, .82);
}

.bw-footer__social {
  display: flex;
  gap: 10px;
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
}

.bw-footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-panel);
  border-radius: 50%;
  color: var(--white);
}

.bw-footer__social a:hover {
  border-color: var(--green-500);
  color: var(--green-500);
}

.bw-footer__head {
  margin: 0 0 var(--sp-4);
  font: 600 var(--fs-caption) / var(--lh-caption) var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-500);
}

.bw-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bw-footer__links a {
  display: block;
  padding: 5px 0;
  border: none;
  font-size: var(--fs-body-sm);
  color: rgba(247, 247, 247, .82);
}

.bw-footer__links a:hover {
  color: var(--white);
}

.bw-footer__accred {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bw-footer__accred li {
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--border-hairline);
}

.bw-footer__accred img {
  height: 46px;
  width: auto;
  opacity: .42;
  filter: grayscale(1) brightness(1.9) contrast(.9);
}

.bw-footer__note {
  margin: var(--sp-4) 0 0;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: rgba(247, 247, 247, .5);
}

.bw-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  /* Room under the last line for the fixed WhatsApp button, which otherwise
     covers the right-hand end of this bar at the bottom of the page. */
  padding-bottom: 72px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--fs-caption);
  color: rgba(247, 247, 247, .5);
}

.bw-footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.bw-footer__legal a:hover {
  color: var(--white);
}


/* ==========================================================================
   19  WhatsApp widget
   ========================================================================== */

.bw-wa {
  position: fixed;
  right: var(--edge-inset);
  bottom: var(--sp-5);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-3);
}

.bw-wa__panel {
  width: 268px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-3);
}

.bw-wa__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: #075e54;
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-body-sm);
}

.bw-wa__body {
  margin: 0;
  padding: var(--sp-4);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--text-body);
}

.bw-wa__start {
  display: block;
  margin: 0 var(--sp-4) var(--sp-4);
  padding: 12px;
  border: none;
  border-radius: var(--r-1);
  background: #25d366;
  color: #0b2e23;
  font-weight: 600;
  font-size: var(--fs-body-sm);
  text-align: center;
}

.bw-wa__start:hover {
  background: #1fbe5b;
  color: #0b2e23;
}

.bw-wa__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  height: 56px;
  padding-inline: var(--sp-5);
  border: none;
  border-radius: var(--r-pill);
  background: #25d366;
  color: #0b2e23;
  box-shadow: var(--shadow-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body-sm);
  cursor: pointer;
}


/* ==========================================================================
   19b  Quote pop-up (Bootstrap modal, built by initQuoteModal in main.js)

   The form inside is the homepage coverage form, so its fields, chips and
   upload pick up their existing styles; this only frames it.
   ========================================================================== */

.bw-qmodal {
  --bs-modal-zindex: 1060;
}

.bw-qmodal__dialog {
  max-width: 640px;
}

.bw-qmodal__content {
  border-radius: var(--r-0);
  overflow: hidden;
}

.bw-qmodal__head {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--border-hairline);
}

.bw-qmodal__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  text-transform: uppercase;
  color: var(--text-heading);
}

.bw-qmodal__lead {
  margin: var(--sp-1) 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

.bw-qmodal__close {
  flex: none;
}

.bw-qmodal__body {
  padding: 0;
}

.bw-qmodal .bw-form {
  padding: var(--sp-6);
}

.bw-qmodal .bw-sent {
  margin: var(--sp-6);
}

.modal-backdrop.show {
  opacity: .7;
}

@media (max-width: 575.98px) {
  /* Full-screen on phones: more room for the keyboard and the chips. */
  .bw-qmodal__dialog {
    margin: 0;
    max-width: none;
    height: 100%;
    max-height: none;
  }

  .bw-qmodal__content {
    height: 100%;
    max-height: none;
    border: none;
  }

  .bw-qmodal__head {
    padding: var(--sp-4) var(--sp-5);
  }

  .bw-qmodal .bw-form {
    padding: var(--sp-5);
  }

  .bw-qmodal .bw-sent {
    margin: var(--sp-5);
  }
}


/* ==========================================================================
   20  Motion
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .bw-figure__frame img {
    transition: transform var(--dur-reveal) var(--ease-out);
  }

  .bw-figure:hover img {
    transform: scale(1.03);
  }

  @keyframes bw-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }

  main > * {
    animation: bw-rise var(--dur-reveal) var(--ease-out) both;
  }

  main > *:nth-child(2) { animation-delay: 60ms; }
  main > *:nth-child(3) { animation-delay: 110ms; }
  main > *:nth-child(n + 4) { animation-delay: 150ms; }
}


/* ==========================================================================
   21  Responsive
   ========================================================================== */

/* Large desktop — the design's own compact-label breakpoint. */
@media (max-width: 1179.98px) {
  .bw-navlist {
    gap: var(--sp-4);
  }

  .bw-navlist__link,
  .bw-quote {
    font-size: 13px;
  }
}

/* Laptop */
@media (max-width: 1199.98px) {
  :root {
    --section-y: 72px;
  }

  .bw-svcpanel {
    padding: var(--sp-6);
  }
}

/* The design's grid steps */
@media (max-width: 1000px) {
  .bw-grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet — nav collapses behind the burger, split bands stack */
@media (max-width: 991.98px) {
  :root {
    --fs-h2: 30px;
    --section-y: 64px;
  }

  .bw-header__nav {
    display: none;
  }

  .bw-burger {
    display: grid;
  }

  .bw-quote__full {
    display: none;
  }

  .bw-quote__short {
    display: inline;
  }

  .bw-split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
  }

  .bw-split--wide > .bw-figure {
    order: -1;
  }

  .bw-services__head {
    align-items: flex-start;
  }

  .bw-jumps {
    justify-content: flex-start;
    width: 100%;
  }

  .bw-jump {
    flex: 1 1 240px;
  }

  .bw-coverage__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bw-closing__tel {
    font-size: 38px;
  }
}

/* Tablet portrait — the hero switches to the 9:16 crop */
@media (max-width: 767.98px) {
  /* Height of the play control block: button + gap + label. */
  .bw-hero {
    --hero-play-h: 100px;
  }

  .bw-hero__frame {
    aspect-ratio: 941 / 1672;
    max-height: 88vh;
  }

  .bw-hero__media,
  .bw-hero__video {
    object-fit: cover;
  }

  /* Stacked hero: the headline is anchored to the play control rather than to a
     share of the frame, so the two read as one bottom-left block whatever the
     viewport height does to the 9:16 crop. */
  .bw-hero__headline {
    left: var(--gutter);
    bottom: calc(var(--sp-6) + var(--hero-play-h) + var(--sp-4));
  }

  .bw-hero__headline h1 {
    max-width: none;
    font-size: var(--fs-h1);
  }

  .bw-hero__play {
    left: var(--gutter);
    bottom: var(--sp-6);
  }

  .bw-footer__legal {
    flex-direction: column;
    gap: var(--sp-2);
  }
}

/* Phone */
@media (max-width: 680px) {
  :root {
    --gutter: 18px;
    --edge-inset: 16px;
    --fs-h2: 27px;
    --fs-body-lg: 17px;
    --section-y: 56px;
    --section-y-tight: 48px;
  }

  .bw-grid3 {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Long uppercase labels cannot stay on one line in a narrow card, so buttons
     go full width and wrap instead of pushing the page sideways. */
  .bw-btn {
    height: auto;
    min-height: var(--control-h);
    padding-block: 12px;
    padding-inline: var(--sp-4);
    white-space: normal;
    text-align: center;
  }

  .bw-routecard .bw-btn,
  .bw-split .bw-btn {
    width: 100%;
  }

  /* Codes carry the map at phone width, so they step up as it shrinks. */
  .bw-map__region text {
    font-size: 46px;
    stroke-width: 7;
  }

  .bw-header {
    padding: var(--sp-3) var(--gutter);
  }

  .bw-header__bar {
    height: 64px;
    padding-right: var(--sp-2);
  }

  .bw-header__brand img {
    height: 34px;
  }

  .bw-quote {
    height: 44px;
    padding: 0 6px 0 14px;
    font-size: 12px;
  }

  .bw-quote__dot {
    width: 30px;
    height: 30px;
  }

  .bw-burger {
    width: 44px;
    height: 44px;
  }

  .bw-hero__headline h1 {
    font-size: 32px;
  }

  .bw-hero {
    --hero-play-h: 88px;
  }

  .bw-hero__playbtn {
    width: 60px;
    height: 60px;
  }

  .bw-routecard,
  .bw-svcpanel,
  .bw-form,
  .bw-stat {
    padding: var(--sp-5);
  }

  .bw-stat__value {
    font-size: 48px;
  }

  .bw-stat__glyph {
    width: 104px;
    height: 104px;
  }

  .bw-jumps {
    gap: var(--sp-5);
  }

  .bw-jump__icon {
    width: 64px;
    height: 64px;
  }

  .bw-jump__label {
    padding: 10px 16px;
    font-size: 12px;
  }

  .bw-jump__dot {
    width: 40px;
    height: 40px;
  }

  .bw-svcpanel__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
  }

  .bw-form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .bw-closing__tel {
    font-size: 32px;
  }

  .bw-closing__buttons .bw-btn {
    width: 100%;
  }

  .bw-wa {
    bottom: var(--sp-4);
  }

  .bw-wa__toggle {
    height: 52px;
    padding-inline: var(--sp-4);
  }

  .bw-wa__panel {
    width: min(268px, calc(100vw - var(--sp-8)));
  }
}

/* Very narrow phones. The logo, the quote pill and the burger stop fitting the
   nav bar around 360px, and the bar clips its overflow, so they all tighten
   rather than the burger silently disappearing. */
@media (max-width: 360px) {
  .bw-header__bar {
    gap: var(--sp-2);
    padding-left: var(--sp-3);
  }

  .bw-header__brand img {
    height: 26px;
  }

  .bw-header__actions {
    gap: var(--sp-2);
  }

  .bw-quote {
    height: 40px;
    padding: 0 5px 0 12px;
    font-size: 11px;
  }

  .bw-quote__dot {
    width: 26px;
    height: 26px;
  }

  .bw-burger {
    width: 40px;
    height: 40px;
  }
}

/* ---- Quote form: photo upload ------------------------------------------- */
.bw-label__opt {
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .45);
}

.bw-upload {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 0;
  padding: var(--sp-5) var(--sp-4);
  background: var(--bg-field);
  border: 1px dashed rgba(255, 255, 255, .35);
  border-radius: var(--r-0);
  color: var(--white);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}

.bw-upload:hover,
.bw-upload.is-over {
  border-color: var(--green-500);
}

.bw-upload:focus-within {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(70, 199, 87, .28);
}

.bw-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bw-upload__icon {
  color: var(--green-500);
}

.bw-upload__text {
  font: 600 var(--fs-body) / 1.3 var(--font-body);
}

.bw-upload__help {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .55);
}

.bw-upload__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-3) 0 0;
  padding: 0;
  list-style: none;
}

.bw-upload__item {
  position: relative;
  width: 64px;
  height: 64px;
}

.bw-upload__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-0);
  border: 1px solid rgba(255, 255, 255, .22);
}

.bw-upload__remove {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--white);
  cursor: pointer;
}

.bw-upload__remove:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 1px;
}

.bw-upload__msg {
  margin: var(--sp-2) 0 0;
  font-size: 13px;
  color: var(--orange-500);
}
