/* =====================================================================
   PTA Maintenance Inc. — styles.css (the only stylesheet the site uses)
   1. Tokens   2. Base elements   3. Layout   4. Components   5. Utilities
   Colours and type are set once in :root. Sections re-theme themselves
   by redefining semantic tokens (see .section--light, .cta-band, heroes),
   so components never need per-section overrides.
   ===================================================================== */

/* 1. TOKENS ----------------------------------------------------------- */
:root {
  /* Palette */
  --white: #fff;
  --gray-50: #f4f4f2;
  --gray-100: #e6e6e8;
  --gray-150: #dcdcd8;
  --gray-200: #d0d0d5;
  --gray-300: #b4b4ba;
  --gray-500: #77777d;
  --gray-600: #4a4a50;
  --gray-700: #2c2c31;
  --gray-750: #1b1b1e;
  --gray-800: #141416;
  --gray-850: #111114;
  --gray-900: #0b0b0c;
  --gray-950: #070708;
  --red-400: #ff4d53; /* red text on dark (5.2:1+) */
  --red-500: #ed1c24; /* brand red: rules, borders, icons */
  --red-600: #c4161c; /* buttons, red text on light (6:1) */
  --red-700: #a01015; /* button hover */

  /* Semantic colours: dark theme by default */
  --bg: var(--gray-900);
  --bg-alt: var(--gray-800);
  --surface: var(--gray-750);
  --border: var(--gray-700);
  --text: var(--gray-100);
  --text-muted: var(--gray-300);
  --heading: var(--white);
  --link: var(--white);
  --link-hover: var(--red-400);
  --accent: var(--red-500);
  --accent-text: var(--red-400);
  --input-bg: var(--gray-850);
  --input-border: var(--gray-600);
  --btn-bg: var(--red-600);
  --btn-fg: var(--white);
  --btn-hover-bg: var(--red-700);
  --btn-hover-fg: var(--white);

  /* Typography */
  --font-head: "Audiowide", "Arial Black", Impact, sans-serif;
  --font-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --fw-regular: 400;
  --fw-bold: 700;
  --fs-xs: 0.8rem;
  --fs-sm: 0.95rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.15rem, 2vw, 1.35rem);
  --fs-h4: 1.2rem;
  --fs-h3: clamp(1.2rem, 2vw, 1.4rem);
  --fs-h2: clamp(1.6rem, 3.4vw, 2.3rem);
  --fs-h1: clamp(2rem, 5vw, 3.25rem);
  --fs-display: 1.75rem;
  --lh-tight: 1.15;
  --lh-snug: 1.4;
  --lh-body: 1.6;
  --tracking: 0.05em;
  --tracking-wide: 0.14em;

  /* Space, shape, motion */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 40px;
  --space-7: 56px;
  --section-pad: clamp(56px, 8vw, 100px);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1440px;
  --side: 340px;
  --gap: var(--space-5);
  --radius: 4px;
  --header-h: 76px;
  --transition: 0.2s ease;
  --reveal-distance: 24px;
  --reveal-duration: 0.6s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

::selection {
  background: transparent;
  color: var(--red-500);
}

/* Re-themed areas: only tokens change */
.section--light {
  --bg: var(--gray-50);
  --surface: var(--white);
  --border: var(--gray-150);
  --text: var(--gray-750);
  --text-muted: var(--gray-600);
  --heading: var(--gray-750);
  --link: var(--red-600);
  --link-hover: var(--red-700);
  --accent: var(--red-600);
  --accent-text: var(--red-600);
  --input-bg: var(--white);
  --input-border: var(--gray-500);
}
.section--panel {
  --bg: var(--bg-alt);
}
.hero,
.page-hero {
  --text-muted: var(--gray-200);
}
.page-hero {
  --bg: var(--bg-alt);
}
.cta-band {
  --bg: var(--red-600);
  --text: var(--white);
  --text-muted: var(--white);
  --btn-bg: var(--gray-900);
  --btn-hover-bg: var(--white);
  --btn-hover-fg: var(--gray-900);
}

