/* Feature sections on service pages: highlighted phrases, photo band, pull-out callout, step cards, promise card.
   Loaded by water-line-installation, yard-grading, french-drains and new-home-site-prep. */
:root{
  --dur-fast:160ms; --dur-base:280ms; --dur-slow:600ms;
  --ease-out:cubic-bezier(.22,1,.36,1);
  --depth-2:0 2px 4px rgba(38,28,16,.06),0 10px 28px rgba(38,28,16,.12);
  --depth-3:0 4px 8px rgba(38,28,16,.07),0 20px 50px rgba(38,28,16,.18);
  --depth-4:0 8px 16px rgba(17,12,6,.12),0 36px 80px rgba(17,12,6,.32);
}

/* a larger opening paragraph */
.fx-lede{font-size:clamp(1.15rem,1.5vw,1.3rem);line-height:1.65;color:var(--text);max-width:52ch}

/* phrases picked out of the sentence in bold, text unchanged */
.fx-mark{background:none;color:var(--ink);font-weight:700}

/* ===== Fall Yard Work: full-width photo band ===== */
.fx-band{position:relative;isolation:isolate;overflow:hidden;background:var(--ink);color:#fff;min-height:min(78vh,560px);display:flex;align-items:center}
/* the photo is a tall portrait, so it fills the right side of the band instead of being cropped to a thin strip */
.fx-band-img{position:absolute;inset:0 0 0 auto;z-index:-2;width:62%;height:100%;object-fit:cover;object-position:50% 6%}
.fx-band-shade{position:absolute;inset:0;z-index:-1;
  background:linear-gradient(90deg,var(--ink) 0%,var(--ink) 36%,rgba(17,17,17,.6) 52%,rgba(17,17,17,.1) 100%),linear-gradient(0deg,rgba(17,17,17,.45),transparent 38%)}
.fx-band-in{padding-block:var(--s7)}
.fx-band h2{color:#fff;max-width:14ch}
.fx-band .fx-lede{color:rgba(255,255,255,.88);max-width:46ch}
.fx-band .fx-mark{background:none;color:var(--orange-l);box-shadow:inset 0 -2px 0 var(--orange);padding:0}
.fx-band .btns{margin-top:var(--s5)}

/* ===== Driveways and Ditches: the key sentence pulled out ===== */
.fx-quote{margin:var(--s5) 0;padding:1.5rem 1.7rem;background:var(--ink);color:#fff;border-left:4px solid var(--orange);border-radius:0 8px 8px 0;
  box-shadow:var(--depth-3);font:600 clamp(1.3rem,2vw,1.65rem)/1.3 var(--cond);letter-spacing:.015em;max-width:34rem}
.fx-more{margin:0}

/* ===== Clearing, Driveway and Yard: three linked step cards ===== */
.fx-trio-head{max-width:46rem;margin-bottom:var(--s6)}
.fx-trio-head h2{margin-bottom:var(--s3)}
.fx-trio-head .fx-lede{margin:0}
.fx-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;counter-reset:fxs}
.fx-step{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:flex-end;min-height:clamp(340px,30vw,420px);border-radius:8px;background:var(--ink);
  color:#fff;box-shadow:var(--depth-2);counter-increment:fxs;transition:transform var(--dur-base) var(--ease-out),box-shadow var(--dur-base) var(--ease-out)}
.fx-step>img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;transition:transform 900ms var(--ease-out)}
.fx-step::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(17,17,17,.15) 0%,rgba(17,17,17,.45) 38%,rgba(17,17,17,.94) 100%)}
.fx-step::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--orange);transform:scaleX(0);transform-origin:left;transition:transform var(--dur-slow) var(--ease-out)}
.fx-step-n{position:absolute;top:1.1rem;left:1.3rem;font:400 2.4rem/1 var(--head);color:var(--orange)}
.fx-step-n::before{content:counter(fxs,decimal-leading-zero);content:counter(fxs,decimal-leading-zero) / ""}
.fx-step-body{padding:1.5rem 1.5rem 1.4rem;width:100%}
.fx-step-body p{margin:0;font-size:1.08rem;line-height:1.5;color:rgba(255,255,255,.9)}
.fx-step-body a{color:#fff;font-weight:700;text-decoration:underline;text-decoration-color:var(--orange);text-underline-offset:3px;text-decoration-thickness:2px}
.fx-step-body a::after{content:"";position:absolute;inset:0;z-index:1} /* whole card is the link */
.fx-step-ar{position:absolute;top:1.3rem;right:1.3rem;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);color:#fff;
  transition:background-color var(--dur-base) var(--ease-out),color var(--dur-base) var(--ease-out),transform var(--dur-base) var(--ease-out)}
.fx-step:hover,.fx-step:focus-within{transform:translateY(-4px);box-shadow:var(--depth-3)}
.fx-step:hover>img,.fx-step:focus-within>img{transform:scale(1.06)}
.fx-step:hover::after,.fx-step:focus-within::after{transform:scaleX(1)}
.fx-step:hover .fx-step-ar,.fx-step:focus-within .fx-step-ar{background:var(--orange);color:var(--ink);transform:translateX(3px)}
.fx-step-body a:focus-visible{outline:none}
.fx-step:focus-within{outline:2px solid var(--orange);outline-offset:3px}

/* ===== Staying in the Loop: the three promises in a dark card ===== */
.fx-loop .ed-rail h2{margin:0}
.fx-loop .fx-lede{margin:0 0 var(--s4)}
.fx-promise{counter-reset:fxm;background:var(--ink);color:rgba(255,255,255,.86);border-left:4px solid var(--orange);border-radius:0 8px 8px 0;padding:1.7rem 1.9rem;box-shadow:var(--depth-3)}
.fx-promise p{margin:0;font-size:clamp(1.12rem,1.5vw,1.28rem);line-height:1.85;max-width:none}
.fx-promise .fx-mark{counter-increment:fxm;background:none;color:#fff;text-decoration:underline;text-decoration-color:var(--orange);text-decoration-thickness:2px;text-underline-offset:5px;padding:0}
.fx-promise .fx-mark::before{content:counter(fxm);content:counter(fxm) / "";display:inline-grid;place-items:center;width:1.45em;height:1.45em;margin-right:.45em;border-radius:50%;
  background:var(--orange);color:var(--ink);font:700 .78em/1 var(--cond);vertical-align:.1em}

@media (max-width:960px){
  .fx-trio{grid-template-columns:minmax(0,1fr)}
  .fx-step{min-height:300px}
  .fx-band{min-height:0}
  .fx-band-img{inset:0;width:100%;object-position:50% 30%}
  .fx-band-shade{background:linear-gradient(0deg,rgba(17,17,17,.94) 0%,rgba(17,17,17,.8) 55%,rgba(17,17,17,.5) 100%)}
  .fx-band-in{padding-block:var(--s7) var(--s6)}
  .fx-band h2{max-width:none}
}
@media (max-width:640px){
  .fx-promise{padding:1.3rem 1.2rem}
  .fx-quote{padding:1.2rem 1.2rem}
}

@media (prefers-reduced-motion:reduce){
  .fx-step,.fx-step>img,.fx-step::after,.fx-step-ar{transition:none}
}
