/* Carried over from styles.css: quote builder and lightbox, recoloured. */
/* ==========================================================================
   Quick Quote builder
   Guided picker that composes an enquiry and sends it to WhatsApp or the
   contact form. Palette and card language follow .service-card above.
   ========================================================================== */

.quote {
  padding: 5rem 0;
  background: white;
}

.quote-intro {
  max-width: 640px;
  margin: -1.5rem auto 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: #4A514C;
}

.quote-card {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(135deg, #FFFFFF, #F3F0E9);
  border: 1px solid #CDC6B5;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 2.5rem;
}

/* Progress */
.kf-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #1E3D31;
  font-weight: bold;
}

.kf-progress-track {
  height: 8px;
  background: #CDC6B5;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.kf-progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(45deg, #3F8A6C, #31755C);
  border-radius: 50px;
  transition: width 0.4s ease;
}

/* Steps */
.kf-step[hidden] { display: none; }

.kf-step-title {
  font-size: 1.6rem;
  color: #1E3D31;
  margin-bottom: 0.4rem;
  outline: none;
}

.kf-step-hint {
  color: #4A514C;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.kf-fieldset {
  border: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.kf-fieldset:last-of-type { margin-bottom: 0.5rem; }

.kf-legend {
  font-weight: bold;
  color: #1E3D31;
  margin-bottom: 0.75rem;
  padding: 0;
  font-size: 1.05rem;
}

/* Option chips — the real radio/checkbox stays in the accessibility tree and
   keeps native keyboard behaviour; the label is what you see. */
.kf-opts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.kf-opts--stack { grid-template-columns: 1fr; }

.kf-opt-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.kf-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  font-size: 0.97rem;
  line-height: 1.4;
  color: #1F2422;
  transition: all 0.25s ease;
  height: 100%;
  box-sizing: border-box;
}

.kf-opt:hover {
  border-color: #3F8A6C;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(74, 222, 128, 0.18);
}

.kf-opt::before {
  content: '';
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 2px solid #CDC6B5;
  border-radius: 6px;
  background: white;
  transition: all 0.2s ease;
}

.kf-opts--radio .kf-opt::before { border-radius: 50%; }

.kf-opt-input:checked + .kf-opt {
  border-color: #31755C;
  background: #F3F0E9;
  color: #1E3D31;
  font-weight: 600;
}

.kf-opt-input:checked + .kf-opt::before {
  background: linear-gradient(45deg, #3F8A6C, #31755C);
  border-color: #31755C;
  box-shadow: inset 0 0 0 3px white;
}

.kf-opt-input:focus-visible + .kf-opt {
  outline: 3px solid #1E3D31;
  outline-offset: 2px;
}

.kf-opt-note {
  display: block;
  font-size: 0.82rem;
  color: #4A514C;
  font-weight: normal;
}

/* Text fields */
.kf-field { margin-bottom: 1.25rem; }

.kf-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
  color: #1E3D31;
}

.kf-field input,
.kf-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  font-family: inherit;
  font-size: 1rem;
  color: #333;
  transition: all 0.25s ease;
}

.kf-field input:focus,
.kf-field textarea:focus {
  outline: none;
  border-color: #31755C;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}

.kf-field-hint {
  display: block;
  font-weight: normal;
  font-size: 0.82rem;
  color: #4A514C;
}

/* Summary */
.kf-summary {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  gap: 0.6rem 1.25rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.kf-summary dt {
  font-weight: bold;
  color: #1E3D31;
}

.kf-summary dd {
  margin: 0;
  color: #1F2422;
  overflow-wrap: break-word;
}

/* Buttons */
.kf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.75rem;
}

.kf-actions--send { margin-top: 0; }

.kf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  border-radius: 50px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.kf-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: 0 0 20px;
}

.kf-btn--primary {
  background: linear-gradient(45deg, #3F8A6C, #31755C);
  color: white;
  box-shadow: 0 10px 20px rgba(74, 222, 128, 0.3);
}

.kf-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(74, 222, 128, 0.4);
}

