/* ==========================================================================
   DR Appliance LTD
   Charcoal ink, the red from the gear in their logo (heat), the blue from the
   snowflake (cold). Zilla Slab headings, Source Sans 3 body.
   ========================================================================== */

:root {
  /* Colour */
  --ink: #0d1117;
  --ink-2: #131a23;
  --ink-3: #1c2631;
  --red: #e63329;
  --red-light: #ef5147;
  --red-mid: #cf2b21;
  --red-dark: #c4261d;
  --red-deep: #b0221a;
  --red-bright: #ff7469;
  --red-glint: #ffe2dc;
  --ice: #2196d3;
  --ice-light: #8fd0f5;
  --ice-dark: #136a99;
  --ice-tint: #e6f3fa;
  --overlay-soft: rgba(13, 17, 23, 0.45);
  --overlay-deep: rgba(6, 9, 13, 0.94);
  --paper: #f5f4f1;
  --paper-2: #ebe9e4;
  --white: #ffffff;
  --text: #161b22;
  --muted: #4c5562;
  --line: #d8d5ce;
  --field-line: #6b7480;
  --btn-light-mid: #f1f0ec;
  --btn-light-low: #dedbd4;
  --line-dark: rgba(255, 255, 255, 0.15);
  --on-dark: #eef1f4;
  --on-dark-muted: #b9c3cf;
  --error: #b3261e;
  --success: #1b6e3c;
  --red-glow: rgba(230, 51, 41, 0.22);
  --red-glow-strong: rgba(230, 51, 41, 0.5);

  /* Type */
  --font-head: "Zilla Slab", Rockwell, Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --nav-h: 76px;

  /* Radii */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-card: 0 4px 16px rgba(13, 17, 23, 0.06), 0 1px 3px rgba(13, 17, 23, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-card-hover: 0 28px 56px rgba(13, 17, 23, 0.14), 0 10px 20px rgba(13, 17, 23, 0.08);
  --shadow-nav: 0 6px 24px rgba(0, 0, 0, 0.4);

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  /* Keeps focused elements clear of the chat launcher fixed to the bottom */
  scroll-padding-bottom: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0938rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

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

a {
  color: var(--red-deep);
  text-underline-offset: 3px;
}

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

dl,
dd {
  margin: 0;
}

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

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

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

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

.section--white {
  background: var(--white);
}

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

.nowrap {
  white-space: nowrap;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 400;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--red-dark);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

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

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}

.logo-mark {
  width: auto;
  height: 44px;
  flex-shrink: 0;
}

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

.logo-name {
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
}

.logo-sub {
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice-light);
}

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

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  color: var(--white);
  /* Darker than the logo red in the middle, where the label sits: white on #e63329 is only 4.3:1 */
  background: linear-gradient(180deg, var(--red) 0%, var(--red-mid) 50%, var(--red-deep) 100%);
  box-shadow: 0 4px 15px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(230, 51, 41, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-light {
  color: var(--ink);
  background: linear-gradient(180deg, var(--white) 0%, var(--btn-light-mid) 50%, var(--btn-light-low) 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

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

.btn-lg {
  min-height: 56px;
  padding: 1rem 1.9rem;
  font-size: 1.12rem;
}

.btn-block {
  width: 100%;
}

.btn-nav {
  padding-inline: 1.5rem;
  white-space: nowrap;
}

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

.text-link:hover {
  color: var(--red-deep);
}

.text-link--light {
  color: var(--white);
  text-decoration-color: var(--red-bright);
}

.text-link--light:hover {
  color: var(--ice-light);
  text-decoration-color: var(--ice-light);
}

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

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

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

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0 11px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

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

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

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

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

/* Mobile menu: solid background, never see-through */
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  padding: var(--space-1) var(--gutter) var(--space-3);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  box-shadow: var(--shadow-nav);
}

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

.nav-links > li > a,
.subnav-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 48px;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-links > li > a::after,
.subnav-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition-base);
}

.nav-links > li > a:hover::after,
.nav-links > li > a:focus-visible::after,
.nav-links > li > a[aria-current="page"]::after,
.subnav-toggle:hover::after,
.subnav-toggle.is-current::after {
  width: 100%;
}

.subnav-toggle svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  transition: transform var(--transition-base);
}

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

.subnav {
  display: none;
  padding: 0 0 var(--space-1) var(--space-2);
  border-left: 2px solid var(--red);
}

