@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bebas-neue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-7cHpv4kjgoGqM7E_A8s5ynghnQci.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-7cHpv4kjgoGqM7E_Ass5ynghnQci.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-7cHpv4kjgoGqM7E_DMs5ynghnQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-7cHqv4kjgoGqM7E3_-gs6Fostz0rdom9.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-7cHqv4kjgoGqM7E3_-gs6Vostz0rdom9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-7cHqv4kjgoGqM7E3_-gs51ostz0rdg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-7cHqv4kjgoGqM7E30-8s6Fostz0rdom9.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-7cHqv4kjgoGqM7E30-8s6Vostz0rdom9.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-7cHqv4kjgoGqM7E30-8s51ostz0rdg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlowcondensed-HTxwL3I-JCGChYJ8VI-L6OO_au7B4873z3nWuYMBYrp0xg.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlowcondensed-HTxwL3I-JCGChYJ8VI-L6OO_au7B4873z3jWuYMBYrp0xg.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlowcondensed-HTxwL3I-JCGChYJ8VI-L6OO_au7B4873z3bWuYMBYro.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlowcondensed-HTxwL3I-JCGChYJ8VI-L6OO_au7B46r2z3nWuYMBYrp0xg.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlowcondensed-HTxwL3I-JCGChYJ8VI-L6OO_au7B46r2z3jWuYMBYrp0xg.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlowcondensed-HTxwL3I-JCGChYJ8VI-L6OO_au7B46r2z3bWuYMBYro.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/barlowcondensed-HTxwL3I-JCGChYJ8VI-L6OO_au7B47b1z3nWuYMBYrp0xg.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/barlowcondensed-HTxwL3I-JCGChYJ8VI-L6OO_au7B47b1z3jWuYMBYrp0xg.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/barlowcondensed-HTxwL3I-JCGChYJ8VI-L6OO_au7B47b1z3bWuYMBYro.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Driveway Service
   Palette from the logo: road blue, night navy, asphalt grey, stone white.
   Display type: Barlow Condensed. Body: Barlow. */

:root {
  --blue: #2f74dc;
  --blue-hover: #4488ea;
  --blue-bright: #4d8ef0;
  --night: #0a1118;
  --ink: #e9eef4;
  --ink-soft: #aebbca;
  --stone: #f3f5f7;
  --line: #2a3a4b;
  --white: #ffffff;
  --surface: #111a24;
  --surface-alt: #172330;
  --radius: 4px;
  color-scheme: dark;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--surface);
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  color: var(--ink);
  line-height: 1;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.6rem;
  color: var(--blue);
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 720px;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.55;
}

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

/* ---------- Header: floating, frosted, slim ---------- */

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1260px, calc(100% - 24px));
  z-index: 20;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(10, 30, 60, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(10, 30, 60, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.header-inner {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  padding: 6px 6px 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Over the before and after photo the header gets a darker, more solid glass, so the words stay readable */
:root .site-header.over-photo,
:root .site-header.over-photo.scrolled {
  background: rgba(16, 16, 16, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.logo {
  flex: 0 0 auto;
  padding: 4px 0;
  touch-action: manipulation;
}

.logo img {
  width: 148px;
  height: auto;
  filter: drop-shadow(0 3px 5px rgba(10, 30, 70, 0.35));
  transition: transform 0.35s var(--ease);
}

.logo:hover img,
.logo:focus-visible img {
  transform: scale(1.12);
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav > a,
.nav-toggle {
  position: relative;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.6;
  text-decoration: none;
  padding: 6px 0;
}

.main-nav > a::after,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}

.main-nav > a:hover::after,
.main-nav > a[aria-current="page"]::after,
.nav-item:hover .nav-toggle::after,
.nav-toggle.active::after {
  transform: scaleX(1);
}

.main-nav > a[aria-current="page"],
.nav-toggle.active {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-toggle {
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.6;
  padding: 6px 0;
  cursor: pointer;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -6px);
  padding-top: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-box {
  min-width: 230px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(10, 30, 60, 0.16);
}

.dropdown a {
  display: block;
  padding: 11px 16px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.dropdown a:hover,
.dropdown a[aria-current="page"] {
  background: var(--surface-alt);
  color: var(--blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px 12px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  gap: 7px;
}

/* ---------- Buttons: a dark fill sweeps across on hover ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  transition: border-color 0.35s var(--ease), transform 0.18s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--night);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
}

.btn:hover {
  border-color: var(--night);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.2rem;
}

.btn-icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.98rem;
}

/* ---------- Before and after (home) ---------- */

.ba-track {
  position: relative;
  height: 240vh;
}

.ba-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
}

.ba-frame {
  --pos: 50%;
  /* Degrees the line leans. Clockwise, so the top sits to the right of the bottom */
  --tilt: 5;
  --dx: 0px;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #dfeaf2;
  contain: layout paint;
}

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

/* The cut follows the tilted line: --dx is half the frame height times the tilt, set in script.js */
.ba-after {
  clip-path: polygon(0 0, calc(var(--pos) + var(--dx)) 0, calc(var(--pos) - var(--dx)) 100%, 0 100%);
}

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 4px;
  margin-left: -2px;
  background: var(--surface);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
  transform: rotate(calc(var(--tilt) * 1deg));
}

/* Light band that travels with the line and lights the photos either side of it */
.ba-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -110px;
  width: 220px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14) 50%, transparent);
  filter: blur(8px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.ba-line::after {
  content: "\2194";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--tilt) * -1deg));
  transition: transform 0.45s var(--ease);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  /* Frosted glass: blurs and brightens whatever photo is behind it */
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px) saturate(1.6) brightness(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.6) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 52px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -6px 12px rgba(255, 255, 255, 0.12), 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.45s var(--ease);
}

/* Pressing the line swells the handle, then it springs back on release */
.ba-frame.is-dragging .ba-line::after {
  transform: translate(-50%, -50%) rotate(calc(var(--tilt) * -1deg)) scale(1.12);
}

.ba-middle {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
}

/* Shown only while the after photo is the one on screen */
.ba-cta {
  display: inline-flex;
  margin-top: 30px;
  padding: 20px 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.12), 0 12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ba-frame.is-after .ba-cta {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ba-frame.is-after .ba-cta:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.14));
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 14px 36px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px) scale(1.04);
}

.ba-frame.is-after .ba-cta:active {
  transform: translateY(0) scale(0.97);
}

.swap {
  position: relative;
  display: inline-grid;
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 3px rgba(10, 25, 45, 0.45), 0 0 6px rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.swap span {
  grid-area: 1 / 1;
  text-align: center;
  white-space: nowrap;
}

/* Each letter switches on its own as the line passes it: it blurs and slides in or out.
   The script sets transition delays so letters near the line move first. */
.swap .w {
  white-space: nowrap;
}

.swap .ch {
  display: inline-block;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease);
}

.swap .ch.out {
  opacity: 0;
  filter: blur(4px);
}

/* The old wording leaves upward, the new wording settles up into place, both only a short way */
.swap-from .ch.out {
  transform: translateY(-0.05em);
}

.swap-to .ch.out {
  transform: translateY(0.05em);
}

@media (prefers-reduced-motion: reduce) {
  .swap .ch {
    transition: none;
  }
}

/* ---------- Moving band ---------- */

.marquee {
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeRight 32s linear infinite;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
}

.marquee-group span {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 0 26px;
}

.marquee-group span::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 52px;
  border-radius: 50%;
  background: var(--blue-bright);
}

@keyframes marqueeRight {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(96px, 11vw, 160px) 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-head {
  max-width: 680px;
  margin: 0 0 56px;
}

.section-head p {
  margin: 18px 0 0;
  font-size: 1.15rem;
}

/* ---------- Services (home): headline left, photo rows right ---------- */

.services-split {
  display: grid;
  gap: 56px;
}

.services-intro {
  display: grid;
  gap: 18px;
}

.services-intro h2 {
  font-size: clamp(2.8rem, 6.4vw, 4.6rem);
  white-space: nowrap;
}

.services-intro p {
  font-size: 1.2rem;
  margin: 0;
  max-width: none;
}

/* Black background and a wider container, so the cards are bigger */
.services-section {
  background: #0b0b0b;
}

.services-section .container {
  max-width: 1440px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Each service is a card: photo on top, text and button below, so the three line up */
.service-row {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-soft);
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}

.service-row:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  background: #1c1c1c;
}

.service-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 0;
  transition: transform 0.6s var(--ease);
}

.service-row > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 28px;
}

.service-row:hover img {
  transform: scale(1.04);
}

.service-row h3 {
  margin-bottom: 10px;
  transition: color 0.3s;
}

.service-row:hover h3 {
  color: var(--blue-hover);
}

