/* ==========================================================================
   JRW Garden Services — stylesheet
   Design language: editorial serif display + technical mono labels, warm
   paper ground, brand green. Echoes the firm's own capability statement
   (uppercase labels, hairline rules, spec-sheet rows) so the site reads like
   a credible contractor document, not a template.
   No frameworks, no build step. Single stylesheet.
   ========================================================================== */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  --green:        #1e4d2b;   /* brand — CTAs, buttons, small accents (the "bright" green) */
  --green-700:    #183d22;
  --green-900:    #10251a;   /* deep brand-green background — hero / page-hero only */
  --charcoal:     #1b1d1a;   /* deep desaturated near-black green-grey — the OTHER dark tone.
                                 Used for supporting dark sections + footer, alternating with
                                 --green-900 so consecutive dark sections don't read as the
                                 same block repeated — this is the main lever for real depth. */
  --rust:         #b5622e;   /* single warm accent — sparing use: stars, one stat highlight,
                                 link/icon hover states. Not a second brand colour. */
  --rust-light:   #d68a52;
  --ink:          #16241b;   /* body text on paper */
  --ink-soft:     #4c5b51;   /* muted text */
  --paper:        #f6f4ec;   /* warm off-white page ground */
  --paper-2:      #efece0;   /* slightly deeper panel */
  --card:         #ffffff;
  --offwhite:     #f4f5ee;   /* text on dark */
  --offwhite-soft:#c3cebf;   /* muted text on dark */
  --line:         rgba(22,36,27,.16);
  --line-soft:    rgba(22,36,27,.10);
  --line-dark:    rgba(244,245,238,.18);
  --gold:         var(--rust);   /* review stars — folded into the single warm accent */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --heading: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1200px;
  --wrap-wide: 1320px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 128px);
  --radius: 3px;

  --ease: cubic-bezier(.4,0,.2,1);
  --dur-fast: 180ms;
  --dur-med: 260ms;
}

/* ----- Fonts -------------------------------------------------------------
   Self-hosted, subset (headings only — see README). Nunito ExtraBold/Bold
   chosen to echo the bold, rounded-geometric wordmark in the JRW logo.
   Subset covers A–Z, a–z, 0–9 and common punctuation used in headings;
   regenerate from assets/fonts/ source if headings ever need new glyphs.
   Licensed under the SIL Open Font License — see assets/fonts/OFL.txt. */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-extrabold-subset.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-bold-subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ----- 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;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
h1, h2 { font-weight: 800; }
h3, h4 { font-weight: 700; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--offwhite); }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: var(--offwhite);
  padding: 12px 18px; font: 600 14px/1 var(--sans);
}
.skip:focus { left: 8px; top: 8px; }

/* ----- Layout helpers --------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: var(--wrap-wide); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

/* ----- Typographic primitives ------------------------------------------ */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 22px;
}
.dark .eyebrow { color: var(--offwhite-soft); }
.eyebrow .idx { color: var(--ink-soft); }
.dark .eyebrow .idx { color: var(--offwhite-soft); opacity: .7; }
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
  align-self: center; opacity: .6;
}

/* ----- Section openers (varied, non-numbered) ---------------------------
   Deliberately several different devices rather than one repeated formula:
   an inline coloured kicker merged into the heading itself, a quiet italic
   overline, a bare short rule, or a plain small label — mixed per section
   so the page doesn't read as a templated repeat. */
