/* RJ Gardening preview. One dark moss theme (single theme, per brief).
   Radius rule: panels and plates 16px, inputs 10px, buttons and chips full pill. */
:root {
  --moss: #1c2a1e;      --on-moss: #ecefe0;
  --moss-soft: #b9c6ab; /* secondary text on moss */
  --moss-2: #243727;    --on-moss-2: #ecefe0;
  --deep: #141f16;      --on-deep: #ecefe0;
  --stripe: #2f5128;    --on-stripe: #f2f5e6;
  --bark: #4a3222;      --on-bark: #f3ebdf;
  --cut: #b8e04a;       --on-cut: #172014;
  --ribbon: #b8e04a;    --on-ribbon: #172014;
  --field: #1a281c;     --on-field: #ecefe0;
  --err: #ffb49e;
  --line: #4d6b45;
  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  background: var(--moss);
  color: var(--on-moss);
  overflow-wrap: anywhere;
  padding-bottom: 5.5rem; /* room for the mobile dock */
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cut); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }

.ribbon {
  background: var(--ribbon);
  color: var(--on-ribbon);
  font-size: .8125rem;
  font-weight: 600;
  text-align: center;
  padding: .45rem 1rem;
}

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.mark { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.3rem/1 var(--display); }
.top nav { display: flex; gap: 1.25rem; font-weight: 500; }
.top nav a { text-decoration: none; position: relative; padding-block: .25rem; }
.top nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cut);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.top nav a:hover::after, .top nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.mark img { transition: rotate .35s var(--ease); }
.mark:hover img { rotate: -10deg; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--body); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: translate .2s var(--ease), scale .15s ease-out;
}
.btn:hover { translate: 0 -2px; }
.btn:active { translate: 0; scale: .96; }
.btn-cut { background: var(--cut); color: var(--on-cut); }
.btn-cut:hover { background: #c9ec66; color: var(--on-cut); }
.btn-line { background: var(--moss); color: var(--on-moss); border-color: var(--cut); }
.btn-line:hover { background: var(--moss-2); color: var(--on-moss-2); }

/* hero */
.hero { display: grid; gap: 2rem; padding-block: 2rem 1rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 7.5vw, 4.25rem); }
.hero h1 em { font-style: italic; color: var(--cut); display: inline-block; padding-bottom: .12em; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: .1em; bottom: 0; height: .07em; border-radius: 9px; background: var(--cut); }
.lede { margin-top: 1.1rem; font-size: 1.15rem; color: var(--moss-soft); max-width: 34ch; }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-art { margin: 0; }
/* end state of the trim (what reduced motion and no animation show) */
.tufts { clip-path: inset(0 0 0 100%); }
.clippings ellipse, .trimmer { opacity: 0; }
.clippings ellipse { transform-box: fill-box; transform-origin: center; }

/* the hedge-line signature: a clipped scallop edge between sections */
.hedgeline {
  height: 28px;
  margin-top: 1rem;
  background-color: var(--moss);
  color: var(--on-moss);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='28'%3E%3Cpath d='M0 28 V14 a11 11 0 0 1 22 0 a11 11 0 0 1 22 0 V28Z' fill='%23243727'/%3E%3Cpath d='M0 14 a11 11 0 0 1 22 0 a11 11 0 0 1 22 0' fill='none' stroke='%23b8e04a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom left;
}
.hedgeline-foot {
  margin-top: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='28'%3E%3Cpath d='M0 28 V14 a11 11 0 0 1 22 0 a11 11 0 0 1 22 0 V28Z' fill='%23141f16'/%3E%3Cpath d='M0 14 a11 11 0 0 1 22 0 a11 11 0 0 1 22 0' fill='none' stroke='%23b8e04a' stroke-width='2'/%3E%3C/svg%3E");
}

/* services: four unequal cells */
.services { padding-block: 3.5rem; }
.services h2, .results h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); }
.svc-grid { display: grid; gap: 1rem; margin-top: 1.75rem; }
.svc { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 11rem; }
.svc h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.svc p { max-width: 36ch; }
.svc-lawn { background-color: var(--stripe); color: var(--on-stripe); min-height: 15rem; }
/* mower stripes live on a layer so they can be mown in */
.svc-lawn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(90deg, transparent 0 44px, #274522 44px 88px);
}
/* hedge card: a fresh-cut line along its top edge */
.svc-hedge::before {
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 1.25rem; height: 3px; border-radius: 3px;
  background: var(--on-cut);
}
.svc-hedge { background: var(--cut); color: var(--on-cut); }
.svc-weed { background: var(--moss-2); color: var(--on-moss-2); }
.svc-tree { background: var(--bark); color: var(--on-bark); }

