/*
  MST Pumps & Mining Supplies - homepage mockup
  Plain CSS, no build step. Upload the whole folder to public_html.

  Design rules in use:
  - One theme per visitor, chosen automatically (light by default, dark when the device asks for it).
  - One accent colour (the blue from the MST logo, #135295), used the same way everywhere.
  - One corner-radius rule: none. Every box, button and tile has square corners.
  - Motion is limited to hover and press feedback, and is switched off for visitors who ask for reduced motion.
*/

/* Logo lettering (Anton, SIL Open Font License), served from this site. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f2f3f4;
  --surface: #fafafa;
  --surface-2: #e4e7ea;
  --ink: #15191d;
  --ink-2: #49515a;
  --line: #cbd0d5;
  --accent: #135295;
  --accent-ink: #fafafa;
  --accent-text: #135295;
  --accent-hover: #053668;
  --card: #fafafa;
  --card-line: #cbd0d5;
  --error: #b42525;

  --font: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Anton, Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --header-h: 96px;
  --maxw: 1240px;
  --gutter: 16px;
  --section-y: 56px;
}

/* Dark theme: follows the device unless the visitor picks one with the switch (html[data-theme]). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121518;
    --surface: #1a1e22;
    --surface-2: #23282d;
    --ink: #e8eaec;
    --ink-2: #a9b0b7;
    --line: #343a40;
    --accent: #4f8fd6;
    --accent-ink: #15191d;
    --accent-text: #7fb2ec;
    --accent-hover: #7fb2ec;
    --card: #20262b;
    --card-line: #2f363c;
    --error: #ee7a7a;
  }
}

:root[data-theme="dark"] {
  --bg: #121518;
  --surface: #1a1e22;
  --surface-2: #23282d;
  --ink: #e8eaec;
  --ink-2: #a9b0b7;
  --line: #343a40;
  --accent: #4f8fd6;
  --accent-ink: #15191d;
  --accent-text: #7fb2ec;
  --accent-hover: #7fb2ec;
  --card: #20262b;
  --card-line: #2f363c;
  --error: #ee7a7a;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --section-y: 80px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-anchor: none; /* the header resizes while scrolling; stop the browser re-adjusting the scroll position for it */
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

a {
  color: inherit;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  z-index: 40;
}

.skip-link:focus {
  top: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

/* Shared hover: a small lift. Buttons and nav tabs both use it. */
.btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}

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

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header (floating island + pill nav) ---------- */
/* The island floats and sticks to the top; the nav pills sit below it and scroll away. */
.site-header {
  position: relative;
  z-index: 20;
  padding-block: 14px;
}

/* Only stick on wide screens: on a phone the two-row island would cover too much of the page. */
@media (min-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    background: linear-gradient(var(--bg) 65%, transparent);
  }
}

.island {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 12px 12px 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
}

/* Text logo: heavy "MST", a thin blue divider and the tagline stacked in small capitals. */
.brand-mark {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--accent-text);
}

.brand-rule {
  width: 2px;
  height: 34px;
  border-radius: 2px;
  background: var(--accent);
}

.brand-sub {
  display: grid;
  gap: 1px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Light / dark switch (js/main.js) */
.theme-toggle {
  position: relative;
  flex: none;
  width: 60px;
  height: 34px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--ink-2);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.25s ease, background 0.25s ease;
}

.theme-toggle[aria-checked="true"]::before {
  transform: translateX(26px);
}

.theme-toggle svg {
  position: absolute;
  z-index: 1;
  top: 7px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: color 0.25s ease;
}

.theme-toggle .i-sun {
  left: 7px;
  color: var(--accent-ink);
}

.theme-toggle .i-moon {
  right: 7px;
  color: var(--ink-2);
}

.theme-toggle[aria-checked="true"] .i-sun {
  color: var(--ink-2);
}

.theme-toggle[aria-checked="true"] .i-moon {
  color: var(--accent-ink);
}

.theme-toggle[hidden] {
  display: none;
}

/* Small phones: shrink the logo a little so logo, switch and Menu button stay on one row. */
@media (max-width: 480px) {
  .island {
    gap: 12px 8px;
    padding-left: 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    font-size: 1.9rem;
  }

  .brand-rule {
    height: 28px;
  }

  .brand-sub {
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
  }

  .theme-toggle {
    width: 54px;
    height: 32px;
  }

  .theme-toggle::before {
    width: 18px;
    height: 22px;
  }

  .theme-toggle[aria-checked="true"]::before {
    transform: translateX(22px);
  }

  .theme-toggle svg {
    top: 6px;
  }

  .menu-toggle {
    padding: 0 14px;
  }
}

.island .hs {
  flex: 1 1 100%;
  order: 3;
  --hs-bg: var(--bg);
}

