/* ============ Henderson Lawn Maintenance — styles ============ */
:root {
  --green-950: #0E2A1B;
  --green-900: #123722;
  --green-800: #17452B;
  --green-700: #1E5631;
  --green-100: #DCE8DD;
  --gold: #D9A441;
  --gold-deep: #C4912F;
  --paper: #F7F6F1;
  --card: #FFFFFF;
  --ink: #17201A;
  --muted: #5C6A5F;
  --line: #E4E3DA;
  --radius: 16px;
  --shadow-lg: 0 30px 60px -18px rgba(14, 42, 27, 0.35);
  --shadow-sm: 0 10px 28px -12px rgba(14, 42, 27, 0.22);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* height:auto is mandatory — width/height attributes are presentational hints that
   otherwise force the intrinsic height and vertically stretch the image */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.01em; }
h3 { font-size: 21px; }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green-700); margin-bottom: 14px;
}
.eyebrow.light { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 28px; border-radius: 10px;
  font-weight: 600; font-size: 15.5px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-gold { background: var(--gold); color: var(--green-950); box-shadow: 0 12px 24px -10px rgba(217, 164, 65, 0.55); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-800); }
.btn-ghost-dark { border-color: var(--green-700); color: var(--green-700); }
.btn-ghost-dark:hover { background: var(--green-700); color: #fff; }
.btn-wide { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(18px, 4vw, 44px);
  color: #fff; transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.nav.scrolled {
  background: rgba(247, 246, 241, 0.92); color: var(--ink);
  backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(14,42,27,0.35);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--green-700); color: #F7F6F1;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; font-weight: 700;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.18);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.09em; font-size: 16.5px; }
.brand-text em { font-style: normal; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.82; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; opacity: 0.92; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav-links .nav-cta {
  border: 1.5px solid var(--gold); color: var(--gold); padding: 8px 16px; border-radius: 9px; font-weight: 600;
}
.nav.scrolled .nav-cta { background: var(--gold); color: var(--green-950); }
.nav-phone { font-weight: 700; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; }
.nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; color: #fff; }
.hero-bg {
  position: absolute; inset: -12% 0; background: url("img/hero.jpg") center 38% / cover no-repeat;
  will-change: transform; transform: scale(1.08);
}
.showcase-sticky, .hero { contain: paint; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(10, 30, 19, 0.92) 0%, rgba(10, 30, 19, 0.72) 42%, rgba(10, 30, 19, 0.3) 78%),
              linear-gradient(0deg, rgba(10, 30, 19, 0.55) 0%, rgba(10, 30, 19, 0) 34%);
}
.hero-inner { position: relative; z-index: 2; padding: 120px clamp(20px, 6vw, 84px) 150px; max-width: 1000px; }
.hero .eyebrow { color: var(--gold); text-shadow: 0 1px 12px rgba(10, 30, 19, 0.6); }
.hero h1 { font-size: clamp(40px, 6.6vw, 76px); font-weight: 700; letter-spacing: -0.015em; margin-bottom: 20px; }
.hero .accent { color: var(--gold); font-style: italic; }
.hero-sub { font-size: clamp(16px, 1.9vw, 19px); max-width: 54ch; opacity: 0.94; margin-bottom: 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 30px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; backdrop-filter: blur(6px);
}
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: var(--gold); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.grass { position: absolute; left: 0; right: 0; bottom: -6px; z-index: 3; width: 100%; }
.grass-back { height: 96px; color: #1A4A2C; opacity: 0.85; }
.grass-front { height: 74px; color: #123722; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px) perspective(900px) rotateX(4deg); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- Showcase (pinned 3D) ---------- */
.showcase { position: relative; height: 230vh; background: var(--green-950); }
.showcase-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; align-items: center; color: #fff;
}
.showcase-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 22vw, 340px);
  letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.04); user-select: none; white-space: nowrap;
}
.showcase-grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(300px, 430px) 1fr;
  gap: clamp(24px, 5vw, 80px); align-items: center; width: 100%;
  padding: 0 clamp(20px, 5vw, 70px); max-width: 1380px; margin: 0 auto;
}
.chapters .eyebrow { color: var(--gold); }
.chapters ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.chapter { opacity: 0.32; transition: opacity 0.35s ease; }
.chapter.active { opacity: 1; }
.chapter-num { font-family: var(--font-display); color: var(--gold); font-size: 15px; letter-spacing: 0.12em; }
.chapter h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 4px 0 8px; }
.chapter p { font-size: 15px; opacity: 0.85; max-width: 40ch; }
.stage-dots { display: none; }
.chapter-progress { margin-top: 30px; height: 3px; background: rgba(255,255,255,0.16); border-radius: 3px; overflow: hidden; }
.chapter-progress span { display: block; height: 100%; width: 0%; background: var(--gold); border-radius: 3px; }
.stage { position: relative; height: min(66vh, 620px); perspective: 1300px; transform-style: preserve-3d; }
.panel {
  position: absolute; inset: 0; margin: auto; width: 100%; height: 100%;
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg);
  will-change: transform, opacity; opacity: 0;
  border: 1px solid rgba(255,255,255,0.14);
}
.panel img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections shared ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; padding: 0 20px; }
.section-sub { color: var(--muted); margin-top: 12px; }