.kf-btn--secondary {
  background: white;
  color: #1E3D31;
  border-color: #1E3D31;
}

.kf-btn--secondary:hover {
  background: #1E3D31;
  color: white;
  transform: translateY(-3px);
}

.kf-btn--ghost {
  background: none;
  color: #4A514C;
  padding: 0.95rem 1rem;
  font-weight: normal;
  text-decoration: underline;
}

.kf-btn--ghost:hover { color: #1E3D31; }

.kf-btn:focus-visible {
  outline: 3px solid #1E3D31;
  outline-offset: 3px;
}

.kf-spacer { margin-left: auto; }

/* Error + status */
.kf-error {
  margin-top: 1.25rem;
  padding: 0.85rem 1.1rem;
  background: #fef2f2;
  border: 2px solid #fca5a5;
  border-radius: 12px;
  color: #991b1b;
  font-weight: 600;
}

.kf-error[hidden] { display: none; }

.kf-send-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #4A514C;
  line-height: 1.6;
}

.kf-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.quote noscript p {
  background: #fffbeb;
  border: 2px solid #fcd34d;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #78350f;
}

@media (max-width: 768px) {
  .quote-card { padding: 1.5rem; border-radius: 16px; }
  .kf-opts { grid-template-columns: 1fr; }
  .kf-summary { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .kf-summary dd { margin-bottom: 0.75rem; }
  .kf-actions { flex-direction: column; align-items: stretch; }
  .kf-btn { width: 100%; }
  .kf-spacer { margin-left: 0; }
  .kf-step-title { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .kf-opt, .kf-btn, .kf-progress-bar, .kf-field input, .kf-field textarea {
    transition: none;
  }
  .kf-opt:hover, .kf-btn:hover { transform: none; }
}

/* ==========================================================================
   Lightbox
   Replaces Lightbox2 from cdnjs (which needed jQuery and never ran).
   ========================================================================== */

.kf-lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(16, 38, 28, 0.94);
  backdrop-filter: blur(4px);
  animation: kfLbIn 0.25s ease;
}

.kf-lb[hidden] { display: none; }

@keyframes kfLbIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.kf-lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  max-width: 100%;
  max-height: 100%;
}

.kf-lb-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #1E3D31;
  transition: opacity 0.2s ease;
}

.kf-lb.is-loading .kf-lb-img { opacity: 0.25; }

.kf-lb-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 1rem;
  color: #ffffff;
  font-size: 0.95rem;
  text-align: center;
  max-width: 60ch;
}

.kf-lb-count {
  color: #3F8A6C;
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

/* Controls */
.kf-lb-close,
.kf-lb-nav {
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(26, 61, 46, 0.85);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: all 0.25s ease;
}

.kf-lb-nav {
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}

.kf-lb-nav span { display: block; margin-top: -4px; }

.kf-lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  font-size: 1.75rem;
  line-height: 1;
}

