/* ==========================================================================
   Home hero: text slides, offer banners and slider controls
   (managed in myadmin > Home hero). Loaded after main.css and home.css.
   No inline styles are needed: the page's content security policy blocks them.
   ========================================================================== */

.hero { position: relative; }
.hero-stage { display: grid; touch-action: pan-y; }
.hs { grid-area: 1 / 1; min-width: 0; align-self: center; }

/* Headline of the second and later text slides (the first one is the page's h1 and uses .hero h1 of main.css) */
.hero h2.hero-h { margin-top: 16px; font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.hero h2.hero-h span { color: var(--g500); }

/* A text slide without an image: the text uses the full width */
.hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
.hero-grid--solo .hero-copy { max-width: 760px; }

/* Offer banner */
.hs-bn { padding-block: 24px 12px; }
.hb { display: block; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.hb picture { display: block; }
.hb img { display: block; width: 100%; height: auto; }
a.hb { color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
a.hb:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(var(--g950-rgb) / .06), 0 16px 34px rgb(var(--g950-rgb) / .12); }
a.hb:focus-visible { outline-offset: 3px; border-radius: var(--radius); }

/* More than one slide: the slides lie on top of each other, so the hero keeps the height of the tallest one
   and nothing below it jumps when the slide changes. */
.hero--multi .hero-grid { padding-bottom: 12px; }
.hero--multi .hs { opacity: 0; visibility: hidden; transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s; }
.hero--multi .hs.is-active { opacity: 1; visibility: visible; transition: opacity .55s ease, transform .55s ease, visibility 0s; }
.hero--slide .hs { transform: translate3d(36px, 0, 0); }
.hero--slide .hs.is-before { transform: translate3d(-36px, 0, 0); }
.hero--slide .hs.is-active { transform: none; }

/* Controls */
.hero-ctl { display: flex; align-items: center; justify-content: center; gap: 8px; padding-bottom: 16px; }
.hc-btn { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; color: var(--g800); background: #fff; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; box-shadow: 0 1px 2px rgb(var(--g950-rgb) / .06); transition: background-color .2s ease, border-color .2s ease; }
.hc-btn:hover { background: var(--g50); border-color: var(--g200); }
.hc-play .i-play { display: none; }
.hc-play.is-paused .i-play { display: block; }
.hc-play.is-paused .i-pause { display: none; }
.hc-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
.hc-dot { position: relative; width: 24px; height: 24px; padding: 0; background: transparent; border: 0; cursor: pointer; transition: width .25s ease; }
.hc-dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-radius: 999px; background: var(--c-b7d9c4); transform: translate(-50%, -50%); transition: width .25s ease, background-color .25s ease; }
.hc-dot:hover::before { background: var(--g400); }
.hc-dot.is-active { width: 34px; }
.hc-dot.is-active::before { width: 26px; background: var(--g600); }

@media (max-width: 767px) {
  .hs-bn { padding-block: 16px 8px; }
  .hb { border-radius: 12px; }
}
@media (max-width: 479px) {
  .hc-prev, .hc-next { display: none; }   /* phones: swipe or use the dots */
}
@media (prefers-reduced-motion: reduce) {
  .hero--multi .hs, .hero--multi .hs.is-active { transition: none; }
  a.hb, .hc-btn, .hc-dot, .hc-dot::before { transition: none; }
  a.hb:hover { transform: none; }
}
