/* ==========================================================================
   Nomad Greens — mobile golf simulator rental, Abbotsford BC
   Single stylesheet. No preprocessor, no build step.

   Contents
     1.  Design tokens
     2.  Reset & base
     3.  Typography
     4.  Layout primitives
     5.  Buttons & links
     6.  Header / nav
     7.  Hero
     8.  Sections & components
     9.  Forms
     10. Gallery & lightbox
     11. Footer
     12. Motion & reveal
     13. Print
   ========================================================================== */

/* ------------------------------------------------------------- 1. Tokens */

:root {
  /* Ground — near-black with a green cast, so photos sit in the same family */
  --ink: #0a0d0b;
  --surface: #121815;
  --surface-2: #1a221d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Accents */
  --fairway: #2e9e5b;
  --fairway-hi: #3fbd70;
  --fairway-lo: #1f6e40;
  --brass: #c9a44c;
  --brass-hi: #e0bd68;

  /* Text */
  --text: #f3f6f4;
  --muted: #97a69d;
  --muted-dim: #6d7a73;

  /* Shape */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Space */
  --shell: 1200px;
  --shell-narrow: 780px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  /* Type */
  --font-display: "Archivo", "Arial Narrow", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Effects */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 56px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Self-hosted faces. If the woff2 files are absent the stacks above fall back
   cleanly to system fonts — the site never depends on a network font. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* --------------------------------------------------------- 2. Reset & base */

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

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* The UA stylesheet gives [hidden] display:none, but any author `display` rule
   beats it — .form is display:grid, so `form.hidden = true` would do nothing.
   This keeps the attribute authoritative wherever it is used. */
[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* One consistent focus treatment everywhere. Never remove it. */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--fairway);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--brass);
  color: #14100a;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0.5rem;
}

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

/* --------------------------------------------------------- 3. Typography */

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
}

/* Small uppercase brass label that opens most sections */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow--center::before {
  display: none;
}

/* ---------------------------------------------------- 4. Layout primitives */

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

.shell--narrow {
  max-width: var(--shell-narrow);
}

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

.section--tight {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

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

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

/* ------------------------------------------------------ 5. Buttons & links */

a {
  color: var(--fairway-hi);
  text-decoration-color: rgba(63, 189, 112, 0.4);
  text-underline-offset: 0.2em;
  transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}

a:hover {
  color: var(--brass-hi);
  text-decoration-color: currentColor;
}

.btn {
  --btn-bg: var(--fairway);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease),
    border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:hover {
  --btn-bg: var(--fairway-hi);
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(46, 158, 91, 0.28);
}

.btn:active {
  --btn-bg: var(--fairway-lo);
  transform: translateY(0);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: var(--text);
  border-color: var(--brass);
  box-shadow: none;
}

.btn--brass {
  --btn-bg: var(--brass);
  --btn-fg: #14100a;
}

.btn--brass:hover {
  --btn-bg: var(--brass-hi);
  --btn-fg: #14100a;
  box-shadow: 0 10px 24px rgba(201, 164, 76, 0.28);
}

.btn--lg {
  padding: 1.05rem 2rem;
  font-size: 1rem;
  min-height: 3.4rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Arrow link used under cards and section heads */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.arrow-link::after {
  content: "→";
  transition: transform 0.18s var(--ease);
}

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

/* --------------------------------------------------------- 6. Header / nav */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.header.is-scrolled {
  background: rgba(10, 13, 11, 0.94);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
}

.brand__name em {
  font-style: normal;
  color: var(--fairway-hi);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav__link {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link[aria-current="page"] {
  color: var(--text);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brass);
  border-radius: 2px;
}

.header__cta {
  flex-shrink: 0;
}

/* The nav carries its own CTA for the mobile panel; on desktop the standalone
   .header__cta is the visible one, so hide the duplicate. */
@media (min-width: 900px) {
  .nav > .btn {
    display: none;
  }
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: relative;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 4px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

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

  .header__cta {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 4.5rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--pad) 2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0.28s;
  }

  .nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav__link {
    padding: 0.9rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .nav__link[aria-current="page"] {
    color: var(--brass);
  }

  .nav .btn {
    margin-top: 1.25rem;
  }
}

/* ---------------------------------------------------------------- 7. Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(34rem, 82vh, 48rem);
  padding-block: clamp(4rem, 12vh, 8rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

/* Two overlays: a vertical lift off the bottom for the text block, and a
   left-weighted wash so the headline always has contrast regardless of the
   photo behind it. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      to top,
      var(--ink) 2%,
      rgba(10, 13, 11, 0.86) 28%,
      rgba(10, 13, 11, 0.3) 65%,
      rgba(10, 13, 11, 0.55) 100%
    ),
    linear-gradient(to right, rgba(10, 13, 11, 0.85) 0%, rgba(10, 13, 11, 0) 65%);
}

.hero__inner {
  position: relative;
  max-width: 46rem;
}

.hero h1 {
  margin-bottom: 0.35em;
}

.hero h1 em {
  font-style: normal;
  color: var(--fairway-hi);
}

.hero .lead {
  max-width: 38ch;
  color: #d3ded7;
}

.hero .btn-row {
  margin-top: 2rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  text-decoration: none;
}

@media (max-width: 640px) {
  .hero__scroll {
    display: none;
  }
}

/* Page heroes on interior pages — shorter, no photo required */
.page-hero {
  position: relative;
  padding-block: clamp(4.5rem, 12vw, 8rem) clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70rem 30rem at 15% -10%, rgba(46, 158, 91, 0.16), transparent 60%),
    radial-gradient(50rem 26rem at 95% 0%, rgba(201, 164, 76, 0.09), transparent 60%);
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
}

/* -------------------------------------------------- 8. Sections & components */

/* Trust strip -------------------------------------------------------- */
.trust {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.trust__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
}

.trust__item:last-child {
  border-right: 0;
}

.trust__item svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--fairway-hi);
}