.kf-lb-close:hover,
.kf-lb-nav:hover {
  background: linear-gradient(45deg, #3F8A6C, #31755C);
  border-color: transparent;
  transform: scale(1.08);
}

.kf-lb-close:focus-visible,
.kf-lb-nav:focus-visible {
  outline: 3px solid #3F8A6C;
  outline-offset: 3px;
}

.kf-lb-nav[hidden] { display: none; }

@media (max-width: 768px) {
  .kf-lb { padding: 0.75rem; gap: 0.25rem; }
  .kf-lb-img { max-height: 68vh; }
  .kf-lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .kf-lb-close { top: 0.6rem; right: 0.6rem; width: 42px; height: 42px; }
  .kf-lb-cap { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .kf-lb { animation: none; }
  .kf-lb-img,
  .kf-lb-close,
  .kf-lb-nav { transition: none; }
  .kf-lb-close:hover,
  .kf-lb-nav:hover { transform: none; }
}

/* The thumbnails are links, so they need a visible keyboard focus ring. */
.work-item:focus-visible {
  outline: 3px solid #31755C;
  outline-offset: 3px;
}


/* Kingfisher Landscapes, homepage. World: Groundsman.
   Stone ground, his logo green, mown stripes, paving joints, line-marker orange.
   assemble.py appends this AFTER the quote builder and lightbox rules carried
   over from styles.css, so anything set here wins. */

:root {
  --stone: #E7E3D8;
  --stone-lt: #F3F0E9;
  --joint: #CDC6B5;
  --ink: #1F2422;
  --ink-2: #4A514C;
  --green: #31755C;
  --green-dk: #1E3D31;
  --green-md: #3F8A6C;
  --marker: #D9622B;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --gut: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 1.075rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--marker);
  outline-offset: 3px;
}
h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 82;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
}
h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px;
}
.skip:focus { left: 8px; }

/* Header ------------------------------------------------------------------ */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gut);
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.hd.is-solid {
  background: var(--green-dk);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  padding-top: 10px; padding-bottom: 10px;
}
.hd-logo { position: relative; display: block; width: 267px; height: 58px; flex: none; transition: width .3s ease, height .3s ease; }
.hd.is-solid .hd-logo { width: 212px; height: 46px; }
.hd-logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s ease; }
.hd-logo-white { opacity: 0; }
.hd.is-solid .hd-logo-white { opacity: 1; }
.hd.is-solid .hd-logo-ink { opacity: 0; }
.hd-nav { display: flex; gap: 24px; margin-left: auto; }
.hd-nav a, .hd-call {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
  background-image: linear-gradient(var(--marker), var(--marker));
  background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s ease, color .3s ease;
  padding-bottom: 2px;
}
.hd-nav a:hover, .hd-call:hover { background-size: 100% 2px; }
.hd.is-solid .hd-nav a, .hd.is-solid .hd-call { color: #fff; }
.hd-call-label { color: var(--ink-2); font-weight: 400; }
.hd.is-solid .hd-call-label { color: rgba(255,255,255,.65); }
.hd-quote {
  background: var(--green); color: #fff; text-decoration: none; font-weight: 700;
  padding: 10px 16px; border-radius: 2px;
  transition: background .2s ease, transform .2s ease;
}
.hd-quote:hover { background: var(--marker); transform: translateY(-1px); }
/* On wide screens the right of the header sits over the photo, so the links
   there need a shadow until the bar turns solid. */
@media (min-width: 1101px) {
  .hd:not(.is-solid) .hd-call, .hd:not(.is-solid) .hd-call-label,
  .hd:not(.is-solid) .hd-nav a { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
}

/* Hero: asymmetric offset ------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: min(92vh, 900px);
  padding-top: 96px;
}
.hero-words {
  position: relative; z-index: 2;
  grid-column: 1; grid-row: 1;
  align-self: end;
  padding: 40px 0 72px var(--gut);
  margin-right: -14vw;   /* the headline runs on over the photo edge */
}
/* Kicker above the headline, same voice as "Our own work" on the photo */
.hero-where {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font: 700 .86rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--green);
}
.hero-where::before { content: ""; width: 10px; height: 10px; background: var(--marker); transform: rotate(45deg); flex: none; }
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 7.2rem);
  font-variation-settings: "wdth" 76;
  max-width: 9.5ch;
  color: var(--ink);
}
/* Only the last word crosses onto the photo, so it carries the stone behind it. */
.hero h1 .mark {
  position: relative; display: inline-block; white-space: nowrap;
  background: var(--stone); padding: 0 .12em .06em 0; margin-top: .04em;
}
.mark::after {
  /* hand-sprayed marker line */
  content: ""; position: absolute; left: -2%; right: 6%; bottom: -.08em; height: .2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 60 6, 120 15, 180 9 S 270 7, 297 11' stroke='%23D9622B' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  transform-origin: left center;
  animation: spray 0.9s 0.4s cubic-bezier(.3,.7,.2,1) both;
}
@keyframes spray { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-lede { font-size: 1.2rem; max-width: 40ch; margin: 26px 0 30px; }
.hero-act { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-phones { margin: 0; color: var(--ink-2); line-height: 1.45; }
.hero-phones a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--joint); }
.hero-phones a:hover { border-color: var(--marker); }

