/*
  base.css: design tokens and shared building blocks for the whole page.
  Every section stylesheet builds on these; nothing here belongs to one section.

  Brand: none exists, so these tokens were defined for this demo from the
  business's own photos: the white rock border and fresh sod in their
  renovation photo, and the dark soil it replaced. The idea running through the
  page is a freshly mowed lawn: two-tone mowing stripes (--lawn and --lawn-2).
  Tone: friendly, dependable, fresh. Not corporate, not flashy, not cheap.
  Type: Bricolage Grotesque, condensed and heavy, for headings (sturdy and a
  little warm, like a hand-painted truck sign); Figtree for everything you read.
  Motion: the page has a wow effect by request, but every section is fully
  readable without it. Motion starts only when <html> has "motion-ready"
  (set by src/scripts/base.js).
*/

:root {
  /* Colors */
  --rock: #f5f2ea;          /* page background: the white rock border in their photos */
  --rock-2: #e9e4d7;        /* second light surface: form fields, quiet panels */
  --line: #d6cfbf;          /* borders and dividers on light surfaces */
  --soil: #18210f;          /* body text, dark sections, primary buttons */
  --muted: #4d5843;         /* secondary text on rock (6.7:1) and rock-2 (5.9:1) */
  --sod: #2e6420;           /* deep green: links and focus ring on light surfaces (6.3:1 on rock) */
  --lawn: #78ae3f;          /* bright cut-lawn green: stripes, highlights on soil (6.7:1 with soil) */
  --lawn-2: #6a9f36;        /* the second mowing-stripe tone (soil text on it: 5.2:1) */
  --on-soil: #f5f2ea;       /* text on soil */
  --on-soil-muted: #bfc9b2; /* secondary text on soil (9.7:1) */
  --error: #a3271b;         /* form errors only (6.3:1 on rock) */

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Arial, sans-serif;
  --fs-sm: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --fs-h2: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem);
  --fs-display: clamp(2.875rem, 1.2rem + 8vw, 10rem);

  /* Spacing scale (4 to 128) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* One corner radius for photos and panels; buttons are full pills. No shadow
     style: surfaces are told apart by color. */
  --radius: 16px;
  --container: 1240px;
  --gutter: var(--s4);
  --header-h: 64px;

  /* Easing for CSS transitions, matched to GSAP's "power3.out" */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Focus ring color; dark and green sections switch it so it stays visible. */
  --focus: var(--sod);
}

@media (min-width: 640px) { :root { --gutter: var(--s5); } }
@media (min-width: 1024px) { :root { --gutter: var(--s6); --fs-body: 1.125rem; } }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--rock);
  color: var(--soil);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
input, select, textarea, button { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* Lenis smooth scrolling (rules from the Lenis package). Lenis does the
   smoothing itself, so the browser's own smooth scrolling is switched off. */
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Sections are reached from header links; keep their tops clear of the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + var(--s4)); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.05; font-stretch: 85%; }
p { text-wrap: pretty; }

a { color: var(--sod); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Screen-reader-only text */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons: full pills, 52px tall for thumbs.
   soil: the main action on light and green surfaces.
   lawn: the main action on soil (dark) surfaces. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 52px;
  padding: var(--s3) var(--s5);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-soil { background: var(--soil); color: var(--on-soil); }
.btn-soil:hover { background: var(--sod); }
.btn-lawn { background: var(--lawn); color: var(--soil); }
.btn-lawn:hover { background: var(--on-soil); }

/* Star row next to the real Google rating. One element: a star shape repeated
   five times as a mask, filled with currentColor up to --fill (96% = 4.8 of 5)
   and a faint tint after that. Decorative; the rating is always in the text. */
.stars {
  --size: 20px;
  --fill: 96%;
  display: inline-block;
  flex: none;
  width: calc(var(--size) * 26 / 24 * 5);
  height: var(--size);
  background: linear-gradient(90deg, currentColor var(--fill), rgb(24 33 15 / 0.22) var(--fill));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") 0 0 / calc(var(--size) * 26 / 24) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") 0 0 / calc(var(--size) * 26 / 24) var(--size) repeat-x;
}

/* Skip link: first thing a keyboard user reaches, above everything else */
.skip-link {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 300;
  padding: var(--s3) var(--s4);
  background: var(--soil);
  color: var(--on-soil);
  border-radius: 8px;
}
.skip-link:focus { top: var(--s4); }