/* 2. BASE ELEMENTS ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--fw-regular) var(--fs-md) / var(--lh-body) var(--font-body);
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4,
.btn,
.nav a,
.more,
.big,
.stat strong,
.range-tile strong,
.steps > li::before {
  font-family: var(--font-head);
  font-weight: var(--fw-regular);
  text-transform: uppercase;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--heading);
  line-height: var(--lh-tight);
  letter-spacing: 0.01em;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

p,
ul,
ol {
  margin: 0 0 1em;
}
ul,
ol {
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.35em;
}
strong {
  font-weight: var(--fw-bold);
}

/* Spacing between elements (replaces one-off margin classes) */
:where(p, ul, ol, dl, .btn-row):last-child {
  margin-bottom: 0;
}
:is(p:not(.eyebrow), ul, ol, figure) + :is(h2, h3) {
  margin-top: 1.6em;
}
:where(p, ul, ol) + .btn-row {
  margin-top: var(--space-5);
}
h2 + .grid {
  margin-top: var(--space-5);
}

/* Lists used for layout or navigation lose their bullets */
:where(ul, ol)[class],
nav :where(ul, ol),
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
:where(ul, ol)[class] > li,
nav li {
  margin: 0;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover {
  color: var(--link-hover);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Forms */
label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--heading);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
}
label .muted {
  font-weight: var(--fw-regular);
}
input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: var(--space-3) var(--space-4);
  font: var(--fw-regular) var(--fs-base) / var(--lh-snug) var(--font-body);
  color: var(--heading);
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
}
select {
  appearance: none;
  padding-right: var(--space-6);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 22px,
    calc(100% - 14px) 22px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
textarea {
  min-height: 160px;
  resize: vertical;
}
:is(input, select, textarea):focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
button {
  font: inherit;
  cursor: pointer;
}

/* Small uppercase labels share one style */
.eyebrow,
.tag,
dt,
.card--new::before {
  font: var(--fw-bold) var(--fs-xs) / 1 var(--font-body);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.tag,
.card--new::before {
  padding: 5px 8px;
  border-radius: var(--radius);
}

/* Secondary text shares one colour */
.lead,
.muted,
dt,
.card p,
.steps p,
.stat span,
.stage__head span,
.breadcrumbs ol {
  color: var(--text-muted);
}

dt {
  margin-top: var(--space-4);
}
dt:first-child {
  margin-top: 0;
}
dd {
  margin-top: 6px;
}

/* 3. LAYOUT ----------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section,
.page-hero,
.cta-band {
  background-color: var(--bg);
  color: var(--text);
}
.section {
  padding-block: var(--section-pad);
}
.section--panel {
  border-block: 1px solid var(--border);
}

/* One auto-fitting grid; modifiers only change the minimum column width */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(
    var(--fill, auto-fill),
    minmax(min(100%, var(--min, 280px)), 1fr)
  );
}
.grid--2 {
  --min: 420px;
  --gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.grid--3 {
  --min: 300px;
}
.grid--4 {
  --min: 260px;
}
.grid--5 {
  --min: 200px;
  --fill: auto-fit;
}

/* Main column + sidebar */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) var(--side);
    align-items: start;
  }
  .split--side-first {
    grid-template-columns: var(--side) minmax(0, 1fr);
  }
  .split > aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-6));
  }
}

.prose {
  max-width: 100ch;
}
.prose img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* 4. COMPONENTS ------------------------------------------------------- */

