/* Verdant Lawn Co
   ---------------------------------------------------------------------------
   Takes the card-on-a-warm-ground structure from the Lawns One reference and
   departs from it on colour and corner: the greens here run cool and blue
   rather than olive, the second colour is a warm clay rather than a magenta,
   and the corner radius is roughly half. Type is measured off that build —
   67/51/38/21 Geist at -0.03em, 28.4 Caveat, 16/24 Inter, container 1368px
   with a 36px gutter.

   Colour tokens are declared per surface rather than per component, and each
   accent is chosen against the surface it sits on before it is used.
   --------------------------------------------------------------------------- */

/* ---- fonts -------------------------------------------------------------- */

/* All three faces here are openly licensed and are the ones the reference
   uses, so there is nothing to substitute. Self-hosted, so the page makes no
   third-party request and the CSP stays at default-src 'self'. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/geist.woff2') format('woff2');
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/caveat.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist fallback';
  src: local('Helvetica Neue'), local('Arial');
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 99%;
}
@font-face {
  font-family: 'Inter fallback';
  src: local('Helvetica Neue'), local('Arial');
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 100%;
}

/* ---- tokens ------------------------------------------------------------- */

:root {
  /* Greens run cool and blue here rather than olive, and the second colour is
     a warm clay instead of a magenta. Ratios below are measured, not assumed. */
  --forest-950: #0f1f1c;   /* the dark card */
  --forest-700: #1f4d3f;   /* headings and figures on light — 8.5:1 on cream */
  --forest-500: #2c6b57;
  --cream: #f4f1e8;
  --ecru: #fdfcf6;
  --ecru-100: #e8e4d6;
  --pale: #dce9df;
  --ink: #1b1c1a;

  /* The display clay is 4.3:1 on cream — fine for the 28px handwriting labels
     it is used on, and short of AA for anything smaller. So there are two: the
     display value and a darker one for body-sized text. */
  --clay: #b8541f;
  --clay-deep: #8f3f16;    /* 6.4:1 on cream */
  --clay-soft: #f6d9c4;    /* 12.7:1 on forest-950 */

  --accent: var(--clay-deep);
  --muted: #4e5a53;        /* 6.4:1 on cream */
  --rule: #d8d3c2;

  --display: 'Geist', 'Geist fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --body: 'Inter', 'Inter fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --wrap: 1368px;
  --gutter: 20px;

  --t-h1: clamp(2.4rem, 1.4rem + 3.4vw, 4.19rem);
  --t-h2: clamp(1.9rem, 1.4rem + 1.9vw, 3.16rem);
  --t-h2-sm: clamp(1.6rem, 1.3rem + 1.2vw, 2.375rem);
  --t-h3: clamp(1.15rem, 1.08rem + 0.3vw, 1.333rem);
  --t-hand: clamp(1.4rem, 1.24rem + 0.55vw, 1.777rem);
  --t-body: 1rem;
  --t-sm: 0.875rem;
  --t-xs: 0.75rem;

  /* Tighter than the 12/8 the reference uses. The card system is the same
     idea; the corner is the cheapest way to stop it being the same object. */
  --radius: 5px;
  --radius-sm: 3px;
  --pad: clamp(48px, 5vw, 88px);
}

/* Dark surfaces redeclare the contextual tokens in one place — the rule
   carried forward from the rest of this series, and the thing that stops a
   light-surface grey turning up on a forest-green card. */
.on-dark,
.card--dark,
.tile {
  --accent: var(--clay-soft);
  --muted: #c3ccbc;        /* 9.6:1 on forest-950 */
  --rule: rgba(241, 242, 226, 0.2);
}
.on-dark { background: var(--forest-950); color: var(--cream); }

/* ---- reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; }
p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--forest-500); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--pale); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--forest-950); color: var(--cream);
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 16px; }

/* ---- layout ------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 1000px) { .wrap { padding-inline: 36px; } }

.section { padding-block: var(--pad); }
.section--tight { padding-block: clamp(32px, 3.5vw, 56px); }
.section--ecru { background: var(--ecru); }
.measure { max-width: 60ch; }

/* Everything of substance sits in a rounded card. */
.card {
  border-radius: var(--radius);
  overflow: hidden;
}
.card--dark { background: var(--forest-950); color: var(--cream); }
.card--pale { background: var(--pale); }
.card--white { background: #fff; }
.card__pad { padding: clamp(26px, 3vw, 52px); }

/* ---- type --------------------------------------------------------------- */

.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h2--sm { font-size: var(--t-h2-sm); }
.h3 { font-size: var(--t-h3); letter-spacing: -0.02em; }
.lead { font-size: 1.0625rem; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }

/* The handwriting label — the thing that stops an otherwise plain green site
   feeling corporate. Never used below 24px, because the clay it carries is
   only AA-compliant at display size. */
.hand {
  display: block;
  margin: 0 0 10px;
  font-family: var(--hand);
  font-weight: 500;
  font-size: var(--t-hand);
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--clay);
}
.on-dark .hand, .card--dark .hand { color: var(--clay-soft); }