.subnav.open {
  display: block;
}

.subnav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
  text-decoration: none;
}

.subnav a:hover,
.subnav a[aria-current="page"] {
  color: var(--ice-light);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

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

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

  .nav-links > li {
    position: relative;
  }

  .nav-links > li > a,
  .subnav-toggle {
    width: auto;
  }

  .subnav {
    position: absolute;
    top: calc(100% + 6px);
    left: -1.2rem;
    min-width: 15.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--ink);
    border: 1px solid var(--line-dark);
    border-top: 3px solid var(--red);
    border-left-width: 1px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-nav);
  }
}

/* ---------- Hero (home and inner pages) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(84vh, 720px);
  padding-block: calc(var(--nav-h) + var(--space-4)) var(--space-5);
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
}

.hero--page {
  min-height: min(64vh, 560px);
  padding-block: calc(var(--nav-h) + var(--space-4)) var(--space-4);
}

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

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

/* Left-weighted so the headline stays readable over the photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, 0.96) 0%, rgba(13, 17, 23, 0.88) 40%, rgba(13, 17, 23, 0.55) 72%, rgba(13, 17, 23, 0.35) 100%),
    linear-gradient(180deg, rgba(13, 17, 23, 0.6) 0%, rgba(13, 17, 23, 0) 30%);
}

.hero .container {
  position: relative;
}

.hero-grid {
  display: grid;
  gap: var(--space-5);
  align-items: end;
}

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

.hero-title {
  margin-bottom: var(--space-3);
  font-size: clamp(2.1rem, min(4.8vw, 6.4vh), 3.3rem);
  font-weight: 700;
  color: var(--white);
}

.hero--page .hero-title {
  font-size: clamp(2.1rem, min(4.8vw, 6.4vh), 3.3rem);
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-dark-muted);
}

.kicker-rule {
  display: inline-block;
  width: 34px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.hero-line {
  display: block;
}

.hero-title .highlight {
  color: var(--red-bright);
}

.hero-text {
  max-width: 36rem;
  margin-bottom: var(--space-3);
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  color: var(--on-dark);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.crumbs {
  margin-bottom: var(--space-2);
  font-size: 0.95rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
}

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

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
}

.crumbs [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark-muted);
}

/* Review quote in a glass panel */
.hero-quote {
  max-width: 24rem;
  margin: 0;
  padding: 1.2rem 1.4rem;
  background: rgba(13, 17, 23, 0.5);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--ice);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-quote blockquote {
  margin: 0.5rem 0 0.6rem;
}

.hero-quote p {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--white);
}

.hero-quote figcaption {
  font-size: 0.92rem;
  color: var(--on-dark-muted);
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: 0.95rem;
  background: var(--ink-2);
  border-block: 1px solid var(--line-dark);
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--on-dark);
}

.marquee-item::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 1.6rem;
  background: var(--red);
  border-radius: 50%;
}

.marquee-item:nth-child(even)::after {
  background: var(--ice);
}

/* ---------- Area strip ---------- */
.area-strip {
  padding-block: 0.6rem;
  color: var(--white);
  background: var(--red-dark);
}

.area-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-4);
}

.area-strip p {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  font-weight: 600;
}

.area-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 0.35rem;
  color: var(--white);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- Two-column intro + list (services, sub-services) ---------- */
.split {
  display: grid;
  gap: var(--space-5);
}

.split-intro p {
  max-width: 30rem;
  color: var(--muted);
}

.split-intro .text-link {
  margin-top: var(--space-1);
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: var(--space-6);
    align-items: start;
  }

  .split-intro {
    position: sticky;
    top: calc(var(--nav-h) + var(--space-4));
  }
}

/* ---------- Services list ---------- */
.svc-list {
  border-top: 2px solid var(--ink);
}

.svc {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.svc-photo {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: var(--paper-2);
}

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

.svc-body {
  align-self: center;
}

.svc h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.5rem;
}

.svc h3 a {
  color: inherit;
  text-decoration: none;
}

.svc h3 a:hover {
  color: var(--red-deep);
}

.service-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--red);
}

.service-icon--cold {
  color: var(--ice);
}