.hero-photo {
  position: relative; margin: 0;
  grid-column: 2; grid-row: 1;
  margin-top: -96px;            /* runs up under the header */
  margin-bottom: 64px;
  overflow: hidden;
}
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; }
/* The photo settles in on load, then drifts slightly slower than the page as
   you scroll (kf.js sets --py). The scale gives the drift room at the edges. */
.hero-photo picture { display: block; animation: settle 2.4s cubic-bezier(.2,.7,.2,1) both; }
.hero-photo img {
  object-fit: cover; object-position: 50% 28%;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.12); will-change: transform;
}
@keyframes settle { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }
/* A dark hedge-green wash along the bottom, for the caption to sit in. */
.hero-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(rgba(20,40,32,0), rgba(20,40,32,.78));
  pointer-events: none;
}
.hero-photo figcaption {
  position: absolute; z-index: 1; left: clamp(20px, 3vw, 40px); bottom: clamp(18px, 3vw, 34px);
  color: #fff; max-width: 34ch;
  font: 700 clamp(1.15rem, 1.7vw, 1.6rem)/1.15 var(--display); font-variation-settings: "wdth" 85;
  letter-spacing: -0.01em; text-shadow: 0 1px 12px rgba(0,0,0,.35);
  animation: capin .8s 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.cap-kicker {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.cap-kicker::before { content: ""; width: 9px; height: 9px; background: var(--marker); transform: rotate(45deg); flex: none; }
@keyframes capin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--green); color: #fff; border: 0; border-radius: 2px;
  font: 700 1.1rem/1 var(--body); padding: 18px 26px;
  box-shadow: 0 4px 0 var(--green-dk);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--green-dk); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-dk); }
