/* Home page sections under the hero. Loaded by index.html only, after site.css. */

/* ---------- How It Works: four numbered steps on one line, joined by a rule ----------
   (Keith 11/23: "clean up the How it works section ... on a computer and a phone").
   Was: a dark band of four boxed cards. Now: a white section, a short path of
   numbered steps, the button beside the heading on a computer and under the
   steps on a phone. Scoped to the home page: services.html keeps its own band. */
body[data-page="home"] .steps-band{
  background:var(--white);color:var(--ink);
  border-top:1px solid var(--line);
  padding:clamp(52px,6.5vw,92px) 0;
}
body[data-page="home"] .steps-band .wrap{
  display:grid;grid-template-columns:1fr auto;column-gap:40px;align-items:end;
}
body[data-page="home"] .steps-band .section-head{grid-column:1;grid-row:1;margin-bottom:0;max-width:680px}
body[data-page="home"] .steps-band .eyebrow{color:var(--gold)}
body[data-page="home"] .steps-band .section-head h2{font-size:clamp(1.7rem,3vw,2.5rem);margin-top:10px}
body[data-page="home"] .steps-band .section-head p{color:#51606D;margin-top:12px;font-size:1rem;line-height:1.7}
body[data-page="home"] .steps-band .steps-cta{grid-column:2;grid-row:1;margin:0;text-align:right;padding-bottom:6px}
body[data-page="home"] .steps-band .steps-cta .btn{background:var(--ink);color:#fff;white-space:nowrap}
body[data-page="home"] .steps-band .steps-cta .btn:hover{background:var(--teal-deep)}

body[data-page="home"] .steps-band .steps{
  grid-column:1 / -1;grid-row:2;margin-top:clamp(36px,4.4vw,58px);
  grid-template-columns:repeat(4,1fr);gap:0;
}
body[data-page="home"] .steps-band .step{
  background:none;border:none;border-radius:0;padding:0 30px 0 0;
}
body[data-page="home"] .steps-band .step:hover{transform:none;background:none}
/* the number sits in a ring; a hairline runs from it to the next step */
body[data-page="home"] .steps-band .step::before{
  content:counter(step,decimal-leading-zero);
  position:relative;z-index:1;display:flex;align-items:center;justify-content:center;
  width:54px;height:54px;border-radius:50%;margin-bottom:22px;opacity:1;
  border:1px solid #B9C8D6;background:var(--white);
  font-family:var(--serif);font-size:1.02rem;font-weight:600;letter-spacing:.04em;
  color:var(--ink);-webkit-text-stroke:0;
  transition:background .25s ease,color .25s ease,border-color .25s ease;
}
body[data-page="home"] .steps-band .step:hover::before{background:var(--ink);border-color:var(--ink);color:#fff}
body[data-page="home"] .steps-band .step::after{
  content:"";position:absolute;top:27px;left:54px;right:0;height:1px;
  background:linear-gradient(90deg,#B9C8D6,#DCE4EC);
}
body[data-page="home"] .steps-band .step:last-child::after{display:none}
body[data-page="home"] .steps-band .step h3{font-size:1.2rem;margin-bottom:8px;color:var(--ink)}
body[data-page="home"] .steps-band .step p{font-size:.93rem;line-height:1.65;color:#51606D;max-width:30ch}

/* tablets and phones: the steps stack into one path down the page, the number
   on the left with its rule running down to the next */
@media(max-width:900px){
  body[data-page="home"] .steps-band .wrap{grid-template-columns:1fr}
  body[data-page="home"] .steps-band .steps{grid-template-columns:1fr;margin-top:30px;max-width:620px}
  body[data-page="home"] .steps-band .step{
    display:grid;grid-template-columns:46px 1fr;column-gap:18px;padding:0 0 26px;
  }
  body[data-page="home"] .steps-band .step:last-child{padding-bottom:0}
  body[data-page="home"] .steps-band .step::before{
    grid-row:1 / span 2;width:46px;height:46px;margin:0;font-size:.92rem;
  }
  body[data-page="home"] .steps-band .step::after{
    top:46px;bottom:0;left:23px;right:auto;width:1px;height:auto;
    background:linear-gradient(180deg,#B9C8D6,#DCE4EC);
  }
  body[data-page="home"] .steps-band .step h3{grid-column:2;font-size:1.1rem;margin:2px 0 4px}
  body[data-page="home"] .steps-band .step p{grid-column:2;max-width:none;font-size:.92rem;line-height:1.6}
  body[data-page="home"] .steps-band .steps-cta{grid-column:1;grid-row:3;text-align:left;margin-top:30px;padding:0}
}
@media(max-width:760px){
  body[data-page="home"] .steps-band{padding:44px 0 48px}
  body[data-page="home"] .steps-band .section-head p{font-size:.95rem;line-height:1.65}
  body[data-page="home"] .steps-band .steps-cta .btn{display:flex;width:100%}
}
@media(hover:none){
  body[data-page="home"] .steps-band .step:hover::before{background:var(--white);border-color:#B9C8D6;color:var(--ink)}
}
