/* Hero Banner block (fabricator/blocks/hero_banner.html and its layout variants) */

/* ---------- editorial hero (headline left · standfirst right · full-bleed image) ---------- */
.ehero{position:relative;z-index:1;background:#fff}
.ehero .in{max-width:90rem;margin:0 auto;padding:3.5rem 2rem 2.75rem;display:grid;
  grid-template-columns:1fr 1fr;gap:3.5rem;align-items:start}
.ehero h1{font-size:clamp(1.95rem,3.5vw,2.75rem);line-height:1.11;color:var(--ink);margin:0;max-width:24ch; font-weight:400;}
.ehero h1 p{margin-bottom:0;}
.ehero h1 b{color:var(--green)}
.pagehead h1{font-size:1.9rem;margin:.9rem 0 .6rem}
.pagehead p{margin-bottom:0;}
.ehero .stand{padding-top:.6rem}
.ehero .stand p{font-size:1.05rem;line-height:1.7;color:var(--muted);max-width:34rem;margin:0}
.ehero .stand .row{margin-top:1.75rem;display:flex;gap:.75rem;flex-wrap:wrap}
@media(max-width:900px){
  .ehero .in{grid-template-columns:1fr;gap:1.5rem;padding:2.5rem 2rem 2rem}
  .ehero .stand{padding-top:0}
  .ehero h1{max-width:none}
}

/* single column layout — centered headline + standfirst over a full-bleed photo */
.ehero.single-column{background:rgba(255,255,255,.85);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.ehero.single-column .in{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:1rem}
.ehero.single-column .in h1{max-width:none}
@media(min-width:900px){.ehero.single-column .in h1{font-size:calc(min(3.6vw,51.8px) - 2.3px)}}
.ehero.single-column .in .stand{padding-top:0;width:100%}
.ehero.single-column .in .stand .ab-tag{font-size:1.25rem;font-weight:700;color:var(--ink);margin:0 0 .9rem;}
.ehero.single-column .in .stand p{max-width:62rem;margin-left:auto;margin-right:auto}
.ehero.single-column .in .stand .row{justify-content:center}
@media(max-width:560px){.ehero .in{padding:2rem 1.15rem 1.75rem}}

@media(prefers-reduced-motion:no-preference){
  .reveal{animation:up .5s ease both}
  @keyframes up{from{opacity:.001;transform:translateY(10px)}to{opacity:1;transform:none}}
}

/* eyebrow label — the small pill shown above the headline, used by the
   with-label and single-column layouts */
.ehero .in .eyebrow{display:inline-flex;align-items:center;gap:.55rem;margin-bottom:.9rem;
  font-size:.72rem;font-weight:700;text-transform:uppercase;color:var(--green-d);
  background:var(--green-soft);border:1px solid var(--green-line);padding:.4rem .85rem;border-radius:999px}
.ehero .in .eyebrow .pd{width:7px;height:7px;border-radius:50%;background:var(--green);
  box-shadow:0 0 0 4px rgba(78,124,89,.16);flex:none}

/* with-products layout — centered headline + standfirst, followed by a row of product tiles */
.ehero.with-products{background:rgba(255,255,255,.85);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.ehero.with-products .in{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:1rem}
.ehero.with-products .in h1{max-width:none}
@media(min-width:900px){.ehero.with-products .in h1{font-size:calc(min(3.6vw,51.8px) - 2.3px)}}
.ehero.with-products .in .stand{padding-top:0;width:100%}
.ehero.with-products .in .stand p{max-width:62rem;margin-left:auto;margin-right:auto}
.ehero.with-products .in .stand .row{justify-content:center}

.hero-comps{display:grid;grid-template-columns:repeat(8,1fr);gap:.75rem;margin:2.25rem auto 0;
  max-width:80rem;width:100%}
.hero-comps a{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.65rem;
  padding:1rem .5rem .9rem;border:1px solid var(--line-2);border-radius:14px;background:#fff;color:var(--ink);
  font-size:.82rem;font-weight:600;line-height:1.25;text-align:center;
  transition:border-color .15s,box-shadow .2s,transform .18s ease}
.hero-comps a:hover{border-color:var(--green-line);box-shadow:0 14px 28px -18px rgba(74,66,62,.45);
  transform:translateY(-3px);color:var(--green-d)}
.hc-ic{display:grid;place-items:center;width:4.4rem;height:4.4rem;flex:none}
.hc-ic img{width:4.4rem;height:4.4rem;object-fit:contain}
.hc-ic i,.hc-ic svg{width:2.4rem;height:2.4rem;color:var(--green)}
@media(max-width:1100px){.hero-comps{grid-template-columns:repeat(4,1fr)}}
@media(max-width:560px){
  .hero-comps{grid-template-columns:repeat(2,1fr);gap:.6rem;margin-top:1.75rem}
  .hero-comps a{padding:.85rem .4rem .8rem;font-size:.78rem;border-radius:12px}
}

/* with-label layout — single reading column, preceded by an eyebrow label */
.ehero.with-label{background: linear-gradient(to bottom, var(--bg-soft), var(--white));border-bottom:1px solid var(--line);}
.ehero.with-label .in{grid-template-columns:1fr;}
.ehero.with-label .in .column-inner{max-width:48rem;}
.ehero.with-label .in h1{max-width:none}
.ehero.with-label .in .stand{padding-top:0}
.ehero.with-label .in .stand p{max-width:none;line-height:1.5;font-size:1rem;}

/* breadcrumb — shown above the hero when enabled on the block */
.crumbbar{position:relative;z-index:1;background:var(--white)}
.breadcrumb{max-width:90rem;margin:0 auto;padding:1.15rem 2rem 0}
.breadcrumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;list-style:none;margin:0;padding:0;
  font-size:.83rem;color:var(--muted-2)}
.breadcrumb li:not(:last-child)::after{content:"/";margin-left:.4rem;color:var(--line-2)}
.breadcrumb a{display:inline-flex;align-items:center;gap:.35rem;color:var(--muted-2);font-weight:600;text-decoration:none;transition:color .15s}
.breadcrumb a:hover{color:var(--green)}
.breadcrumb i,.breadcrumb svg{width:.9rem;height:.9rem;flex:none}
.breadcrumb li[aria-current="page"]{color:var(--ink);font-weight:700}
@media(max-width:560px){.breadcrumb{padding:1rem 1.15rem 0}}

/* the photograph never moves — it stays fixed to the viewport, behind the page */
.ehero-bg{position:sticky;height:calc(100dvh - 5rem);z-index:0;overflow:hidden;background:#dfe9f1;top:5rem;}
.ehero-bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 55%;display:block}

/* relative display — the photograph scrolls with the page instead of staying pinned */
.ehero-bg.ehero-bg-relative{position:relative;inset:auto;}
.ehero-bg.ehero-bg-relative img{position:relative;}
@media(max-width:700px){.ehero-bg.ehero-bg-relative{height:42vh}}

/* transparent window — the fixed photograph shows through here while the page scrolls */
.ehero-window{position:relative;z-index:0;height:78vh;height:78dvh;pointer-events:none}
@media(max-width:700px){.ehero-window{height:56vh;height:56dvh}}