.hl { color: var(--green); }
.dark .hl { color: #a9c6a0; }

.overline {
  font-family: var(--sans); font-style: italic; font-weight: 400;
  font-size: clamp(14px, 1.5vw, 15.5px); color: var(--ink-soft); margin: 0 0 14px;
}
.dark .overline { color: var(--offwhite-soft); }

.rule-open {
  width: 40px; height: 2px; background: var(--green); border: 0; margin: 0 0 24px;
}
.dark .rule-open { background: #a9c6a0; }

.tag-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin: 0 0 32px;
}
.dark .tag-label { color: var(--offwhite-soft); }

.display  { font-size: clamp(2.6rem, 6.6vw, 4.6rem); }
.h-xl     { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.h-lg     { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.h-md     { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }

.lede { font-size: clamp(1.08rem, 1.9vw, 1.32rem); line-height: 1.55; color: var(--ink); }
.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }
.muted { color: var(--ink-soft); }

/* Dark-section defaults: any section with .dark flips text to the light palette. */
.dark { color: var(--offwhite); position: relative; isolation: isolate; }
/* Very subtle grain on every dark surface (hero, page-hero, charcoal bands, CTA
   bands, footer) — procedural noise via feTurbulence, no image request. Barely
   perceptible by design: opacity ~4%, screen-blended so it only ever lifts, never
   muddies. Sits behind content (z-index -1 within the isolated stacking context). */
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--offwhite); }
.dark p { color: var(--offwhite); }
.dark .muted { color: var(--offwhite-soft); }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  --bg: var(--green); --fg: var(--offwhite); --bd: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--sans);
  letter-spacing: 0.01em;
  padding: 16px 26px;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bd);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--green-700); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink); --bd: var(--line);
}
.btn--ghost:hover { --bg: transparent; --fg: var(--rust); background: rgba(22,36,27,.04); border-color: var(--rust); }
.btn--light { --bg: var(--offwhite); --fg: var(--green); --bd: var(--offwhite); }
.btn--light:hover { background: #fff; }
.btn--outline-light { --bg: transparent; --fg: var(--offwhite); --bd: rgba(244,245,238,.4); }
.btn--outline-light:hover { background: rgba(244,245,238,.08); border-color: var(--offwhite); }
.btn--lg { padding: 18px 34px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
/* flex: 1 1 0 (not min-width alone) so both buttons split the row exactly
   equally regardless of how different their text lengths are — min-width
   stays only as a floor so a button never gets too narrow to read. */
.btn-row--equal .btn { flex: 1 1 0; min-width: 220px; text-align: center; justify-content: center; }

.arrow-link {
  font: 600 15px/1 var(--sans);
  color: var(--green);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 3px;
  transition: gap .15s ease, border-color .15s ease;
}
.arrow-link:hover { gap: 12px; border-color: var(--rust); color: var(--rust); }
.arrow-link .a { transition: transform .15s ease; }
.arrow-link:hover .a { transform: translateX(2px); }
.dark .arrow-link { color: var(--offwhite); }
.dark .arrow-link:hover { border-color: var(--rust-light); color: var(--rust-light); }

/* ----- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  font: 500 15px/1 var(--sans); text-decoration: none; color: var(--ink);
  padding: 6px 0; position: relative;
}
.nav a[aria-current="page"] { color: var(--green); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--green); transition: right .2s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav > .btn { display: none; } /* CTA lives in header-cta on desktop; shown inside the menu on mobile */
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-tel {
  font: 600 15px/1 var(--sans); text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.header-tel svg { width: 16px; height: 16px; }
.header-tel:hover { color: var(--green); }

/* Mobile nav */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .menu { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility .28s;
    box-shadow: 0 24px 40px -24px rgba(16,37,26,.4);
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 0; font-size: 19px; font-family: var(--heading); font-weight: 700; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .nav .btn { display: inline-flex; margin-top: 20px; }
}

/* ----- Hero (split) ----------------------------------------------------- */
.hero { background: radial-gradient(120% 140% at 12% 0%, var(--green-700) 0%, var(--green-900) 55%); color: var(--offwhite); overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: stretch;
  min-height: min(78vh, 720px);
}
.hero-content { padding: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 64px) clamp(48px, 7vw, 96px) 0; align-self: center; }
.hero-eyebrow { color: var(--offwhite-soft); }
.hero-content h1 {
  font-size: clamp(.85rem, 1.3vw, 1rem); font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--offwhite-soft); margin: 0 0 14px;
}
.hero-content h2 { font-size: clamp(2.7rem, 6.2vw, 4.9rem); letter-spacing: -0.02em; margin: 0; }
.hero-content h2 em { font-style: italic; color: #a9c6a0; }
.hero .lede { color: var(--offwhite); opacity: .92; margin-top: 22px; }
.hero .btn-row { margin-top: 34px; }

/* ----- Hero entrance (on load, not scroll-triggered — plays once regardless
   of scroll position, so it doesn't share the .reveal/js-motion gate below).
   The hero image is excluded: it's the fetchpriority="high" LCP element, and
   animating its opacity would delay when Chrome considers it painted. */
.hero-content h1 { animation: hero-in 640ms var(--ease) 40ms both; }
.hero-content h2 { animation: hero-in 640ms var(--ease) 140ms both; }
.hero-content .lede { animation: hero-in 640ms var(--ease) 260ms both; }
.hero-content .btn-row { animation: hero-in 640ms var(--ease) 380ms both; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content h1, .hero-content h2, .hero-content .lede, .hero-content .btn-row {
    animation: none;
  }
}
.hero-trust {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--offwhite-soft); text-transform: uppercase;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
}
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--green-900) 0%, transparent 22%);
  pointer-events: none;
}
.hero-cap {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--offwhite); background: rgba(16,37,26,.7);
  padding: 8px 12px; border: 1px solid var(--line-dark); border-radius: 2px;
  backdrop-filter: blur(4px);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { padding: clamp(40px, 9vw, 64px) 0 clamp(36px, 8vw, 56px); }
  .hero-media { height: clamp(280px, 60vw, 440px); order: 2; margin-inline: calc(var(--gutter) * -1); }
  .hero-media::after { background: linear-gradient(0deg, var(--green-900) 0%, transparent 30%); }
}