.svc p {
  max-width: 32rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.svc-note {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

@media (min-width: 480px) {
  .svc {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  }
}

@media (min-width: 768px) {
  .svc {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: var(--space-4);
  }
}

/* ---------- Sub-services on a service page ---------- */
.sub-list {
  border-top: 2px solid var(--ink);
}

.sub {
  display: grid;
  gap: 0.4rem;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.sub-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice-dark);
}

.sub h3 {
  margin-bottom: 0.4rem;
}

.sub p {
  max-width: 36rem;
  color: var(--muted);
}

.sub .text-link {
  justify-self: start;
}

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

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

.page-photo figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--white);
}

/* ---------- Proof band ---------- */
.proof {
  color: var(--on-dark);
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(33, 150, 211, 0.28) 0%, rgba(33, 150, 211, 0) 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(230, 51, 41, 0.2) 0%, rgba(230, 51, 41, 0) 55%),
    var(--ink);
}

.proof-top {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.proof-title {
  margin: var(--space-2) 0 0;
  font-size: clamp(2.1rem, 5.4vw, 3.7rem);
  font-weight: 700;
  color: var(--white);
}

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

.proof-title .proof-accent {
  color: var(--ice-light);
}

.count {
  display: inline-block;
  min-width: 0.6em;
  color: var(--red-bright);
  font-variant-numeric: tabular-nums;
}

.proof-note {
  max-width: 30rem;
  margin: 0;
  font-size: 1.12rem;
  color: var(--on-dark-muted);
}

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

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

.fact dt {
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice-light);
}

.fact dd {
  font-family: var(--font-head);
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--white);
}

@media (min-width: 768px) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line-dark);
  }

  .fact {
    padding: var(--space-3) var(--space-3) var(--space-3) 0;
    border-bottom: 0;
  }

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

@media (min-width: 1024px) {
  .proof-top {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--space-6);
    align-items: end;
  }
}

/* ---------- Who we work for ---------- */
.serve-head {
  max-width: 40rem;
  margin-bottom: var(--space-4);
}

.serve-head p {
  color: var(--muted);
}

.serve-list {
  display: grid;
  border-top: 2px solid var(--ink);
}

.serve-item {
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.serve-item h3 {
  margin-bottom: 0.5rem;
}

.serve-item p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 768px) {
  .serve-list {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
  }

  .serve-item {
    padding: var(--space-3) var(--space-3) var(--space-3) 0;
    border-bottom: 0;
  }

  .serve-item + .serve-item {
    padding-left: var(--space-3);
    border-left: 1px solid var(--line);
  }
}

/* ---------- Our work (gallery) ---------- */
.work-head,
.reviews-head {
  max-width: 42rem;
  margin-bottom: var(--space-4);
}

.work-head p,
.reviews-head p {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-card);
}

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

.gallery-caption {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--overlay-soft);
  opacity: 0;
}

.gallery-overlay svg {
  width: 34px;
  height: 34px;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
}

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

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem 1.2rem;
  }
}

/* ---------- Before and after ---------- */
.ba-list {
  display: grid;
  gap: var(--space-5);
}

.ba-pair {
  margin: 0;
}

.ba-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.ba-photo {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow-card);
}

.ba-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.ba-tag {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-sm);
}

.ba-tag--after {
  background: var(--ice-dark);
}

.ba-pair figcaption {
  margin-top: 0.7rem;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .ba-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

/* ---------- Checklists on service pages ---------- */
.check-list {
  margin-bottom: var(--space-3);
  border-top: 1px solid var(--line);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.check-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--ice-dark);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.about-photos {
  position: relative;
  max-width: 28rem;
}

.about-photo-main {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  background: var(--paper-2);
}

.about-photo-main img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  right: -10px;
  bottom: -22px;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  background: var(--ink);
  border: 4px solid var(--paper);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}

.about-badge img {
  width: 70px;
  height: auto;
}

.about-lead {
  font-size: 1.25rem;
  color: var(--text);
}

.about-copy p {
  max-width: 34rem;
}

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

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

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: var(--space-6);
  }
}

/* ---------- Reviews ---------- */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--red);
}

.stars svg {
  width: 16px;
  height: 16px;
}

.review-featured {
  margin: 0 0 var(--space-4);
  padding-left: 1.2rem;
  border-left: 3px solid var(--ice);
}

.review-featured blockquote,
.review blockquote {
  margin: 0.6rem 0 0.8rem;
}

