/* ==========================================================================
   Evergreen Landscaping & Gardening Services
   ========================================================================== */

:root {
  --ink: #14261c;
  --forest: #1e4433;
  --forest-deep: #12291e;
  --moss: #4a6b52;
  --sage: #8ba38d;
  --sand: #f4f1e8;
  --paper: #fdfcf8;
  --clay: #b4703f;
  --line: #e2ded2;
  --muted: #5f6f62;

  --max: 1220px;
  --gut: 28px;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0 0 18px;
  font-variation-settings: "SOFT" 20, "WONK" 1;
}

h1 { font-size: clamp(40px, 6.2vw, 76px); }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: 21px; letter-spacing: -0.005em; }
h4 { font-size: 17px; font-family: var(--body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 19.5px; color: var(--muted); max-width: 54ch; }
.small { font-size: 14.5px; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--clay);
}
.eyebrow.on-dark { color: #d8c3a5; }
.eyebrow.on-dark::before { background: #d8c3a5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--forest);
  color: #fff;
  border: 1px solid var(--forest);
  transition: background .2s, border-color .2s, transform .15s, color .2s;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: #d3cec1; }
.btn.ghost:hover { background: #fff; border-color: var(--moss); }
.btn.light { background: #fff; color: var(--forest); border-color: #fff; }
.btn.light:hover { background: var(--sand); border-color: var(--sand); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn.outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253,252,248,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand .mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--forest);
  color: #e8e3d2;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand .mark svg { width: 20px; height: 20px; }
.brand small {
  display: block;
  font-family: var(--body);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
}
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--clay);
}

.header-cta { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 3px auto; transition: .2s; }

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 15px var(--gut);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 16px;
}

@media (max-width: 900px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: grid; }
  .site-header .wrap { height: 68px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 55%;
  transform: scale(1.02);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9,20,14,.62) 0%, rgba(9,20,14,.24) 35%, rgba(9,20,14,.86) 100%),
    linear-gradient(90deg, rgba(9,20,14,.74) 0%, rgba(9,20,14,.34) 52%, rgba(9,20,14,.05) 100%);
}
.hero .wrap { position: relative; padding-top: 90px; padding-bottom: 64px; }
.hero h1 { max-width: 16ch; margin-bottom: 22px; }
.hero .lede { color: rgba(255,255,255,.86); max-width: 46ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* stronger overlay where the hero text stacks on narrow screens */
@media (max-width: 700px) {
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(9,20,14,.66) 0%, rgba(9,20,14,.44) 38%, rgba(9,20,14,.9) 100%);
  }
  .hero { min-height: 88vh; }
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-tight { padding: 68px 0; }
.rule { height: 1px; background: var(--line); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 38px; } }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { background: var(--paper); padding: 34px 30px; }
.stat .num {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  color: var(--forest);
  margin: 0 0 8px;
}
.stat .lbl { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* ---------- service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .18s, box-shadow .2s;
}
.card:hover {
  border-color: var(--sage);
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -40px rgba(20,38,28,.55);
}
.card .icon { width: 34px; height: 34px; margin-bottom: 20px; color: var(--forest); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--muted); margin: 0; }
.card .more {
  margin-top: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .cards { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: .18s;
}
.filter:hover { border-color: var(--sage); color: var(--ink); }
.filter.active { background: var(--forest); border-color: var(--forest); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sand);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  transition: opacity .3s, transform .3s;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.tile:hover img { transform: scale(1.05); }
.tile__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 46px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(9,20,14,.78));
  color: #fff;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity .28s;
}
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; }
.tile.tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.tile.hidden { display: none; }

/* touch devices have no hover — keep captions visible */
@media (hover: none) {
  .tile__cap { opacity: 1; padding-top: 30px; }
}

@media (max-width: 980px) { .grid { grid-template-columns: 1fr 1fr; } .tile.tall { grid-row: span 1; aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,16,12,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox figcaption {
  color: rgba(255,255,255,.8);
  font-size: 14.5px;
  margin-top: 16px;
  text-align: center;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- client list ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.client {
  background: var(--paper);
  padding: 26px 24px;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.35;
}
.client span { display: block; font-family: var(--body); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 820px) { .clients { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .clients { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 88px 1fr 1.1fr;
  gap: 34px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step .n {
  font-family: var(--display);
  font-size: 15px;
  color: var(--clay);
  letter-spacing: .1em;
  padding-top: 6px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15.8px; margin: 0; }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 30px 0; }
  .step .n { padding-top: 0; }
}

/* ---------- image feature ---------- */
.figure-wide { border-radius: 18px; overflow: hidden; }
.figure-wide img { width: 100%; }
.figure-wide figcaption { font-size: 13.5px; color: var(--muted); padding: 12px 2px 0; }

/* ---------- dark band ---------- */
.band {
  background: var(--forest-deep);
  color: #efeade;
  position: relative;
  overflow: hidden;
}
.band h2 { color: #fff; }
.band p { color: rgba(239,234,222,.78); }
.band .wrap { position: relative; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  text-decoration: none;
  transition: border-color .2s, transform .18s;
  display: block;
}
.contact-card:hover { border-color: var(--sage); transform: translateY(-2px); }
.contact-card .lbl { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.contact-card .big { font-size: 17px; font-weight: 500; margin: 0 0 6px; word-break: break-word; }
.contact-card .sub { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--forest-deep);
  color: rgba(239,234,222,.72);
  padding: 66px 0 34px;
  font-size: 14.5px;
}
.site-footer a { text-decoration: none; color: rgba(239,234,222,.86); }
.site-footer a:hover { color: #fff; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 46px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.foot-brand { font-family: var(--display); font-size: 22px; color: #fff; margin-bottom: 12px; }
.foot-h { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(239,234,222,.5); margin: 0 0 14px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13.5px;
  color: rgba(239,234,222,.5);
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; gap: 30px; } }

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

/* ---------- page header (inner pages) ---------- */
.page-head {
  padding: 76px 0 56px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #faf8f1, var(--paper));
}
.page-head h1 { max-width: 22ch; }
.page-head .lede { margin-top: 18px; }