/* ---------- Services ---------- */
.services { padding: 110px clamp(20px, 5vw, 70px) 90px; max-width: 1280px; margin: 0 auto; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-sm); will-change: transform;
  transition: box-shadow 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card-link { font-weight: 600; color: var(--green-700); text-decoration: none; font-size: 14.5px; }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card.featured { border: 2px solid var(--gold); }
.card-flag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--gold); color: var(--green-950); font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(0,0,0,0.4);
}

/* ---------- Trust band ---------- */
.why { background: var(--green-900); color: #fff; padding: 74px clamp(20px, 5vw, 70px); }
.why-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px clamp(40px, 7vw, 110px);
  max-width: 1100px; margin: 0 auto 38px;
}
.stat { text-align: center; }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 4.6vw, 56px); line-height: 1; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat b span { font: inherit; color: inherit; }
.stat > span:last-child { font-size: 13.5px; opacity: 0.85; letter-spacing: 0.04em; }
.why-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.why-chips li {
  border: 1px solid rgba(255,255,255,0.28); border-radius: 999px;
  padding: 8px 18px; font-size: 13.5px; opacity: 0.95;
}

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: minmax(300px, 520px) 1fr;
  gap: clamp(30px, 6vw, 80px); align-items: center;
  padding: 110px clamp(20px, 5vw, 70px); max-width: 1280px; margin: 0 auto;
}
.about-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
}
.about-frame img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy blockquote {
  border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; margin: 0 0 18px;
  font-family: var(--font-display); font-size: 18.5px; font-style: italic; color: var(--green-800);
}
.about-copy cite { display: block; font-style: normal; font-family: var(--font-body); font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.about-copy > p { color: var(--muted); margin-bottom: 18px; }
.about-copy > p.eyebrow { color: var(--green-700); }
.about-points { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 9px; }
.about-points li { padding-left: 28px; position: relative; font-size: 15px; }
.about-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}