/* Service names: white and larger in the services section */
.services-split .service-row h3,
.services-split .service-row:hover h3 {
  color: var(--white);
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: 0.03em;
}

/* ---------- Scroll animations for reviews and service cards ----------
   These play once, when the script adds .seen. Without it, everything shows as normal. */

.review.seen::after {
  animation: sheen 1.4s 0.2s ease;
}

.review.seen .stars {
  animation: starsWipe 1s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.review.seen .avatar {
  animation: ringPop 0.8s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.review.seen p {
  animation: rise 0.8s 0.35s ease both;
}

.review.seen footer {
  animation: rise 0.8s 0.5s ease both;
}

.service-row.seen img {
  animation: settle 1.4s ease;
}

.service-row.seen .card-link {
  animation: rise 0.7s 0.5s ease both;
}

@keyframes sheen {
  to { transform: translateX(100%); }
}

@keyframes starsWipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes ringPop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: none; }
}

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

@keyframes settle {
  from { transform: scale(1.12); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-road,
  .steps li,
  .steps li *,
  .steps li::after,
  .why-bg::before,
  .why-bg::after,
  .services-bg,
  .services-bg::before,
  .review,
  .review *,
  .review::after,
  .service-row,
  .service-row * {
    animation: none !important;
  }
}

.service-row p {
  margin: 0 0 10px;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 700;
  transition: background 0.25s var(--ease);
}

/* Learn more: a blue outline, filled blue when hovered or focused */
.services-split .card-link {
  align-self: flex-start;
  margin-top: 20px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--blue);
}

.services-split .service-row:hover .card-link,
.services-split .service-row:focus-visible .card-link {
  background: var(--blue);
}

/* ---------- Paint-line wipe on photos ---------- */

.wipe {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease);
}

.wipe.painted {
  clip-path: inset(0 0 0 0);
}

/* ---------- Stand out: dark section, split in two ---------- */

.stand-out {
  background: var(--night);
  color: #cfd8e3;
  padding: 140px 0 130px;
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
  margin-top: 0;
}

.stand-out h2 {
  color: var(--white);
}

.stand-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

.stand-left {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.6fr;
  gap: 56px;
  align-items: start;
}

.stand-right .section-head {
  max-width: none;
  margin-bottom: 44px;
}

.stand-left .section-head {
  margin-bottom: 0;
}

.stand-left .section-head p {
  color: #b9c5d2;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.why-item {
  padding: 26px 0;
  border-bottom: none;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}

.why-item h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.why-item p {
  margin: 0;
  color: #b9c5d2;
}

.why-item:hover {
  padding-left: 18px;
  background: rgba(77, 142, 240, 0.08);
}

.stand-right .section-head p {
  color: #b9c5d2;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Review cards: Google's dark theme colours */
.review {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: 22px 24px 20px;
  border-radius: 24px;
  background: #292a2d;
  border: 1px solid #3c4043;
  color: #e8eaed;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

/* Cursor spotlight: a soft light follows the pointer across the card */
.review::before,
.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.review:hover::before,
.service-row:hover::before {
  opacity: 1;
}

.service-row > * {
  position: relative;
}

/* A light sheen that crosses the card once when it comes into view */
.review::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.05) 50%, transparent 65%);
  transform: translateX(-100%);
  pointer-events: none;
}

.review > * {
  position: relative;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-head > div {
  position: relative;
  top: -1px;
}

.review-head strong {
  display: block;
  color: #e8eaed;
  font-size: 1rem;
  font-weight: 600;
}

.stars {
  display: block;
  color: #fbbc04;
  letter-spacing: 1px;
  font-size: 0.95rem;
  margin-top: 2px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.review p {
  margin: 14px 0 12px;
  color: #bdc1c6;
  font-size: 1rem;
  line-height: 1.55;
}

/* Pushed to the bottom of the card, so the footer lines up across cards of different text lengths */
.review footer {
  margin-top: auto;
  font-size: 0.82rem;
  color: #9aa0a6;
}

.review:hover {
  transform: translateY(-4px);
  border-color: #5f6368;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 14px 32px rgba(0, 0, 0, 0.45);
}

/* ---------- How it works: steps, glow on hover ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Steps: dark glass cards, like the service cards and reviews */
.steps li {
  position: relative;
  overflow: hidden;
  padding: 28px 26px 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}

.steps li > * {
  position: relative;
}

.steps li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.steps li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.05) 50%, transparent 65%);
  transform: translateX(-100%);
  pointer-events: none;
}

.step-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 12px;
}

.steps h3 {
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.03em;
  color: #ffffff;
  margin-bottom: 8px;
}

.steps li p {
  color: #bdc1c6;
}

.steps li:hover {
  transform: translateY(-5px);
  border-color: #5f6368;
  background: rgba(255, 255, 255, 0.07);
}

.steps li:hover::before {
  opacity: 1;
}

/* Background for the section: a grid with a light line that scans down slowly */
.steps-section {
  position: relative;
  overflow: hidden;
  background: #0b0b0b;
}

.steps-section > .container {
  position: relative;
}

.steps-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 90px);
}

/* Each step plays its entrance once, when it comes into view */
.steps li.seen::after {
  animation: sheen 1.4s 0.2s ease;
}

.steps li.seen .step-num {
  animation: ringPop 0.8s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.steps li.seen h3 {
  animation: rise 0.8s 0.25s ease both;
}

.steps li.seen p {
  animation: rise 0.8s 0.4s ease both;
}

/* ---------- Calls to action ---------- */

/* Closing band: black background with a faint drifting dot grid, and a dark glass panel for the text */
.cta-band {
  position: relative;
  overflow: hidden;
  background: #0b0b0b;
  color: var(--white);
  padding: 130px 0;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.5px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  animation: dotDrift 40s linear infinite;
  z-index: -1;
}

.cta-band > div {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 48px;
  border-radius: 18px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.cta-band h2 {
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1;
  margin-bottom: 16px;
}

.cta-band p {
  color: #bdc1c6;
  font-size: 1.15rem;
  margin: 0;
}

/* Home page "Free estimates": a photo background under a dark overlay, with the text and a Contact Us button */
.cta-band.cta-free {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.8), rgba(8, 8, 8, 0.92)), url("images/paving-v2.webp") center / cover no-repeat;
}

.cta-band.cta-free::before {
  display: none;
}

.cta-band.cta-free > div {
  padding: 0;
  background: none;
  border: 0;
  max-width: 720px;
}

.cta-band.cta-free .btn {
  margin-top: 30px;
}

/* ---------- Service pages ---------- */

.page-hero {
  position: relative;
  background: var(--night);
  color: #cfd8e3;
  padding: 200px 0 110px;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  border-top: 3px dashed rgba(77, 142, 240, 0.35);
}

.page-hero h1 {
  color: var(--white);
  max-width: 900px;
  margin-bottom: 22px;
}

.page-hero p {
  color: #b9c5d2;
  font-size: 1.25rem;
  max-width: 620px;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}

.split img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.split h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 18px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.checklist li {
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink);
  font-weight: 600;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 3px;
  background: var(--blue);
  transform: translateY(-50%);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.photo-grid-one {
  grid-template-columns: 1fr;
}

.photo-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: #aab5c2;
  padding: 72px 0 36px;
  font-size: 1rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  padding: 11px 8px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .footer-bottom {
  max-width: 1112px;
  margin: 48px auto 0;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: #a9b4c2;
}

/* ---------- Contact pop-up ---------- */

/* Centered in the middle of the screen, on every screen size */
.contact-dialog {
  border: none;
  border-radius: 20px;
  padding: 0;
  background: #111111;
  color: var(--ink);
  inset: 0;
  margin: auto;
  width: min(560px, calc(100% - 32px));
  height: fit-content;
  max-height: 92vh;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(77, 142, 240, 0.45), 0 0 18px rgba(77, 142, 240, 0.14), 0 30px 80px rgba(0, 0, 0, 0.55);
  isolation: isolate;
}

/* Background: a fine grid with a soft light that drifts slowly behind the content */
.contact-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 40px);
  background-size: 120% 120%, 40px 40px, 40px 40px;
  animation: dialogDrift 14s ease-in-out infinite alternate;
  z-index: -1;
}

/* The blue outline breathes: a glow on the inside edge that brightens and fades slowly */
.contact-dialog::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  z-index: -1;
  box-shadow: inset 0 0 0 1px rgba(77, 142, 240, 0.4), inset 0 0 20px rgba(77, 142, 240, 0.14);
  animation: outlineBreathe 3.2s ease-in-out infinite alternate;
}

@keyframes outlineBreathe {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}

