/* ==========================================================================
   East End Tree Service — stylesheet
   Brand: forest green #2F722A / amber #FFBD59 (sampled from logo)
   Mobile-first. No framework, no external fonts — keeps page weight low,
   which feeds both SEO (Core Web Vitals) and Google Ads Quality Score.
   ========================================================================== */

:root {
  --green:        #2F722A;
  --green-dark:   #235620;
  --green-darker: #17390F;
  --green-tint:   #F1F6F0;
  --green-line:   #D3E2D1;
  --amber:        #FFBD59;
  --amber-dark:   #E9A337;
  --ink:          #17210F;
  --body:         #43503D;
  --muted:        #6B7565;
  --white:        #FFFFFF;
  --sand:         #FAF9F5;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(23,33,15,.06), 0 8px 24px rgba(23,33,15,.07);
  --shadow-lg:    0 2px 4px rgba(23,33,15,.08), 0 18px 46px rgba(23,33,15,.13);
  --wrap:         1140px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  /* room for the fixed mobile action bar */
  padding-bottom: 64px;
}
@media (min-width: 861px) { body { padding-bottom: 0; } }

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

/* Safety net. An inline <svg> with no width/height falls back to roughly
   300x150, which wrecks any layout it sits in. This element-level rule is
   lower specificity than every class rule below, so explicit sizes still win —
   it only catches SVGs nobody sized. */
svg { width: 1em; height: 1em; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
  font-weight: 750;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
p  { margin: 0 0 1.15em; }
a  { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 58px 0; }
.section-lg { padding: 76px 0; }
.tint  { background: var(--green-tint); }
.sand  { background: var(--sand); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: .7em;
}
.lede { font-size: 1.13rem; color: var(--body); }
.section > .wrap > h2 { margin-bottom: .35em; }

/* Skip link — accessibility, and Google reads it as a quality signal */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff;
  padding: 12px 18px; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
  min-height: 50px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--green-darker); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--amber-dark); color: var(--green-darker); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.65); color: #fff; background: rgba(255,255,255,.08); }
.btn-outline:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-ghost { border-color: var(--green-line); color: var(--green-dark); background: #fff; }
.btn-ghost:hover { background: var(--green-tint); }
.btn-lg { font-size: 1.06rem; padding: 16px 30px; min-height: 56px; }
.btn-block { width: 100%; }
.btn svg { width: 19px; height: 19px; flex: none; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--green-darker); color: #DDE9DA;
  font-size: .87rem; padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; color: var(--amber); }
.topbar span { display: inline-flex; align-items: center; gap: .45em; }
/* Without this the inline SVGs fall back to their intrinsic default size
   (roughly 300x150) and blow the bar apart. Every SVG container needs a size. */
.topbar svg { width: 16px; height: 16px; flex: none; color: var(--amber); }
@media (min-width: 861px) { .topbar .wrap { justify-content: space-between; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  /* Solid, not translucent. A backdrop-filter here renders inconsistently and
     let page content show through the nav while scrolling. */
  background: var(--white);
  border-bottom: 1px solid var(--green-line);
  box-shadow: 0 2px 10px rgba(23,33,15,.05);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { width: 178px; height: auto; }
@media (min-width: 861px) { .logo img { width: 210px; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px; background: none;
  border: 1px solid var(--green-line); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--green-dark); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; }
.nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--green-line);
  box-shadow: var(--shadow-lg); padding: 10px 20px 20px;
}
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 13px 4px; font-weight: 650; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--green-tint);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.nav .btn { margin-top: 16px; }

@media (min-width: 861px) {
  .nav-toggle { display: none; }
  .nav { display: block; }
  .nav ul { display: flex; align-items: center; gap: 4px; }
  .nav a { border: 0; padding: 9px 13px; border-radius: var(--radius-sm); font-size: .97rem; }
  .nav a:hover { background: var(--green-tint); }
  .nav a[aria-current="page"] { background: var(--green-tint); color: var(--green-dark); }
  .nav .btn { margin: 0 0 0 10px; padding: 11px 20px; min-height: 44px; }
  .nav li.has-cta { margin-left: 6px; }
}

/* dropdown for services / areas */
.nav .drop { position: relative; }
.nav .drop > ul {
  display: none; list-style: none; padding-left: 12px;
}
.nav .drop.open > ul { display: block; }
.nav .drop > a::after { content: " ▾"; font-size: .8em; opacity: .6; }
@media (min-width: 861px) {
  .nav .drop > ul {
    position: absolute; left: 0; top: calc(100% + 6px); min-width: 258px;
    background: #fff; border: 1px solid var(--green-line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 8px; display: none; flex-direction: column;
  }
  .nav .drop:hover > ul, .nav .drop:focus-within > ul { display: flex; }
  .nav .drop > ul a { white-space: nowrap; font-size: .94rem; }
}