.btn--light { background: #fff; color: var(--green-dk); box-shadow: 0 4px 0 #9fb8ac; }
.btn--light:hover { box-shadow: 0 6px 0 #9fb8ac; }

/* Mown stripes ----------------------------------------------------------- */
.stripes, .contact { position: relative; overflow: hidden; background: var(--green-dk); }
.stripes-bg {
  position: absolute; inset: -40px -240px; pointer-events: none;
  background: repeating-linear-gradient(100deg, #24493C 0 90px, #1B392E 90px 180px);
  will-change: transform;
}
.facts {
  position: relative; list-style: none; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px;
  padding: 30px var(--gut);
  color: #fff; font-family: var(--display); font-variation-settings: "wdth" 85;
  font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem);
}
.facts li { display: flex; align-items: center; gap: 14px; }
.facts li::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background: var(--marker); transform: rotate(45deg);
}

/* Services index --------------------------------------------------------- */
.svc { padding: clamp(72px, 10vw, 140px) var(--gut) clamp(56px, 8vw, 110px); }
.svc-head { margin-bottom: 40px; }
.svc-head p { max-width: 52ch; color: var(--ink-2); margin: 18px 0 0; }
/* The list is always taller than the photo, so the section ends with the list
   and there is no empty stone under it. */
.svc-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc-list li { border-bottom: 1px solid var(--joint); }
.svc-list a {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 18px;
  padding: 28px 48px 28px 0; text-decoration: none; color: var(--ink);
  position: relative; transition: padding .3s cubic-bezier(.3,.7,.2,1), background .3s ease;
}
.svc-no { font-family: var(--display); font-weight: 700; color: var(--marker); font-size: 1.05rem; padding-top: .55em; }
.svc-name {
  font-family: var(--display); font-variation-settings: "wdth" 78; font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.02em;
}
/* Always shown, so the list keeps one height and the photo beside it never jumps. */
.svc-line {
  grid-column: 2; color: var(--ink-2); max-width: 52ch; margin-top: 8px;
  opacity: .7; transition: opacity .3s ease;
}
.svc-list a::after {
  content: "\2192"; position: absolute; right: 12px; top: 22px;
  font-size: 1.8rem; color: var(--green); opacity: 0; transform: translateX(-10px);
  transition: opacity .25s ease, transform .25s ease;
}
.svc-list a:hover, .svc-list a:focus-visible, .svc-list a.is-on { padding-left: 14px; background: var(--stone-lt); }
.svc-list a:hover .svc-line, .svc-list a:focus-visible .svc-line, .svc-list a.is-on .svc-line { opacity: 1; }
.svc-list a:hover::after, .svc-list a:focus-visible::after, .svc-list a.is-on::after { opacity: 1; transform: none; }
.svc-thumb { display: none; }
/* Smaller than the list, and it rides down beside it while you scroll, stopping
   where the list ends. */
.svc-photo { margin: 0; position: sticky; top: 96px; align-self: start; aspect-ratio: 4 / 5; max-height: calc(100vh - 130px); overflow: hidden; background: var(--joint); }
.svc-photo img { position: absolute; inset: 0; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease, transform .6s ease; }
.svc-photo img.is-swapping { opacity: 0; transform: scale(1.03); }

/* Reel ------------------------------------------------------------------- */
.reel {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(64px, 9vw, 120px) var(--gut);
  background: var(--stone-lt);
  border-top: 1px solid var(--joint); border-bottom: 1px solid var(--joint);
}
.reel-phone {
  justify-self: end; width: min(340px, 100%);
  background: var(--ink); padding: 10px; border-radius: 34px;
  box-shadow: 18px 18px 0 var(--joint);
  transform: rotate(-2deg);
}
.reel-phone video { width: 100%; aspect-ratio: 480 / 848; object-fit: cover; border-radius: 25px; background: #2a2f2c; }
.reel-words { max-width: 58ch; }
.reel-spec {
  font-family: var(--display); font-variation-settings: "wdth" 85; font-weight: 700;
  font-size: 1.35rem; color: var(--green); margin: 18px 0 22px;
}
.reel-points { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--joint); }
.reel-points li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--joint); position: relative; font-weight: 600; }
.reel-points li::before {
  content: ""; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 10px;
  background: var(--marker); transform: rotate(45deg);
}

/* Recent work: a patio in running bond ----------------------------------- */
.work { padding: clamp(72px, 10vw, 130px) var(--gut) clamp(64px, 8vw, 110px); }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.work-head p { color: var(--ink-2); margin: 0; }
.work-grid {
  display: grid; gap: 7px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 250px);
  grid-auto-flow: dense;
  background: var(--joint);        /* the pointing between the slabs */
  border: 7px solid var(--joint);
}
.work-item { position: relative; display: block; overflow: hidden; grid-column: span 2; background: #9a9486; cursor: zoom-in; }
/* Slabs laid in two mirrored blocks of six, each filling 6 columns by 3 rows
   exactly, so there are no holes and the joints never line up all the way down.
   Block one: big slab left, two long slabs right, three short below.
   Block two: the same, mirrored. */
.work-item:nth-child(12n+1)  { grid-column: span 3; grid-row: span 2; }
.work-item:nth-child(12n+2),
.work-item:nth-child(12n+3),
.work-item:nth-child(12n+7),
.work-item:nth-child(12n+9)  { grid-column: span 3; }
.work-item:nth-child(12n+8)  { grid-column: span 3; grid-row: span 2; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.3,.7,.2,1); }
.work-item:hover img, .work-item:focus-visible img { transform: scale(1.05); }
.work-item::after {
  content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px; color: #fff; font-size: .9rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(20,30,25,.85));
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease;
}
.work-item:hover::after, .work-item:focus-visible::after { opacity: 1; transform: none; }