/* Opens by growing from the middle: slight scale, blur clears as it settles */
.contact-dialog[open] {
  animation: dialogRise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-dialog.closing[open] {
  animation: dialogFall 0.32s ease-in forwards;
}

.contact-dialog[open]::backdrop {
  animation: backdropIn 0.4s ease-out;
}

@keyframes dialogRise {
  from {
    transform: translate3d(0, 12px, 0) scale(0.94);
    filter: blur(10px);
    opacity: 0;
  }
  to {
    transform: none;
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes dialogFall {
  from {
    transform: none;
    filter: blur(0);
    opacity: 1;
  }
  to {
    transform: translate3d(0, 8px, 0) scale(0.96);
    filter: blur(8px);
    opacity: 0;
  }
}

@keyframes dialogDrift {
  from {
    background-position: 0% 0%, 0 0, 0 0;
  }
  to {
    background-position: 100% 100%, 0 0, 0 0;
  }
}

@keyframes backdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-dialog[open],
  .contact-dialog.closing[open],
  .contact-dialog[open]::backdrop,
  .contact-dialog::before,
  .contact-dialog::after {
    animation: none;
  }
}

.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

/* The same space on all four sides, on every screen size. The inner box scrolls, so the background stays fixed to the window */
.dialog-inner {
  padding: 26px;
  position: relative;
  max-height: 92vh;
  overflow-x: hidden; /* the slide-in question must not show a sideways scrollbar */
  overflow-y: auto;
}

.dialog-inner h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  padding-right: 36px;
}

.dialog-inner > p {
  margin: 0 0 20px;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.dialog-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.call-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
}@media (hover: hover) {


.call-button:hover {
  background: var(--blue-hover);
}
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #7a818a;
  font-size: 0.9rem;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  font-size: 1.05rem;
  padding: 15px 16px;
  border: 1px solid #3c4043;
  border-radius: 8px;
  background: #181818;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* No highlight when a box is clicked into or pasted into */
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #34465a;
  box-shadow: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  width: 100%;
}

/* One question at a time: the hidden questions and buttons stay out of the way */
.contact-form [hidden] {
  display: none !important;
}

.contact-form .step-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-form .step-progress {
  flex: 0 0 112px;
  display: flex;
  gap: 6px;
}

.contact-form .step-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Back lights up blue on hover, like the call button */
@media (hover: hover) {
  .contact-form .step-nav .btn-back:hover {
    border-color: #7fb0f5;
    box-shadow: 0 0 0 4px rgba(47, 116, 220, 0.28), 0 0 22px rgba(47, 116, 220, 0.6);
    transform: translateY(-1px);
  }

  .contact-form .step-nav .btn-back::before {
    background: rgba(47, 116, 220, 0.35);
  }
}

/* Next uses the call button's look and hover, so it is sized to match it */
.contact-form .step-nav .btn-next {
  padding: 14px 24px;
  font-size: 1.05rem;
}

/* Next is always blue, and glows and lifts on hover like the call button */
.contact-form .step-nav .btn-next {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-form .step-nav .btn-next::before {
  background: var(--blue);
  transform: scaleX(1);
}

@media (hover: hover) {
  .contact-form .step-nav .btn-next:hover {
    border-color: #7fb0f5;
    box-shadow: 0 0 0 4px rgba(47, 116, 220, 0.28), 0 0 28px rgba(47, 116, 220, 0.75);
    transform: translateY(-1px);
  }

  .contact-form .step-nav .btn-next:hover::before {
    background: #4488ea;
  }
}

.contact-form .step-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.contact-form .step-bar.is-filled {
  background: linear-gradient(90deg, #2f74dc, #7fb0f5);
  box-shadow: 0 0 10px rgba(47, 116, 220, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.contact-form .step-nav .btn {
  width: auto;
  padding: 12px 22px;
}

.contact-form .step-nav {
  justify-content: space-between;
}

.contact-form .step-nav .btn-back {
  width: 50px;
  height: 50px;
  padding: 0;
  background: transparent;
  border: 1px solid #3c4043;
  color: var(--ink);
}

.contact-form .step-nav .btn-back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A question slides in from the side it is coming from */
@keyframes stepInNext {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes stepInBack {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}

.contact-form .step-enter-next {
  animation: stepInNext 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-form .step-enter-back {
  animation: stepInBack 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .contact-form .step-enter-next,
  .contact-form .step-enter-back {
    animation: none;
  }
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status.ok {
  color: #1d7a3a;
}

.form-status.error {
  color: #b42318;
}

/* ---------- Scroll fades (set up by script.js) ---------- */

html.fx .fx-item {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

html.fx .fx-item.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

/* ---------- Tablet and below ---------- */

@media (max-width: 1000px) {
  .services-split,
  .stand-split {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .services-intro {
    position: static;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stand-left,
  .why-list,
  .review-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Phones ---------- */

@media (max-width: 880px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    padding: 6px 6px 6px 12px;
  }

  .logo img {
    width: 92px;
  }

  .header-inner {
    column-gap: 6px;
  }

  .header-actions .btn {
    padding: 10px 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .header-actions .btn-icon {
    width: 1em;
    height: 1em;
  }

  .site-header,
  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .menu-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.35s var(--ease);
  }

  .site-header.menu-open .menu-toggle::after {
    transform: translateY(2px) rotate(-135deg);
  }

  /* The menu floats over the page and fades in, so nothing below it moves */
  .site-header .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: var(--surface);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(10, 30, 60, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -6px, 0);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
    pointer-events: none;
  }

  .site-header.menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    padding: 8px;
    pointer-events: auto;
  }

  .main-nav > a,
  .nav-toggle {
    padding: 12px 8px;
    font-size: 1.22rem;
    text-align: left;
  }

  .main-nav > a::after,
  .nav-toggle::after {
    display: none;
  }

  .nav-item {
    width: 100%;
  }

  .nav-toggle {
    display: none;
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
  }

  .dropdown-box {
    min-width: 0;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
  }

  .dropdown a {
    padding: 12px 8px;
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--ink);
    text-align: left;
  }

  .dropdown a:hover,
  .dropdown a[aria-current="page"] {
    background: none;
  }

  .section {
    padding: 96px 0;
  }

  .stand-out {
    padding: 96px 0 90px;
    clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);
  }

  /* Before and after: the picture fills the first screen, like the desktop version.
     The header floats over it. The line sweeps once when it comes into view, then can be dragged. */
  .ba-track {
    height: auto;
  }

  .ba-sticky {
    position: relative;
    top: auto;
    height: 64vh;
    height: 64svh;
    min-height: 360px;
    padding: 0;
  }

  .ba-frame {
    height: 100%;
    touch-action: pan-y;
  }

  /* Phone frames are tall, so the photos are cut from the sides. Keep the driveway in the middle */
  .ba-frame img {
    object-position: 68% 50%;
  }

  .ba-frame.hint .ba-line::after {
    animation: nudge 1.8s ease-in-out infinite;
  }

  @keyframes nudge {
    0%, 100% {
      transform: translate(-50%, -50%) rotate(calc(var(--tilt) * -1deg));
    }
    50% {
      transform: translate(calc(-50% + 9px), -50%) rotate(calc(var(--tilt) * -1deg));
    }
  }

  .ba-line::after {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 1.1rem;
  }

  .swap {
    font-size: 2.9rem;
    line-height: 1.02;
    white-space: normal;
    text-align: center;
    max-width: 340px;
  }

  .swap span {
    white-space: normal;
  }

  .ba-middle {
    max-width: calc(100% - 40px);
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-row img {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid img {
    height: 220px;
  }

  .page-hero {
    padding: 150px 0 80px;
  }

  .cta-band {
    padding: 90px 0;
  }

  .cta-band > div {
    padding: 40px 26px;
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

  html.fx .fx-item,
  .wipe {
    transition: none;
    opacity: 1;
    transform: none;
    clip-path: none;
  }
}

/* Service page headers: the photo sits on the right, fading into the night colour */
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mask-image: linear-gradient(to right, transparent, #000 45%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 880px) {
  .hero-photo {
    width: 100%;
    opacity: 0.25;
  }
}

/* Sections split apart: reviews on night, How we stand out on the logo blue */

/* Near-black background with a faint grid, two soft glows and a drifting road marking */
.reviews-section {
  position: relative;
  overflow: hidden;
  background: #0b0b0b;
  color: #cfd8e3;
}

.reviews-section > .container {
  position: relative;
}

.reviews-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.08), transparent 38%),
    radial-gradient(circle at 6% 92%, rgba(255, 255, 255, 0.06), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 80px);
}

.reviews-road {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 12%;
  height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255, 201, 74, 0.4) 0 56px, transparent 56px 112px);
  background-size: 112px 4px;
  transform: rotate(-3deg);
  pointer-events: none;
  animation: roadDrift 14s linear infinite;
}

@keyframes roadDrift {
  to { background-position: 112px 0; }
}

/* ---------- Background animations: How we stand out, and Your perfect driveway ---------- */

/* How we stand out: diagonal light stripes that drift, and a glow that floats */
.why-section,
.services-section {
  position: relative;
  overflow: hidden;
}

.why-section > .container,
.services-section > .container {
  position: relative;
}

/* A dark panel behind the text, so it stands apart from the striped background */
.why-panel {
  padding: 48px 48px 44px;
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-panel.split {
  gap: 48px;
}

@media (max-width: 1000px) {
  .why-panel {
    padding: 28px 16px;
  }
}

.why-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.why-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 64px);
  animation: stripes 26s linear infinite;
}

.why-bg::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
  animation: blobFloat 14s ease-in-out infinite alternate;
}

/* Your perfect driveway: a dot grid that drifts slowly, and a light beam that sweeps across */
.services-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.5px) 0 0 / 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  animation: dotDrift 40s linear infinite;
}

.services-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 40%;
  left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-18deg);
  animation: beam 10s ease-in-out infinite;
}