/* HomeSampleNotice: the light "sample website" strip above the dark header. */
.sample-notice {
  background: var(--rock);
  border-bottom: 1px solid var(--line);
  color: var(--soil);
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-align: center;
}
.sample-notice p { padding-block: var(--s2); }
.sample-notice a { color: var(--sod); font-weight: 700; }

/*
  HomeHeader: dark sticky bar with the wordmark, section links and the call button.
  .is-hidden  set by HomeHeader.js while the visitor scrolls down (motion only):
              the bar slides up out of view and returns on the first scroll up.
*/
.site-header {
  --focus: var(--lawn);
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--soil);
  color: var(--on-soil);
  transition: transform 0.4s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__bar {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: var(--header-h);
}

/* Wordmark: no logo exists, so the name is set in the condensed heading cut,
   next to a small square of mowing stripes (the same stripes as the hero). */
.brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}
.brand__mark {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: repeating-linear-gradient(-16deg, var(--lawn) 0 7px, var(--lawn-2) 7px 14px);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: -0.01em;
}
.brand__sub {
  margin-top: 3px;
  color: var(--on-soil-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav { display: none; }
.site-nav__list { display: flex; gap: var(--s5); }
.site-nav a {
  display: inline-block;
  padding-block: var(--s3);
  color: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  /* A short stripe draws in under the link on hover and keyboard focus. */
  background: linear-gradient(var(--lawn), var(--lawn)) 0 calc(100% - 8px) / 0 3px no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.site-nav a:hover,
.site-nav a:focus-visible { background-size: 100% 3px; }

.site-header__call {
  min-height: 44px;
  padding-inline: var(--s4);
}
.site-header__call-full { display: none; }

@media (min-width: 960px) {
  .site-nav { display: block; }
  .site-header__call-short { display: none; }
  .site-header__call-full { display: inline; }
}

/*
  HomeHero: the first screen, set on a freshly mown lawn.
  The lawn is ten wide bands in the two stripe greens, tilted and oversized so
  they cover the hero at any width (the box is clipped). Under them sits the
  darker "uncut" green, seen only while the opening animation mows the stripes in.
  Height: the screen minus the sample notice and the header, so the call button
  and the rating sit on the first screen of a phone.
*/
.hero {
  --focus: var(--soil);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 56px);
  background: var(--sod);
  color: var(--soil);
}
@media (min-width: 640px) { .hero { min-height: calc(100svh - var(--header-h) - 37px); } }

.hero__lawn {
  position: absolute;
  z-index: -1;
  inset: -30% -25%;
  display: grid;
  grid-template-rows: repeat(10, 1fr);
  transform: rotate(-14deg);
}
.hero__lawn span { background: var(--lawn); }
.hero__lawn span:nth-child(even) { background: var(--lawn-2); }

/* Held back until HomeHero.js mows them in (motion only; see head.js). */
.motion .hero__lawn span { transform: scaleX(0); }
.motion .hero__inner { visibility: hidden; }
.motion .hero__name { --u: 0; }

.hero__inner {
  display: grid;
  gap: var(--s4);
  padding-block: var(--s6) var(--s7);
}
/* Small phones (320 to 389 wide): a little tighter, so the rating still fits
   on the first screen of a 568px-tall phone. */
@media (max-width: 389px) {
  .hero__inner { gap: var(--s3); padding-top: var(--s4); }
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 700;
}
.hero__kicker svg { width: 20px; height: 20px; flex: none; }

.hero__title {
  font-size: var(--fs-display);
  font-stretch: 75%;
  line-height: 0.88;
  letter-spacing: -0.01em;
}
/* "Papa Green" gets a fresh-cut rock-white stripe under it; --u draws it in. */
.hero__name {
  position: relative;
  white-space: nowrap;
}
.hero__name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1em;
  height: 0.08em;
  border-radius: 0.04em;
  background: var(--rock);
  transform: scaleX(var(--u, 1));
  transform-origin: left center;
}

.hero__lead {
  max-width: 34rem;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.45;
}

/* Phones: the actions box steps aside (display: contents) so the rating can sit
   right under the call button, above the "before and after" link. That keeps
   the rating on the first screen even on a 320 x 568 phone. */
.hero__actions { display: contents; }
.hero__call { order: 1; width: 100%; margin-top: var(--s2); }
.hero__proof { order: 2; }
.hero__link { order: 3; }
.hero__facts { order: 4; }
.hero__link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  color: var(--soil);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.hero__link svg { width: 18px; height: 18px; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
}
.hero__proof .stars { --size: 22px; color: var(--soil); }
.hero__rating { font-weight: 600; }
.hero__score { font-weight: 800; font-variant-numeric: tabular-nums; }
.hero__count { font-variant-numeric: tabular-nums; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.hero__facts li { display: flex; align-items: center; gap: var(--s2); }
.hero__facts svg { width: 18px; height: 18px; flex: none; }

@media (min-width: 560px) {
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s2) var(--s5);
    order: 1;
    margin-top: var(--s2);
  }
  .hero__call { width: auto; margin-top: 0; }
}