/* :not(.btn) matters — `.prose a` is one specificity point above `.btn`, so
   without it a button placed inside a prose block silently takes the link
   colour and loses its contrast against its own fill. */
.prose a:not(.btn), .link { color: var(--forest-500); text-decoration: underline; text-underline-offset: 3px; }
.on-dark .prose a:not(.btn), .card--dark .prose a:not(.btn) { color: var(--pale); }
.prose a:not(.btn):hover, .link:hover { text-decoration-thickness: 2px; }

/* ---- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  background: var(--forest-950); color: var(--pale);
  border: 2px solid var(--forest-950); border-radius: 999px;
  font-weight: 700; font-size: var(--t-body);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.btn:hover { background: transparent; color: var(--forest-950); }
.card--dark .btn, .on-dark .btn { background: var(--pale); color: var(--forest-950); border-color: var(--pale); }
.card--dark .btn:hover, .on-dark .btn:hover { background: transparent; color: var(--pale); }
.btn--ghost { background: transparent; color: var(--forest-950); }
.btn--ghost:hover { background: var(--forest-950); color: var(--pale); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* The circular arrow the reference puts in the corner of every card. */
.circ {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 auto;
  border: 1.5px solid currentColor; border-radius: 50%;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.circ svg { width: 14px; height: 14px; }

/* ---- utility bar --------------------------------------------------------
   The most transferable idea on the reference: rating, review count and phone
   above the nav, where a customer looking for reassurance finds it first. */
.utility {
  background: var(--ecru-100);
  font-size: var(--t-sm);
}
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.utility ul { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.utility li { display: flex; align-items: center; gap: 7px; }
.utility a { text-decoration: none; font-weight: 600; }
.utility a:hover { text-decoration: underline; text-underline-offset: 3px; }
.stars { color: #b8860b; letter-spacing: 0.06em; }
@media (max-width: 760px) { .utility li.optional { display: none; } }

/* ---- header ------------------------------------------------------------- */

.site-header { background: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--forest-950); }
.brand em { font-style: italic; font-family: var(--hand); font-weight: 600; font-size: 1.7rem; color: var(--forest-500); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: var(--t-body); font-weight: 600; text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current='page']:not(.btn) { border-bottom-color: currentColor; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: none;
  border: 1.5px solid var(--forest-950); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle > span { display: grid; gap: 4px; width: 20px; }
.nav-toggle > span > span { height: 2px; background: currentColor; }

.menu { position: fixed; inset: 0; z-index: 60; padding: 18px var(--gutter) 44px; overflow-y: auto; overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu__head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-bottom: 28px; }
.menu__close { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: none; border: 1.5px solid currentColor; border-radius: var(--radius-sm); cursor: pointer; }
.menu__nav a {
  display: block; padding: 15px 0;
  font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.1rem);
  font-weight: 500; letter-spacing: -0.03em; text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.menu__nav a:hover { color: var(--pale); }
body.menu-open { overflow: hidden; }

/* ---- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 620px;
  padding: clamp(56px, 6vw, 96px) clamp(20px, 4vw, 72px);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  color: var(--cream);
  isolation: isolate;
}
.hero--short { min-height: 400px; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(19, 36, 15, 0.5) 0%, rgba(19, 36, 15, 0.78) 100%);
}
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .lead { max-width: 58ch; margin: 22px auto 0; }
.hero .btn-row { justify-content: center; margin-top: 30px; }

/* ---- feature grid ------------------------------------------------------- */

.two-up { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.two-up img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .two-up { grid-template-columns: 1fr; } .two-up img { aspect-ratio: 4 / 3; } }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; margin-top: 30px; }
.feature h3 { font-size: 1rem; font-family: var(--body); font-weight: 700; letter-spacing: 0; margin-bottom: 5px; }
.feature p { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.feature svg { width: 26px; height: 26px; margin-bottom: 10px; }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---- stats -------------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats > div { padding: clamp(22px, 2.4vw, 34px); text-align: center; }
.stats > div + div { border-left: 1px solid var(--rule); }
.stats dt { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 1.3rem + 2vw, 3.16rem); letter-spacing: -0.03em; line-height: 1.15; color: var(--forest-700);  }
.stats .stars { display: block; font-size: 1rem; color: #b8860b; letter-spacing: 0.1em; margin-top: 4px; }
.stats dd { margin: 0; font-family: var(--hand); font-size: var(--t-hand); color: var(--clay-deep); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(odd) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } .stats > div + div { border-left: 0; border-top: 1px solid var(--rule); } }

/* ---- rails -------------------------------------------------------------- */

.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--forest-950); border-radius: 50%; cursor: pointer;
}
.rail-btn:hover:not(:disabled) { background: var(--forest-950); color: var(--pale); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }
.rail-btn svg { width: 14px; height: 14px; }

