/* =====================================================================
   EZ RIDER LAWN SERVICE  —  Version B
   Brian Collins / COLLINS direction.
   Bold ownable color, confident manifesto type, brand-as-product.
   One typeface (Inter), two weights (400/500). Full-bleed color blocks.
   No shadows, no gradients, no chrome. The discipline is the design.
   Branding & Design by Cullari & Wardell.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ez-green:      #15803D;  /* primary signature */
  --ez-green-deep: #14532D;  /* type on cream, dark UI */
  --cream:         #F4EFE2;  /* primary light surface, type on green */
  --cream-strong:  #FBF8EF;  /* small body text on green (AA headroom) */
  --ink:           #0F1B14;  /* body copy, dark blocks */
  --sun:           #F5C518;  /* one joy moment per page, used once */
  --paper:         #FAF7EE;  /* secondary cream */

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1240px;
  --gut: clamp(1.25rem, 5vw, 4rem);
  --block-y: clamp(4.5rem, 11vw, 9rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem); /* 16 -> 17 */
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- Type primitives ---------- */
.h-hero {
  font-weight: 500;
  font-size: clamp(3.5rem, 1.8rem + 8vw, 6rem);   /* 56 -> 96 */
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.h-section {
  font-weight: 500;
  font-size: clamp(2.25rem, 1.4rem + 4vw, 3.5rem); /* 36 -> 56 */
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h-quote {
  font-weight: 500;
  font-size: clamp(1.75rem, 1.1rem + 3vw, 2.75rem); /* 28 -> 44 */
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.sub {
  font-weight: 400;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); /* 18 -> 22 */
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.eyebrow {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ordinal {
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.block { padding-block: var(--block-y); }

.block--green { background: var(--ez-green); color: var(--cream); }
.block--cream { background: var(--cream); color: var(--ez-green-deep); }
.block--ink   { background: var(--ink);   color: var(--cream); }

/* ---------- EZ mark ---------- */
.ez-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ez-green-deep);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  flex: 0 0 auto;
}
.lockup { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Buttons / pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border-radius: 999px;
  padding: 0.45em 0.95em;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  background: rgba(15,55,30,0.5);
  color: var(--cream-strong);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: 999px;
  padding: 0.95em 1.7em;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--cream { background: var(--cream); color: var(--ez-green-deep); }
.btn--cream:hover { background: var(--cream-strong); }
.btn--outline { background: transparent; color: var(--cream-strong); border-color: rgba(244,239,226,0.55); }
.btn--outline:hover { border-color: var(--cream); background: rgba(244,239,226,0.08); }

/* ---------- Focus (sun outline) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */
.c-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--ez-green);
}
.c-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.1rem;
}
.c-nav .lockup { color: var(--cream); font-size: 1.0625rem; }
.c-nav__links { display: flex; gap: clamp(1.25rem, 2.5vw, 2.25rem); align-items: center; }
.c-nav__links a { color: var(--cream); font-weight: 500; font-size: 0.875rem; opacity: .85; transition: opacity .15s; }
.c-nav__links a:hover { opacity: 1; }
.c-nav__toggle { display: none; }

/* ---------- Hero ---------- */
.c-hero { position: relative; overflow: hidden; background: var(--ez-green); color: var(--cream); }
.c-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Deep-green wash. Flat on mobile (headline spans full width there). On wider
   screens it eases toward the upper-right so the grass shows through on the right,
   while staying strong behind the left-aligned headline and the bottom strip
   (which has small text that needs the contrast). */
.c-hero__tint { position: absolute; inset: 0; z-index: 1; background: rgba(15,55,30,0.82); }
@media (min-width: 768px) {
  .c-hero__tint { background: linear-gradient(48deg, rgba(15,55,30,0.86) 0%, rgba(15,55,30,0.84) 46%, rgba(15,55,30,0.18) 100%); }
}
.c-hero__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem,4vw,3rem); }
.c-hero .pill { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.c-hero h1 { margin: 0 0 1.4rem; color: var(--cream); }
.c-hero .sub { color: var(--cream-strong); max-width: 480px; margin: 0 0 2.2rem; }
.c-hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* service strip */
.c-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid rgba(244,239,226,0.25);
}
.c-strip__item { padding-top: 1.1rem; padding-right: 1rem; }
.c-strip__num { color: var(--cream); opacity: .6; display: block; margin-bottom: 0.5rem; }
.c-strip__word { font-weight: 500; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); letter-spacing: -0.02em; color: var(--cream); }