/* Quote ------------------------------------------------------------------ */
.quote { padding: clamp(72px, 9vw, 120px) var(--gut); background: var(--stone-lt); border-top: 1px solid var(--joint); }
.quote-head { max-width: 860px; margin: 0 auto 36px; }
.quote-head p { color: var(--ink-2); max-width: 52ch; margin: 16px 0 0; }
.quote-noscript { max-width: 860px; margin: 0 auto 24px; }
.quote-card {
  max-width: 860px; margin: 0 auto;
  background: #fff; border: 0; border-radius: 0;
  border-top: 6px solid var(--green);
  box-shadow: 12px 12px 0 var(--joint);
  padding: clamp(22px, 4vw, 44px);
}
.kf-step-title { font-family: var(--display); font-variation-settings: "wdth" 82; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.kf-progress-head { color: var(--green); }
.kf-progress-track { border-radius: 0; height: 6px; background: var(--stone); }
.kf-progress-bar { border-radius: 0; background: var(--marker); }
.kf-opt, .kf-btn, .kf-field input, .kf-field textarea { border-radius: 2px !important; }
.kf-opt { border-color: var(--joint) !important; }
.kf-btn--primary {
  background: var(--green) !important; color: #fff !important;
  box-shadow: 0 4px 0 var(--green-dk) !important;
}
.kf-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--green-dk) !important; }
.contact .stripes-bg { background: repeating-linear-gradient(100deg, #21443A 0 120px, #1C3A2F 120px 240px); }

/* Contact ---------------------------------------------------------------- */
.contact-in {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
  padding: clamp(72px, 9vw, 120px) var(--gut); color: #fff;
}
.contact h2 { color: #fff; margin-bottom: 30px; }
.contact-list { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 28px; }
.contact-list dt, .contact-list dd { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.16); margin: 0; }
.contact-list dt { color: rgba(255,255,255,.7); }
.contact-list dd { font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { color: #fff; text-decoration: none; border-bottom: 2px solid var(--marker); }
.contact-form { background: var(--stone-lt); color: var(--ink); padding: clamp(22px, 3.5vw, 40px); box-shadow: 12px 12px 0 rgba(0,0,0,.25); }
.contact-form h3 { font-size: 1.9rem; margin-bottom: 18px; }
.contact-form form { display: grid; gap: 6px; }
.contact-form label { font-weight: 600; margin-top: 10px; }
.contact-form .opt { font-weight: 400; color: var(--ink-2); }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%;
  border: 1px solid var(--joint); border-bottom: 2px solid var(--ink-2); border-radius: 0;
  padding: 12px;
}
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--marker); outline: none; }
.contact-form .btn { margin-top: 18px; justify-self: start; }

/* Footer ----------------------------------------------------------------- */
.ft { padding: 48px var(--gut) 40px; background: var(--stone); border-top: 1px solid var(--joint); }
.ft-logo { width: 300px; height: auto; margin-bottom: 26px; }
.ft-links { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ft-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ft-links a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--marker); text-underline-offset: 4px; }
.ft-small { color: var(--ink-2); font-size: .92rem; max-width: 70ch; margin: 0; }
.ft-small a { color: var(--ink); }