.island .btn {
  display: none;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.9375rem;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.js .menu-toggle {
  display: inline-flex;
  align-items: center;
}

.site-nav .pills {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.nav-link {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .nav-link:hover { transform: none; }
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}

/* Without JavaScript the links stay visible; with it they sit behind the Menu button on small screens. */
.site-nav {
  padding-top: 12px;
}

.js .site-nav {
  display: none;
}

.js .site-nav[data-open="true"] {
  display: block;
}

@media (min-width: 900px) {
  .island {
    flex-wrap: nowrap;
    gap: 24px;
    padding: 10px 10px 10px 24px;
    border-radius: 999px;
  }

  .brand {
    margin-right: 0;
  }

  .island .hs {
    flex: 1 1 auto;
    order: 0;
  }

  .island .theme-toggle {
    order: 1;
  }

  .island .btn {
    display: inline-flex;
    order: 2;
  }

  .js .menu-toggle {
    display: none;
  }

  /* The pill row slips away while scrolling down and returns on scroll up (js/main.js toggles .nav-hidden). */
  .site-nav,
  .js .site-nav {
    display: block;
    max-height: 96px;
    padding-top: 12px;
    padding-bottom: 14px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease, visibility 0s;
  }

  .nav-hidden .site-nav {
    max-height: 0;
    padding-block: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease, visibility 0s 0.3s;
  }

  .site-nav .pills {
    flex-direction: row;
    justify-content: center;
    width: fit-content;
    margin-inline: auto;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  }
}

/* ---------- Headings ---------- */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-lede {
  max-width: 60ch;
  margin-top: 12px;
  color: var(--ink-2);
}

/* ---------- Hero (full-bleed photo that also runs behind the header) ---------- */
/* Hero photo: local copy with the MST stickers painted out (images/hero-clean.jpg, 1536 x 1024). */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(560px, 100svh, 860px);
  padding-block: 190px 96px;
  background: #0c0f12 url("../images/hero-clean.jpg") center / cover no-repeat;
  color: #f2f4f6;
}

/* Darkens the left for the text, the top for the header, and the bottom for the scroll cue. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 11, 14, 0.55) 0%, rgba(8, 11, 14, 0.05) 30%),
    linear-gradient(90deg, rgba(8, 11, 14, 0.9) 0%, rgba(8, 11, 14, 0.62) 42%, rgba(8, 11, 14, 0.08) 80%),
    linear-gradient(180deg, transparent 80%, rgba(8, 11, 14, 0.7) 100%);
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.hero h1 span {
  display: block;
}

.hero-sub {
  max-width: 44ch;
  margin-top: 18px;
  font-size: 1.1875rem;
  color: rgba(242, 244, 246, 0.86);
}

.hero .btn-row {
  gap: 14px;
  margin-top: 30px;
}

.hero .btn {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateX(-50%);
}

.hero-cue svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-cue {
    animation: cue-bob 1.8s ease-in-out infinite;
  }
}

@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

/* Homepage only: the header floats over the photo as frosted glass. */
.home .site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background: none;
}

.home .island,
.home .site-nav .pills {
  border-color: color-mix(in srgb, var(--ink) 16%, transparent);
  background: color-mix(in srgb, var(--surface) var(--glass, 68%), transparent);
  backdrop-filter: blur(14px);
  transition: background-color 0.5s ease;
}

@media (min-width: 900px) {
  .home .site-header {
    position: fixed;
  }

  /* Once the page scrolls, a long, light fade in the page colour sits behind the header so content
     melts away under it instead of showing through the glass. It fades in over half a second. */
  .home .site-header::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 0;
    bottom: -90px;
    left: 0;
    z-index: -1;
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg) 88%, transparent) 0%,
      color-mix(in srgb, var(--bg) 80%, transparent) 30%,
      color-mix(in srgb, var(--bg) 56%, transparent) 52%,
      color-mix(in srgb, var(--bg) 28%, transparent) 72%,
      color-mix(in srgb, var(--bg) 9%, transparent) 88%,
      transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
  }

  .home .site-header.scrolled {
    --glass: 84%;
  }

  .home .site-header.scrolled::before {
    opacity: 1;
  }
}

@media (max-width: 899px) {
  .hero {
    padding-block: 170px 90px;
  }
}

.photo-slot {
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--surface-2);
  border: 1px dashed var(--ink-2);
  color: var(--ink-2);
  font-size: 0.9375rem;
  text-align: center;
}

/* ---------- Range (layout: bento grid, 7 tiles) ---------- */
.range {
  padding-block: var(--section-y);
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 180px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.tile h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.tile p {
  margin-top: 6px;
  color: var(--ink-2);
}

.tile-arrow {
  align-self: flex-end;
  font-size: 1.5rem;
  line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .tile-arrow {
    transition: transform 0.2s ease;
  }
}

.tile:hover .tile-arrow {
  transform: translateX(4px);
}

.tile--steel {
  background: var(--surface-2);
  border-color: var(--surface-2);
}

.tile--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.tile--accent p {
  color: var(--accent-ink);
}

/* Light theme: tiles get a firmer edge and shadow, and the grey ones go charcoal so they stand out from the glow. */
:where(:root[data-theme="light"]) .tile:not(.tile--accent) {
  border-color: #c2c9d0;
  box-shadow: 0 10px 22px -14px rgba(21, 25, 29, 0.35);
}

:where(:root[data-theme="light"]) .tile--steel {
  background: #20262b;
  border-color: #20262b;
  color: #f2f4f6;
}

:where(:root[data-theme="light"]) .tile--steel p {
  color: #b4bcc4;
}

@media (prefers-color-scheme: light) {
  :where(:root:not([data-theme="dark"])) .tile:not(.tile--accent) {
    border-color: #c2c9d0;
    box-shadow: 0 10px 22px -14px rgba(21, 25, 29, 0.35);
  }

  :where(:root:not([data-theme="dark"])) .tile--steel {
    background: #20262b;
    border-color: #20262b;
    color: #f2f4f6;
  }

  :where(:root:not([data-theme="dark"])) .tile--steel p {
    color: #b4bcc4;
  }
}

.tile--large h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

/* Hover or keyboard focus: the tile lifts a little and a bar draws across its top edge (a softer version of the carwash cards). */
.tile {
  position: relative;
}

.tile::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: left center;
}

.tile--accent::before {
  background: var(--accent-ink);
}

@media (prefers-reduced-motion: no-preference) {
  .tile {
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease;
  }

  .tile::before {
    transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .tile:hover,
  .tile:focus-visible {
    transform: translateY(-5px) scale(1.008);
  }
}

.tile:hover,
.tile:focus-visible {
  box-shadow:
    0 16px 30px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent),
    0 -4px 16px -8px color-mix(in srgb, var(--accent) 45%, transparent);
}

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

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

  .tile--large {
    min-height: 280px;
  }

  .t-a {
    grid-column: span 7;
  }

  .t-b {
    grid-column: span 5;
  }

  .t-c,
  .t-d,
  .t-e {
    grid-column: span 4;
  }

  .t-f,
  .t-g {
    grid-column: span 6;
  }
}

