/* Well Done Tree Service - full page redesign.
   Palette sampled from assets/logo.webp:
     kelly green #22AC4B (tree + wordmark), warm brown #7A411F (arch).
   #14532D is that green darkened for type and solid buttons.
   No inline styles anywhere: the live CSP has no 'unsafe-inline' for style-src. */

:root{
  --green:#22AC4B;
  --green-deep:#14532D;
  --green-ink:#0C3A1E;
  --brown:#7A411F;
  --brown-soft:#9A6A3F;
  --paper:#FFFFFF;
  --sunk:#F2F8F3;
  --sunk-warm:#FAF7F2;
  --rule:#DCE7DD;
  --shadow:0 10px 30px rgba(12,58,30,.10);
  --poster-m:url("assets/hero-fall-poster.jpg");
  --poster-d:url("assets/hero-poster.jpg");
  --display:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}

body{
  margin:0;
  background:var(--paper);
  color:var(--green-ink);
  font-family:var(--display);
  font-variation-settings:"wdth" 100;
  line-height:1.5;
}

img{max-width:100%}

/* .shell owns the horizontal axis only. Vertical padding uses longhands so a
   rule that also carries .shell cannot have its side padding reset. */
.shell{width:100%;max-width:1200px;margin:0 auto;padding-left:20px;padding-right:20px}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;text-align:center;
  font-family:var(--display);font-weight:700;text-decoration:none;cursor:pointer;
  border:0;border-radius:6px;transition:transform .16s ease,box-shadow .16s ease;
}
.btn:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(12,58,30,.22)}
/* Dark ink on kelly green reads 5.7:1. White on it would be 2.96:1 and fail AA. */
.btn--offer{background:var(--green);color:var(--green-ink);font-size:14px;padding:10px 15px;flex:none}
.btn--primary{background:var(--green);color:var(--green-ink);font-size:19px;padding:17px 28px}
.btn--solid{background:var(--green-deep);color:var(--paper);font-size:17px;padding:16px 26px}

/* ---------- masthead: rides over the hero ---------- */
.masthead{position:absolute;top:0;left:0;right:0;z-index:3}
.masthead__in{display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding-top:18px;padding-bottom:18px}
.brand{display:flex;align-items:center;flex:none}
/* The mark is drawn for a white ground; over footage it gets separation from
   the hero's top scrim plus a shadow rather than from a solid bar. */
.brand img{display:block;height:44px;width:auto;filter:drop-shadow(0 1px 3px rgba(4,14,8,.7))}

/* ---------- hero ---------- */
.hero{position:relative;isolation:isolate;overflow:hidden;background:var(--green-ink)}
.hero__vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 62%;z-index:0}
.hero__scrim{
  position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(to bottom, rgba(6,20,12,.80) 0, rgba(6,20,12,.36) 92px, rgba(6,20,12,0) 172px),
    linear-gradient(to top, rgba(8,28,16,.94) 0%, rgba(8,28,16,.80) 26%, rgba(8,28,16,.42) 55%, rgba(8,28,16,.20) 100%);
}
/* Mobile: height follows content rather than a fixed vh, so the form is never
   pushed off screen and the keyboard opening cannot trap it. */