/* ---------- Manifesto / editorial ---------- */
.c-manifesto .eyebrow { color: var(--ez-green); display: block; margin-bottom: 1.4rem; }
.c-manifesto h2 { max-width: 14ch; margin: 0 0 2rem; color: var(--ez-green-deep); }
.c-manifesto__body { max-width: 620px; }
.c-manifesto__body p { margin: 0 0 1.2rem; color: var(--ez-green-deep); }
.c-manifesto__body p:last-child { margin-bottom: 0; }

/* ---------- The Work ---------- */
.c-work__head { text-align: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.c-work__head .eyebrow { color: var(--cream); opacity: .75; display: block; margin-bottom: 1rem; }
.c-work__head h2 { color: var(--cream); }
.c-work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 6rem); }
.product__num { color: var(--cream); opacity: .6; display: block; margin-bottom: 0.9rem; }
.product__name { font-weight: 500; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.25rem); letter-spacing: -0.02em; color: var(--cream); margin: 0 0 0.8rem; }
.product__line { color: var(--cream); font-size: 1.125rem; line-height: 1.4; margin: 0 0 1.6rem; max-width: 36ch; }
.product__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(244,239,226,0.22); }
.product__list li { color: var(--cream-strong); padding: 0.7rem 0; border-bottom: 1px solid rgba(244,239,226,0.12); font-size: 1.0625rem; }

/* ---------- Why a lawn matters ---------- */
.c-why__inner { max-width: 720px; }
.c-why .eyebrow { color: var(--ez-green); display: block; margin-bottom: 1.4rem; }
.c-why h2 { color: var(--ez-green-deep); margin: 0 0 2rem; }
.c-why__body p { margin: 0 0 1.2rem; color: var(--ez-green-deep); }
.c-why__body p:last-child { margin-bottom: 0; }
/* the single sun moment */
.sun-underline {
  background-image: linear-gradient(var(--sun), var(--sun));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 3px;
  padding-bottom: 2px;
}

/* ---------- Pull quote ---------- */
.c-quote { text-align: center; }
.c-quote__big { color: var(--cream); max-width: 800px; margin: 0 auto; }
.c-quote__by { color: var(--cream); opacity: .8; font-size: 0.875rem; margin-top: 1.6rem; }
.c-quote__cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  text-align: left;
}
.qcard { background: rgba(244,239,226,0.1); border-radius: 14px; padding: 1.4rem; }
.qcard p { color: var(--cream); margin: 0 0 0.9rem; font-size: 1rem; line-height: 1.4; }
.qcard span { color: var(--cream); opacity: .7; font-size: 0.8125rem; }

/* ---------- Service area ---------- */
.c-area { text-align: center; }
.c-area .eyebrow { color: var(--cream); opacity: .7; display: block; margin-bottom: 2rem; }
.c-area__towns { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; }
.c-area__towns li {
  font-weight: 500;
  font-size: clamp(2.25rem, 1.4rem + 4vw, 3.5rem);
  letter-spacing: -0.025em;
  color: var(--cream);
  padding: 0.55em 0;
  border-bottom: 1px solid rgba(244,239,226,0.25);
}
.c-area__towns li:last-child { border-bottom: 0; }
.c-area__foot { color: var(--cream); margin-top: 1.6rem; }

/* ---------- The Call ---------- */
.c-call .eyebrow { color: var(--cream); opacity: .75; display: block; margin-bottom: 1.2rem; }
.c-call h2 { color: var(--cream); margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.c-call__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.c-call__label { color: var(--cream); font-size: 1.375rem; margin: 0 0 0.6rem; }
.c-call__phone { display: inline-block; font-weight: 500; font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem); letter-spacing: -0.02em; color: var(--cream); line-height: 1; }
.c-call__phone:hover { color: var(--cream-strong); }
.c-call__email { color: var(--cream); margin-top: 1.2rem; }
.c-call__email a { border-bottom: 1px solid rgba(244,239,226,0.4); }

