
/* Every Step Pathways — V156 Visual Brand System
   Same website. Stronger visual identity. */

.esp156-page-hero .wrap{
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(340px,.96fr);
  column-gap:clamp(34px,4.6vw,72px);
  row-gap:12px;
  align-items:center;
}
.esp156-page-hero .wrap > :not(.esp156-hero-media){grid-column:1;min-width:0}
.esp156-page-hero .esp156-hero-media{
  grid-column:2;
  grid-row:1 / span 8;
  align-self:center;
  justify-self:end;
  width:min(100%,560px);
  margin:0;
  overflow:hidden;
  border-radius:clamp(22px,2vw,32px);
  border:1px solid rgba(22,77,102,.10);
  background:#F6F3EB;
  box-shadow:0 22px 54px rgba(13,19,38,.11);
  isolation:isolate;
}
.esp156-hero-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  transform:translateZ(0);
}
.esp156-hero-media--landscape{aspect-ratio:4 / 3}
.esp156-hero-media--portrait{aspect-ratio:4 / 5;max-width:470px}
.esp156-page-hero--refer .esp156-hero-media{max-width:460px}
.esp156-page-hero--refer .esp156-hero-media img{object-position:center 44%}
.esp156-page-hero--living .esp156-hero-media img{object-position:center 46%}
.esp156-page-hero--transition .esp156-hero-media img{object-position:center 50%}
.esp156-page-hero--employment .esp156-hero-media img{object-position:center 50%}
.esp156-page-hero--respite .esp156-hero-media img{object-position:center 50%}
.esp156-page-hero--get-services .esp156-hero-media img{object-position:center 52%}
.esp156-page-hero--support .esp156-hero-media img{object-position:center 52%}

/* Maintain the approved typography hierarchy while giving text room beside imagery. */
.esp156-page-hero h1{max-width:760px}
.esp156-page-hero > .wrap > p{max-width:650px}
.esp156-page-hero .esp97-hero-actions{margin-top:8px}
.esp156-page-hero .esp97-credential{margin-top:3px}

/* Supporting homepage brand moment: preserve section architecture, replace unrelated stock imagery. */
.esp122-next-step-visual.esp156-home-brand-visual{
  background:#F7F4EC!important;
  border:1px solid rgba(22,77,102,.10)!important;
  box-shadow:0 20px 48px rgba(13,19,38,.09)!important;
}
.esp122-next-step-visual .esp156-home-brand-photo{
  object-fit:cover!important;
  object-position:center center!important;
}

@media (min-width:901px) and (max-width:1180px){
  .esp156-page-hero .wrap{
    grid-template-columns:minmax(0,1fr) minmax(320px,.88fr);
    column-gap:clamp(28px,3.4vw,46px);
  }
  .esp156-page-hero .esp156-hero-media{width:min(100%,500px)}
  .esp156-hero-media--portrait{max-width:420px!important}
}

@media (max-width:900px){
  .esp156-page-hero .wrap{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }
  .esp156-page-hero .wrap > :not(.esp156-hero-media){width:100%}
  .esp156-page-hero .esp156-hero-media{
    order:0;
    width:100%;
    max-width:680px!important;
    margin:clamp(18px,3.8vw,28px) auto clamp(20px,4vw,30px);
    border-radius:clamp(20px,3.5vw,28px);
  }
  .esp156-hero-media--landscape{aspect-ratio:4 / 3}
  .esp156-hero-media--portrait{aspect-ratio:4 / 5;max-width:520px!important}
  .esp156-page-hero .esp97-hero-actions{margin-top:0}
}

@media (max-width:560px){
  .esp156-page-hero .esp156-hero-media{
    margin:17px auto 20px;
    border-radius:20px;
    box-shadow:0 14px 34px rgba(13,19,38,.10);
  }
  .esp156-page-hero--get-services .esp156-hero-media,
  .esp156-page-hero--support .esp156-hero-media{aspect-ratio:1 / 1}
  .esp156-page-hero--get-services .esp156-hero-media img{object-position:52% center}
  .esp156-page-hero--support .esp156-hero-media img{object-position:54% center}
  .esp156-page-hero--employment .esp156-hero-media{aspect-ratio:4 / 3}
  .esp156-page-hero--respite .esp156-hero-media{aspect-ratio:4 / 3}
  .esp156-page-hero--transition .esp156-hero-media{aspect-ratio:4 / 3}
  .esp122-next-step-visual .esp156-home-brand-photo{object-position:51% center!important}
}

@media (max-width:380px){
  .esp156-page-hero .esp156-hero-media{margin-top:14px;margin-bottom:18px}
  .esp156-hero-media--portrait{aspect-ratio:4 / 5}
}

@media (prefers-reduced-motion:reduce){
  .esp156-hero-media img{transform:none!important}
}