/* Desktop: the headline runs across the full width; the rating moves to its
   own column on the right, with the big score number. */
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "kicker  kicker"
      "title   title"
      "lead    proof"
      "actions proof"
      "facts   facts";
    column-gap: var(--s8);
    row-gap: var(--s5);
    padding-block: var(--s8);
  }
  .hero__kicker { grid-area: kicker; }
  .hero__title { grid-area: title; }
  .hero__lead { grid-area: lead; }
  .hero__actions { grid-area: actions; margin-top: 0; }
  .hero__facts { grid-area: facts; margin-top: var(--s3); }
  .hero__proof {
    grid-area: proof;
    align-self: end;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s2);
    padding-left: var(--s6);
    border-left: 3px solid var(--soil);
  }
  .hero__proof .stars { --size: 26px; }
  .hero__rating { font-size: var(--fs-lead); }
  .hero__score {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 1rem + 6vw, 9rem);
    font-stretch: 75%;
    line-height: 0.85;
    letter-spacing: -0.02em;
  }
}

/*
  HomeRenovation: before and after.
  Default (no JavaScript): two labelled photos side by side, stacked on phones.
  .reno--compare  set by HomeRenovation.js: the photos sit on top of each other
                  and the after photo shows from the left edge up to --pos,
                  with a rock-white line and handle at the boundary.
  .reno--slider   reduced motion: an invisible range input covers the photo so
                  the visitor can drag anywhere on it (arrow keys work too).
  Phones use square crops, wider screens the full 2:1 frame.
*/
.reno { padding-block: var(--s9); }

.reno__head {
  display: grid;
  gap: var(--s4);
  max-width: 48rem;
  margin-bottom: var(--s7);
}
.reno__intro {
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.45;
}
.reno__hint {
  display: none;
  color: var(--sod);
  font-weight: 700;
}
.motion-ready .reno__hint--scroll { display: block; }
.reno--slider .reno__hint--drag { display: block; }

.reno__frame { position: relative; }
.reno__layers {
  display: grid;
  gap: var(--s3);
}
.reno__layer {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--rock-2);
}
.reno__layer img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.reno__tag {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--soil);
  color: var(--on-soil);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.3;
}
.reno__layer--after .reno__tag { background: var(--lawn); color: var(--soil); }

.reno__line,
.reno__handle { display: none; }

.reno__caption {
  max-width: 48rem;
  margin-top: var(--s4);
  color: var(--muted);
  font-size: var(--fs-sm);
}

@media (min-width: 768px) {
  .reno__layers { grid-template-columns: 1fr 1fr; }
  .reno__layer img { aspect-ratio: 1682 / 829; }
}