.review-featured blockquote p {
  max-width: 48rem;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.review blockquote p {
  margin-bottom: 0.6rem;
}

.review-by {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.review-by span {
  display: block;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
}

.review-list {
  display: grid;
  border-top: 2px solid var(--ink);
}

.review {
  padding: 1.4rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

.reviews-more {
  margin-top: var(--space-3);
}

@media (min-width: 768px) {
  .review-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-4);
  }
}

/* ---------- CTA banner ---------- */
.cta {
  position: relative;
  padding-block: clamp(4rem, 9vw, 6.5rem);
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 17, 23, 0.96) 0%, rgba(13, 17, 23, 0.86) 50%, rgba(13, 17, 23, 0.6) 100%);
}

.cta-inner {
  position: relative;
}

.cta h2 {
  max-width: 44rem;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
}

.cta h2 > span {
  display: block;
}

.cta-accent {
  color: var(--red-bright);
}

.cta p {
  max-width: 34rem;
  margin-bottom: var(--space-4);
  font-size: 1.12rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-5);
}

.contact-info > p {
  max-width: 32rem;
  color: var(--muted);
}

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

.contact-item {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: var(--space-2);
  align-items: center;
  min-height: 56px;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.contact-item dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item dd {
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-item dd span {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.contact-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--red-deep);
}

@media (min-width: 480px) {
  .contact-item {
    grid-template-columns: 7rem minmax(0, 1fr);
  }
}

.steps {
  margin-top: var(--space-4);
  counter-reset: step;
}

.steps h3 {
  margin-bottom: var(--space-1);
}

.steps ol li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2.6rem;
  counter-increment: step;
}

.steps ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.55rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
}

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

.form-panel h3 {
  margin-bottom: 0.4rem;
}

.form-panel > p {
  color: var(--muted);
}

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

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

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--ice-dark);
  box-shadow: 0 0 0 3px rgba(33, 150, 211, 0.35);
}

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

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

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

.form-privacy {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

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

.form-success h3 {
  color: var(--success);
}

/* Spam trap: off-screen, never named company/website/url (autofill fills those) */
.hp-field {
  position: absolute;
  left: -9999px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: var(--space-6);
    align-items: start;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: var(--space-6);
  color: var(--on-dark-muted);
  background: var(--ink);
}

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

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

.site-footer h2 {
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-light);
}

.site-footer li {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.site-footer li a,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark);
  text-decoration: none;
  transition: transform 0.3s ease, color var(--transition-fast);
}

.site-footer li a:hover,
.footer-bottom a:hover {
  color: var(--ice-light);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-3);
  /* Leaves room for the chat launcher */
  padding-block: var(--space-2) 5.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.95rem;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: var(--space-4);
  }

  .footer-bottom {
    padding-bottom: var(--space-3);
    padding-right: 13rem;
  }
}

/* ---------- Legal and 404 pages ---------- */
.site-header--solid {
  position: sticky;
  top: 0;
  background: var(--ink);
}

.legal {
  max-width: 46rem;
  padding-block: var(--space-5) var(--space-6);
}

.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
}

.legal h2 {
  margin-top: var(--space-4);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.legal ul {
  margin: 0 0 var(--space-2);
  padding-left: 1.3rem;
  list-style: disc;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal-contact a {
  display: inline-block;
  padding-block: 0.7rem;
}

.legal-updated {
  color: var(--muted);
}

.hero--plain {
  min-height: 100vh;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 4.5rem 0.75rem 1.5rem;
  background: var(--overlay-deep);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox-figure {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.lightbox-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 11rem);
  margin-inline: auto;
  border-radius: var(--radius);
}

.lightbox-caption {
  margin-top: 0.9rem;
  color: var(--white);
}

.lightbox-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--white);
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-btn:hover {
  background: var(--red-dark);
}

.lightbox-btn svg {
  width: 24px;
  height: 24px;
}

.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
}

.lightbox-prev svg {
  transform: rotate(180deg);
}

