/* =========================================================
   HERO SLIDER — all slides share one grid cell, so the section
   is as tall as the tallest slide. Slides cross-fade (no sliding).

   Two layouts, chosen only by whether the hero has an image:
     .hero-slide.is-plain  -> dark & centered
     .hero-slide.has-img   -> text left, black-blue-transparent
                              gradient fading into the photo
   ========================================================= */

:root { --blue: rgba(26, 77, 128, 0.55); }

.hero-slider { position: relative; background: #000; overflow: hidden; }
.hero-stage { display: grid; }

.hero-slide {
  --hero-bg: var(--black);
  --hero-ink: #ffffff;
  --hero-muted: #fffffe;

  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  min-height: 560px;
  display: flex;
  align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }

.hs-media { position: absolute; inset: 0; z-index: 0; }
.hs-inner { position: relative; z-index: 1; width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 40px; }

.hs-title { margin: 0 0 1.25rem; font-family: var(--font-display); font-weight: bold; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.14; color: var(--hero-ink); }
.hs-wording { margin: 0 0 2.25rem; font-size: 1.05rem; line-height: 1.6; color: var(--hero-muted); }
.hs-btn { display: inline-block; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease; }

/* ---------- Layout A: no image — dark & centered ---------- */
.hero-slide.is-plain { justify-content: center; text-align: center; padding: 70px 24px; }
.hero-slide.is-plain .hs-media { display: none; }
.hero-slide.is-plain .hs-inner { padding: 0; }
.hero-slide.is-plain .hs-text { max-width: 620px; margin: 0 auto; }
.hero-slide.is-plain .hs-title em { font-style: italic; color: var(--pink); }
.hero-slide.is-plain .hs-wording { max-width: 520px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,.75); }
.hero-slide.is-plain .hs-btn { padding: 13px 26px; border-radius: 999px; font-weight: 700; background: var(--pink); color: #000; }
.hero-slide.is-plain .hs-btn:hover { background: var(--red); color: #fff; }

/* ---------- Layout B: image — text left, black -> blue -> transparent over the photo ---------- */
.hero-slide.has-img .hs-media img {
  display: block;
  width: 100%;
  height: 100%;
  margin-left: auto;
  object-fit: cover;
  object-position: right 70%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 5%, rgba(0,0,0,.6) 70%, #000 90%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 5%, rgba(0,0,0,.6) 70%, #000 90%);
}
.hero-slide.has-img .hs-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--hero-bg) 0%, var(--blue) 32%, transparent 58%);
}
.hero-slide.has-img .hs-text { max-width: 460px; padding: 7vw 0; }
.hero-slide.has-img .hs-title em { font-family: "Calibri", "Carlito", sans-serif; font-style: italic; color: var(--red); }
.hero-slide.has-img .hs-btn {
  background: var(--hero-ink);
  color: var(--hero-bg);
  font-family: "Calibri", "Carlito", sans-serif;
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.75rem;
  border-radius: 3px;
}
.hero-slide.has-img .hs-btn:hover,
.hero-slide.has-img .hs-btn:focus-visible { background: var(--hero-ink); transform: translateY(-1px); }

/* ---------- Dots ---------- */
.hero-dots {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 8px; padding: 6px 11px; border-radius: 999px; background: rgba(0,0,0,.45);
}
.hero-dots:empty { display: none; }
.hero-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: width .25s ease, background-color .25s ease; }
.hero-dot.is-active { width: 24px; border-radius: 999px; background: var(--pink); }

/* ---------- Mobile ---------- */
@media (max-width: 650px) {
  .hero-slide { min-height: 480px; }

  .hero-slide.has-img .hs-media img {
    filter: brightness(.4);
    -webkit-mask-image: none;
    mask-image: none;
    object-position: right 90%;
  }
  .hero-slide.has-img .hs-media::after { background: rgba(26, 77, 128, .35); }
  .hero-slide.has-img .hs-inner { padding: 0 20px; }
  .hero-slide.has-img .hs-text { padding: 18vw 0 14vw; }
  .hs-title { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active { transition: none; }
}