/* Compare mode: one frame, photos stacked. */
.reno--compare .reno__frame { --pos: 50%; }
.reno--compare .reno__layers {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.reno--compare .reno__layer { border-radius: 0; }
.reno--compare .reno__layer--after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.reno--compare .reno__layer--before .reno__tag { left: auto; right: var(--s3); }

/* The line runs edge to edge; the handle follows it but stops 28px short of
   each side, so it never sticks out of the frame (or off a phone screen). */
.reno--compare .reno__line {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 4px;
  margin-left: -2px;
  background: var(--rock);
  pointer-events: none;
}
.reno--compare .reno__handle {
  position: absolute;
  top: 50%;
  left: clamp(28px, var(--pos), calc(100% - 28px));
  display: grid;
  place-items: center;
  pointer-events: none;
  width: 52px;
  height: 52px;
  border: 3px solid var(--rock);
  border-radius: 50%;
  background: var(--soil);
  color: var(--on-soil);
  transform: translate(-50%, -50%);
}
.reno__handle svg { width: 26px; height: 26px; }

.reno--slider .reno__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.reno--slider .reno__frame:has(.reno__range:focus-visible) .reno__layers {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* On wider screens, keep the whole frame on screen while it is pinned. */
@media (min-width: 768px) {
  .reno--compare .reno__frame {
    max-width: min(100%, calc(72svh * 1682 / 829));
    margin-inline: auto;
  }
}

/*
  HomeServices: the service list on a dark soil background, so the photos glow.
  .mow-mask  five soil-colored bands over each photo. They exist only with
             motion (head.js adds .motion before the first paint) and are pulled
             away by HomeServices.js; without motion the photos simply show.
*/
.services {
  --focus: var(--lawn);
  padding-block: var(--s9);
  background: var(--soil);
  color: var(--on-soil);
}

.services__title {
  max-width: 46rem;
  margin-bottom: var(--s8);
}

.services__list {
  display: grid;
  gap: var(--s8);
}

.service {
  display: grid;
  gap: var(--s5);
  align-content: start;
}
.service__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgb(245 242 234 / 0.06); /* a faint rock tint over soil: shows while the photo loads */
}
.service__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service__body {
  display: grid;
  gap: var(--s3);
  align-content: start;
}
.service__num {
  color: var(--lawn);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: 0.02em;
}
.service p {
  max-width: 34rem;
  color: var(--on-soil-muted);
}

.mow-mask { display: none; }
.motion .mow-mask {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  pointer-events: none;
}
/* 1px overlap between bands so no hairline of photo shows through. */
.mow-mask i { background: var(--soil); margin-bottom: -1px; }

@media (min-width: 900px) {
  .services__list {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s7);
    row-gap: var(--s8);
  }
  .service--wide {
    grid-column: 1 / -1;
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: var(--s7);
  }
  .service--wide h3 { font-size: clamp(2rem, 1.2rem + 2vw, 3rem); }
  /* Right-hand column sits lower: a staggered rhythm instead of a flat grid. */
  .service:nth-child(3),
  .service:nth-child(5) { margin-top: var(--s9); }
}

/*
  HomeReviews: Google rating, quotes and review topics on the bright lawn green.
  Soil text on --lawn is 6.7:1 and on --lawn-2 5.2:1, so the faint background
  stripes never hurt reading.
  Topic bars: each bar's length is its review count out of the top count (13),
  set from the data-n attribute (inline styles are blocked by the page's
  content security policy, so the widths live here).
*/
.reviews {
  --focus: var(--soil);
  padding-block: var(--s9);
  background: repeating-linear-gradient(-14deg, var(--lawn) 0 180px, var(--lawn-2) 180px 360px);
  color: var(--soil);
}

.reviews__top {
  display: grid;
  gap: var(--s7);
  margin-bottom: var(--s8);
}

.reviews__score {
  display: grid;
  gap: var(--s3);
  align-content: start;
  justify-items: start;
}
.reviews__title { display: grid; gap: var(--s2); }
.reviews__value {
  font-size: clamp(5.5rem, 3rem + 9vw, 10rem);
  font-stretch: 75%;
  line-height: 0.8;
  letter-spacing: -0.03em;
}
.reviews__label { font-size: var(--fs-h3); font-stretch: 85%; }
.reviews__score .stars { --size: 28px; color: var(--soil); }
.reviews__count { font-weight: 600; }

.reviews__feature {
  display: grid;
  gap: var(--s4);
  align-content: start;
}
.reviews__feature blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
/* The strongest line gets a rock-white marker; HomeReviews.js sweeps it in. */
.reviews__feature mark {
  padding-inline: 0.12em;
  margin-inline: -0.06em;
  border-radius: 0.12em;
  background: linear-gradient(var(--rock), var(--rock)) 0 0 / 100% 100% no-repeat;
  color: var(--soil);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}
.motion .reviews__feature mark { background-size: 0% 100%; }
.reviews__feature figcaption,
.quote figcaption { font-weight: 700; }

.reviews__list {
  display: grid;
  gap: var(--s6);
  margin-bottom: var(--s8);
}
.quote {
  display: grid;
  gap: var(--s3);
  padding-top: var(--s4);
  border-top: 3px solid var(--soil);
}
.quote blockquote p { font-size: var(--fs-body); }

.topics {
  display: grid;
  gap: var(--s5);
  max-width: 52rem;
}
.topics__title { font-size: var(--fs-h3); }
.topics__list { display: grid; gap: var(--s4); }
.topic {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s1) var(--s4);
  font-weight: 600;
}
.topic__count { font-variant-numeric: tabular-nums; }
.topic__bar {
  grid-column: 1 / -1;
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgb(24 33 15 / 0.14);
  overflow: hidden;
}
.topic__bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--n) / 13 * 100%);
  border-radius: inherit;
  background: var(--soil);
  transform-origin: left center;
  transform: scaleX(var(--grow, 1));
}
.topic[data-n="13"] { --n: 13; }
.topic[data-n="7"] { --n: 7; }
.topic[data-n="5"] { --n: 5; }
.topic[data-n="4"] { --n: 4; }
.topic[data-n="3"] { --n: 3; }
.topic[data-n="2"] { --n: 2; }
.motion .topic__bar { --grow: 0; }
.topics__note { font-size: var(--fs-sm); font-weight: 500; }