/* ---------- Reviews ---------- */
.reviews { background: #EFEEE6; padding: 110px clamp(20px, 5vw, 70px); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1280px; margin: 0 auto 36px; }
.review {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
}
.review-stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; }
.review blockquote { font-size: 15px; color: var(--ink); flex: 1; }
.review figcaption { font-weight: 700; font-size: 13.5px; }
.review figcaption span { font-weight: 500; color: var(--muted); }
.review-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Quote ---------- */
.quote {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 1280px;
  margin: 0 auto; padding: 110px clamp(20px, 5vw, 70px);
  gap: 0; border-radius: 22px; overflow: hidden;
}
.quote-panel {
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
  color: #fff; padding: clamp(30px, 4vw, 54px); border-radius: 22px 0 0 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.quote-panel h2 { color: #fff; }
.quote-sub { opacity: 0.88; font-size: 15.5px; max-width: 44ch; }
.contact-list { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.68; }
.contact-list a, .contact-list b { font-size: 18px; font-weight: 700; color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--gold); }
.quote-form {
  background: var(--card); padding: clamp(30px, 4vw, 54px);
  border: 1px solid var(--line); border-left: 0; border-radius: 0 22px 22px 0;
  display: flex; flex-direction: column; gap: 16px;
}
.quote-form h3 { font-size: 24px; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form input, .quote-form select, .quote-form textarea {
  font: 15px var(--font-body); padding: 12px 14px; border-radius: 9px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(30, 86, 49, 0.15);
}
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: #fff; padding: 60px clamp(20px, 5vw, 70px) 90px; }
.foot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px; max-width: 1100px; margin: 0 auto 40px;
}
.foot-brand strong { font-size: 19px; }
.foot-tag { opacity: 0.75; font-size: 14px; margin-top: 10px; }
.foot-head { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 10px; }
.footer a { color: #fff; text-decoration: none; line-height: 2; }
.footer a:hover { color: var(--gold); }
.footer p { opacity: 0.92; }
.foot-legal { text-align: center; font-size: 12.5px; opacity: 0.55; }

/* ---------- Persistent CTAs ---------- */
.side-cta {
  position: fixed; right: 0; top: 50%; z-index: 55;
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  background: var(--gold); color: var(--green-950); font-weight: 700; font-size: 14px;
  padding: 18px 11px; border-radius: 0 10px 10px 0; text-decoration: none; letter-spacing: 0.06em;
  box-shadow: -6px 0 18px -8px rgba(0,0,0,0.35);
  transition: padding 0.18s ease, background 0.18s ease;
}
.side-cta:hover { background: var(--gold-deep); padding-right: 16px; }
.mobile-cta { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  /* PHONES: no pinning, no scroll-linked transforms. Scroll-driven animation fights
     the browser's momentum scrolling and drops frames. Instead the three photos become
     a native swipe carousel (scroll-snap) — handled entirely by the compositor. */
  .showcase { height: auto; }
  .showcase-sticky { position: static; height: auto; overflow: visible; padding: 74px 0; }
  .showcase-watermark { display: none; }
  .showcase-grid { grid-template-columns: 1fr; gap: 22px; padding: 0; }
  .chapters { padding: 0 clamp(20px, 5vw, 70px); }
  .chapters ol { gap: 20px; }
  .chapter { opacity: 1; }
  .chapter p { display: block; max-width: none; }
  .chapter h3 { font-size: 21px; }
  .chapter-progress { display: none; }

  .stage {
    height: auto; perspective: none; transform-style: flat;
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 0 clamp(20px, 5vw, 70px) 8px; scrollbar-width: none;
  }
  .stage::-webkit-scrollbar { display: none; }
  .panel {
    position: static !important; flex: 0 0 84%; height: auto !important;
    opacity: 1 !important; transform: none !important; will-change: auto !important;
    scroll-snap-align: center; border-radius: 14px; aspect-ratio: 4 / 3;
  }
  .stage-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
  .stage-dots .dot {
    width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.28);
    transition: background 0.3s ease, width 0.3s ease; border-radius: 999px;
  }
  .stage-dots .dot.on { background: var(--gold); width: 20px; }
  .about { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  .quote-panel { border-radius: 22px 22px 0 0; }
  .quote-form { border-left: 1px solid var(--line); border-top: 0; border-radius: 0 0 22px 22px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-phone { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .nav-burger span { width: 24px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: -1;
    background: var(--green-950); color: #fff; justify-content: center; align-items: center; gap: 34px; font-size: 22px;
  }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .side-cta { display: none; }
  /* Solid, not translucent: backdrop-filter on a fixed bar re-rasterizes the page
     behind it every scroll frame, which visibly stutters on phones. */
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    display: grid; grid-template-columns: 1fr 1fr 1.4fr;
    background: #0E2A1B;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .nav.scrolled { background: var(--paper); backdrop-filter: none; }
  .hero-badge { backdrop-filter: none; background: rgba(10, 30, 19, 0.55); }
  /* Panels only need compositor hints while the showcase is on screen */
  .panel { will-change: auto; }
  .showcase .panel { will-change: transform, opacity; }
  .mobile-cta a {
    text-align: center; padding: 13px 6px; border-radius: 9px; text-decoration: none;
    color: #fff; font-weight: 700; font-size: 14.5px; border: 1.5px solid rgba(255,255,255,0.35);
  }
  .mobile-cta a.gold { background: var(--gold); color: var(--green-950); border-color: var(--gold); }
  body { padding-bottom: 66px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-bg, .grass { transform: none !important; }
  .showcase { height: auto; }
  .showcase-sticky { position: static; height: auto; padding: 80px 0; }
  .stage { display: flex; flex-direction: column; gap: 18px; height: auto; perspective: none; }
  .panel { position: static; opacity: 1 !important; transform: none !important; aspect-ratio: 16/10; }
  .chapter { opacity: 1; }
  .card, .card-img img { transition: none; }
}