/* ----- Stats ledger ----------------------------------------------------- */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
}
/* Bracket corner marks — an equipment-tag/spec-sheet detail instead of a card
   border or shadow around the whole ledger. */
.stats-grid::before, .stats-grid::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
}
.stats-grid::before { top: -1px; left: -1px; border-top: 2px solid var(--green); border-left: 2px solid var(--green); }
.stats-grid::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--green); border-right: 2px solid var(--green); }
.stat {
  padding: clamp(28px, 3.4vw, 44px) clamp(18px, 2.2vw, 32px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .fig { font-family: var(--mono); font-weight: 600; letter-spacing: -.02em; font-size: clamp(1.7rem, 3vw, 2.5rem); color: var(--green); line-height: 1; }
.stat .fig small { font-size: .5em; }
/* One stat gets the warm accent — the rating figure is consistently 3rd across
   every page that uses this component (index.html, about.html) — a deliberate
   single highlight, not a rule applied to every stat. */
.stat:nth-child(3) .fig { color: var(--rust); }
.stat .lab { font-family: var(--mono); font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); margin-top: 14px; line-height: 1.4; }
.stat-logo { height: clamp(64px, 7.5vw, 92px); width: auto; display: block; margin-inline: auto; }
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-top: 1px solid var(--line); }
  .stat:first-child { padding-left: clamp(18px,2.2vw,32px); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ----- Generic section header ------------------------------------------ */
.sec-head { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.split { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 32px; }
.sec-head p { margin: 0; }
@media (max-width: 760px) {
  .sec-head.split { grid-template-columns: 1fr; align-items: start; }
  .sec-head.split > *:last-child { margin-top: 14px; }
}

/* Extra breathing room for specific sections that felt cramped on mobile,
   between the intro heading and the content grid below it. */
section[aria-labelledby="app-h"] .sec-head,
#services .sec-head {
  margin-bottom: 48px;
}
@media (max-width: 640px) {
  section[aria-labelledby="app-h"] { padding-block: clamp(80px, 14vw, 128px); }
}

/* ----- Services grid ---------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc {
  background: var(--paper); padding: clamp(24px, 2.2vw, 32px);
  display: flex; flex-direction: column; gap: 10px;
  transition: background-color .2s ease;
}
.svc:hover { background: var(--card); }
.svc .num { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--green); }
.svc h3 { font-size: 1.22rem; }
.svc p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.svc--cta { background: var(--green); color: var(--offwhite); justify-content: space-between; }
.svc--cta:hover { background: var(--green-700); }
.svc--cta h3 { color: var(--offwhite); }
.svc--cta p { color: var(--offwhite-soft); }
.svc--cta .num { color: var(--offwhite-soft); }
.svc--cta .arrow-link { color: var(--offwhite); margin-top: 6px; }
.svc--cta .arrow-link:hover { border-color: var(--offwhite); }
/* Services grids with the CTA pulled out as a standalone .services-cta below
   (rather than mixed in as a grid tile): 8 real tiles, so a clean 4-col grid
   instead of the 3-col grid used where a CTA tile still sits inside the grid. */
.services--4col { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .services { grid-template-columns: 1fr 1fr; } .services--4col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .services { grid-template-columns: 1fr; } .services--4col { grid-template-columns: 1fr; } }

/* ----- Services "not sure what you need" CTA ---------------------------- */
.services-cta { text-align: center; padding: 40px 20px 4px; max-width: 46ch; margin-inline: auto; }
.services-cta h3 { font-size: 1.3rem; margin-bottom: 8px; }
.services-cta p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; margin: 0 0 22px; }