.rail {
  display: grid; grid-auto-flow: column;
  /* A fixed track, not minmax(0, …) — with a zero minimum the tracks share the
     container instead of overflowing it and the rail stops being a rail. */
  grid-auto-columns: min(440px, 82%);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
/* Snapping fights a pointer drag, so it stands down until the drag ends and
   then settles the rail on the nearest card. */
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.rail.is-dragging * { pointer-events: none; }
.rail > * { scroll-snap-align: start; }

.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 420px; padding: 24px; border-radius: var(--radius); overflow: hidden;
  color: var(--cream); text-decoration: none; isolation: isolate;
}
.tile__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tile::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(19, 36, 15, 0.92) 0%, rgba(19, 36, 15, 0.25) 62%);
}
.tile .hand { color: var(--cream); }
.tile p { font-size: var(--t-sm); margin: 0; }
.tile__circ { position: absolute; top: 20px; right: 20px; }
.tile:hover .circ { background: var(--pale); border-color: var(--pale); color: var(--forest-950); }

/* ---- why-us list -------------------------------------------------------- */

.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 28px; }
.why li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.95rem; }
.why svg { width: 24px; height: 24px; flex: 0 0 auto; margin-top: 1px; }
@media (max-width: 620px) { .why { grid-template-columns: 1fr; } }

/* ---- team --------------------------------------------------------------- */

.team-split { display: grid; grid-template-columns: 240px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.team-split img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
@media (max-width: 1000px) { .team-split { grid-template-columns: 180px minmax(0, 1fr); } .team-split > :last-child { grid-column: 1 / -1; } }
@media (max-width: 620px) { .team-split { grid-template-columns: 1fr; } .team-split img { max-width: 200px; } }

/* ---- articles ----------------------------------------------------------- */

.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.articles img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.articles h3 { margin: 16px 0 8px; }
.articles a { text-decoration: none; }
.articles a:hover h3 { color: var(--forest-500); }
.articles p { font-size: var(--t-sm); color: var(--muted); margin: 0; }
@media (max-width: 900px) { .articles { grid-template-columns: 1fr; } }

/* ---- generic split ------------------------------------------------------ */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 3.5vw, 60px); align-items: start; }
.split + .split { margin-top: clamp(32px, 3.5vw, 52px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  width: 100%; padding: 18px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--display); font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.02em;
}
.faq-sign { flex: 0 0 auto; margin-top: 3px; transition: transform 0.2s ease; }
.faq-q[aria-expanded='true'] .faq-sign { transform: rotate(45deg); }
.faq-a { padding-bottom: 18px; max-width: 68ch; color: var(--muted); }
.faq-a[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .faq-sign { transition: none; } }

/* ---- forms -------------------------------------------------------------- */

.form { display: grid; gap: 18px; max-width: 600px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%; min-height: 48px; padding: 12px 14px;
  background: #fff; border: 1px solid #767b72; border-radius: var(--radius-sm);
}
.field textarea { min-height: 140px; resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: #9c1f1f; }
.field .error { margin: 0; font-size: var(--t-sm); color: #8a1a1a; }
.card--dark .field .error, .on-dark .field .error { color: #ffb3b3; }
.field:not(.invalid) .error { display: none; }
.field--hp { position: absolute; left: -9999px; }
.form-note { font-size: var(--t-sm); color: var(--muted); max-width: 56ch; }
.card--dark .form-note, .on-dark .form-note { color: var(--muted); }

/* ---- footer ------------------------------------------------------------- */

.site-footer { background: var(--ecru); padding-top: clamp(44px, 5vw, 72px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 30px 28px; padding-bottom: 40px; }
.footer-grid h2 { font-family: var(--display); font-size: var(--t-body); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.footer-grid li { padding: 3px 0; font-size: 0.95rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px; border-top: 1px solid var(--rule); }
.footer-legal { padding-block: 20px; border-top: 1px solid var(--rule); font-size: var(--t-sm); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }
/* The oversized wordmark that closes the reference — a watermark, deliberately
   at whisper contrast. WCAG exempts text that is pure decoration, but a
   contrast checker cannot know that, so the word is drawn from CSS content
   rather than sitting in the DOM. That is also the honest expression of what it
   is: a graphic, not something anybody is meant to read. */
.footer-mark::before { content: 'Verdant'; }
.footer-mark {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3.5rem, 13vw, 11rem); line-height: 0.85;
  letter-spacing: -0.05em; color: var(--ecru-100);
  margin-top: 10px; user-select: none;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- reveal ------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rail { scroll-behavior: auto; }
  * { scroll-behavior: auto !important; }
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { min-height: 68px; }
}