.hero__inner{
  position:relative;z-index:2;
  display:flex;flex-direction:column;justify-content:flex-end;gap:20px;
  padding-top:84px;padding-bottom:26px;
}
.hero h1{
  margin:0 0 12px;font-size:clamp(28px,7.6vw,40px);line-height:1.03;font-weight:800;
  font-variation-settings:"wdth" 82,"wght" 800;text-transform:uppercase;color:var(--paper);text-wrap:balance;
}
.hero__lead{margin:0;font-size:15px;font-weight:700;color:#FFFFFF;max-width:34ch}

/* ---------- hero form: two step ---------- */
.hform{
  background:var(--paper);border-radius:14px;padding:16px 15px 14px;
  box-shadow:0 18px 46px rgba(4,16,9,.45);
}
/* Same pair as .promo[hidden]: a bare display rule beats the UA sheet's
   [hidden]{display:none} on equal specificity, so without this BOTH steps
   render at once and the two-step form is just a long one-step form. */
.hform__step[hidden]{display:none !important}
.hform__step{display:grid;gap:9px}
.hform__title{
  margin:0 0 2px;font-size:12px;font-weight:800;letter-spacing:.12em;
  text-transform:uppercase;color:var(--brown);
}
.hform__field{
  width:100%;font-family:var(--display);font-size:16px;color:var(--green-ink);
  background:var(--sunk);border:1.5px solid var(--rule);border-radius:9px;padding:13px 14px;
}
.hform__field:focus{outline:3px solid rgba(34,172,75,.45);outline-offset:1px;border-color:var(--green)}
.hform__field.is-invalid{border-color:#C6402F;background:#FDF3F1}
.hform__go{width:100%;font-size:17px;padding:15px 20px}
.hform__back{
  appearance:none;border:0;background:transparent;cursor:pointer;justify-self:center;
  font-family:var(--display);font-size:13px;font-weight:700;color:var(--green-deep);
  text-decoration:underline;padding:4px 8px;
}
.consent--hero{font-size:11.5px;margin-top:1px}
.hform__note{margin:10px 0 0;font-size:11.5px;color:#5A7264;text-align:center}
.hform__note.is-err{color:#A32014;font-weight:700}

/* ---------- trust band ---------- */
.band{background:var(--sunk);border-bottom:1px solid var(--rule)}
.band__in{display:flex;flex-direction:column;align-items:center;gap:11px;padding-top:20px;padding-bottom:20px}
.band__score{display:flex;align-items:center;gap:10px}
.gmark{width:22px;height:22px;flex:none}
.band__num{font-size:20px;font-weight:800}
.stars{display:inline-flex;gap:2px;color:#F5A623}
.stars svg{width:16px;height:16px;fill:currentColor}
.band__label{font-size:13.5px;font-weight:600;text-align:center}
.band .btn--solid{width:100%;font-size:16px;padding:15px 22px}

/* ---------- section scaffolding ---------- */
.sec{padding-top:52px;padding-bottom:52px}
.sec--sunk{background:var(--sunk)}
.sec--warm{background:var(--sunk-warm)}
.sec__head{margin:0 0 30px}
.sec h2{
  margin:0 0 10px;font-size:clamp(27px,6.4vw,38px);line-height:1.06;font-weight:800;
  font-variation-settings:"wdth" 84,"wght" 800;text-transform:uppercase;color:var(--green-deep);
}
.sec__sub{margin:0;font-size:15.5px;font-weight:600;color:var(--brown);max-width:56ch}
.sec__cta{margin-top:30px;display:flex}
.sec__cta .btn{width:100%}

/* ---------- process ----------
   2 across on a phone, not a 4-card vertical stack. Four stacked cards ran
   roughly 900px of scroll on their own; this puts the whole process on one
   screen, which is the point of the section. */
.steps{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:0;list-style:none;counter-reset:step}
.step{
  position:relative;background:var(--paper);border:1px solid var(--rule);border-radius:12px;
  padding:16px 14px 15px;box-shadow:var(--shadow);
}
.step::before{
  counter-increment:step;content:counter(step);
  width:26px;height:26px;border-radius:50%;background:var(--green-deep);color:var(--paper);
  font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;margin-bottom:9px;
}
.step h3{margin:0 0 5px;font-size:15px;font-weight:800;letter-spacing:.01em;color:var(--green-deep);line-height:1.2}
.step p{margin:0;font-size:13px;line-height:1.45;color:#35503F}

/* ---------- reviews ---------- */
.rail{
  display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:6px;margin:0 -20px;padding-left:20px;padding-right:20px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.rail::-webkit-scrollbar{display:none}
/* Desktop click-drag. While dragging, snap is switched OFF so the cursor leads
   instead of fighting the snap points; on release we settle to the nearest card. */
.rail{cursor:grab}
.rail.is-grabbing{cursor:grabbing;scroll-snap-type:none;user-select:none}
.rail.is-grabbing .rev{pointer-events:none}
.rev{
  flex:0 0 88%;scroll-snap-align:center;
  background:var(--paper);border:1px solid var(--rule);border-radius:12px;
  padding:20px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px;
}
.rev__stars{display:inline-flex;gap:2px;color:#F5A623}
.rev__stars svg{width:15px;height:15px;fill:currentColor}
.rev__body{margin:0;font-size:14.5px;color:#2C4636;flex:1}
.rev__by{display:flex;align-items:center;gap:10px;border-top:1px solid var(--rule);padding-top:12px}
.rev__av{
  width:30px;height:30px;border-radius:50%;background:var(--green-deep);color:var(--paper);
  font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;flex:none;
}
.rev__name{font-size:14px;font-weight:700}
.rev__g{width:17px;height:17px;margin-left:auto;flex:none}

/* Dots stay on ONE line at every width: no wrap, and they shrink before they stack. */
.dots{display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;gap:7px;margin-top:18px}
.dots button{
  appearance:none;border:0;padding:0;cursor:pointer;flex:0 1 auto;
  width:8px;height:8px;min-width:5px;border-radius:99px;background:#BFD3C4;transition:background .2s,width .2s;
}
.dots button[aria-current="true"]{background:var(--green-deep);width:22px}

/* ---------- reassurance ----------
   2x3 on a phone with the icon stacked over the label. Six full-width rows was
   the longest section on the page; this shows all six without scrolling. */
.assure{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:0;list-style:none}
.assure li{
  display:flex;flex-direction:column;gap:8px;align-items:flex-start;
  background:var(--paper);border:1px solid var(--rule);border-radius:12px;padding:15px 14px;box-shadow:var(--shadow);
}
.assure svg{width:24px;height:24px;flex:none;fill:none;stroke:var(--green);stroke-width:2.1;
  stroke-linecap:round;stroke-linejoin:round}
.assure strong{display:block;font-size:14.5px;font-weight:800;color:var(--green-deep);margin-bottom:3px;line-height:1.2}
.assure span{font-size:12.5px;line-height:1.45;color:#35503F}

/* ---------- gallery ---------- */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shot{position:relative;margin:0;border-radius:10px;overflow:hidden;background:var(--sunk);aspect-ratio:4/3}
.shot img{width:100%;height:100%;object-fit:cover;display:block}
.shot figcaption{
  position:absolute;left:0;right:0;bottom:0;padding:16px 11px 9px;
  font-size:11.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#fff;
  background:linear-gradient(to top,rgba(6,20,12,.86),rgba(6,20,12,0));
}

/* ---------- faq ---------- */
.faq{display:grid;gap:11px}
.qa{background:var(--paper);border:1px solid var(--rule);border-radius:12px;overflow:hidden}
.qa summary{
  cursor:pointer;list-style:none;padding:17px 46px 17px 18px;position:relative;
  font-size:15.5px;font-weight:800;color:var(--green-deep);
}
.qa summary::-webkit-details-marker{display:none}
.qa summary::after{
  content:"";position:absolute;right:18px;top:50%;width:10px;height:10px;
  border-right:2.4px solid var(--green);border-bottom:2.4px solid var(--green);
  transform:translateY(-70%) rotate(45deg);transition:transform .2s;
}
.qa[open] summary::after{transform:translateY(-25%) rotate(225deg)}
.qa__a{padding:0 18px 18px;font-size:14.5px;color:#35503F}

/* ---------- quote form ---------- */
.quote{background:var(--green-deep);color:var(--paper)}
.quote h2{color:var(--paper)}
.quote .sec__sub{color:#C8E2CE}
.form{display:grid;gap:13px;background:var(--paper);border-radius:14px;padding:20px}
.field label{display:block;font-size:12.5px;font-weight:800;letter-spacing:.07em;
  text-transform:uppercase;color:var(--green-deep);margin-bottom:6px}
.field input,.field select{
  width:100%;font-family:var(--display);font-size:16px;color:var(--green-ink);
  background:var(--sunk);border:1.5px solid var(--rule);border-radius:8px;padding:13px 14px;
}
.field input:focus,.field select:focus{outline:3px solid rgba(34,172,75,.45);outline-offset:1px;border-color:var(--green)}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:12.5px;color:#35503F}
.consent input{width:18px;height:18px;flex:none;margin-top:1px;accent-color:var(--green-deep)}
.form .btn--primary{width:100%}
.form__note{margin:0;font-size:12px;color:#4C6455;text-align:center}
.form__note.is-err{color:#A32014;font-weight:700}
.field input.is-invalid,.field select.is-invalid{border-color:#C6402F;background:#FDF3F1}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---------- promo modal: fires at 6s, once per session ----------
   No phone number by design: the CTA routes to #quote so the lead stays
   attributable to ad spend. */
/* [hidden] MUST come with, and win against, the display rule below. A bare
   .promo{display:flex} beats the UA sheet's [hidden]{display:none} on equal
   specificity, which left a full-screen transparent sheet over the page from
   first paint - it swallowed every click on the site, the submit button
   included. Any element that is both display-styled and toggled by `hidden`
   needs this pair. */
.promo[hidden]{display:none !important}
.promo{
  position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(6,20,12,.72);opacity:0;transition:opacity .3s ease;
}
.promo.is-open{opacity:1}
.promo__card{
  position:relative;width:100%;max-width:400px;background:var(--paper);
  border-radius:18px;overflow:hidden;box-shadow:0 26px 70px rgba(0,0,0,.45);
  transform:translateY(14px) scale(.97);transition:transform .32s cubic-bezier(.2,.8,.3,1);
}
.promo.is-open .promo__card{transform:none}

/* Header band: the mark sits on its own white ground, as it is drawn to. */
.promo__top{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 14px 13px 18px;border-bottom:1px solid var(--rule);
}
.promo__top img{display:block;height:34px;width:auto}
.promo__close{
  width:34px;height:34px;border:0;border-radius:50%;flex:none;
  background:var(--sunk);color:var(--green-deep);font-size:19px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.promo__close:hover{background:#DCEBE0}

/* The offer itself, on a soft green wash so the number owns the card. */
.promo__body{
  padding:26px 22px 24px;text-align:center;
  background:radial-gradient(120% 90% at 50% 0%, #EAF7ED 0%, var(--paper) 62%);
}
.promo__amount{
  display:block;font-size:clamp(62px,18vw,80px);line-height:.86;font-weight:800;
  font-variation-settings:"wdth" 78,"wght" 800;color:var(--green-deep);letter-spacing:-.02em;
}
.promo__what{
  display:block;font-size:14px;font-weight:800;letter-spacing:.16em;
  text-transform:uppercase;color:var(--brown);margin-top:10px;
}
/* display:block is load-bearing: a bare <span> is inline, so width and height
   are ignored and the rule never paints. */
.promo__rule{display:block;width:46px;height:3px;background:var(--green);border-radius:2px;margin:16px auto 0}
.promo__sub{margin:16px auto 20px;font-size:14.5px;line-height:1.5;color:#35503F;max-width:30ch}
.promo .btn--primary{width:100%}

/* The popup's own form. Compact, because it has to fit a phone with the
   keyboard open. */
.promo-form{display:grid;gap:8px;margin:16px 0 0;text-align:left}
.promo-form__field{
  width:100%;font-family:var(--display);font-size:16px;color:var(--green-ink);
  background:var(--sunk);border:1.5px solid var(--rule);border-radius:8px;padding:11px 13px;
}
.promo-form__field:focus{outline:3px solid rgba(34,172,75,.45);outline-offset:1px;border-color:var(--green)}
.promo-form__field.is-invalid{border-color:#C6402F;background:#FDF3F1}
.consent--promo{font-size:11.5px;margin-top:2px}
.promo-form .btn--primary{width:100%;margin-top:4px}
.promo-form .promo__fine{margin-top:8px}
.promo-form .promo__fine.is-err{color:#A32014;font-weight:700}

/* Proof under the button: the reason to believe the offer is worth taking. */
.promo__proof{display:flex;align-items:center;justify-content:center;gap:8px;margin:16px 0 0}
.promo__proof .gmark{width:17px;height:17px}
.promo__proof .stars svg{width:13px;height:13px}
.promo__proof span{font-size:12.5px;font-weight:700;color:var(--green-ink)}
/* .stars is itself a <span>, so the rule above was repainting the gold stars
   green-ink. Restore them after it, not before. */
.promo__proof .stars{color:#F5A623}
.promo__fine{margin:9px 0 0;font-size:11.5px;color:#5A7264}

@media (prefers-reduced-motion:reduce){
  .promo,.promo__card{transition:none}
  .promo__card{transform:none}
}

/* ---------- footer ---------- */
.foot{background:var(--green-ink);color:#B7CFBE;padding-top:26px;padding-bottom:34px;font-size:13px}
.foot__in{display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center}
.foot a{color:#D6E8DC}

/* ---------- desktop ---------- */
@media (min-width:901px){
  .shell{padding-left:40px;padding-right:40px}
  .brand img{height:54px}

  /* Desktop: copy left, form right, both centred over the video. */
  .hero__inner{
    min-height:78vh;
    display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,400px);
    gap:56px;align-items:center;
    padding-top:120px;padding-bottom:76px;
  }
  .hero h1{font-size:clamp(42px,4.2vw,58px);max-width:15ch;margin-bottom:16px}
  .hero__lead{font-size:18px;max-width:38ch}
  .hform{padding:22px 20px 18px;border-radius:16px}
  .hform__step{gap:10px}
  /* The desktop clip is the climber: hold him, not the sky. */
  .hero__vid{object-position:center 26%}
  .hero__scrim{
    background:
      linear-gradient(to bottom, rgba(6,20,12,.72) 0, rgba(6,20,12,.30) 104px, rgba(6,20,12,0) 190px),
      linear-gradient(to right, rgba(8,28,16,.92) 0%, rgba(8,28,16,.78) 38%, rgba(8,28,16,.34) 68%, rgba(8,28,16,.18) 100%);
  }

  .band__in{flex-direction:row;justify-content:center;gap:18px;padding-top:18px;padding-bottom:18px}
  .band__label{text-align:left}
  .band .btn--solid{width:auto;font-size:15px;padding:12px 20px}

  .sec{padding-top:82px;padding-bottom:82px}
  .sec__head{margin-bottom:42px;max-width:62ch}
  .sec__cta{justify-content:flex-start}
  .sec__cta .btn{width:auto}

  .steps{grid-template-columns:repeat(4,1fr);gap:18px}
  .rev{flex-basis:calc((100% - 28px)/3)}
  .assure{grid-template-columns:repeat(3,1fr);gap:18px}
  .grid{grid-template-columns:repeat(4,1fr);gap:14px}
  .shot figcaption{font-size:12px;padding:20px 14px 12px}
  .faq{grid-template-columns:1fr 1fr;gap:14px}
  .form{grid-template-columns:1fr 1fr;padding:28px}
  .form .field--wide,.form .consent,.form .btn--primary,.form .form__note{grid-column:1 / -1}
  .quote__grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:56px;align-items:center}
  .foot__in{flex-direction:row;justify-content:space-between;text-align:left}
}

/* Motion-sensitive visitors get a still frame, never a looping clip. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn:hover{transform:none}
  .hero__vid{display:none}
  .hero{background-image:var(--poster-m);background-size:cover;background-position:center 40%}
}
@media (prefers-reduced-motion:reduce) and (min-width:901px){
  .hero{background-image:var(--poster-d);background-position:center 26%}
}