/* ----- Feature / alternating rows -------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img { width: 100%; border-radius: var(--radius); }
.feature-media .tag {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(16,37,26,.78); color: var(--offwhite); padding: 7px 11px; border-radius: 2px;
}
.feature h2 { margin-bottom: 18px; }
.feature p + p { margin-top: 14px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-media { order: 0; }
}

/* ----- Spec rows (insurance / equipment) -------------------------------- */
.spec { border-top: 1px solid var(--ink); }
.spec .row {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.spec .row dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0; align-self: start; }
.spec .row dd { margin: 0; font-size: 1.05rem; }
.spec .row dd .big { font-family: var(--mono); font-weight: 600; letter-spacing: -.01em; font-size: 1.35rem; color: var(--green); display: block; line-height: 1.2; }
.dark .spec { border-top-color: var(--offwhite); }
.dark .spec .row { border-bottom-color: var(--line-dark); }
.dark .spec .row dt { color: var(--offwhite-soft); }
.dark .spec .row dd .big { color: #a9c6a0; }
@media (max-width: 560px) { .spec .row { grid-template-columns: 1fr; gap: 6px; } }

/* ----- Client list ------------------------------------------------------ */
/* .clients is the shared grid — each .client row spans it via subgrid so the
   three columns line up across every row, rather than each row sizing its
   own auto-width "where" column independently (which made the name/what
   column boundaries drift row to row). Falls back gracefully to
   independently-sized rows in browsers without subgrid support. */
.clients {
  display: grid; grid-template-columns: 0.9fr 1.3fr auto; column-gap: 20px;
  border-top: 1px solid var(--ink);
}
.client {
  display: grid; grid-column: 1 / -1; grid-template-columns: subgrid;
  align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.client .name { font-family: var(--serif); font-size: 1.5rem; line-height: 28px; color: var(--ink); }
.client .what { color: var(--ink-soft); font-size: 15.5px; line-height: 28px; }
.client .where { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; line-height: 28px; }
.dark .clients { border-top-color: var(--offwhite); }
.dark .client { border-bottom-color: var(--line-dark); }
.dark .client .name { color: var(--offwhite); }
.dark .client .what, .dark .client .where { color: var(--offwhite-soft); }
@media (max-width: 680px) {
  .clients { grid-template-columns: 1fr; }
  .client { grid-column: 1; grid-template-columns: 1fr; row-gap: 6px; padding: 28px 0; }
  .client .where { margin-top: 6px; }
}

/* ----- Testimonial ------------------------------------------------------ */
.quote-block { max-width: 20ch; }
.pullquote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.28;
  letter-spacing: -0.01em; margin: 0;
}
.pullquote .mark { color: var(--green); }
.dark .pullquote .mark { color: #a9c6a0; }
.quote-attr { margin-top: 26px; display: flex; flex-direction: column; gap: 3px; }
.quote-attr .who { font-weight: 600; }
.quote-attr .role { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.dark .quote-attr .role { color: var(--offwhite-soft); }

/* ----- Reviews ---------------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.review { background: var(--paper); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.review p { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.review .by { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.review .by .who { font-weight: 600; }
.review .by .src { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 700px) { .reviews { grid-template-columns: 1fr; } }

.rating-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
/* Score + stars are grouped in their own nowrap row so they never separate,
   whatever the screen width — only the caption wraps onto its own line. */
.rating-top { display: flex; align-items: baseline; gap: 16px; flex-wrap: nowrap; }
.rating-caption { margin: 4px 0 0; }
.rating-head .score { font-family: var(--mono); font-weight: 600; letter-spacing: -.02em; font-size: 2.7rem; color: var(--rust); line-height: 1; }

/* ----- Split CTA / band ------------------------------------------------- */
.band { background: var(--green); color: var(--offwhite); }
.band--deep { background: var(--charcoal); }
.band-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .band-inner { grid-template-columns: 1fr; gap: 28px; } }

/* Two-path (commercial / residential) cards. Depth via an offset border frame
   (hard box-shadow, zero blur — like a technical-drawing registration mark)
   rather than rounded corners + a soft drop shadow. On hover the card settles
   into its frame, a quick, restrained press rather than a lift. */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.path {
  position: relative; border: 1.5px solid var(--ink);
  overflow: hidden; background: var(--card); display: flex; flex-direction: column;
  box-shadow: 8px 8px 0 0 var(--green);
  transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.path:hover { box-shadow: 4px 4px 0 0 var(--green); transform: translate(4px, 4px); }
.path .path-media { aspect-ratio: 16/10; overflow: hidden; }
.path .path-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-med) var(--ease); }
.path:hover .path-media img { transform: scale(1.03); }
.path .path-body { padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.path .kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.path h3 { font-size: 1.6rem; }
.path p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.path .arrow-link { margin-top: 8px; }
@media (max-width: 720px) { .paths { grid-template-columns: 1fr; } }

/* ----- Photography (future) ----------------------------------------------
   NOT APPLIED YET — placeholder photos stay untouched. Once real commercial
   and residential photos are in (see README "Commercial photos" section),
   consider running them through a consistent duotone or slight-desaturation
   treatment (forest green / charcoal, matching --green-900 and --charcoal)
   across .hero-media img, .feature-media img, .path-media img and .gallery
   img. This ties photography from different sources/quality levels into one
   palette rather than letting inconsistent white balance/exposure show. A
   CSS-only starting point (no image processing needed):
     filter: grayscale(45%) sepia(8%) saturate(115%) hue-rotate(70deg);
   Tune per hero vs gallery context; verify text-over-image contrast (hero
   captions, gradient overlays) still passes after any filter is added. */

/* ----- Gallery ---------------------------------------------------------- */
.gallery { columns: 3; column-gap: 14px; }
.gallery img { width: 100%; margin-bottom: 14px; border-radius: var(--radius); break-inside: avoid; }
@media (max-width: 820px) { .gallery { columns: 2; } }
@media (max-width: 480px) { .gallery { columns: 1; } }

/* ----- Forms ------------------------------------------------------------ */
.form-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }

.form-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.form-tabs a {
  font: 600 14px/1 var(--sans); text-decoration: none; color: var(--ink-soft);
  padding: 13px 20px; background: var(--paper);
}
.form-tabs a[aria-current="true"] { background: var(--green); color: var(--offwhite); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.field .req { color: var(--green); }
.field input, .field select, .field textarea {
  font: 400 16px/1.5 var(--sans); color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 13.5px; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-aside { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3vw, 36px); }
.contact-aside h3 { font-size: 1.4rem; margin-bottom: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-list .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list .v { font-size: 1.05rem; }
.contact-list a { color: var(--green); text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

/* ----- Chips / meta lists ---------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--card); }
.dark .chips li { color: var(--offwhite); border-color: var(--line-dark); background: transparent; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.55 17.6 4.4 12.45l1.4-1.4 3.75 3.75 8.25-8.25 1.4 1.4z'/%3E%3C/svg%3E") center/78% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.55 17.6 4.4 12.45l1.4-1.4 3.75 3.75 8.25-8.25 1.4 1.4z'/%3E%3C/svg%3E") center/78% no-repeat; }
.dark .ticks li::before { background: #a9c6a0; }

/* Numbered process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--paper); padding: clamp(24px, 2.4vw, 32px); }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--green); letter-spacing: .1em; }
.step h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ----- Page hero (interior) -------------------------------------------- */
.page-hero { background: var(--green-900); color: var(--offwhite); padding-block: clamp(56px, 8vw, 104px); }
.page-hero .eyebrow { color: var(--offwhite-soft); }
.page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); }
.page-hero .lede { color: var(--offwhite); opacity: .92; margin-top: 20px; }
.breadcrumb { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--offwhite-soft); margin-bottom: 22px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--offwhite); }