.c-form { display: grid; gap: 1rem; }
.c-field { display: grid; gap: 0.4rem; }
.c-field label { color: var(--cream); font-weight: 500; font-size: 0.8125rem; }
.c-field input, .c-field textarea {
  font-family: var(--font); font-size: 1rem;
  background: var(--cream); color: var(--ez-green-deep);
  border: 0; border-radius: 12px; padding: 0.85em 1em;
}
.c-field textarea { min-height: 110px; resize: vertical; }
.c-field input::placeholder, .c-field textarea::placeholder { color: rgba(20,83,45,0.5); }
.c-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.c-form__status { color: var(--cream); font-weight: 500; font-size: 0.9rem; min-height: 1.2em; }
.c-form .btn--cream { justify-self: start; }

/* ---------- Footer ---------- */
.c-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); }
.c-footer .lockup { color: var(--cream); font-size: 1.0625rem; margin-bottom: 1rem; }
.c-footer p { color: var(--cream); opacity: .8; margin: 0.25rem 0; font-size: 0.9375rem; }
.c-footer h4 { color: var(--cream); opacity: .6; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 1rem; }
.c-footer ul { list-style: none; margin: 0; padding: 0; }
.c-footer ul li { margin-bottom: 0.5rem; }
.c-footer ul a { color: var(--cream); opacity: .8; font-size: 0.9375rem; }
.c-footer ul a:hover { opacity: 1; }
.c-footer__credit { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(244,239,226,0.2); }
.c-footer__credit p { font-size: 0.75rem; opacity: .5; }

/* ---------- Photo slot placeholders (swap with macro photography) ---------- */
.photo-slot {
  background: var(--ez-green-deep);
  border-radius: 16px;
  min-height: 320px;
  display: flex; align-items: flex-end;
  padding: 1.25rem;
  color: var(--cream);
}
.photo-slot span { font-size: 0.8125rem; opacity: .6; font-weight: 500; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .c-call__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .c-nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.1rem; background: var(--ez-green); padding: 1.25rem var(--gut) 1.75rem; }
  .c-nav__links.open { display: flex; }
  .c-nav__toggle { display: inline-flex; background: rgba(244,239,226,0.15); color: var(--cream); border: 0; border-radius: 999px; padding: 0.5em 1em; font-family: var(--font); font-weight: 500; font-size: 0.8125rem; cursor: pointer; }
  .c-work__grid { grid-template-columns: 1fr; }
  .c-quote__cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .c-strip { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .c-quote__cards { grid-template-columns: 1fr; }
  .c-form__row { grid-template-columns: 1fr; }
  .c-footer__grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Accessibility, readability & FAQ pass (WCAG 2.1 AA + Nielsen)
   ===================================================================== */

/* Skip link (WCAG 2.4.1 bypass blocks) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ez-green-deep); color: var(--cream-strong);
  padding: 0.7em 1.2em; font-weight: 500; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Screen-reader-only utility (keeps the heading outline complete) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Contrast fixes: cream #F4EFE2 on --ez-green is only 4.36:1, below the
   4.5:1 AA threshold for normal text. Use the brighter off-white (#FBF8EF,
   4.71:1) for all normal/small text on green, and drop opacity-dimming that
   pushed text under AA. Large display headings stay --cream (>=3:1 = AA large). */
.block--green { color: var(--cream-strong); }
.c-hero { color: var(--cream-strong); }
.c-nav .lockup, .c-nav__links a { color: var(--cream-strong); opacity: 1; }
.c-work__head .eyebrow, .c-area .eyebrow, .c-call .eyebrow { color: var(--cream-strong); opacity: 1; }
.c-strip__num, .product__num, .c-quote__by { color: var(--cream-strong); opacity: 1; }
.product__line, .c-call__label, .c-field label, .c-form__status,
.c-call__email, .c-call__email a { color: var(--cream-strong); }
.qcard { background: rgba(15,55,30,0.5); }
.qcard p, .qcard span { color: var(--cream-strong); opacity: 1; }
/* Eyebrows on cream surfaces: --ez-green is 4.33:1 (fails); deep green is 7.6:1. */
.c-manifesto .eyebrow, .c-why .eyebrow, .c-faq .eyebrow { color: var(--ez-green-deep); }

/* Stronger, always-visible focus ring (WCAG 2.4.7 / 1.4.11) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- FAQ section --- */
.c-faq__inner { max-width: 820px; }
.c-faq .eyebrow { display: block; margin-bottom: 1.4rem; }
.c-faq h2 { color: var(--ez-green-deep); margin: 0 0 clamp(2rem, 4vw, 3rem); }
.c-faq__list { margin: 0; }
.c-faq__item { padding: clamp(1.2rem, 2.5vw, 1.6rem) 0; border-top: 1px solid rgba(20,83,45,0.18); }
.c-faq__item:last-child { border-bottom: 1px solid rgba(20,83,45,0.18); }
.c-faq__item dt {
  font-weight: 500; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.3rem);
  letter-spacing: -0.01em; color: var(--ez-green-deep); margin-bottom: 0.5rem;
}
.c-faq__item dd { margin: 0; color: var(--ez-green-deep); max-width: 64ch; line-height: 1.6; }