/* Buttons: variants only swap tokens */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 26px;
  font-size: var(--fs-base);
  line-height: 1;
  letter-spacing: var(--tracking);
  text-decoration: none;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-border, var(--btn-bg));
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}
.btn:hover {
  color: var(--btn-hover-fg);
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-border, var(--btn-hover-bg));
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--heading);
  --btn-border: var(--heading);
  --btn-hover-bg: var(--heading);
  --btn-hover-fg: var(--bg);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: var(--accent-text);
}
.lead {
  font-size: var(--fs-lg);
}
.more {
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking);
  color: var(--accent-text);
}
.big {
  font-size: 1.45rem;
  line-height: 1.2;
  text-decoration: none;
}
.tag {
  color: var(--heading);
  background: var(--border);
}
.tag:empty {
  display: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(11 11 12 / 0.96);
  border-bottom: 3px solid var(--accent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.brand {
  flex-shrink: 0;
}
.brand-mobile {
  display: none;
}
.site-header img {
  width: auto;
  height: 52px;
}
.nav {
  margin-left: auto;
}
.nav ul {
  display: flex;
  gap: 6px;
}
.nav a {
  display: block;
  padding: var(--space-3) 14px;
  color: var(--gray-200);
  font-size: var(--fs-sm);
  line-height: 1;
  letter-spacing: var(--tracking);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent-text);
}
.header-phone {
  --btn-bg: transparent;
  --btn-border: var(--accent);
  --btn-hover-bg: var(--red-600);
  min-height: 46px;
  padding: 11px 14px;
}
.header-phone img {
  width: 20px;
  height: 20px;
}
.nav-toggle {
  --btn-bg: transparent;
  --btn-border: var(--border);
  --btn-hover-bg: transparent;
  --btn-hover-border: var(--accent);
  display: none;
  margin-left: auto;
  min-height: 48px;
  padding: 12px 14px;
}
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--bg);
    border-bottom: 3px solid var(--accent);
  }
  .nav.is-open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-4);
  }
  .nav a {
    padding: var(--space-4) var(--space-1);
    border-bottom: 1px solid var(--border);
    font-size: var(--fs-base);
  }
  .header-phone {
    order: 3;
    padding: 11px 12px;
  }
  .header-phone span {
    display: none;
  }
  .site-header img {
    height: 44px;
  }
  .brand {
    display: none;
  }
  .brand-mobile {
    display: block;
    flex-shrink: 0;
  }
}
@media (max-width: 380px) {
  .site-header img {
    height: 38px;
  }
}

/* Heroes */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(78vh, 760px);
  overflow: hidden;
  background: var(--bg);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(0 0 0 / 0.88) 0%,
    rgb(0 0 0 / 0.65) 55%,
    rgb(0 0 0 / 0.35) 100%
  );
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 80px;
}
.hero h1 {
  max-width: 18ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-text);
}
.page-hero {
  background-image: url("../images/bg-pattern2.png");
  border-bottom: 1px solid var(--border);
}
.page-hero__inner {
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px);
}
.page-hero h1 {
  max-width: 22ch;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
  font-size: var(--fs-sm);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--gray-500);
}

/* Cover images */
:where(.hero__media, .range-tile, .photo) img {
  width: 100%;
  object-fit: cover;
}
:where(.hero__media, .range-tile) img {
  height: 100%;
}
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Surfaces: one look for every boxed element */
.panel,
.card,
.photo,
.steps > li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.panel,
.card,
.steps > li {
  padding: var(--space-5);
}
.panel,
.steps > li {
  border-top: 3px solid var(--accent);
}
.panel :where(h2, h3),
.card h3,
.steps h3 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-h4);
}
.panel p > .btn {
  width: 100%;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color var(--transition),
    transform var(--transition);
}
.card > * {
  margin: 0;
}
a.card:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card p,
.steps p,
.stat span {
  font-size: var(--fs-base);
}
.card .more {
  margin-top: auto;
  padding-top: var(--space-2);
}
.card__icon {
  width: 46px;
  height: 46px;
  color: var(--accent);
}
.card__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card--new::before {
  content: "NEW";
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--btn-fg);
  background: var(--btn-bg);
}

.steps {
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--fs-display);
  line-height: 1;
  color: var(--accent-text);
}

.stats {
  margin-top: var(--space-6);
}
.stat {
  padding: 6px 0 6px 18px;
  border-left: 3px solid var(--accent);
}
.stat strong {
  display: block;
  color: var(--heading);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
}

.checklist li {
  position: relative;
  margin-bottom: 0.6em;
  padding-left: 30px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

/* Range type tiles */
.range-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface) url("../images/bg-pattern2.png");
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--transition);
}
.range-tile:hover {
  border-color: var(--accent);
}
.range-tile img {
  opacity: 0.55;
  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
}
.range-tile:hover img {
  opacity: 0.35;
  transform: scale(1.03);
}
.range-tile__label {
  position: absolute;
  inset: auto 0 0;
  padding: 22px 20px;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.92), transparent);
}
.range-tile strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--white);
  font-size: var(--fs-h4);
  line-height: 1.2;
}