/* Divider */
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ----- Downloads -------------------------------------------------------- */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.download {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  background: var(--card); color: var(--ink); transition: border-color .2s ease, transform .12s ease;
}
.download:hover { border-color: var(--green); transform: translateY(-2px); }
.download .ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--paper-2); border-radius: 4px; color: var(--rust); }
.download .ic svg { width: 22px; height: 22px; }
.download .t { font-weight: 600; font-size: 15px; }
.download .m { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.download-badge { grid-column: 1 / -1; justify-content: center; }
.download-badge img { height: 85px; width: auto; }

/* ----- Credibility photos (traffic mgmt / equipment, commercial page) ---
   Side by side, but no forced crop — the two source photos are very
   different shapes (tall portrait / square) and cropping both into a
   shared landscape frame lost too much of each image. Each keeps its
   own natural orientation instead, so heights differ between the two. */
.cred-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; align-items: start; }
.cred-photos figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.cred-photos img { width: 100%; height: auto; display: block; }
@media (max-width: 620px) { .cred-photos { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .downloads { grid-template-columns: 1fr; } }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { background: var(--charcoal); color: var(--offwhite); padding-block: clamp(56px, 7vw, 88px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand img { height: 34px; width: auto; max-width: 100%; margin-bottom: 20px; }
.footer-brand p { color: var(--offwhite-soft); max-width: 32ch; font-size: 15px; }
.footer-col h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--offwhite-soft); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { text-decoration: none; color: var(--offwhite); }
.footer-col a:hover { color: #a9c6a0; }
.footer-col address { font-style: normal; color: var(--offwhite); line-height: 1.7; font-size: 15px; }
.footer-col address a { color: var(--offwhite); font-weight: 600; }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--offwhite-soft);
}
.footer-bottom a { text-decoration: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----- Cookie consent banner --------------------------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--charcoal); border-top: 1px solid var(--line-dark);
  box-shadow: 0 -16px 36px -20px rgba(0,0,0,.45);
  padding: 20px var(--gutter);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: var(--wrap-wide); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cookie-banner-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--offwhite-soft); max-width: 62ch; }