/* --- Touch targets on mobile nav (WCAG 2.5.5 / Nielsen) --- */
@media (max-width: 760px) {
  .c-nav__links a { display: block; padding: 0.55rem 0; font-size: 1.0625rem; }
}

/* =====================================================================
   Analysis / pitch page (analysis.html) — Collins system
   ===================================================================== */
.a-prepared { color: var(--cream-strong); font-size: 0.8125rem; font-weight: 500; }
@media (max-width: 560px) { .a-prepared { display: none; } }

.a-findings { display: grid; gap: 0; }
.a-find {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 2.5vw, 2.25rem);
  align-items: start; padding: clamp(1.4rem, 3vw, 2rem) 0;
  border-top: 1px solid rgba(20,83,45,0.18);
}
.a-find:last-child { border-bottom: 1px solid rgba(20,83,45,0.18); }
.a-find__num { font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--ez-green-deep); padding-top: 0.5rem; }
.a-find__body h3 { font-weight: 500; font-size: clamp(1.3rem, 1rem + 1vw, 1.65rem); letter-spacing: -0.02em; color: var(--ez-green-deep); margin: 0 0 0.55rem; }
.a-find__body p { margin: 0; color: var(--ez-green-deep); max-width: 62ch; line-height: 1.55; }
/* the one positive finding sits on a soft green card (text stays deep green for AA) */
.a-find--good {
  background: rgba(21,128,61,0.07);
  border-color: transparent;
  border-radius: 16px;
  padding-left: clamp(1rem, 2.5vw, 1.6rem);
  padding-right: clamp(1rem, 2.5vw, 1.6rem);
}

.a-result { text-align: center; }
.a-result .eyebrow { color: var(--cream-strong); opacity: 1; display: block; margin-bottom: 1.4rem; }
.a-result h2 { color: var(--cream-strong); max-width: 20ch; margin: 0 auto clamp(1.25rem, 3vw, 1.75rem); }
.a-result .sub { color: var(--cream-strong); }
.a-result__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: clamp(1.75rem, 4vw, 2.5rem); }

/* =====================================================================
   Photography: product images (The Work) + full-bleed band
   ===================================================================== */
.product__media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: clamp(1.1rem, 2.2vw, 1.6rem);
}
/* full-bleed photo breather between sections */
.c-band { display: block; line-height: 0; }
.c-band img { width: 100%; height: clamp(280px, 46vh, 520px); object-fit: cover; display: block; }

/* Services detail page — alternating image rows */
.svc-list { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.svc:nth-child(even) .svc__media { order: 2; }
.svc__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.svc__num { font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--ez-green-deep); display: block; margin-bottom: 0.7rem; }
.svc__name { font-weight: 500; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.25rem); letter-spacing: -0.02em; color: var(--ez-green-deep); margin: 0 0 0.8rem; }
.svc__line { color: var(--ez-green-deep); font-size: 1.125rem; line-height: 1.45; margin: 0 0 1.4rem; max-width: 42ch; }
.svc__listing { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(20,83,45,0.18); }
.svc__listing li { color: var(--ez-green-deep); padding: 0.65rem 0; border-bottom: 1px solid rgba(20,83,45,0.12); }
@media (max-width: 760px) {
  .svc { grid-template-columns: 1fr; }
  .svc:nth-child(even) .svc__media { order: 0; }
}