/* Phones: the tiles become one row you swipe through, so the section stays short. */
.bento-hint {
  display: none;
}

@media (max-width: 767px) {
  .bento {
    display: flex;
    gap: 10px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 10px var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    align-items: stretch;
    -webkit-overflow-scrolling: touch;
  }

  .bento::-webkit-scrollbar {
    display: none;
  }

  .bento .tile {
    flex: 0 0 74%;
    height: auto;
    min-height: 190px;
    scroll-snap-align: start;
  }

  .bento-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
  }

  .bento-dots {
    display: flex;
    gap: 0;
    margin-left: -6px;
  }

  .bento-dots button {
    display: grid;
    place-items: center;
    width: 18px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .bento-dots button::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ink-2);
    opacity: 0.45;
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  }

  .bento-dots button:hover::before {
    opacity: 1;
  }

  .bento-dots button.on::before {
    background: var(--accent);
    opacity: 1;
    transform: scale(1.4);
  }

  .bento-dots button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-radius: 6px;
  }

  .bento-swipe {
    flex: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 80%, black);
    transition: opacity 0.3s ease;
  }

  .bento-swipe.is-end {
    opacity: 0.45;
  }

  .bento-swipe span {
    display: inline-block;
    font-size: 1.125rem;
    line-height: 1;
  }

  @media (prefers-reduced-motion: no-preference) {
    .bento-swipe:not(.is-end) span {
      animation: swipe-nudge 1.3s ease-in-out infinite;
    }
  }
}

@keyframes swipe-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ---------- Carwash sets (layout: two-column spec comparison) ---------- */
.carwash {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.kits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 32px;
}

.kit {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--card-line);
  border-top: 4px solid var(--ink-2);
  background: var(--card);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Hover or keyboard focus inside a set: it lifts out of the page and its top bar turns blue. */
.kit:hover,
.kit:focus-within {
  border-top-color: var(--accent);
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0 22px 40px -22px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    0 -6px 22px -8px color-mix(in srgb, var(--accent) 55%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .kit,
  .kit:hover,
  .kit:focus-within {
    transform: none;
    transition: border-color 0.2s ease;
  }
}

.kit h3 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.kit-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.stat-num {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  margin-left: 4px;
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0;
}

.stat-label {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.kit-included {
  display: grid;
  gap: 8px;
  margin: 22px 0 24px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
  list-style: none;
}

.kit-included li {
  display: flex;
  gap: 10px;
}

.kit-included li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 0.55em;
  background: var(--accent);
}

.kit-included b {
  color: var(--ink);
}

.kit .btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 768px) {
  .kits {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* ---------- Services (layout: large link rows) ---------- */
.services {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--card-line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--card) 85%, transparent);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.spec:hover,
.spec:focus-visible {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 22px 40px -24px color-mix(in srgb, var(--accent) 70%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .spec,
  .spec:hover,
  .spec:focus-visible {
    transform: none;
  }
}

/* Light theme: a firmer edge and a soft shadow so the panels stand out from the page. */
:where(:root[data-theme="light"]) .spec {
  border-color: #b9c1c9;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(21, 25, 29, 0.08), 0 14px 26px -16px rgba(21, 25, 29, 0.4);
}

@media (prefers-color-scheme: light) {
  :where(:root:not([data-theme="dark"])) .spec {
    border-color: #b9c1c9;
    background: var(--card);
    box-shadow: 0 1px 2px rgba(21, 25, 29, 0.08), 0 14px 26px -16px rgba(21, 25, 29, 0.4);
  }
}

.spec--soon {
  border-style: dashed;
}

/* On hover the glow ring would show through the dashes as a stippled line, so the border goes solid like the other cards. */
.spec--soon:hover,
.spec--soon:focus-visible {
  border-style: solid;
}

.spec-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-text);
}

.spec-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spec h3 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.spec p {
  color: var(--ink-2);
}

.spec .soon {
  align-self: flex-start;
  margin-top: 0;
}

.spec ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}

.spec li {
  position: relative;
  padding-left: 26px;
}

.spec li::before,
.spec li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
}

.spec li::before {
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.spec li::after {
  background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.4 2.4 4.6-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.4 2.4 4.6-5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.spec-link {
  margin-top: auto;
  padding-top: 6px;
  color: var(--accent-text);
  font-weight: 800;
}

.spec-link span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.spec:hover .spec-link span,
.spec:focus-visible .spec-link span {
  transform: translateX(5px);
}

/* ---------- Contact (layout: bento of rounded cards) ---------- */
/* The contact panel is the one place with rounded corners; the rest of the site stays square for now. */
.contact {
  --r-lg: 28px;
  --r-md: 20px;
  padding-block: var(--section-y);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.contact .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

.contact .ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact .ico--soft {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-text);
}

.contact-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.contact-value {
  display: block;
  margin-top: 2px;
  font-size: 1.0625rem;
  font-weight: 700;
  font-style: normal;
  overflow-wrap: anywhere;
}

/* Phone block */
.contact-phone {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}

.contact-phone:hover {
  background: var(--accent-hover);
}

.contact-phone .contact-label {
  color: var(--accent-ink);
  opacity: 0.8;
}

.contact-phone .ico {
  background: var(--accent-ink);
  color: var(--accent);
}

.contact-phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.phone {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Email and address cards */
.contact-side {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--card-line);
  border-radius: var(--r-md);
  background: var(--card);
  text-decoration: none;
}

a.contact-card:hover {
  border-color: var(--ink);
}

/* Action bar */
.contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--bg);
}

.contact-bar p {
  font-weight: 600;
}

.contact .btn {
  border-radius: 999px;
}

.contact-bar .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.contact-bar .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.contact-bar .btn-secondary {
  border-color: var(--bg);
  color: var(--bg);
}