/* pressure washing, the new service */
.wash { background: var(--deep); color: var(--on-deep); padding-block: 3.5rem; }
.wash-inner { display: grid; gap: 2rem; align-items: center; }
.wash h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); margin: .75rem 0 1rem; }
.wash p { max-width: 42ch; margin-bottom: 1.5rem; color: var(--moss-soft); }
.badge {
  display: inline-block; background: var(--cut); color: var(--on-cut);
  font-weight: 600; font-size: .875rem; padding: .2rem .8rem; border-radius: 999px;
}
.wash-art { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; overflow: clip; /* clip, not a scroll container, so view() tracks the page */ container-type: inline-size; }
.wash-art .grime, .wash-art .clean { position: absolute; inset: 0; }
.wash-art .grime {
  background-color: #4b5641;
  background-image:
    radial-gradient(circle at 20% 30%, #3a4a30 0 18%, transparent 19%),
    radial-gradient(circle at 70% 65%, #3f4f35 0 22%, transparent 23%),
    radial-gradient(circle at 45% 85%, #56613f 0 12%, transparent 13%),
    linear-gradient(#5a6450 0 0);
}
.wash-art .clean {
  background-color: #9aa38e;
  background-image:
    linear-gradient(90deg, transparent 49.5%, #7f8973 49.5% 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, #7f8973 49.5% 50.5%, transparent 50.5%);
  background-size: 33.3% 50%;
  clip-path: polygon(0 0, 58% 0, 38% 100%, 0 100%);
}
.wash-art::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: 47%; width: 6px;
  background: var(--cut); transform: rotate(11deg); transform-origin: center;
}

/* before / after comparison plates */
.results { padding-block: 3.5rem; }
.section-lede { color: var(--moss-soft); margin-top: .5rem; }
.compare { position: relative; container-type: inline-size; margin-top: 1.5rem; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; }
.compare:focus-within { outline: 3px solid var(--cut); outline-offset: 3px; }
.plate { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.25rem; }
.plate p { font: 700 1.35rem/1.2 var(--display); max-width: 14ch; }
.plate small { font: 500 .9rem/1.35 var(--body); }
.plate-before {
  background-color: var(--bark);
  color: var(--on-bark);
  background-image:
    radial-gradient(circle at 15% 20%, #5b4030 0 10%, transparent 11%),
    radial-gradient(circle at 40% 10%, #3d2a1c 0 12%, transparent 13%),
    radial-gradient(circle at 60% 30%, #5b4030 0 9%, transparent 10%),
    radial-gradient(circle at 85% 15%, #3d2a1c 0 11%, transparent 12%);
}
.plate-after {
  background-color: var(--stripe);
  color: var(--on-stripe);
  background-image: repeating-linear-gradient(90deg, #2f5128 0 40px, #274522 40px 80px);
  justify-content: flex-end;
  text-align: right;
  clip-path: inset(0 0 0 calc(var(--p) * 1%));
}
.plate-after p { margin-left: auto; }
.plate-after { align-items: flex-start; }
@media (max-width: 767px) { .compare { aspect-ratio: 4 / 5; } .plate p { font-size: 1.15rem; max-width: 11ch; } }
/* handle positions are transforms driven by --p (0-100), never left/width */
@property --p { syntax: "<number>"; inherits: true; initial-value: 50; }
.compare::after, .compare::before { content: ""; position: absolute; left: 0; pointer-events: none; translate: calc(var(--p) * 1cqi) 0; }
.compare::after { top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--cut); }
.compare::before {
  top: 50%; z-index: 1;
  width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; border-radius: 999px;
  background: var(--cut); box-shadow: 0 4px 14px rgb(10 20 10 / .45);
  transition: scale .2s var(--ease);
}
.compare:hover::before, .compare:focus-within::before { scale: 1.1; }
.compare:active::before { scale: .96; }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; z-index: 2;
}
.note { margin-top: 1rem; font-size: .9rem; color: var(--moss-soft); max-width: 60ch; }

/* proof */
.proof { display: grid; gap: 2rem; padding-block: 3rem; border-top: 2px solid var(--line); }
.big { font: 700 clamp(4.5rem, 16vw, 8rem)/.9 var(--display); color: var(--cut); }
.proof-main p:last-child { font-size: 1.2rem; margin-top: .5rem; max-width: 26ch; }
.proof-list li { position: relative; padding-left: 1.6rem; }
.proof-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 1rem; height: 3px; border-radius: 3px; background: var(--cut); }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; align-content: center; font-size: 1.15rem; }
.proof-list strong { font-family: var(--display); font-size: 1.3rem; }

/* quote */
.quote { display: grid; gap: 2rem; padding-block: 3.5rem; }
.quote h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 1rem; }
.quote-side p { max-width: 40ch; margin-bottom: 1rem; color: var(--moss-soft); }
.quote-side .btn { margin-top: .5rem; }
.form { background: var(--moss-2); color: var(--on-moss-2); border-radius: 16px; padding: 1.5rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; padding: 0; }
.field > label { position: relative; justify-self: start; }
.field > label::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--cut); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.field:focus-within > label::after { transform: scaleX(1); }
.field legend { margin-bottom: .45rem; }
.form input:not([type="checkbox"]), .form textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border-radius: 10px;
  border: 2px solid var(--line); background: var(--field); color: var(--on-field);
}
.form input:focus, .form textarea:focus { border-color: var(--cut); outline: none; }
.form [aria-invalid="true"] { border-color: var(--err); }
.help { font-size: .9rem; color: var(--moss-soft); }
.err { font-size: .9rem; color: var(--err); min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 500;
  padding: .5rem .9rem; border-radius: 999px; border: 2px solid var(--line); cursor: pointer;
  transition: scale .15s ease-out;
}
.chips label:active { scale: .96; }
.chips label:has(input:checked) { border-color: var(--cut); }
.chips input { accent-color: var(--cut); width: 1.05rem; height: 1.05rem; margin: 0; }
.form .btn { justify-self: start; }
.success { background: var(--deep); color: var(--on-deep); border-radius: 16px; padding: 1.1rem 1.25rem; border-left: 4px solid var(--cut); }
.success .tick { width: 1.75rem; height: 1.75rem; color: var(--cut); margin-bottom: .4rem; }
.success p + p { margin-top: .35rem; color: var(--moss-soft); }

/* footer */
.foot { background: var(--deep); color: var(--on-deep); padding-block: 2.5rem; }
.foot-inner { display: grid; gap: 1.5rem; }
.foot-name { font: 700 1.3rem/1.2 var(--display); margin-bottom: .35rem; }
.foot p { color: var(--moss-soft); }
.foot .foot-name { color: var(--on-deep); }
.privacy { max-width: 48ch; font-size: .95rem; }

/* sticky mobile dock */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: var(--deep); color: var(--on-deep); border-top: 2px solid var(--line);
}
.dock .btn { padding-inline: .5rem; min-height: 2.9rem; font-size: .95rem; }

@media (max-width: 380px) {
  .top nav a:first-child { display: none; }
  .dock { grid-template-columns: 1fr 1fr; }
  .dock .btn:first-child { grid-column: 1 / -1; }
  body { padding-bottom: 8.5rem; }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .hero { grid-template-columns: 1.05fr 1fr; padding-block: 3rem 1rem; }
  .svc-grid { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; }
  .svc-lawn { grid-row: span 2; }
  .svc-hedge { grid-column: span 2; }
  .wash-inner { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: auto 1fr; gap: 4rem; align-items: center; }
  .quote { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .foot-inner { grid-template-columns: 1fr 1fr; align-items: start; }
}


/* ============ MOTION ============
   Rules: only transform / translate / scale / rotate, opacity, filter, clip-path and SVG
   stroke are animated. Every hidden pre-state lives inside no-preference, and the
   scroll pre-states only exist under classes app.js adds (.rv-wait), so with JS off or
   reduced motion the page is simply in its final state. */
@media (prefers-reduced-motion: no-preference) {
  /* 1. Signature: the hedge gets trimmed. Blade crosses left to right (0.15s-1.0s),
     the shaggy growth is clipped away behind its tip, the fresh-cut line draws in
     step and clippings drop where it has passed. Headline is never hidden. */
  .trimmer { animation: trim-pass 1s linear .15s both; }
  .tufts { animation: trim-clip .85s linear .15s both; }
  .cutline { stroke-dasharray: 1; animation: trim-line .85s linear .15s both; }
  .clippings ellipse { animation: drop .5s cubic-bezier(.5, 0, .9, .6) var(--d) both; }
  .hero h1 em::after { transform-origin: left; animation: underline .85s var(--ease) .2s both; }
  .lede { animation: rise .5s var(--ease) .1s both; }
  .ctas { animation: rise .5s var(--ease) .2s both; }

  @keyframes trim-pass {
    0% { translate: 39px 164px; opacity: 0; }
    6% { opacity: 1; }
    85% { translate: 565px 164px; opacity: 1; }
    100% { translate: 590px 164px; opacity: 0; }
  }
  @keyframes trim-clip { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
  @keyframes trim-line { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes drop {
    0% { opacity: 0; translate: 0 0; rotate: 0deg; }
    15% { opacity: 1; }
    100% { opacity: 0; translate: var(--dx) 150px; rotate: var(--r); }
  }
  @keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes rise {
    from { opacity: 0; translate: 0 14px; filter: blur(4px); }
    to { opacity: 1; translate: 0 0; filter: blur(0); }
  }

  /* 2. Scroll reveals: semantic chunks, 80ms stagger (app.js sets --i). Pre-states
     only exist under .rv-wait, which app.js adds on the visitor's first scroll and only
     to elements still below the viewport, so an unscrolled page (or a full-page
     capture) always shows everything and nothing on screen ever disappears. */
  .rv-wait[data-rv], .rv-wait[data-rv-kids] > * { opacity: 0; }
  .rv-go[data-rv], .rv-go[data-rv-kids] > * { animation: rise .6s var(--ease) calc(var(--i, 0) * 80ms) both; }
  .rv-wait .svc-lawn::before { clip-path: inset(0 100% 0 0); }
  .rv-go .svc-lawn::before { animation: mow .9s var(--ease) .25s both; }
  .rv-wait .svc-hedge::before { transform: scaleX(0); }
  .rv-go .svc-hedge::before { transform-origin: left; animation: underline .7s var(--ease) .4s both; }
  .hedgeline.rv-wait { clip-path: inset(0 100% 0 0); }
  .hedgeline.rv-go { animation: mow 1s var(--ease) both; }
  .rv-go > .big { animation: grow .8s var(--ease) both; }
  .rv-wait li::before { transform: scaleX(0); }
  .rv-go li::before { transform-origin: left; animation: underline .5s var(--ease) calc(var(--i, 0) * 80ms + .2s) both; }

  @keyframes mow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  /* "100%" grows up out of the ground */
  @keyframes grow { from { clip-path: inset(100% 0 0 0); translate: 0 .15em; } to { clip-path: inset(0 0 0 0); translate: 0 0; } }

  /* 3. Pressure washing: the clean swathe and lance sweep across the slab */
  .wash-art.rv-wait .clean { clip-path: polygon(0 0, -20% 0, -40% 100%, 0 100%); }
  .wash-art.rv-wait::after { translate: -80cqi 0; }
  .wash-art.rv-go .clean { animation: wash 1.3s var(--ease) .1s both; }
  .wash-art.rv-go::after { animation: lance 1.3s var(--ease) .1s both; }
  @keyframes wash { from { clip-path: polygon(0 0, -20% 0, -40% 100%, 0 100%); } to { clip-path: polygon(0 0, 58% 0, 38% 100%, 0 100%); } }
  @keyframes lance { from { translate: -80cqi 0; } to { translate: 0 0; } }
  /* where supported, scrub the wash with scroll instead of a timed play */
  @supports (animation-timeline: view()) {
    .wash-art .clean, .wash-art.rv-go .clean, .wash-art.rv-wait .clean {
      clip-path: none; animation: wash linear both; animation-timeline: view(); animation-range: entry 20% cover 50%;
    }
    .wash-art::after, .wash-art.rv-go::after, .wash-art.rv-wait::after {
      translate: none; animation: lance linear both; animation-timeline: view(); animation-range: entry 20% cover 50%;
    }
  }

  /* 4. Before/after: the handle sweeps once to show it moves; any touch stops it */
  .compare.rv-go { animation: hint 1.5s var(--ease) .3s; }
  @keyframes hint { 0% { --p: 50; } 35% { --p: 74; } 70% { --p: 32; } 100% { --p: 50; } }

  /* 5. Form feedback */
  .err:not(:empty) { animation: rise .25s var(--ease) both; }
  .shake { animation: shake .3s ease-out; }
  @keyframes shake { 25% { translate: -5px 0; } 50% { translate: 4px 0; } 75% { translate: -2px 0; } }
  .form .success { animation: rise .45s var(--ease) both; }
  .success .tick path { stroke-dasharray: 1; animation: trim-line .45s var(--ease) .2s both; }

  /* 6. Mobile dock arrives once the hero buttons scroll away */
  .dock { transition: translate .35s var(--ease), visibility 0s; }
  .dock.dock-off { translate: 0 110%; visibility: hidden; transition: translate .25s ease-in, visibility 0s .25s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .chips label, .compare::before, .mark img, .top nav a::after, .field > label::after { transition: none; }
  .btn:hover, .btn:active { translate: none; scale: none; }
  .dock { transition: opacity .2s; }
  .dock.dock-off { opacity: 0; visibility: hidden; }
}