@keyframes stripes {
  to { transform: translate(58px, 27px); }
}

@keyframes blobFloat {
  to { transform: translate(-140px, 150px) scale(1.15); }
}

@keyframes dotDrift {
  to { background-position: 30px 30px; }
}

@keyframes beam {
  from { left: -40%; }
  to { left: 110%; }
}

.reviews-section .section-head h2 {
  color: var(--white);
}

.reviews-section .section-head p {
  color: #b9c5d2;
}

.reviews-section .review-list {
  grid-template-columns: repeat(2, 1fr);
}

.why-section {
  background: var(--blue);
  color: #dbe6fb;
}

.why-section .section-head h2 {
  color: var(--white);
}

.why-section .section-head p {
  color: #c9d8f2;
}

.why-section .why-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.why-section .why-item {
  border-bottom: none;
}

.why-section .why-item h3 {
  color: var(--white);
}

.why-section .why-item p {
  color: #d6e2f7;
}

.why-section .why-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1000px) {
  .services-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-list,
  .reviews-section .review-list,
  .why-section .why-list {
    grid-template-columns: 1fr;
  }

  .service-row img {
    aspect-ratio: 16 / 10;
  }

  /* Phones: the cards run edge to edge, so the photos fill the screen width */
  .services-section .service-list {
    margin: 0 -24px;
  }

  .services-section .service-row {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
}

@media (max-width: 1000px) {
  .services-intro h2 {
    white-space: normal;
  }
}

/* ---------- Privacy policy ---------- */

.policy {
  max-width: 760px;
}

.policy-date {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.policy h2 {
  margin: 40px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.policy p {
  margin: 0 0 14px;
  line-height: 1.65;
}

.policy a:not(.btn) {
  color: var(--blue);
}

/* ---------- Full-screen page hero (snow removal) ---------- */

.page-hero-full {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0;
  text-align: center;
}

.page-hero-full::after {
  display: none;
}

.page-hero-full .hero-photo {
  width: 100%;
  object-position: 40% 50%;
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
  filter: brightness(0.55) saturate(0.9);
}

.page-hero-full .container {
  width: 100%;
}

.hero-cta {
  margin-top: 34px;
  min-width: 280px;
  padding: 16px 48px;
}

.page-hero-full h1,
.page-hero-full p {
  margin-left: auto;
  margin-right: auto;
}

.page-hero-full h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1;
  max-width: 1000px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.page-hero-full p {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* ---------- Snow page: plowing section ---------- */

.snow-plowing .snow-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.snow-plowing .snow-head h2 {
  margin-bottom: 14px;
}

.snow-plowing .snow-head p {
  font-size: 1.15rem;
  margin: 0;
}

.snow-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.snow-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(10, 30, 60, 0.16);
}

.snow-points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.snow-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* A small blue marker with a white dot in the middle, in place of the old side bar */
.snow-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0 4px, transparent 5px), var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 116, 220, 0.18);
}

.snow-points li:hover {
  transform: translateX(6px);
  border-color: rgba(127, 176, 245, 0.45);
  background: #e9eef4;
}

@media (max-width: 880px) {
  .snow-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Cookie notice ---------- */

.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--night);
  color: #d9e0e8;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(10, 20, 35, 0.3);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  margin: 0;
  flex: 1;
}

.cookie-notice a {
  color: #fff;
}

.cookie-notice .btn {
  flex: 0 0 auto;
  min-width: 84px;
}

@media (max-width: 560px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .cookie-notice .btn {
    align-self: flex-end;
  }
}

/* ---------- Loading state (set by script.js) ---------- */

.spinner {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.is-loading {
  pointer-events: none;
}

.call-button.is-loading {
  opacity: 0.85;
}

:root .site-header,
:root .site-header.scrolled {
  background: rgba(24, 24, 24, 0.5);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -10px 18px rgba(255, 255, 255, 0.03);
}

:root .dropdown-box {
  background: rgba(18, 28, 40, 0.97);
}

:root .snow-points li:hover {
  background: #1d2c3b;
}

:root .contact-form input,
:root .contact-form textarea {
  border-color: #34465a;
}

:root .form-status.ok {
  color: #6fd28f;
}

:root .form-status.error {
  color: #ff8a80;
}

:root .ba-frame {
  background: #1b2a38;
}

/* Small phones: keep the logo readable */
@media (max-width: 400px) {
  .header-actions {
    gap: 2px;
  }

  .header-actions .btn {
    gap: 6px;
  }

  .header-actions .btn-icon {
    display: none;
  }

  .menu-toggle {
    padding: 8px 6px;
  }
}

/* Consent checkbox in the contact form */
.contact-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-form .consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--blue);
}

.contact-form .consent a {
  color: var(--blue);
}

/* Photo placeholder while an image loads (set by script.js). Still colour, no animation,
   so the browser never repaints the photos while you scroll. */
img.img-loading {
  background-color: #e6ebf1;
}

:root img.img-loading {
  background-color: #1b2a38;
}

/* Phone menu: frosted glass panel with a highlight that follows the finger (set by script.js) */
.menu-toggle {
  touch-action: none;
}

.menu-highlight {
  display: none;
}

