/* =================================================================
   Hedgerow — Garden Design & Landscaping Demo
   Inspired-by Greenspire. Standalone (no Tailwind, no shared deps).
   ================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces (cream paper warm) */
  --canvas: #F4F1E8;        /* warm cream */
  --surface: #ECE7D8;       /* deeper cream */
  --surface-2: #E2DCCC;     /* third cream */
  --paper: #FBF9F3;         /* near-white warm */

  /* Ink (deep forest) */
  --ink: #1F3A2E;           /* primary text & accents */
  --ink-2: #2D4A3B;
  --ink-muted: #4A5D4E;
  --ink-dim: #6F7E72;
  --line: rgba(31, 58, 46, 0.12);
  --line-soft: rgba(31, 58, 46, 0.06);
  --line-strong: rgba(31, 58, 46, 0.32);

  /* Brand — spring lime */
  --lime: #C5ED62;          /* bright spring */
  --lime-2: #D8F389;
  --lime-3: #ACD747;

  /* Inverse (dark hero / process section) */
  --night: #14261D;         /* deep forest */
  --night-2: #1A3024;

  /* Type */
  --ff-display: "Playfair Display", Georgia, serif;
  --ff-body: "Geist", system-ui, sans-serif;
  --ff-mono: ui-monospace, "SFMono-Regular", monospace;

  /* Spacing */
  --max: 1280px;
  --pad-x: clamp(20px, 4vw, 64px);
  --section-y: clamp(80px, 9vw, 132px);

  /* Radii */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--canvas);
  padding: 10px 16px; border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- 3. Type system ---------- */
.display {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 6.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink-2);
}
.display--md {
  font-size: clamp(28px, 4.5vw, 60px);
}
.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 58ch;
  margin: 22px 0 0;
}
.mono {
  font-family: var(--ff-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
}
.eyebrow--inverse {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.eyebrow--inverse .eyebrow__dot { background: var(--lime); }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn--lg { height: 56px; padding: 0 28px; font-size: 15.5px; }
.btn--lime {
  background: var(--lime);
  color: var(--ink);
}
.btn--lime:hover { background: var(--lime-3); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn--ghost-inverse {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn--ghost-inverse:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

/* ---------- 5. Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 232, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  border-color: var(--line);
  background: rgba(244, 241, 232, 0.95);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--lime);
  border-radius: 50%;
}
.brand--lg { font-size: 32px; gap: 12px; }
.brand--lg .brand__mark { width: 48px; height: 48px; }

.nav__links {
  justify-self: center;
  display: flex; gap: 6px;
}
.nav__links a {
  font-size: 14px;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__links a:hover { background: var(--ink); color: var(--lime); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { grid-template-columns: auto 1fr; gap: 12px; }
  .nav__inner .btn { padding: 0 14px; height: 42px; }
}

/* ---------- 6. Hero ---------- */
.hero {
  padding: clamp(40px, 5vw, 72px) 0 0;
}
.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }
.hero__copy .display { margin-top: 24px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero__media {
  margin: 0;
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media figcaption {
  position: absolute;
  bottom: 14px; left: 14px;
  background: rgba(20, 38, 29, 0.78);
  color: var(--canvas);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
}
.hero__strip {
  max-width: var(--max);
  margin: clamp(56px, 6vw, 88px) auto 0;
  padding: 26px var(--pad-x);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-muted);
}
.hero__strip li { display: flex; }
.hero__strip li:nth-child(2n) { opacity: 0.4; }

/* ---------- 7. Section heads ---------- */
.section-head {
  padding-bottom: clamp(32px, 4vw, 56px);
  max-width: 64ch;
}
.section-head .display { margin-top: 16px; }
.section-head__lede {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 17px;
  max-width: 56ch;
}
.section-head--center {
  text-align: center;
  margin: 0 auto;
  max-width: 64ch;
}
.section-head--center .eyebrow { display: inline-flex; }
.section-head--center .section-head__lede { margin-left: auto; margin-right: auto; }
.section-head--row {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(32px, 4vw, 56px);
}
@media (max-width: 700px) { .section-head--row { flex-direction: column; align-items: flex-start; } }

/* ---------- 8. About ---------- */
.about {
  padding: var(--section-y) 0;
}
.about__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .about__inner { grid-template-columns: 1fr; } }
.about__photo {
  margin: 0;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--r-lg);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__copy .display { margin-top: 16px; }
.about__copy > p { margin-top: 22px; color: var(--ink-muted); max-width: 56ch; }
.about__rules {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.about__rules > li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.about__rule-num { color: var(--ink); font-size: 13px; padding-top: 2px; }
.about__rules h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--ink);
}
.about__rules p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 52ch;
}

/* ---------- 9. Services ---------- */
.services {
  background: var(--surface);
  padding: var(--section-y) 0;
}
.services .section-head--center,
.services__grid {
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
  padding-left: var(--pad-x); padding-right: var(--pad-x);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } }

.service {
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -24px rgba(31, 58, 46, 0.18); }
.service__img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.service__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.service:hover .service__img img { transform: scale(1.04); }
.service__body { padding: 24px 24px 28px; display: grid; gap: 10px; }
.service__num { color: var(--ink-muted); font-size: 11px; }
.service h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.service p { color: var(--ink-muted); font-size: 14px; margin: 0; }

/* ---------- 10. Work ---------- */
.work {
  padding: var(--section-y) 0;
}
.work__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.work__grid > .work__card:nth-child(2),
.work__grid > .work__card:nth-child(3) { grid-column: 2; }
.work__grid > .work__card--lg:last-child { grid-column: 1 / -1; }
@media (max-width: 800px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__grid > .work__card:nth-child(n) { grid-column: auto; }
}

.work__card { display: grid; gap: 14px; }
.work__img {
  aspect-ratio: 16/11;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.work__card--lg .work__img { aspect-ratio: 16/10; }
.work__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.work__card:hover .work__img img { transform: scale(1.04); }
.work__cap { display: grid; gap: 6px; padding: 4px 4px; }
.work__cap h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
  color: var(--ink);
}
.work__cap p { margin: 0; }
.tag {
  display: inline-block;
  background: var(--ink);
  color: var(--lime);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: 10px;
  letter-spacing: 0.1em;
  width: max-content;
}

/* ---------- 11. Process ---------- */
.process {
  background: var(--night);
  color: #fff;
  padding: var(--section-y) 0;
}
.process__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.process .display { color: #fff; }
.process .display em { color: var(--lime); }
.process__list {
  list-style: none;
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 1100px) { .process__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .process__list { grid-template-columns: 1fr; } }
.process__list li {
  background: var(--night);
  padding: 30px 22px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.process__num {
  font-family: var(--ff-display);
  font-size: 44px;
  font-weight: 400;
  font-style: italic;
  color: var(--lime);
  line-height: 1;
}
.process__list h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 0;
  color: #fff;
}
.process__list p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin: 0;
}

/* ---------- 12. Testimonials ---------- */
.quotes {
  padding: var(--section-y) 0;
}
.quotes .section-head--center,
.quotes__grid {
  max-width: var(--max);
  margin-left: auto; margin-right: auto;
  padding-left: var(--pad-x); padding-right: var(--pad-x);
}
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .quotes__grid { grid-template-columns: 1fr; } }

.quote {
  margin: 0;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid; gap: 28px;
}
.quote blockquote {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.quote blockquote em { font-style: italic; }
.quote--lime { background: var(--lime); border-color: var(--lime); }
.quote--lime blockquote { color: var(--ink); }
.quote figcaption {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto;
}
.quote figcaption img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.quote figcaption strong {
  display: block;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}
.quote--lime figcaption .mono { color: var(--ink-2); }

/* ---------- 13. Journal ---------- */
.journal {
  background: var(--surface);
  padding: var(--section-y) 0;
}
.journal__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .journal__grid { grid-template-columns: 1fr; } }
.post { display: grid; gap: 14px; }
.post__img {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}
.post__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { color: var(--ink-2); font-size: 11px; margin-top: 8px; }
.post h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(20px, 1.7vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}

/* ---------- 14. CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 144px) 0;
  color: #fff;
}
.cta__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.cta__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 38, 29, 0.88), rgba(20, 38, 29, 0.55));
}
.cta__inner {
  position: relative; z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
}
.cta .display { color: #fff; margin-top: 16px; }
.cta .display em { color: var(--lime); }
.cta__inner > p {
  margin: 22px auto 36px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  max-width: 52ch;
}
.cta__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta__bullets {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}
.cta__bullets li { display: flex; align-items: center; gap: 8px; }
.cta__bullets li::before {
  content: "✿";
  color: var(--lime);
  font-family: serif;
  font-size: 12px;
}

/* ---------- 15. Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(56px, 7vw, 96px) 0 24px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(28px, 5vw, 72px);
}
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__mark { background: var(--lime); color: var(--ink); }
.footer__brand p {
  margin-top: 16px;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 600px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }
.footer__cols h4 { margin: 0 0 14px; color: rgba(255, 255, 255, 0.45); }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__cols a {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.005em;
}
.footer__cols a:hover { color: var(--lime); }
.footer__bar {
  max-width: var(--max);
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
@media (max-width: 700px) { .footer__bar { flex-direction: column; } }

/* ---------- 16. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