/* Tablet and phone ------------------------------------------------------- */
@media (max-width: 1100px) {
  .hd-nav { display: none; }
  .hd-call { margin-left: auto; }
}
@media (max-width: 860px) {
  .hd { background: var(--stone); }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 80px; }
  .hd-logo, .hd.is-solid .hd-logo { width: 221px; height: 48px; }
  .hero-photo { grid-column: 1; grid-row: 1; margin: 0; aspect-ratio: 4 / 3; }
  .hero-words { grid-column: 1; grid-row: 2; align-self: start; margin: 0; padding: 26px var(--gut) 52px; }
  .hero-where { margin-bottom: 14px; font-size: .78rem; }
  .hero h1 { max-width: none; }
  .hero-photo figcaption { left: var(--gut); bottom: 16px; }
  .svc-wrap, .reel, .contact-in { grid-template-columns: 1fr; }
  .svc-photo { display: none; }
  .svc-list a { grid-template-columns: 1fr 96px; column-gap: 16px; padding: 18px 0; }
  .svc-list a:hover, .svc-list a:focus-visible, .svc-list a.is-on { padding-left: 0; background: transparent; }
  .svc-no { grid-column: 1; grid-row: 1; padding: 0; }
  .svc-name { grid-column: 1; grid-row: 2; }
  .svc-line { grid-column: 1; grid-row: 3; opacity: 1; }
  .svc-thumb { display: block; grid-column: 2; grid-row: 1 / span 3; width: 96px; height: 120px; object-fit: cover; align-self: start; }
  .svc-list a::after { display: none; }
  .reel-phone { justify-self: center; width: min(280px, 80%); }
  .work-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; gap: 5px; border-width: 5px; }
  .work-item, .work-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .work-item:nth-child(3n+1) { grid-column: span 2; }
  .work-item::after { display: none; }
  .facts { flex-direction: column; align-items: flex-start; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list dt { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 520px) {
  .hd { gap: 12px; }
  .hd-logo, .hd.is-solid .hd-logo { width: 184px; height: 40px; }
  .hd-call-label { display: none; }
  .hd-call { font-size: .95rem; }
  .hd-quote { display: none; }
}

/* Service pages, generated by build.py. Same hero, stripes, patio grid,
   contact band and services index as the homepage. ------------------------ */
.pg-svc .hero { min-height: min(80vh, 760px); }
.pg-svc .hero-words { margin-right: 0; padding-right: clamp(20px, 3vw, 48px); align-self: center; padding-bottom: 56px; }
.pg-svc .hero h1 { font-size: clamp(2.5rem, 4.8vw, 4.9rem); max-width: 13ch; }
/* Service heroes keep the settle-in but have no caption, so no wash or drift. */
.pg-svc .hero-photo::after { display: none; }
.pg-svc .hero-photo img { transform: none; }
.crumb { font-size: .95rem; color: var(--ink-2); margin-bottom: 20px; }
.crumb a { color: var(--ink-2); }
.crumb span[aria-hidden] { color: var(--marker); margin: 0 8px; }
.sv-body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
  padding: clamp(72px, 9vw, 120px) var(--gut) clamp(32px, 5vw, 64px);
}
.sv-prose p { max-width: 64ch; font-size: 1.15rem; }
.sv-prose p:first-child { font-size: 1.3rem; line-height: 1.5; max-width: 56ch; }
.sv-covers {
  background: var(--stone-lt); border-top: 6px solid var(--green);
  box-shadow: 12px 12px 0 var(--joint); padding: clamp(22px, 3vw, 36px);
}
.sv-covers h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.sv-covers .reel-points { margin-top: 18px; }
.pg-svc .work { padding-top: clamp(40px, 6vw, 80px); }
.sv-grid { grid-auto-rows: clamp(200px, 24vw, 340px); }
.sv-grid .work-item:nth-child(n) { grid-column: span 2; grid-row: span 1; }
.sv-grid .work-item.w3 { grid-column: span 3; }
.sv-grid .work-item.w6 { grid-column: span 6; }
.sv-cta p { max-width: 50ch; }
.sv-cta .btn { margin-top: 12px; }
.sv-cta + .contact-list { align-self: center; }
.sv-others .svc-list { max-width: 980px; }
@media (max-width: 860px) {
  .sv-body { grid-template-columns: 1fr; }
  .sv-grid { grid-auto-rows: 44vw; }
  .sv-grid .work-item:nth-child(n) { grid-column: span 1; }
  .sv-grid .work-item:first-child:nth-last-child(odd) { grid-column: span 2; }
}

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