@media (max-width: 880px) {
  .site-header .main-nav {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 18px 40px rgba(10, 30, 60, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .main-nav a {
    position: relative;
    z-index: 1;
    border-radius: 16px;
  }

  .menu-highlight {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    border-radius: 16px;
    background: rgba(0, 48, 120, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 14px rgba(10, 30, 60, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.24s var(--ease), width 0.24s var(--ease), height 0.24s var(--ease), opacity 0.2s var(--ease);
  }
}

:root .menu-highlight {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 880px) {
  :root .site-header .main-nav {
    background: rgba(18, 28, 40, 0.72);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 880px) {
  :root .dropdown-box {
    background: none;
  }
}


/* Links on the dark background: lighter blue so they stay readable */
:root .policy a:not(.btn),
:root .contact-form .consent a {
  color: #7fb0f5;
}

/* In dark mode the blue band is deeper, so its text stays readable */
:root .why-section {
  background: #1b52a6;
}

/* Tablet and unfolded foldable widths: keep the desktop header on one line */
@media (min-width: 881px) and (max-width: 1080px) {
  .main-nav {
    gap: 18px;
  }

  .main-nav > a,
  .nav-toggle {
    font-size: 1.08rem;
  }

  .header-actions .btn {
    white-space: nowrap;
    padding: 12px 20px;
    font-size: 1.05rem;
  }
}

/* Contact form Send button: outline until every field is filled in, then solid blue */
.contact-form .btn[type="submit"] {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.contact-form .btn[type="submit"]::before {
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.55s var(--ease), background-color 0.2s var(--ease);
  z-index: -1;
}

.contact-form .btn[type="submit"]:hover::before,
.contact-form .btn[type="submit"]:focus-visible::before {
  transform: scaleX(0);
}

.contact-form .btn[type="submit"] {
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}

/* Filled blue: the fill sweeps from left to right (declared last so it wins over hover) */
.contact-form .btn[type="submit"].is-ready::before {
  transform: scaleX(1);
}

.contact-form .btn[type="submit"].is-ready {
  color: var(--white);
}

/* Fields still missing when Send is tried */
.contact-form input.is-missing,
.contact-form textarea.is-missing {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.15);
}

/* Desktop: the line can be dragged, so show the left and right arrows */
@media (min-width: 881px) {
  .ba-frame {
    cursor: ew-resize;
  }
}

/* The picture itself never starts a browser image drag, so the line can be held and moved */
.ba-frame {
  user-select: none;
  -webkit-user-select: none;
}

.ba-frame img {
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Desktop: the whole contact window fits on screen without scrolling */
@media (min-width: 881px) {
  .dialog-inner {
    padding: 26px;
  }

  .dialog-inner h2 {
    font-size: 1.6rem;
    margin-bottom: 4px;
  }

  .dialog-inner > p {
    margin-bottom: 14px;
  }

  .contact-dialog .call-button {
    padding: 12px;
    font-size: 1.05rem;
  }

  .or-divider {
    margin: 12px 0;
  }

  .contact-form {
    gap: 8px;
  }

  .contact-form label {
    gap: 3px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 8px 14px;
  }

  .contact-form textarea {
    min-height: 100px;
  }

  .contact-form .btn {
    padding: 12px 26px;
  }
}

/* Desktop: a little more room for the message box, and the window may use more of the screen */
@media (min-width: 881px) {
  .contact-dialog {
    max-height: 96vh;
  }
}

/* Contact form: the name hint sits on the right of the label, and the message above Send */
.field-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 8px;
}

.field-error {
  color: #ff6b61;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
}

/* Space between the message box and the Send button, and below it to the window edge */
.contact-form .btn[type="submit"] {
  margin-top: 18px;
}

/* The Send button shows a red error or a green confirmation for a few seconds */
.contact-form .btn[type="submit"].is-error::before {
  background: #d92d20;
  transform: scaleX(1);
}

.contact-form .btn[type="submit"].is-error {
  color: var(--white);
  border-color: #d92d20;
}

.contact-form .btn[type="submit"].is-sent::before {
  background: #1d7a3a;
  transform: scaleX(1);
}

.contact-form .btn[type="submit"].is-sent {
  color: var(--white);
  border-color: #1d7a3a;
}

/* Valid field: white-ish with a green checkmark on the right (set by script.js) */
.contact-form input.is-valid {
  border-color: rgba(255, 255, 255, 0.55);
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231d7a3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

.contact-form textarea.is-valid {
  border-color: rgba(255, 255, 255, 0.55);
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%231d7a3a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px top 14px;
  background-size: 18px 18px;
}

/* A failed send is locked until the red fades back to blue */
.contact-form .btn[type="submit"].is-error {
  pointer-events: none;
}

.contact-form .btn[type="submit"]::before {
  transition: transform 0.55s var(--ease), background-color 0.2s var(--ease);
}
@media (hover: hover) {


/* Send button hover: when every field is filled in, it lifts and glows */
.contact-form .btn[type="submit"].is-ready:not(.is-error):hover {
  border-color: #7fb0f5;
  box-shadow: 0 0 0 4px rgba(47, 116, 220, 0.28), 0 0 28px rgba(47, 116, 220, 0.75);
  transform: translateY(-1px);
}
}@media (hover: hover) {


.contact-form .btn[type="submit"].is-ready:not(.is-error):hover::before {
  transform: scaleX(1);
  background: #4488ea;
}
}

/* A failed send appears at once, with no animation */
.contact-form .btn[type="submit"].is-error::before {
  transition: none;
}

/* Afterwards the red drains back to blue with a sheen and a glow, once */
.contact-form .btn[type="submit"].is-releasing::before {
  animation: redToBlue 0.9s ease both;
}

.contact-form .btn[type="submit"].is-releasing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: sheen 0.9s ease both;
}

.contact-form .btn[type="submit"].is-releasing {
  animation: glowOut 0.9s ease both;
}

@keyframes redToBlue {
  0% {
    background-color: #d92d20;
    transform: scaleX(1);
  }
  45% {
    background-color: #7a4fb0;
  }
  100% {
    background-color: var(--blue);
    transform: scaleX(1);
  }
}

@keyframes sheen {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes glowOut {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.7), 0 0 34px rgba(217, 45, 32, 0.8);
    transform: scale(1);
  }
  40% {
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 116, 220, 0), 0 0 0 0 rgba(47, 116, 220, 0);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form .btn[type="submit"].is-releasing,
  .contact-form .btn[type="submit"].is-releasing::before,
  .contact-form .btn[type="submit"].is-releasing::after {
    animation: none;
  }
}@media (hover: hover) {


/* Call button: the same hover as the Send button when it is ready */
.contact-dialog .call-button:hover {
  border-color: #7fb0f5;
  box-shadow: 0 0 0 4px rgba(47, 116, 220, 0.28), 0 0 28px rgba(47, 116, 220, 0.75);
  transform: translateY(-1px);
}
}@media (hover: hover) {


.contact-dialog .call-button:hover::before {
  transform: scaleX(1);
  background: #4488ea;
}
}

/* Send Message, Call and header Contact Us share one hover: a lighter fill and glow, which fades back when you move off */
.contact-form .btn[type="submit"],
.contact-dialog .call-button,
.site-header .header-actions .btn, .cta-free .btn, .hero-cta {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-dialog .call-button::before,
.site-header .header-actions .btn::before, .cta-free .btn::before, .hero-cta::before {
  background: var(--blue);
  transform: scaleX(1);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}@media (hover: hover) {


.contact-dialog .call-button:hover,
.site-header .header-actions .btn:hover, .cta-free .btn:hover, .hero-cta:hover {
  border-color: #7fb0f5;
  box-shadow: 0 0 0 4px rgba(47, 116, 220, 0.28), 0 0 28px rgba(47, 116, 220, 0.75);
  transform: translateY(-1px);
}
}@media (hover: hover) {


.contact-dialog .call-button:hover::before,
.site-header .header-actions .btn:hover::before, .cta-free .btn:hover::before, .hero-cta:hover::before {
  background: #4488ea;
}
}

/* Header Contact Us: a quick light sheen sweeps across on hover, like the red error fading back to blue */
.site-header .header-actions .btn::after, .cta-free .btn::after, .hero-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-100%);
}@media (hover: hover) {


.site-header .header-actions .btn:hover::after, .cta-free .btn:hover::after, .hero-cta:hover::after {
  animation: sheen 0.6s ease both;
}
}

/* Header Call us window: narrower than the estimate form */
.call-dialog {
  width: min(400px, calc(100% - 32px));
}

/* The close (x) button shows no focus ring */
.dialog-close:focus {
  outline: none;
}

/* Touch screens: the glow and sheen play while the button is pressed, since there is no hover */
/* Touch screens: the glow and sheen play while a button is pressed, since there is no hover */
@media (hover: none) {
  .contact-form .btn[type="submit"].is-ready:not(.is-error):active,
  .contact-dialog .call-button:active,
  .site-header .header-actions .btn:active, .cta-free .btn:active, .hero-cta:active {
    border-color: #7fb0f5;
    box-shadow: 0 0 0 4px rgba(47, 116, 220, 0.28), 0 0 28px rgba(47, 116, 220, 0.75);
    transform: translateY(-1px);
  }

  .contact-form .btn[type="submit"].is-ready:not(.is-error):active::before,
  .contact-dialog .call-button:active::before,
  .site-header .header-actions .btn:active::before, .cta-free .btn:active::before, .hero-cta:active::before {
    background: #4488ea;
    transform: scaleX(1);
  }

  .site-header .header-actions .btn:active::after, .cta-free .btn:active::after, .hero-cta:active::after {
    animation: sheen 0.6s ease both;
  }
}

/* Phone menu: stronger liquid glass, a springy highlight that follows the finger, and a wobble on each new item */
@media (max-width: 880px) {
  .site-header .main-nav {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2));
    -webkit-backdrop-filter: blur(26px) saturate(210%);
    backdrop-filter: blur(26px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 24px 50px rgba(10, 30, 60, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  }

  .menu-highlight {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    border: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.36s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.2s var(--ease);
  }

  .menu-highlight.bump {
    animation: wobble 0.45s ease;
  }

  @keyframes wobble {
    0% {
      scale: 1;
    }
    30% {
      scale: 1.07 0.93;
    }
    60% {
      scale: 0.97 1.03;
    }
    100% {
      scale: 1;
    }
  }
}

:root[data-theme="dark"] .menu-highlight,
:root .menu-highlight {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}

@media (max-width: 880px) {
  :root .site-header .main-nav {
    background: linear-gradient(145deg, rgba(40, 58, 80, 0.7), rgba(18, 28, 40, 0.45));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  }
}
/* ---------- Phone menu, round two ---------- */
@media (max-width: 880px) {
  /* The panel drops out of the header: it starts at the header's top edge and grows downward */
  .site-header .header-inner {
    position: relative;
    z-index: 2;
  }

  .site-header .main-nav {
    top: 0;
    left: 0;
    right: 0;
    padding: 72px 8px 10px;
    border-radius: 26px;
    transform: scaleY(0.25);
    transform-origin: 50% 0;
    opacity: 0;
    transition: transform 0.42s var(--ease), opacity 0.22s var(--ease), visibility 0.22s;
  }

  .site-header.menu-open .main-nav {
    transform: scaleY(1);
  }

  .site-header .main-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding: 10px 40px 10px 12px;
    color: var(--ink);
    text-shadow: none;
    border-radius: 16px;
  }

  /* Icon on the left of each section */
  .menu-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  }

  /* Arrow on the right of each section */
  .site-header .main-nav a::after {
    content: "\2192";
    display: block;
    position: absolute;
    top: 50%;
    left: auto;
    right: 14px;
    height: auto;
    background: none;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.7;
  }

  /* The page you are on is underlined, not blue */
  .site-header .main-nav a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }

  .menu-highlight {
    border: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  }
}