/* ---------- Mobile sticky action bar (the main conversion driver) ---------- */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--green-darker); box-shadow: 0 -3px 18px rgba(0,0,0,.22);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 9px 4px; color: #fff; text-decoration: none;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; min-height: 62px;
  border-right: 1px solid rgba(255,255,255,.14);
}
.mobile-bar a:last-child { border-right: 0; }
.mobile-bar a.hot { background: var(--amber); color: var(--green-darker); }
.mobile-bar svg { width: 21px; height: 21px; }
@media (min-width: 861px) { .mobile-bar { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--green-darker); overflow: hidden; }
.hero picture, .hero > img { position: absolute; inset: 0; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,26,6,.80) 0%, rgba(9,26,6,.62) 45%, rgba(9,26,6,.86) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 68px; padding-bottom: 68px; }
@media (min-width: 861px) { .hero .wrap { padding-top: 104px; padding-bottom: 104px; } }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { color: #E4EEE1; font-size: 1.13rem; max-width: 54ch; }
.hero .eyebrow { color: var(--amber); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .btn { flex: 1 1 100%; }
@media (min-width: 560px) { .hero-actions .btn { flex: 0 1 auto; } }
.hero-note {
  margin-top: 22px; color: #C7DAC2; font-size: .93rem;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.hero-note span { display: inline-flex; align-items: center; gap: .45em; }
.hero-note svg { width: 16px; height: 16px; color: var(--amber); flex: none; }

/* page banner (interior pages) */
.banner { background: var(--green-darker); color: #fff; position: relative; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,26,6,.72), rgba(9,26,6,.88)); }
.banner picture { position: absolute; inset: 0; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner .wrap { position: relative; z-index: 2; padding-top: 46px; padding-bottom: 46px; }
.banner h1 { color: #fff; margin-bottom: .3em; }
.banner p { color: #DCE9D8; margin: 0; max-width: 62ch; }

/* breadcrumbs */
.crumbs { font-size: .87rem; color: var(--muted); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45em; margin: 0; padding: 0; }
.crumbs li::after { content: "›"; margin-left: .45em; opacity: .5; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }
.banner .crumbs, .banner .crumbs a { color: #BCD2B7; }

/* ---------- Trust strip ---------- */
.trust { background: var(--green); color: #fff; padding: 18px 0; }
.trust ul {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: 1fr; text-align: center;
}
@media (min-width: 620px) { .trust ul { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.trust li { display: flex; align-items: center; justify-content: center; gap: .5em; font-weight: 650; font-size: .97rem; }
.trust svg { width: 21px; height: 21px; color: var(--amber); flex: none; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--green-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .4em; }
.card p { font-size: .97rem; margin-bottom: 1.1em; }
.card .more { margin-top: auto; font-weight: 750; color: var(--green-dark); text-decoration: none; font-size: .96rem; }
.card .more::after { content: "→"; margin-left: 7px; transition: margin .15s; display: inline-block; }
.card:hover .more::after { margin-left: 11px; }

/* feature list */
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: .7em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .34em; width: 20px; height: 20px;
  border-radius: 50%; background: var(--green-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F722A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

/* split content + image */
.split { display: grid; gap: 34px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 52px; } .split.flip .split-media { order: -1; } }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* numbered process */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; padding-top: 52px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.steps h3 { font-size: 1.06rem; margin-bottom: .3em; }
.steps p { font-size: .95rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-darker); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D5E5D1; max-width: 58ch; margin-left: auto; margin-right: auto; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.cta-band .actions .btn { flex: 1 1 100%; }
@media (min-width: 560px) { .cta-band .actions .btn { flex: 0 1 auto; } }

/* ---------- Callout / notice ---------- */
.callout {
  background: var(--green-tint); border: 1px solid var(--green-line);
  border-left: 5px solid var(--green); border-radius: var(--radius);
  padding: 22px 24px; margin: 0 0 1.5em;
}
.callout h3 { margin-bottom: .35em; }
.callout p:last-child { margin-bottom: 0; }
.callout.amber { background: #FFF8EA; border-color: #F3DFB6; border-left-color: var(--amber-dark); }

/* ---------- Areas ---------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  display: inline-block; padding: 9px 17px; background: #fff; border: 1px solid var(--green-line);
  border-radius: 999px; text-decoration: none; color: var(--green-dark); font-weight: 650; font-size: .95rem;
}
.chips a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--green-line); border-radius: var(--radius);
  padding: 0; margin-bottom: 12px; background: #fff; overflow: hidden;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ink); padding: 17px 52px 17px 20px;
  position: relative; list-style: none; font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--green); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: var(--green-tint); }
.faq .answer { padding: 16px 20px 4px; border-top: 1px solid var(--green-line); }

/* ---------- Form ---------- */
.form-card {
  background: #fff; border: 1px solid var(--green-line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
}
@media (min-width: 700px) { .form-card { padding: 34px 34px 30px; } }
.field { margin-bottom: 17px; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .87rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid #CBD6C7; border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
  min-height: 50px;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,114,42,.15);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #C0392B; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.req { color: #C0392B; }
.form-foot { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 650; display: none; }
.form-status.err { display: block; background: #FDEDEA; border: 1px solid #F1C4BC; color: #96271A; }
.form-status.ok  { display: block; background: var(--green-tint); border: 1px solid var(--green-line); color: var(--green-dark); }
button[disabled] { opacity: .62; cursor: wait; }

/* ---------- Footer ---------- */
.footer { background: var(--green-darker); color: #C3D6BE; padding: 52px 0 26px; font-size: .95rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9em; letter-spacing: .02em; }
.footer a { color: #DCE9D8; text-decoration: none; }
.footer a:hover { color: var(--amber); text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .55em; }
.footer .grid { gap: 34px; }
@media (min-width: 700px) { .footer .grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .logo img { width: 190px; margin-bottom: 16px; }
.footer .legal {
  border-top: 1px solid rgba(255,255,255,.16); margin-top: 38px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: .87rem; color: #9DB397;
}
.footer address { font-style: normal; }

/* utility */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.1em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