.contact-bar .btn-secondary:hover {
  background: var(--bg);
  color: var(--ink);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .contact-bar {
    grid-column: 1 / -1;
    padding: 16px 16px 16px 28px;
    border-radius: 999px;
  }
}

/* Light theme: the header bar and nav pills are solid charcoal with the dark-theme colours inside, so they stand out from the page. */
:root[data-theme="light"] .island,
:root[data-theme="light"] .site-nav .pills {
  --surface: #20262b;
  --surface-2: #2d353c;
  --ink: #e8eaec;
  --ink-2: #a9b0b7;
  --line: #3a434b;
  --accent: #4f8fd6;
  --accent-text: #7fb2ec;
  --accent-ink: #15191d;
  --glass: 94%;
  border-color: #20262b;
  background: #20262b;
  color: #e8eaec;
  box-shadow: 0 14px 28px -12px rgba(21, 25, 29, 0.6);
}

:root[data-theme="light"] .island .hs {
  --hs-bg: #15191d;
  --hs-ink: #e8eaec;
  --hs-line: #3a434b;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .island,
  :root:not([data-theme="dark"]) .site-nav .pills {
    --surface: #20262b;
    --surface-2: #2d353c;
    --ink: #e8eaec;
    --ink-2: #a9b0b7;
    --line: #3a434b;
    --accent: #4f8fd6;
    --accent-text: #7fb2ec;
    --accent-ink: #15191d;
    --glass: 94%;
    border-color: #20262b;
    background: #20262b;
    color: #e8eaec;
    box-shadow: 0 14px 28px -12px rgba(21, 25, 29, 0.6);
  }

  :root:not([data-theme="dark"]) .island .hs {
    --hs-bg: #15191d;
    --hs-ink: #e8eaec;
    --hs-line: #3a434b;
  }
}

/* ---------- Page glow: blue light from the hero photo (top left) down to the bottom right, with a faint grid ---------- */
main {
  position: relative;
  isolation: isolate;
  --glow-top: 0px;
}

/* Home: the glow starts where the hero ends (main.js sets the exact figure; this is the fallback). */
.home main {
  --glow-top: clamp(560px, 100svh, 860px);
}