@media (max-width: 880px) {
  /* Space for the header row, so the list starts below the logo and the Menu button */
  .site-header.menu-open .main-nav {
    padding: 74px 8px 10px;
  }
}

/* The list lives inside the header, so the header grows downward into one piece */
@media (max-width: 880px) {
  .site-header .header-inner {
    flex-wrap: wrap;
    position: static;
    z-index: auto;
  }

  .site-header .main-nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    order: 3;
    flex-basis: 100%;
    width: 100%;
    padding: 0 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: max-height 0.42s var(--ease), padding 0.42s var(--ease), opacity 0.25s var(--ease), visibility 0.25s;
  }

  .site-header.menu-open .main-nav {
    max-height: 520px;
    padding: 10px 8px 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  :root .site-header.menu-open {
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(40, 58, 80, 0.72), rgba(18, 28, 40, 0.5));
    -webkit-backdrop-filter: blur(26px) saturate(210%);
    backdrop-filter: blur(26px) saturate(210%);
    border-color: rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 880px) {
  :root .site-header .main-nav {
    background: none;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 880px) {
  .site-header .main-nav {
    position: relative;
  }
}

/* Closed: the header looks as it did before. The list sits outside the row, hidden. */
@media (max-width: 880px) {
  .site-header .header-inner {
    flex-wrap: nowrap;
  }

  .site-header .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-basis: auto;
    max-height: 0;
    padding: 0 8px;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* Open: the list drops to a full-width row under the logo and buttons, which keep their place */
  .site-header.menu-open .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .site-header.menu-open .main-nav {
    grid-column: 1 / -1;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    flex-basis: 100%;
    max-height: 520px;
    padding: 10px 8px 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Arrows in the drop-down are full white */
  .site-header .main-nav a::after {
    color: #ffffff;
    opacity: 1;
  }
}

/* Closing: the reverse of opening. The list folds up and the header eases back to its closed look, then the closed layout takes over with nothing to jump */
@media (max-width: 880px) {
  .site-header.menu-closing {
    animation: headerFold 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
  }

  /* The hidden list would otherwise leave a 14px row gap that snaps away at the end */
  .site-header.menu-closing .header-inner {
    row-gap: 0;
  }

  .site-header.menu-closing .main-nav {
    animation: menuFold 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
    pointer-events: none;
  }
}

@keyframes menuFold {
  from { max-height: var(--menu-h); padding: 10px 8px 12px; opacity: 1; }
  to { max-height: 0; padding: 0 8px; opacity: 0; }
}

@keyframes headerFold {
  from {
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(40, 58, 80, 0.72), rgba(18, 28, 40, 0.5));
    border-color: rgba(255, 255, 255, 0.2);
  }
  to {
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(18, 28, 40, 0.8), rgba(18, 28, 40, 0.8));
    border-color: rgba(255, 255, 255, 0.08);
  }
}

/* Tap ripple on Contact Us: a ring spreads out from the finger */
.site-header .header-actions .btn, .cta-free .btn, .hero-cta {
  overflow: hidden;
}

.tap-ripple {
  position: absolute;
  z-index: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid rgba(214, 232, 255, 0.85);
  box-shadow: 0 0 10px rgba(127, 176, 245, 0.8);
  pointer-events: none;
  animation: tapRipple 0.6s ease-out forwards;
}

@keyframes tapRipple {
  from { transform: scale(0); opacity: 0.9; }
  to { transform: scale(12); opacity: 0; }
}

/* Contact Us on phones: a quick press in, then a springy bounce back out */
@media (hover: none) {
  .site-header .header-actions .btn, .cta-free .btn, .hero-cta {
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.5s var(--ease);
  }

  .site-header .header-actions .btn:active, .cta-free .btn:active, .hero-cta:active {
    transform: scale(0.9);
    transition-duration: 0.08s;
  }
}

/* Menu icons only appear in the phone menu */
.menu-icon {
  display: none;
}

@media (max-width: 880px) {
  .menu-icon {
    display: block;
  }
}

/* Calling: a light gray box with a spinner, the label, and dots that count up. Turned on by script.js on tap. */
.call-busy {
  display: none;
  align-items: center;
  gap: 12px;
}

.call-dots i {
  font-style: normal;
  opacity: 0;
}

.call-dots i:first-child {
  opacity: 1;
}

.contact-dialog .call-button.is-calling .call-text {
  display: none;
}

.contact-dialog .call-button.is-calling .call-busy {
  display: inline-flex;
}

.contact-dialog .call-button.is-calling .call-dots i:nth-child(2) {
  animation: callDot2 1.2s linear infinite;
}

.contact-dialog .call-button.is-calling .call-dots i:nth-child(3) {
  animation: callDot3 1.2s linear infinite;
}

@keyframes callDot2 {
  0%, 33% { opacity: 0; }
  33.4%, 100% { opacity: 1; }
}

@keyframes callDot3 {
  0%, 66% { opacity: 0; }
  66.4%, 100% { opacity: 1; }
}

.contact-dialog .call-button.is-calling,
.contact-dialog .call-button.is-calling:hover {
  background: #5d6876;
  color: #f2f5f8;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.contact-dialog .call-button.is-calling::before {
  background: #5d6876;
  transform: none;
}

/* Paving page hero: black, with the road marking removed to match the home page */
.service-hero {
  background: #0b0b0b;
}

.service-hero::after {
  display: none;
}

/* Paving hero: a soft light follows the mouse, over a faint grid and a drifting road marking */
.service-hero {
  overflow: hidden;
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 70%);
}

.service-hero > .reviews-bg,
.service-hero > .reviews-road {
  z-index: 0;
}

.service-hero > .container {
  position: relative;
  z-index: 2;
}

/* New paving, done right: a large heading and chips on the left, the photo on the right */
.service-feature {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
}

.service-feature h2 {
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 18px;
}

.service-feature p {
  color: #bdc1c6;
  font-size: 1.15rem;
}

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.service-chips li {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #161616;
  color: var(--white);
  font-weight: 600;
}

.service-chips li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--blue-bright);
  vertical-align: middle;
}

.service-feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1000px) {
  .service-feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Snow plowing: a smaller photo, so the section is not mostly empty space */
.service-feature.snow-feature {
  grid-template-columns: 1fr 0.8fr;
}

.snow-feature img {
  max-width: 460px;
  justify-self: end;
}

/* Centered service intro: a large heading, a line of text and chips, used on pages without a photo */
.service-intro {
  max-width: 760px;
}

.service-intro h2 {
  font-family: "Bebas Neue", "Barlow Condensed", sans-serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 18px;
}

.service-intro p {
  color: #bdc1c6;
  font-size: 1.15rem;
}

/* Sand and gravel: the intro text is centred, so no empty side space is left where a photo would go */
.service-intro-center {
  margin: 0 auto;
  text-align: center;
}

.service-intro-center .service-chips {
  justify-content: center;
}

/* Paving hero: a light beam sweeps across instead of the road marking, and a photo card sits on the right */
.hero-beam {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-beam::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 30%;
  left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: skewX(-18deg);
  animation: beam 11s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-beam::before {
    animation: none;
  }
}

/* Seal coating hero: a dark sealant sheet spreads across the bottom, with a squeegee edge leading it */
.seal-wipe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.seal-wipe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 14, 0), rgba(12, 12, 14, 0.88));
  transform-origin: left center;
  transform: scaleX(0);
  animation: sealSpread 7s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

.seal-wipe::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -120px;
  width: 120px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  mix-blend-mode: screen;
  animation: squeegee 7s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