@media (max-width: 899px) {
  .trust__item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-inline: 0;
  }

  .trust__item:last-child {
    border-bottom: 0;
  }
}

/* Steps -------------------------------------------------------------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  counter-increment: step;
  position: relative;
  padding-top: 2.75rem;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brass);
  letter-spacing: 0.02em;
}

/* Hairline connecting the numbers, desktop only */
.step::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 3.25rem;
  right: -1.75rem;
  height: 1px;
  background: linear-gradient(to right, var(--line-strong), transparent);
}

.step:last-child::after {
  display: none;
}

@media (max-width: 899px) {
  .step::after {
    display: none;
  }
}

.step h3 {
  margin-bottom: 0.4em;
}

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

/* Cards -------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem clamp(1.1rem, 2vw, 1.6rem) 1.6rem;
  flex: 1;
}

.card__body h3 {
  margin: 0;
}

.card__body p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

.card__body .arrow-link {
  margin-top: auto;
  padding-top: 0.6rem;
}

/* Photos from stock sit in the same dark family as the generated art:
   knock the saturation back a touch and lay an ink gradient over the base. */
.card__media::after,
.figure--treated::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 13, 11, 0.55), rgba(10, 13, 11, 0.05) 60%);
  pointer-events: none;
}

.card__media img,
.figure--treated img {
  filter: saturate(0.88) contrast(1.04) brightness(0.94);
}

/* Split feature ------------------------------------------------------ */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

.split--reverse .split__media {
  order: 2;
}

@media (max-width: 899px) {
  .split--reverse .split__media {
    order: 0;
  }
}

.figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Checklist ---------------------------------------------------------- */
.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--fairway-hi);
  border-bottom: 2px solid var(--fairway-hi);
  transform: rotate(-45deg);
}