main::before,
main::after {
  content: "";
  position: absolute;
  top: calc(var(--glow-top) - 40px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

main::before {
  background:
    linear-gradient(135deg, transparent 8%, color-mix(in srgb, var(--accent) 22%, transparent) 30%, color-mix(in srgb, var(--accent) 8%, transparent) 48%, transparent 66%),
    radial-gradient(45% 30% at 0% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 180px);
  mask-image: linear-gradient(180deg, transparent 0, #000 180px);
}

main::after {
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 62%), linear-gradient(180deg, transparent 0, #000 180px);
  mask-image: linear-gradient(135deg, #000 0%, transparent 62%), linear-gradient(180deg, transparent 0, #000 180px);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Light theme: the beam is toned down so text stays easy to read; the grid stays a little firmer. */
:root[data-theme="light"] main::before {
  opacity: 0.7;
}

:root[data-theme="light"] main::after {
  opacity: 1;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) main::before {
    opacity: 0.7;
  }

  :root:not([data-theme="dark"]) main::after {
    opacity: 1;
  }
}

/* ---------- Footer: logo, one line of contact details, copyright, back to top ---------- */
.site-footer {
  position: relative;
  padding: 52px 0 22px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 140% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--bg);
  text-align: center;
}

.footer-up {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.footer-up:hover {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translate(-50%, calc(-50% - 3px));
}

.footer-up svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 0;
  margin-top: 22px;
  font-weight: 600;
}

.footer-line > * {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 18px;
  color: var(--ink);
  font-style: normal;
  text-decoration: none;
}

.footer-line > * + * {
  border-left: 1px solid var(--line);
}

.footer-line svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-line a:hover {
  color: var(--accent-text);
}

.footer-copy {
  margin-top: 26px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

@media (max-width: 760px) {
  .footer-line > * + * {
    border-left: 0;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Products page ---------- */
.page-head {
  padding-block: 40px 24px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-sub {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

/* Search + category filter (browse panel with tick boxes). Built by js/products.js. */
.tools {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.no-js .tools { display: none; }

.tools-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tools .hs {
  flex: 1 1 320px;
  --hs-bg: var(--card);
}

.tools .hs-field {
  min-height: 56px;
}

.tools .hs-input {
  height: 50px;
  font-size: 1.0625rem;
}

.tools .hs-list {
  z-index: 15;
}

.browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.browse-btn:hover,
.browse-btn[aria-expanded="true"] {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.browse-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.browse-btn .chev {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.browse-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.browse-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent-ink);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

.browse-badge[hidden] {
  display: none;
}

.browse-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 15;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.browse-panel[hidden] {
  display: none;
}

.browse-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 700px) {
  .browse-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .browse-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cat-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  cursor: pointer;
}

.cat-card:hover {
  border-color: var(--ink);
}

.cat-card--all {
  grid-column: 1 / -1;
}

.cat-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.cat-card:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.cat-card:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
}

.cat-box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink-2);
  border-radius: 7px;
  background: transparent;
}

.cat-box svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.cat-card:has(input:checked) .cat-box {
  border-color: var(--accent);
  background: var(--accent);
}

.cat-card:has(input:checked) .cat-box svg {
  opacity: 1;
}

.cat-name {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
}

.cat-num {
  color: var(--ink-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.cat-desc {
  grid-column: 2 / -1;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.4;
}

.cat-card--all .cat-desc {
  display: none;
}

.browse-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 6px 0;
  border-top: 1px solid var(--line);
}

.browse-foot .btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.9375rem;
}

.link-btn {
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--accent-text);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-chips:empty {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip:hover {
  background: var(--accent-hover);
}

.filter-chip i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  font-style: normal;
  line-height: 1;
}

.result-count {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

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

.cat { padding-top: 40px; }
.cat[hidden] { display: none; }

.cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.cat-head h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cat-head p { color: var(--ink-2); }

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

.prod {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.prod[hidden] { display: none; }

.prod-name { font-weight: 500; line-height: 1.35; }

.prod-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.prod-quote {
  grid-column: 1 / -1;
  min-height: 44px;
  font-size: 0.9375rem;
}

.empty { padding: 48px 0; max-width: 60ch; }
.empty[hidden] { display: none; }

@media (min-width: 720px) {
  .prod { grid-template-columns: 1fr 120px 180px; gap: 16px; }
  .prod-price { text-align: right; }
  .prod-quote { grid-column: auto; }
}

/* ---------- Header product search ---------- */
/* Variants restyle it through --hs-* custom properties. */
.hs {
  position: relative;
  width: 100%;
}

.hs-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 8px 0 16px;
  border: 2px solid var(--hs-line, var(--line));
  border-radius: var(--hs-radius, 999px);
  background: var(--hs-bg, var(--surface));
  color: var(--hs-ink, var(--ink));
}

.hs-field:focus-within {
  border-color: var(--hs-focus, var(--accent));
  outline: 3px solid var(--hs-ring, color-mix(in srgb, var(--accent) 35%, transparent));
  outline-offset: 0;
}

.hs-field svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.hs-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  outline: none;
}

.hs-input::placeholder {
  color: var(--hs-placeholder, var(--ink-2));
  opacity: 1;
}

.hs-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.hs-go {
  flex: none;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--hs-go-bg, var(--accent));
  color: var(--hs-go-ink, var(--accent-ink));
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.hs-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: min(70vh, 560px);
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.hs-list[hidden] {
  display: none;
}

.hs-opt a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
}

.hs-opt[aria-selected="true"] a {
  background: var(--surface-2);
}

.hs-name {
  font-weight: 600;
  line-height: 1.3;
}

.hs-name mark {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: inherit;
  border-radius: 3px;
}

.hs-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hs-meta {
  grid-column: 1 / -1;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.hs-opt a.hs-all {
  display: block;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  color: var(--accent-text);
  font-weight: 600;
}

.hs-empty {
  padding: 16px 12px;
  color: var(--ink-2);
}

/* ---------- Nav pill bubble (js/nav-pill.js) ---------- */
.pills.has-bubble {
  position: relative;
}

.pill-bubble {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 999px;
  background: var(--accent);
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), width 0.38s cubic-bezier(0.4, 0, 0.2, 1), height 0.2s ease, opacity 0.2s ease, translate 0.18s ease, box-shadow 0.18s ease;
}

.pills[data-pill="spring"] .pill-bubble {
  transition-duration: 0.55s, 0.55s, 0.2s, 0.2s;
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pills[data-pill="stretch"] .pill-bubble {
  transition-duration: 0.17s, 0.17s, 0.2s, 0.2s;
  transition-timing-function: cubic-bezier(0.5, 0, 0.3, 1);
}

.pill-bubble.no-anim {
  transition: none !important;
}

.pills.has-bubble .nav-link,
.pills.has-bubble .nav-link:hover,
.pills.has-bubble .nav-link[aria-current="page"] {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--ink);
  transition: color 0.2s ease, transform 0.18s ease;
}

.pills.has-bubble .nav-link.is-lit {
  color: var(--accent-ink);
}

.pills.has-bubble .nav-link:not(.is-lit):hover {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--accent) 80%, transparent);
  color: var(--accent-text);
}

/* When the tab under the bubble is hovered, the bubble lifts with it and gets the same glow as the buttons. */
.pills.has-bubble:has(.nav-link.is-lit:hover) .pill-bubble {
  translate: 0 -2px;
  box-shadow: 0 12px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .pill-bubble {
    transition: none !important;
  }
}

/* ---------- Quote pop-up (js/quote.js) ---------- */
.modal-open {
  overflow: hidden;
}

.quote-dialog {
  width: min(520px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: auto;
}

.quote-dialog::backdrop {
  background: rgba(8, 12, 16, 0.62);
  backdrop-filter: blur(3px);
}

@media (prefers-reduced-motion: no-preference) {
  .quote-dialog[open] {
    animation: quote-in 0.22s ease-out;
  }

  .quote-dialog[open]::backdrop {
    animation: quote-fade 0.22s ease-out;
  }
}

@keyframes quote-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes quote-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.quote-card {
  position: relative;
  padding: 32px 28px 28px;
}

.quote-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.quote-close:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.quote-card h2 {
  padding-right: 52px;
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.quote-lead {
  margin-top: 8px;
  color: var(--ink-2);
}

.quote-product {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 0.9375rem;
}

.quote-card form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.quote-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.quote-opt {
  color: var(--ink-2);
  font-weight: 400;
}

.quote-req {
  color: var(--accent-text);
}

.quote-field input,
.quote-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.quote-field textarea {
  resize: vertical;
  min-height: 84px;
}

.quote-field input:focus,
.quote-field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 0;
}

.quote-field input[aria-invalid="true"] {
  border-color: #d64545;
}

.quote-error {
  margin-top: 6px;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 600;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.quote-card .btn {
  border-radius: 999px;
}

.quote-note {
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.quote-view[hidden] {
  display: none;
}

.quote-view .quote-actions {
  margin-top: 20px;
}

/* ---------- About page ---------- */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

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

.about-wrap {
  display: grid;
  gap: 32px;
}

.about-side h1 {
  margin-top: 8px;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.about-lead {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.about-photo {
  margin-top: 24px;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
}

.journey {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.step-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step h2 {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.step p {
  margin-top: 8px;
  color: var(--ink-2);
}

.step-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.step-chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 48px;
  padding: 22px 24px;
  border-radius: 28px;
  background: var(--ink);
  color: var(--bg);
}

.about-cta p {
  font-size: 1.125rem;
  font-weight: 700;
}

.about-cta .btn {
  border-radius: 999px;
}

.about-cta .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.about-cta .btn-secondary {
  border-color: var(--bg);
  color: var(--bg);
}

.about-cta .btn-secondary:hover {
  background: var(--bg);
  color: var(--ink);
}

/* Wide screens: sticky intro on the left, steps on the right joined by a rail.
   Each dot sits on the vertical centre of its card and the rail runs dot to dot. */
@media (min-width: 900px) {
  .about {
    padding-top: 56px;
  }

  .about-wrap {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: start;
  }

  .about-side {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }

  .journey {
    --rail-x: -28px; /* horizontal centre of the rail and dots, measured from the card edge */
    --gap: 18px;
    position: relative;
    margin-left: 32px;
    gap: var(--gap);
  }

  .step::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: var(--rail-x);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--bg);
    transform: translate(-50%, -50%);
  }

  .step::after {
    content: "";
    position: absolute;
    top: calc(var(--gap) / -2);
    bottom: calc(var(--gap) / -2);
    left: var(--rail-x);
    width: 2px;
    background: var(--line);
    transform: translateX(-50%);
  }

  .step:first-child::after {
    top: 50%;
  }

  .step:last-of-type::after {
    bottom: 50%;
  }

  /* Scroll animation (js/journey.js): the grey rail fills blue as you read down, dots fill when reached.
     Without JavaScript the dots simply stay blue. */
  .js .step::before {
    z-index: 2;
    border: 2px solid var(--line);
    background: var(--bg);
    transition: background 0.25s ease, border-color 0.25s ease;
  }

  .js .step.is-reached::before {
    border-color: var(--accent);
    background: var(--accent);
    animation: dot-pop 0.45s ease-out;
  }

  .journey-fill {
    position: absolute;
    z-index: 1;
    left: var(--rail-x);
    width: 2px;
    height: 0;
    background: var(--accent);
    transform: translateX(-50%);
    transition: height 0.12s linear;
  }
}

/* Phones and tablets: the same blue-filling rail down the left of the steps (js/journey.js drives it). */
@media (max-width: 899px) {
  .journey {
    --rail-x: -21px; /* horizontal centre of the rail and dots, measured from the card edge */
    --gap: 14px;
    position: relative;
    margin-left: 30px;
    gap: var(--gap);
  }

  .step::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 50%;
    left: var(--rail-x);
    width: 15px;
    height: 15px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 0 0 4px var(--bg);
    transform: translate(-50%, -50%);
    transition: background 0.25s ease, border-color 0.25s ease;
  }

  .step::after {
    content: "";
    position: absolute;
    top: calc(var(--gap) / -2);
    bottom: calc(var(--gap) / -2);
    left: var(--rail-x);
    width: 3px;
    background: var(--line);
    transform: translateX(-50%);
  }

  .step:first-child::after {
    top: 50%;
  }

  .step:last-of-type::after {
    bottom: 50%;
  }

  .step.is-reached::before {
    border-color: var(--accent);
    background: var(--accent);
    animation: dot-pop 0.45s ease-out;
  }

  .journey-fill {
    position: absolute;
    z-index: 1;
    left: var(--rail-x);
    width: 3px;
    height: 0;
    background: var(--accent);
    box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent);
    transform: translateX(-50%);
    transition: height 0.12s linear;
  }
}

@keyframes dot-pop {
  0% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(1.7); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Photo slots filled with an image */
.photo-slot--img {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--surface-2);
}

.photo-slot--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Service pages (Repairs and Service, Custom Pressure Washers) ---------- */
.svc-hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-block: 40px 8px;
}

.svc-hero h1 {
  margin-top: 8px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.svc-lead {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.6;
}

.svc-hero .btn-row {
  gap: 12px;
  margin-top: 28px;
}

.svc-hero .btn,
.svc-section .btn {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
}

.svc-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-2);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55);
}

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

.svc-photo--fit img {
  object-fit: contain;
  background: #fff;
}

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

.svc-head {
  max-width: 62ch;
}

.svc-head h2 {
  margin-top: 6px;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.svc-head p {
  margin-top: 10px;
  color: var(--ink-2);
}

.svc-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.svc-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.svc-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.svc-card > p {
  margin-top: 8px;
  color: var(--ink-2);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 800;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chip-list li {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.svc-split {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}

.svc-note {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

/* Spec tables on the Custom Pressure Washers page: one row per topic, with tags for the options. */
.spec-table {
  width: 100%;
  margin-top: 20px;
  border: 1px solid var(--card-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 20px;
  background: color-mix(in srgb, var(--card) 85%, transparent);
  overflow: hidden;
  text-align: left;
}

.spec-table th,
.spec-table td {
  padding: 14px 20px;
  vertical-align: middle;
  border-top: 1px solid var(--line);
}

.spec-table thead th {
  padding-block: 10px;
  border-top: 0;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec-table tbody th {
  width: 36%;
  font-size: 1rem;
  font-weight: 800;
}

.spec-table tbody tr {
  transition: background-color 0.25s ease;
}

.spec-table tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

.tag--key {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-text);
}

.spec-note {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 0.9375rem;
}

/* Light theme: a firmer edge and a soft shadow, like the other panels. */
:where(:root[data-theme="light"]) .spec-table {
  border-color: #b9c1c9;
  background: var(--card);
  box-shadow: 0 14px 26px -18px rgba(21, 25, 29, 0.4);
}

@media (prefers-color-scheme: light) {
  :where(:root:not([data-theme="dark"])) .spec-table {
    border-color: #b9c1c9;
    background: var(--card);
    box-shadow: 0 14px 26px -18px rgba(21, 25, 29, 0.4);
  }
}

@media (max-width: 480px) {
  .spec-table th,
  .spec-table td {
    padding: 12px 14px;
  }

  .spec-table tbody th {
    width: 34%;
  }
}

/* The five choices: numbered stops on a blue line. Each one jumps to its section further down. */
.choose-path {
  position: relative;
  display: grid;
  gap: 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}

.choose-path::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 30px;
  bottom: 30px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 30%, var(--line)));
}

.stop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stop h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stop-dot {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent-text);
  box-shadow: 0 0 0 6px var(--bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.stop-dot svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stop-dot b {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 800;
}

/* On hover the circle turns blue, so the number badge flips to a light chip with a ring to stay visible. */
.stop-dot b {
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.stop:hover .stop-dot b,
.stop:focus-visible .stop-dot b {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 0 0 3px var(--bg);
}

.stop:hover .stop-dot,
.stop:focus-visible .stop-dot {
  background: var(--accent);
  color: var(--accent-ink);
}

.stop:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 6px;
  border-radius: 12px;
}

/* Where the stops jump to: leave room under the sticky header. */
[id^="svc-"] {
  scroll-margin-top: 120px;
}

@media (min-width: 760px) {
  .choose-path {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .choose-path::before {
    left: 10%;
    right: 10%;
    top: 29px;
    bottom: auto;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, var(--line)));
  }

  .stop {
    flex-direction: column;
    gap: 12px;
    padding-inline: 6px;
    text-align: center;
  }

  .stop:hover,
  .stop:focus-visible {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stop:hover,
  .stop:focus-visible {
    transform: none;
  }
}

.gallery {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  grid-template-columns: repeat(2, 1fr);
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-2);
}

.svc-contact {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.svc-contact dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.svc-contact dd {
  margin: 2px 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.svc-contact address {
  font-style: normal;
}

@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .svc-hero { grid-template-columns: 1.1fr 0.9fr; gap: 56px; padding-top: 56px; }
  .svc-grid--2 { grid-template-columns: 1fr 1fr; }
  .svc-split { grid-template-columns: 1fr 1fr; gap: 40px; }
  .svc-split--flip .svc-photo { order: -1; }
  .gallery { grid-template-columns: repeat(5, 1fr); }
  .svc-contact { grid-template-columns: 1fr 1fr 1.6fr; }
}

/* Contact block reused on inner pages: sits below the content with room above it */
.contact--page {
  margin-top: var(--section-y);
}

/* ---------- 404 page ---------- */
.nf {
  display: grid;
  justify-items: center;
  padding-block: 72px 24px;
  text-align: center;
}

.nf-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 11rem);
  line-height: 0.9;
  color: var(--accent-text);
  letter-spacing: 0.02em;
}

.nf h1 {
  margin-top: 8px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.nf-text {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.nf .btn-row {
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.nf .btn {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
}

.nf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.nf-links a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nf-links a:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  transform: translateY(-2px);
}

/* "Coming soon" tag on homepage tiles whose pages are not built yet */
.soon {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Phone fixes: bigger tap targets, solid open menu ---------- */
@media (max-width: 899px) {
  /* Logo links, the footer phone and email links and the light/dark switch were under the 44px touch size. */
  .brand,
  .footer-brand,
  .footer-line a {
    min-height: 44px;
  }

  .theme-toggle::after {
    content: "";
    position: absolute;
    inset: -6px -4px;
  }

  /* On the homepage the open menu panel is nearly opaque so the hero text cannot show through it. */
  .home .site-nav {
    --glass: 96%;
  }
}

/* ---------- Quote list (js/quote-list.js) ---------- */
/* The per-row control on the Products page: "Add to Quote", then a quantity stepper. */
.prod-act {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  min-height: 44px;
}

.prod-act .prod-add {
  flex: 1;
  min-height: 44px;
  font-size: 0.9375rem;
}

@media (min-width: 720px) {
  .prod-act {
    grid-column: auto;
  }
}

.qstep {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.qstep button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.qstep button:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
}

.qstep b {
  min-width: 34px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.qstep--sm button {
  width: 30px;
  height: 30px;
}

/* Floating "Quote list (n)" button, shown on every page while the list has items. */
.ql-fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 800;
  box-shadow: 0 16px 34px -10px color-mix(in srgb, var(--accent) 80%, black);
  cursor: pointer;
  visibility: hidden;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s 0.25s;
}

.ql-fab.show {
  visibility: visible;
  transform: scale(1);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ql-fab:hover.show {
  transform: translateY(-2px) scale(1);
}

.ql-fab svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The list inside the request pop-up. */
.quote-items {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

.qi-title {
  font-size: 1.0625rem;
  font-weight: 800;
}

.qi-lines {
  max-height: 260px;
  margin: 8px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.qi-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.qi-line:last-child {
  border-bottom: 0;
}

.qi-info {
  display: grid;
}

.qi-name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.qi-price {
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.qi-remove {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.qi-remove:hover {
  color: var(--accent-text);
}

.qi-note {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

@media (max-width: 899px) {
  /* Bigger thumb targets for the quantity buttons on phones. */
  .qstep button {
    width: 42px;
    height: 42px;
  }

  .qstep--sm button {
    width: 38px;
    height: 38px;
  }
}

/* ---------- Products page: category sidebar (a swipe row on phones) and product cards (js/products.js) ---------- */
.browse-btn[hidden],
.filter-chips[hidden] {
  display: none;
}

.shop-side {
  display: none;
}

.has-shop .shop-side {
  display: block;
}

/* Phones and tablets: the categories are a row of pills you swipe through. */
.has-shop .shop-side .cat-head {
  display: none;
}

.side-list {
  display: flex;
  gap: 8px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.side-list::-webkit-scrollbar {
  display: none;
}

.side-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.side-btn b {
  padding: 1px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 16%, transparent);
  font-size: 0.75rem;
  font-weight: 800;
}

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

.side-btn.on {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

/* Product cards */
.has-shop .prod-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.has-shop .prod {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  grid-template-areas:
    "ic body act"
    "ic price act";
  gap: 2px 14px;
  padding: 12px 14px;
  border: 1px solid var(--card-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.has-shop .prod:hover {
  border-color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .has-shop .prod:hover {
    transform: translateX(4px);
  }
}

.prod-ic {
  grid-area: ic;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-text);
}

.prod-ic svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prod-body {
  grid-area: body;
  min-width: 0;
}

.has-shop .prod-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.has-shop .prod-price {
  grid-area: price;
}

.prod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.prod-tag {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.prod-tag--key {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-text);
}

.has-shop .prod-act {
  grid-area: act;
  grid-column: auto;
  min-height: 0;
}

/* "Add to Quote" becomes a round + (its label stays for screen readers and as a tooltip). */
.has-shop .prod-act .prod-add {
  flex: none;
  width: 42px;
  height: 42px;
  min-height: 0;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font-size: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.has-shop .prod-act .prod-add::before {
  content: "+";
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

.has-shop .prod-act .prod-add:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(90deg);
}

@media (min-width: 720px) {
  .has-shop .prod {
    grid-template-columns: 46px minmax(0, 1fr) auto auto;
    grid-template-areas: "ic body price act";
    align-items: center;
    gap: 16px;
  }

  .has-shop .prod-price {
    text-align: right;
  }
}

/* Desktop: a sticky sidebar. Its heading shares the category heading style, so "Products" and its box sit level with the category title and its cards. */
@media (min-width: 900px) {
  .has-shop {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0 32px;
    align-items: start;
  }

  .has-shop .shop-side {
    position: sticky;
    top: 150px; /* below the header even when its nav row is showing, so the sidebar never shifts */
    padding-top: 40px;
  }

  .has-shop .shop-side .cat-head {
    display: flex;
  }

  .side-list {
    display: grid;
    gap: 4px;
    margin: 16px 0 0;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: max(260px, calc(100vh - 340px));
    border: 1px solid var(--card-line);
    border-radius: 20px;
    background: color-mix(in srgb, var(--card) 88%, transparent);
  }

  .side-btn {
    width: 100%;
    padding: 11px 14px;
    border: 0;
    border-radius: 12px;
    background: none;
    white-space: normal;
  }

  .side-btn:hover {
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }

  .side-btn.on {
    background: var(--accent);
    color: var(--accent-ink);
  }
}

/* Light theme: a firmer edge so the boxes stand out from the page. */
:where(:root[data-theme="light"]) :is(.has-shop .prod, .side-list, .side-btn) {
  border-color: #b9c1c9;
}

:where(:root[data-theme="light"]) .has-shop .prod,
:where(:root[data-theme="light"]) .side-list {
  background: var(--card);
  box-shadow: 0 10px 22px -16px rgba(21, 25, 29, 0.4);
}

@media (prefers-color-scheme: light) {
  :where(:root:not([data-theme="dark"])) :is(.has-shop .prod, .side-list, .side-btn) {
    border-color: #b9c1c9;
  }

  :where(:root:not([data-theme="dark"])) .has-shop .prod,
  :where(:root:not([data-theme="dark"])) .side-list {
    background: var(--card);
    box-shadow: 0 10px 22px -16px rgba(21, 25, 29, 0.4);
  }
}

/* Phones: a "Filters" button opens a small panel where you tick the categories you want. The sidebar is for desktop. */
.has-shop .shop-side {
  display: none;
}

@media (min-width: 900px) {
  .has-shop .shop-side {
    display: block;
  }

  .has-shop-ui .browse-btn,
  .has-shop-ui .browse-panel,
  .has-shop-ui .filter-chips {
    display: none;
  }
}

@media (max-width: 899px) {
  .has-shop-ui .tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .has-shop-ui .tools .hs-field,
  .has-shop-ui .tools .hs-input {
    min-width: 0;
  }

  .has-shop-ui .tools-bar {
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .has-shop-ui .tools .hs {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .has-shop-ui .browse-btn {
    min-height: 56px;
    padding: 0 16px;
    gap: 8px;
  }

  .has-shop-ui .browse-btn .chev {
    display: none;
  }

  /* A small, scrollable panel instead of a full-width sheet. */
  .has-shop-ui .browse-panel {
    left: 0;
    right: 0;
    margin-inline: auto;
    /* The same blue beam and faint grid as the page background. */
    background:
      radial-gradient(70% 45% at 0% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
      linear-gradient(135deg, transparent 6%, color-mix(in srgb, var(--accent) 24%, transparent) 30%, color-mix(in srgb, var(--accent) 8%, transparent) 50%, transparent 68%),
      linear-gradient(135deg, transparent 0%, var(--surface) 72%),
      linear-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
      var(--surface);
    background-attachment: local;
    width: min(320px, 100%);
    max-height: min(70vh, 460px);
    overflow-y: auto;
    padding: 10px;
    border-radius: 20px;
  }

  .has-shop-ui .browse-grid {
    gap: 6px;
  }
}

@media (max-width: 899px) {
  .has-shop-ui .cat-card {
    padding: 11px 14px;
    border-radius: 14px;
  }

  .has-shop-ui .cat-desc {
    display: none;
  }
}

@media (max-width: 899px) {
  /* Keep "Clear all" and "Show N products" in view while the category list scrolls. */
  .has-shop-ui .browse-foot {
    position: sticky;
    bottom: -10px;
    margin: 6px -10px -10px;
    padding: 10px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 20px 20px;
    background: var(--surface);
  }
}

@media (max-width: 899px) {
  /* Let the panel's glow show through the category cards and the pinned footer. */
  .has-shop-ui .cat-card {
    background: color-mix(in srgb, var(--card) 72%, transparent);
  }

  .has-shop-ui .cat-card:has(input:checked) {
    background: color-mix(in srgb, var(--accent) 16%, var(--card));
  }

  .has-shop-ui .browse-foot {
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