/* ==========================================================================
   Motion. Everything here is skipped when the visitor asks for less motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveals (only when JS is running) */
  .js .fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s var(--ease-spring), transform 1.2s var(--ease-spring);
  }

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

  .js .svc-list .fade-in:nth-child(2),
  .js .sub-list .fade-in:nth-child(2),
  .js .review-list .fade-in:nth-child(2n),
  .js .gallery-grid .fade-in:nth-child(2) {
    transition-delay: 0.08s;
  }

  .js .svc-list .fade-in:nth-child(3),
  .js .sub-list .fade-in:nth-child(3),
  .js .gallery-grid .fade-in:nth-child(3) {
    transition-delay: 0.16s;
  }

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

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

  /* Hero */
  .hero-bg img {
    animation: hero-zoom-out 20s ease-out forwards;
  }

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

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

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

  /* Shimmer on the highlighted phrase: brand red with a hot white glint */
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title .highlight {
      background: linear-gradient(100deg, var(--red-bright) 0%, var(--red-bright) 35%, var(--red-glint) 50%, var(--red-bright) 65%, var(--red-bright) 100%);
      background-size: 250% 100%;
      background-position: 100% 0;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: gold-shimmer 4s ease 1s infinite;
    }
  }

  @keyframes gold-shimmer {
    0% { background-position: 100% 0; }
    60%, 100% { background-position: 0 0; }
  }

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

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

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

  @keyframes nav-cta-pulse {
    0%, 100% { box-shadow: 0 4px 15px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
    50% { box-shadow: 0 6px 26px var(--red-glow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  }

  /* Counters pop in, then bounce once the count lands */
  .js .proof .count {
    opacity: 0;
  }

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

  .js .proof .visible .count:nth-of-type(2) { animation-delay: 0.2s; }
  .js .proof .visible .count:nth-of-type(3) { animation-delay: 0.4s; }

  .count.bounce {
    animation: stat-bounce 0.9s ease both;
  }

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

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

  /* Service rows */
  .svc:hover .svc-photo img {
    transform: scale(1.05);
  }

  .js .svc .service-icon {
    transform: scale(0);
  }

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

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

  /* About photo: slow settle when it scrolls in */
  .js .about-photo-main img {
    transform: scale(1.15);
  }

  .js .about-photos.visible .about-photo-main img {
    animation: about-zoom 12s linear forwards;
  }

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

  /* Card depth */
  .form-panel:hover {
    transform: translateY(-10px);
    border-color: var(--red);
    box-shadow: var(--shadow-card-hover);
  }

  .contact-item:hover,
  .sub:hover {
    transform: translateX(8px);
  }

  .site-footer li a:hover {
    transform: translateX(4px);
  }

  /* Gallery and before/after photos */
  .gallery-item,
  .ba-photo {
    transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
  }

  .gallery-item:hover,
  .ba-photo:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
  }

  .gallery-item img,
  .ba-photo img {
    transition: transform var(--transition-slow);
  }

  .gallery-item:hover img,
  .ba-photo:hover img {
    transform: scale(1.05);
  }

  .gallery-overlay {
    transition: opacity var(--transition-base);
  }

  .gallery-overlay svg {
    transform: scale(0.8);
    transition: transform var(--transition-base);
  }

  .gallery-item:hover .gallery-overlay svg {
    transform: scale(1);
  }

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

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

  /* Reviews */
  .review {
    transition: transform 0.4s var(--ease-spring), border-color 0.4s var(--ease-spring);
  }

  .review:hover {
    transform: translateY(-6px);
    border-bottom-color: var(--red);
  }

  .js .review .stars svg,
  .js .review-featured .stars svg {
    transform: scale(0);
  }

  .review.visible .stars svg,
  .review-featured.visible .stars svg {
    animation: star-pop 0.3s var(--ease-spring) forwards;
  }

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

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

@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .marquee-track {
    animation-duration: 8s;
  }
}

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

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    row-gap: 0.4rem;
  }

  /* The second copy only exists for the loop */
  .marquee-item:nth-child(n + 9) {
    display: none;
  }

  .btn,
  .form-panel,
  .contact-item,
  .sub,
  .svc-photo img,
  .site-footer li a {
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  }

  .btn:hover {
    transform: none;
  }
}

/* Below-the-fold sections render lazily */
.about,
.contact,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .marquee,
  .hero-bg,
  .cta-bg,
  .nav-toggle,
  #cc-chat-toggle,
  #cc-chat-panel,
  .form-panel {
    display: none;
  }

  .hero,
  .proof,
  .cta,
  .site-footer {
    color: #000;
    background: #fff;
  }

  .hero-title,
  .proof-title,
  .cta h2,
  .fact dd {
    color: #000;
  }
}