.cookie-banner-text strong { color: var(--offwhite); font-weight: 600; }
.cookie-banner-text a { color: var(--offwhite); }
.cookie-banner-actions { display: flex; gap: 12px; flex: none; }
.cookie-banner-actions .btn { padding: 12px 22px; font-size: 14px; white-space: nowrap; }
@media (max-width: 700px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-banner-text { max-width: none; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1 1 0; }
}

/* ----- Thank-you -------------------------------------------------------- */
.ty { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.ty .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 28px; }
.ty .tick svg { width: 38px; height: 38px; color: var(--offwhite); }

/* ----- Blueprint texture (one section only — commercial.html Service area) ----
   Evokes site plans / survey drawings without competing with foreground content:
   a faint dot grid, positioned behind the text via z-index, no change to layout. */
.blueprint { position: relative; isolation: isolate; }
.blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(30,77,43,.22) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, #000 40%, transparent 90%);
}

/* ----- Scroll motion (progressive enhancement) ---------------------------
   .reveal only starts hidden once js/motion.js confirms it's running (adds
   .js-motion to <html> synchronously before paint) — so content is never
   hidden if JS fails, is slow, or is disabled. prefers-reduced-motion
   disables the animated state entirely, independent of JS. */
.js-motion .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}
.js-motion .reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----- Utilities -------------------------------------------------------- */
.stack-lg > * + * { margin-top: 24px; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.maxw-prose { max-width: 68ch; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