@keyframes sealSpread {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }
  70% {
    transform: scaleX(1);
    opacity: 1;
  }
  90%, 100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@keyframes squeegee {
  0% {
    left: -120px;
    opacity: 1;
  }
  70% {
    left: 100%;
    opacity: 1;
  }
  71%, 100% {
    left: -120px;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seal-wipe::before,
  .seal-wipe::after {
    animation: none;
  }

  .seal-wipe::before {
    transform: scaleX(1);
    opacity: 0.6;
  }
}

/* Phone footer: the two columns sit closer, and the link tap areas stop adding extra space */
@media (max-width: 880px) {
  .footer-inner {
    gap: 14px;
  }

  .site-footer a {
    padding: 6px 0;
  }
}

/* Phone and tablet fixes: tighter section spacing, single-column feature layouts, and rounder chips */
@media (max-width: 1000px) {
  .section {
    padding: 48px 0;
  }

  .why-panel {
    margin: 0 8px;
  }

  .service-feature.snow-feature {
    grid-template-columns: 1fr;
  }

  .snow-feature img {
    max-width: 100%;
    justify-self: stretch;
  }

  .service-chips li {
    border-radius: 16px;
  }

  /* Cookie notice link and footer links are easier to tap */
  .cookie-notice a,
  .site-footer a,
  .footer-bottom a {
    display: inline-block;
    padding: 12px 0;
  }
}

/* Free estimates on phones: keep the text away from the screen edges */
@media (max-width: 1000px) {
  .cta-band.cta-free > div {
    padding: 0 28px;
  }
}

/* Header "More" dropdown on desktop: frosted glass panel, items slide in, and a glass highlight on hover */
@media (min-width: 881px) {
  :root .dropdown-box {
    position: relative;
    overflow: hidden;
    min-width: 250px;
    padding: 10px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(60, 60, 60, 0.55), rgba(14, 14, 14, 0.7));
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  /* A soft light crosses the panel once each time it opens */
  :root .dropdown-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
    transform: translateX(-100%);
    pointer-events: none;
  }

  .nav-item:hover .dropdown-box::before,
  .nav-item:focus-within .dropdown-box::before,
  .nav-item.open .dropdown-box::before {
    animation: sheen 1.1s 0.1s ease;
  }

  .dropdown a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 18px;
    border-radius: 12px;
    color: var(--white);
    transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
  }

  /* A thin blue bar that slides in on the left of the hovered item */
  .dropdown a::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 50%;
    width: 3px;
    height: 60%;
    border-radius: 2px;
    background: var(--blue-bright);
    transform: translateY(-50%) scaleY(0);
    transition: transform 0.3s var(--ease);
  }

  .dropdown a:hover,
  .dropdown a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateX(4px);
  }

  .dropdown a:hover::before,
  .dropdown a[aria-current="page"]::before {
    transform: translateY(-50%) scaleY(1);
  }

  .dropdown a .menu-icon {
    transition: transform 0.3s var(--ease), color 0.25s var(--ease);
  }

  .dropdown a:hover .menu-icon {
    color: var(--blue-bright);
    transform: scale(1.12);
  }

  /* Items arrive one after another when the menu opens */
  .nav-item:hover .dropdown a,
  .nav-item:focus-within .dropdown a,
  .nav-item.open .dropdown a {
    animation: menuItemIn 0.5s var(--ease) both;
  }

  .dropdown a:nth-child(2) { animation-delay: 0.06s !important; }
  .dropdown a:nth-child(3) { animation-delay: 0.12s !important; }
  .dropdown a:nth-child(4) { animation-delay: 0.18s !important; }

  @keyframes menuItemIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Desktop dropdown: quicker to respond on hover */
@media (min-width: 881px) {
  .dropdown {
    transition: opacity 0.12s var(--ease), transform 0.12s var(--ease), visibility 0.12s;
  }

  .dropdown a {
    transition: background 0.12s var(--ease), transform 0.12s var(--ease), color 0.12s var(--ease);
  }

  .dropdown a .menu-icon {
    transition: transform 0.15s var(--ease), color 0.12s var(--ease);
  }

  .nav-item:hover .dropdown a,
  .nav-item:focus-within .dropdown a,
  .nav-item.open .dropdown a {
    animation-duration: 0.3s;
  }

  .dropdown a:nth-child(2) { animation-delay: 0.03s !important; }
  .dropdown a:nth-child(3) { animation-delay: 0.06s !important; }
  .dropdown a:nth-child(4) { animation-delay: 0.09s !important; }
}