@media (min-width: 768px) {
  .reviews__list { grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
}

@media (min-width: 1024px) {
  .reviews__top {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: var(--s8);
    align-items: end;
  }
}

/*
  HomeContact: phone, hours, email and address on the left; the quote request
  form on a rock-2 panel on the right (below on phones).
  .is-today  set by HomeContact.js on the hours row for today's day in Brandon
             (Eastern time); the row turns lawn green and says "Today".
*/
.contact { padding-block: var(--s9); }

.contact__grid {
  display: grid;
  gap: var(--s8);
}

.contact__info {
  display: grid;
  gap: var(--s5);
  align-content: start;
}
.contact__lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.45;
}

/* The phone number is the biggest thing here, with a lawn-green stripe under it. */
.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  justify-self: start;
  padding-bottom: var(--s2);
  background: linear-gradient(var(--lawn), var(--lawn)) 0 100% / 100% 6px no-repeat;
  color: var(--soil);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1.05;
  text-decoration: none;
  transition: background-size 0.3s var(--ease-out);
}
.contact__phone:hover { background-size: 100% 14px; }
.contact__phone svg { width: 0.66em; height: 0.66em; flex: none; }

.hours {
  display: grid;
  gap: var(--s3);
  max-width: 30rem;
  padding-top: var(--s5);
  border-top: 2px solid var(--soil);
}
.hours__title { font-size: var(--fs-h3); }
.hours__list { display: grid; gap: var(--s1); }
.hours__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s1) var(--s4);
  padding: var(--s2) var(--s3);
  border-radius: 10px;
}
.hours__row dt { font-weight: 600; }
.hours__row dd { font-variant-numeric: tabular-nums; }
.hours__row.is-today { background: var(--lawn); }
.hours__today {
  margin-left: var(--s2);
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--soil);
  color: var(--on-soil);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 2px;
}

.contact__details {
  display: grid;
  gap: var(--s4);
}
.contact__details dt {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.contact__details dd { overflow-wrap: anywhere; }

/* Form */
.contact__form {
  display: grid;
  gap: var(--s4);
  align-content: start;
  padding: var(--s6) var(--s5);
  border-radius: var(--radius);
  background: var(--rock-2);
}
.contact__form h3 { font-size: var(--fs-h3); }

.field { display: grid; gap: var(--s2); }
.field label { font-weight: 700; }
.field__req {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border: 2px solid var(--muted);
  border-radius: 10px;
  background: var(--rock);
  color: var(--soil);
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error {
  color: var(--error);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.contact__submit { justify-self: start; }
.contact__hint,
.contact__status {
  color: var(--muted);
  font-size: var(--fs-sm);
}
.contact__status:empty { display: none; }
.contact__status { color: var(--soil); font-weight: 600; }

@media (min-width: 640px) {
  .contact__form { padding: var(--s7) var(--s6); }
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--s9);
    align-items: start;
  }
}

/* HomeFooter: dark soil footer under a thin band of mowing stripes. */
.site-footer {
  --focus: var(--lawn);
  background: var(--soil);
  color: var(--on-soil);
}
.site-footer__stripes {
  height: 24px;
  background: repeating-linear-gradient(104deg, var(--lawn) 0 28px, var(--lawn-2) 28px 56px);
}

.site-footer__inner {
  display: grid;
  gap: var(--s7);
  padding-block: var(--s8) var(--s7);
}
.site-footer__top {
  display: grid;
  gap: var(--s6);
}
.site-footer__brand {
  display: grid;
  gap: var(--s3);
  max-width: 30rem;
}
.site-footer__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1;
}
.site-footer__brand p:not(.site-footer__name) { color: var(--on-soil-muted); }

.site-footer__contact {
  display: grid;
  gap: var(--s2);
  color: var(--on-soil-muted);
}
.site-footer a { color: var(--on-soil); }
.site-footer__contact a {
  display: inline-block;
  padding-block: var(--s1);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.site-footer__notice {
  padding-top: var(--s5);
  border-top: 1px solid rgb(245 242 234 / 0.18);
  color: var(--on-soil-muted);
  font-size: var(--fs-sm);
}

@media (min-width: 768px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}