/* Package cards ------------------------------------------------------ */
.package {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.package:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.package--featured {
  border-color: var(--fairway);
  background: linear-gradient(180deg, rgba(46, 158, 91, 0.09), transparent 40%), var(--surface);
}

.package__flag {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--fairway);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.package h3 {
  margin-bottom: 0.25em;
}

.package__for {
  color: var(--brass);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.package__price {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.package__price small {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted-dim);
  letter-spacing: 0;
}

.package .checklist {
  margin-block: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  flex: 1;
}

.package .btn {
  width: 100%;
}

/* Spec / requirement panel ------------------------------------------- */
.panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.spec-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.spec-list > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.spec-list > div:last-child {
  border-bottom: 0;
}

.spec-list dt {
  font-weight: 600;
  color: var(--text);
}

.spec-list dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

/* Testimonials ------------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--brass);
  opacity: 0.65;
}

.quote blockquote {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.quote figcaption {
  margin-top: auto;
  font-size: 0.875rem;
  color: var(--muted);
}

.quote figcaption strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

/* Unfilled placeholder values — deliberately conspicuous so none of them can be
   published by accident. Delete this rule once PLACEHOLDERS.md is worked through
   and the tokens are gone. */
.token {
  padding: 0 0.3em;
  border-radius: 3px;
  background: rgba(201, 164, 76, 0.14);
  box-shadow: inset 0 0 0 1px rgba(201, 164, 76, 0.45);
  color: var(--brass-hi);
  font-size: 0.92em;
  white-space: nowrap;
}

/* Loud marker so sample copy can never ship unnoticed */
.sample-flag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.5rem;
  border: 1px dashed var(--brass);
  border-radius: var(--r-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}

/* FAQ ---------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.18s var(--ease);
}

.faq details[open] {
  border-color: var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(1rem, 2vw, 1.5rem);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq summary:hover {
  color: var(--brass-hi);
}

.faq__answer {
  padding: 0 clamp(1rem, 2vw, 1.5rem) 1.35rem;
  color: var(--muted);
}

/* CTA band ----------------------------------------------------------- */
.cta-band {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  text-align: center;
  border-top: 1px solid var(--line);
  /* Turf photo under a heavy ink wash — enough texture to feel like grass, dark
     enough that white type stays comfortably readable over it. The 960px variant
     is deliberate: it is blurred by the overlay anyway, so a larger file buys
     nothing (56KB avif, cached across every page). */
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(10, 13, 11, 0.88), rgba(10, 13, 11, 0.94)),
    radial-gradient(60rem 24rem at 50% 0%, rgba(46, 158, 91, 0.28), transparent 65%),
    image-set(
      url("../img/turf-texture-960.avif") type("image/avif"),
      url("../img/turf-texture-960.webp") type("image/webp"),
      url("../img/turf-texture-960.jpg") type("image/jpeg")
    );
  background-size: cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-band::before {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin: 0 auto 1.75rem;
  background: var(--brass);
}

.cta-band h2 {
  margin-bottom: 0.4em;
}

.cta-band .lead {
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta-band .btn-row {
  justify-content: center;
}

/* Service area list -------------------------------------------------- */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  padding: 0.45rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- 9. Forms */

.form {
  display: grid;
  gap: 1.15rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field--half {
  min-width: 0;
}

.field-row {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field label .req {
  color: var(--brass);
}

.field .hint {
  font-size: 0.8125rem;
  color: var(--muted-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--fairway);
  box-shadow: 0 0 0 3px rgba(46, 158, 91, 0.18);
  outline: none;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: #e2685f;
}

.field__error {
  min-height: 1.1rem;
  font-size: 0.8125rem;
  color: #f19b94;
}

/* Honeypot — hidden from people, visible to naive bots. Deliberately not
   display:none, which some bots check for. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
}

.form__status:empty {
  display: none;
}

.form__status[data-state="error"] {
  background: rgba(226, 104, 95, 0.12);
  border: 1px solid rgba(226, 104, 95, 0.4);
  color: #f19b94;
}

.form-success {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, rgba(46, 158, 91, 0.14), transparent), var(--surface);
  border: 1px solid var(--fairway);
  border-radius: var(--r-lg);
  text-align: center;
}

.form-success__mark {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  color: var(--fairway-hi);
}

/* ------------------------------------------------- 10. Gallery & lightbox */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.filter {
  padding: 0.55rem 1.1rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.filter:hover {
  color: var(--text);
  border-color: var(--brass);
}

.filter[aria-pressed="true"] {
  background: var(--brass);
  border-color: var(--brass);
  color: #14100a;
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

/* Tiles are <button> elements so they are focusable and keyboard-operable for
   free — these rules undo the default button chrome. */
.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.gallery__item:hover {
  border-color: var(--brass);
  transform: translateY(-3px);
}

.gallery__item[hidden] {
  display: none;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.94);
}

.gallery__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(10, 13, 11, 0.92), transparent);
  font-size: 0.8125rem;
  color: #d3ded7;
  text-align: left;
}

/* Wide gallery teaser strip on the home page */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(50%, 11rem), 1fr));
  gap: 0.75rem;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  filter: saturate(0.85) brightness(0.9);
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}

.gallery-strip a:hover img {
  filter: none;
  transform: scale(1.02);
}

.lightbox {
  width: min(92vw, 78rem);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(5, 7, 6, 0.9);
  backdrop-filter: blur(4px);
}

.lightbox__img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #050706;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.lightbox__nav {
  display: flex;
  gap: 0.5rem;
}

.lightbox__btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.lightbox__btn:hover {
  border-color: var(--brass);
  background: var(--surface);
}

/* --------------------------------------------------------------- 11. Footer */

.footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.footer__brand {
  grid-column: span 1;
  max-width: 26rem;
}

.footer__brand p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Footer column headings are h2 — they are top-level headings inside the footer
   landmark, and using h4 there skipped a level for screen-reader navigation. */
.footer h2 {
  margin-bottom: 1rem;
  line-height: 1.3;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

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

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.socials a:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.socials svg {
  width: 1.15rem;
  height: 1.15rem;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted-dim);
}

/* ------------------------------------------------------ 12. Motion & reveal */

/* Elements start fully visible. main.js only adds the pre-animation state when
   the browser supports IntersectionObserver AND motion is welcome — so no-JS
   and reduced-motion users never see a blank page. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal.reveal-armed {
    opacity: 0;
    transform: translateY(18px);
  }

  .js-reveal.reveal-armed.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------- 13. Print */

@media print {
  .header,
  .footer,
  .cta-band,
  .hero__scroll,
  .nav-toggle,
  .filters {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}