/* Phone menu: a frosted glass panel, glass highlight that springs between items, and items that arrive in turn */
@media (max-width: 880px) {
  :root .site-header.menu-open {
    background: linear-gradient(160deg, rgba(60, 60, 60, 0.5), rgba(12, 12, 12, 0.74));
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .site-header .main-nav > a,
  .site-header .nav-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 12px;
    padding: 14px 16px;
    margin: 0 0 4px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 700;
    text-align: left;
    transition: transform 0.2s var(--ease);
  }

  .site-header .main-nav > a:active,
  .site-header .nav-toggle:active {
    transform: scale(0.98);
  }

  /* The glass highlight that follows the finger or pointer */
  .site-header .menu-highlight {
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(12px) saturate(170%);
    backdrop-filter: blur(12px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 26px rgba(0, 0, 0, 0.3);
    transition: transform 0.42s var(--ease), width 0.42s var(--ease), height 0.42s var(--ease), opacity 0.2s var(--ease);
  }

  /* Items arrive one after another when the menu opens */
  .site-header.menu-open .main-nav > a,
  .site-header.menu-open .main-nav > .nav-item {
    animation: navItemIn 0.5s var(--ease) both;
  }

  .site-header.menu-open .main-nav > :nth-child(2) { animation-delay: 0.05s; }
  .site-header.menu-open .main-nav > :nth-child(3) { animation-delay: 0.1s; }
  .site-header.menu-open .main-nav > :nth-child(4) { animation-delay: 0.15s; }
  .site-header.menu-open .main-nav > :nth-child(5) { animation-delay: 0.2s; }
  .site-header.menu-open .main-nav > :nth-child(6) { animation-delay: 0.25s; }

  @keyframes navItemIn {
    from {
      opacity: 0;
      transform: translateX(-14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  /* "More" sub-items sit inside the panel as smaller glass rows */
  .site-header .dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 20px;
    margin: 0 0 4px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 600;
  }

  .site-header .nav-toggle {
    border-radius: 16px;
  }

  /* The arrows stay at the right edge of each row */
  .site-header .main-nav > a::after {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-header .main-nav svg {
    flex: 0 0 auto;
  }

  /* Long lists scroll inside the panel instead of being cut off */
  .site-header.menu-open .main-nav {
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* Phone menu: "Extra:" label and a smooth accordion for the extra links */
.label-phone {
  display: none;
}

@media (max-width: 880px) {
  .label-desktop {
    display: none;
  }

  .label-phone {
    display: inline;
  }

  .site-header .nav-item .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    padding: 14px 16px;
    margin: 0 0 4px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
  }

  .site-header .nav-item .chevron {
    display: inline-block;
    font-size: 1rem;
    transition: transform 0.35s var(--ease);
  }

  .site-header .nav-item.open .chevron {
    transform: rotate(180deg);
  }

  /* Collapsed by default; the grid row animates open and closed */
  /* The desktop centring transform must not apply on phones, or the list shifts sideways when opened */
  .site-header .nav-item .dropdown,
  .site-header .nav-item:hover .dropdown,
  .site-header .nav-item.open .dropdown {
    position: static;
    left: auto;
    transform: none;
  }

  .site-header .dropdown {
    opacity: 1;
    visibility: visible;
    padding: 0;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease);
  }

  .site-header .nav-item.open .dropdown {
    grid-template-rows: 1fr;
  }

  .site-header .dropdown-box {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
  }

  .site-header .nav-item.open .dropdown-box {
    opacity: 1;
  }

  .site-header .dropdown-box a {
    margin-top: 4px;
  }

  .site-header .dropdown-box a:last-child {
    margin-bottom: 8px;
  }
}

/* Phone menu: even spacing at the bottom of the panel */
@media (max-width: 880px) {
  .site-header.menu-open .main-nav {
    padding-bottom: 6px;
  }

  .site-header .nav-item .nav-toggle {
    margin-bottom: 0;
  }
}

/* Phone menu closing: the links fade out in reverse order, then the panel folds up smoothly */
@media (max-width: 880px) {
  .site-header.menu-closing .main-nav > a,
  .site-header.menu-closing .main-nav > .nav-item {
    animation: navItemOut 0.2s ease both;
  }

  .site-header.menu-closing .main-nav > :nth-child(2) { animation-delay: 0.02s; }
  .site-header.menu-closing .main-nav > :nth-child(3) { animation-delay: 0.04s; }
  .site-header.menu-closing .main-nav > :nth-child(4) { animation-delay: 0.06s; }
  .site-header.menu-closing .main-nav > :nth-child(5) { animation-delay: 0.08s; }
  .site-header.menu-closing .main-nav > :nth-child(6) { animation-delay: 0.1s; }

  .site-header.menu-closing .main-nav {
    animation: menuFold 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.08s both;
  }

  .site-header.menu-closing {
    animation-duration: 0.45s;
  }
}

@keyframes navItemOut {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateX(-10px);
  }
}

/* Phone header and menu: one shape and colour from open to closed, so the close is a single smooth collapse */
@media (max-width: 880px) {
  :root .site-header,
  :root .site-header.scrolled,
  :root .site-header.menu-open,
  :root .site-header.menu-closing {
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(60, 60, 60, 0.5), rgba(12, 12, 12, 0.74));
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  /* Closing: the header stays still and only the list collapses, in one motion */
  .site-header.menu-closing {
    animation: none;
  }

  .site-header.menu-closing .main-nav > a,
  .site-header.menu-closing .main-nav > .nav-item {
    animation: none;
  }

  .site-header.menu-closing .main-nav {
    animation: menuCollapse 0.32s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
}

@keyframes menuCollapse {
  from {
    max-height: var(--menu-h);
    padding: 10px 8px 12px;
    opacity: 1;
  }
  to {
    max-height: 0;
    padding: 0 8px;
    opacity: 0;
  }
}

/* Header: full-width dark frosted bar on all sizes, always visible, so the logo sits at the left edge */
:root .site-header,
:root .site-header.scrolled,
:root .site-header.over-photo,
:root .site-header.over-photo.scrolled {
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  border-radius: 0;
  background: rgba(10, 17, 24, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Desktop header: white text, nav on the left next to the logo, call and CTA on the right */
@media (min-width: 881px) {
  .site-header .header-inner {
    max-width: none;
    padding: 8px 12px 8px 16px;
  }

  .site-header .logo img {
    width: 120px;
  }

  .site-header .main-nav {
    margin: 0 auto 0 24px;
    gap: 30px;
  }

  .site-header .main-nav > a,
  .site-header .nav-toggle {
    color: #fff;
    font-size: 1.15rem;
  }

  .site-header .header-call {
    color: #fff;
    padding: 9px 16px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
  }

  .site-header .header-call:hover {
    background: rgba(255, 255, 255, 0.18);
  }

  .site-header .header-actions .btn {
    padding: 9px 18px;
    font-size: 1rem;
    background: var(--blue);
    border-color: var(--blue);
  }

  .site-header .header-actions .btn::before,
  .site-header .header-actions .btn:hover::before,
  .site-header .header-actions .btn:active::before {
    background: #4488ea;
  }

  .site-header .header-actions .btn:hover,
  .site-header .header-actions .btn:active {
    border-color: #4488ea;
    box-shadow: 0 8px 20px rgba(47, 116, 220, 0.45);
  }

  /* Desktop "More" dropdown: frosted dark glass */
  .site-header .dropdown-box {
    background: rgba(10, 17, 24, 0.72);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 880px) {
  .header-call {
    display: none;
  }
}

/* Phone header: full-width bar, three-line menu button after the estimate button, and the link sheet slides up from the bottom to cover about 4/5 of the screen */
@media (max-width: 880px) {
  :root .site-header,
  :root .site-header.scrolled,
  :root .site-header.over-photo,
  :root .site-header.over-photo.scrolled,
  :root .site-header.menu-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header .header-inner,
  .site-header.menu-open .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    padding: 6px 8px 6px 12px;
    gap: 6px;
  }

  .site-header .header-actions {
    gap: 8px;
  }

  .site-header .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
  }

  .site-header .menu-toggle::after {
    content: none;
  }

  .site-header .menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  :root .site-header .main-nav,
  :root .site-header.menu-open .main-nav {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    max-height: 80vh;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: #0a1118;
    box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    opacity: 1;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease), visibility 0.5s;
    animation: none;
  }

  :root .site-header.menu-open .main-nav {
    visibility: visible;
    transform: none;
  }
}

/* Phone menu sheet: a title, each section sits on its own card, and the sheet is only as tall as its content (up to 4/5 of the screen) */
@media (max-width: 880px) {
  :root .site-header .main-nav::before {
    content: "Menu";
    display: block;
    padding: 0 4px 6px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
  }

  :root .site-header .main-nav > a,
  :root .site-header .main-nav > .nav-item {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
  }

  :root .site-header .main-nav > .nav-item {
    overflow: hidden;
  }

  :root .site-header .dropdown-box {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: 0;
  }
}

/* Phone menu: close X, press effects on every button, and even spacing for the extra links */
.menu-close {
  display: none;
}

@media (max-width: 880px) {
  :root .site-header .menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s var(--ease);
  }

  :root .site-header .menu-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
  }

  :root .site-header .main-nav > a,
  :root .site-header .nav-item .nav-toggle,
  :root .site-header .dropdown a,
  :root .site-header .menu-toggle {
    transition: transform 0.15s var(--ease), background-color 0.15s var(--ease);
  }

  :root .site-header .main-nav > a:active,
  :root .site-header .nav-item .nav-toggle:active,
  :root .site-header .dropdown a:active {
    transform: scale(0.97);
    background-color: rgba(255, 255, 255, 0.1);
  }

  :root .site-header .menu-close:active {
    transform: scale(0.92);
  }

  :root .site-header .menu-toggle:active {
    transform: scale(0.9);
  }

  :root .site-header .dropdown-box {
    padding: 0 10px 10px;
  }

  :root .site-header .dropdown a {
    box-sizing: border-box;
    width: 100%;
    margin:  6px 0 0;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: transparent;
  }

  :root .site-header .dropdown-box a:last-child {
    margin-bottom: 0;
  }
}

/* Tighter rows so the whole menu, with the extra links open, fits inside the sheet without scrolling */
@media (max-width: 880px) {
  :root .site-header .main-nav > a,
  :root .site-header .nav-item .nav-toggle {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* The extra links open with the sheet without animating; the accordion animates only when tapped */
@media (max-width: 880px) {
  :root .site-header .main-nav.no-anim .dropdown,
  :root .site-header .main-nav.no-anim .dropdown-box {
    transition: none;
  }
}

/* Phone menu: the liquid glass highlight that slides under the finger from card to card */
@media (max-width: 880px) {
  :root .site-header .glass-highlight {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: transform 0.35s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease), opacity 0.2s var(--ease);
  }

  :root .site-header .glass-highlight.is-on {
    opacity: 1;
  }

  :root .site-header .main-nav.glass-drag {
    touch-action: none;
  }
}

/* Phone menu: bigger X to match the title, the Extra links animate in with the menu, and even spacing */
@media (max-width: 880px) {
  :root .site-header .menu-close {
    top: 12px;
    right: 14px;
    width: 48px;
    height: 48px;
  }

  :root .site-header .menu-close svg {
    width: 26px;
    height: 26px;
  }

  :root .site-header .main-nav::before {
    padding-bottom: 14px;
  }

  :root .site-header .main-nav {
    gap: 10px;
  }

  :root .site-header .dropdown-box {
    padding: 0 10px 10px;
  }

  :root .site-header .dropdown a {
    margin-top: 8px;
  }

  :root .site-header .dropdown-box a:last-child {
    margin-bottom: 0;
  }

  /* The Extra card and each of its links slide in one after another when the menu opens */
  :root .site-header.menu-open .main-nav .dropdown a {
    animation: navItemIn 0.5s var(--ease) both;
  }

  :root .site-header.menu-open .main-nav .dropdown-box a:nth-child(1) { animation-delay: 0.2s; }
  :root .site-header.menu-open .main-nav .dropdown-box a:nth-child(2) { animation-delay: 0.26s; }
  :root .site-header.menu-open .main-nav .dropdown-box a:nth-child(3) { animation-delay: 0.32s; }
  :root .site-header.menu-open .main-nav .dropdown-box a:nth-child(4) { animation-delay: 0.38s; }
}

/* Header bar: the header itself stays clear. The frosted bar is a layer behind it that fades in past 70px of scroll (bar-on in script.js) and fades out at the top */
:root .site-header,
:root .site-header.scrolled,
:root .site-header.over-photo,
:root .site-header.over-photo.scrolled {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -1px; /* covers the header's 1px edge, which would otherwise show the page as a thin line */
  z-index: -1;
  border-radius: inherit;
  background: rgba(14, 22, 32, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.site-header.over-photo::before {
  background: rgba(16, 16, 16, 0.6);
}

.site-header.bar-on::before {
  opacity: 1;
}

/* With no bar, the links need a soft shadow to stay readable over the photo */
.site-header .main-nav > a,
.site-header .nav-toggle,
.site-header .header-call {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

/* Get a Free Estimate: no outline. Hover and click effects stay */
.site-header .header-actions .btn {
  border: 0;
}

/* ---------- Scroll reveal: script adds .js-reveal, then .is-in when the block reaches the screen ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