/* Gallery */
.stage + .stage {
  margin-top: clamp(40px, 6vw, 64px);
}
.stage + p {
  margin-top: var(--space-7);
}
.stage__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.stage__head h2 {
  margin: 0;
  font-size: var(--fs-h3);
}
.stage__head span {
  font-size: var(--fs-base);
}
.stage__empty {
  display: none;
  padding: 22px;
  color: var(--text-muted);
  font-style: italic;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.stage.is-empty .stage__empty {
  display: block;
}
.stage.is-empty .photo-grid {
  display: none;
}

.photo {
  height: 100%;
  overflow: hidden;
}
.photo a {
  display: block;
  overflow: hidden;
  background: var(--gray-850);
}
.photo img {
  aspect-ratio: 4 / 3;
  transition: transform 0.35s ease;
}
.photo a:hover img {
  transform: scale(1.04);
}
.photo figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: var(--space-3) 14px 14px;
  font-size: var(--fs-base);
}

.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-7);
}
.gallery-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--text);
  font-size: var(--fs-base);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.gallery-nav a:hover,
.gallery-nav a[aria-current="page"] {
  color: var(--heading);
  border-color: var(--accent);
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox::backdrop {
  background: rgb(0 0 0 / 0.92);
}
.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 64px 70px var(--space-5);
}
.lightbox img {
  width: auto;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}
.lightbox__caption {
  margin-top: 14px;
  color: var(--white);
  text-align: center;
}
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  background: rgb(20 20 22 / 0.85);
  border: 1px solid var(--gray-600);
  border-radius: 50%;
}
.lightbox button:hover {
  color: var(--accent-text);
  border-color: var(--accent-text);
}
.lightbox__close {
  top: 14px;
  right: 14px;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__prev {
  left: 12px;
}
.lightbox__next {
  right: 12px;
}
@media (max-width: 640px) {
  .lightbox__inner {
    padding: 64px 10px 90px;
  }
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .lightbox__prev {
    left: calc(50% - 64px);
  }
  .lightbox__next {
    right: calc(50% - 64px);
  }
}

/* Call-to-action band */
.cta-band {
  padding-block: clamp(44px, 6vw, 72px);
}
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.cta-band h2 {
  margin-bottom: 6px;
}
.cta-band p {
  max-width: 60ch;
}

/* Footer */
.site-footer {
  --gap: var(--space-6);
  padding: 64px 0 28px;
  color: var(--text-muted);
  font-size: var(--fs-base);
  background: var(--gray-950);
  border-top: 3px solid var(--accent);
}
.site-footer h2 {
  margin-bottom: 14px;
  font-size: var(--fs-base);
  letter-spacing: var(--tracking);
}
.site-footer li {
  margin-bottom: var(--space-2);
}
.site-footer a {
  color: var(--gray-200);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
.site-footer img {
  width: auto;
  height: 56px;
  margin-bottom: 14px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 44px;
  padding-top: 22px;
  font-size: var(--fs-sm);
  border-top: 1px solid var(--border);
}
.footer-bottom .rd-logo {
  width: auto;
  height: 30px;
}

/* 5. UTILITIES -------------------------------------------------------- */
.center {
  text-align: center;
}
.center .lead,
.narrow {
  margin-inline: auto;
}
.center .btn-row,
.btn-row.center {
  justify-content: center;
}
.narrow {
  max-width: calc(640px + 2 * var(--gutter));
}
.section-head {
  margin-bottom: var(--space-6);
}
.full {
  grid-column: 1 / -1;
}
.small {
  font-size: var(--fs-sm);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--gray-900);
  font-weight: var(--fw-bold);
  background: var(--white);
}
.skip-link:focus {
  top: 12px;
}

/* Scroll reveal
   site.js adds .reveal only to blocks that start below the fold, so nothing
   visible on load is ever hidden (no flash, no effect on LCP). Only opacity
   and transform animate: the GPU handles them without re-layout or CLS. */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0s),
    transform var(--reveal-duration) var(--ease-out) var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .hero__media {
    background: url("../images/banners/range-bg.webp") center / cover;
  }
  .hero__media video {
    display: none;
  }
}
@media print {
  :root {
    --bg: #fff;
    --text: #000;
    --heading: #000;
    --text-muted: #333;
  }
  .site-header,
  .site-footer,
  .cta-band,
  .nav-toggle {
    display: none;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
