/* ============================================================
   Konfort — Hero slider (Swiper)
   Full-width carousel, one slide per product/solution.
   Reference: orvibo.com home banner (1920×900, ~2.13:1, dots
   pagination, 1s slide transition). Copy lives in HTML.
   ============================================================ */

.hero--slider {
  display: block;            /* override .hero flex */
  min-height: 0;
  padding: 0;
  background: var(--bg-0);
}

.hero-swiper {
  position: relative;
  width: 100%;
  /* Orvibo proportion (1920×900) clamped so text always fits */
  height: clamp(560px, 46.875vw, 820px);
  overflow: hidden;
}

/* Each slide = the old .hero layout */
.hero-slide {
  position: relative;
  display: flex; align-items: center;
  height: 100%;
  overflow: hidden;
  background: var(--bg-0);
}
.hero-slide .hero__inner {
  padding: 96px 0 120px;      /* room for the dots at the bottom */
}
.hero-slide .hero__media img {
  transform: scale(1.06);
  transition: transform 6s ease-out;
}
.swiper-slide-active .hero__media img {
  transform: scale(1);        /* subtle Ken Burns on the active slide */
}

/* Slides with copy over a photo: lighter dim than the original hero so the
   photo still reads; the left gradient from styles.css keeps the text legible. */
.hero-slide:not(.hero-slide--media-only) .hero__media img {
  filter: brightness(.8) saturate(.9);
}
.hero-slide:not(.hero-slide--media-only) .hero__media::after {
  background:
    linear-gradient(180deg, rgba(11,11,12,.25) 0%, rgba(11,11,12,.35) 60%, var(--bg-0) 100%),
    linear-gradient(90deg, rgba(11,11,12,.88) 0%, rgba(11,11,12,.55) 45%, rgba(11,11,12,.15) 100%);
}

/* Background video (same treatment as the image) */
.hero-slide .hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(.7) saturate(.9);
}

/* "Media-only" slides: the image already carries its own copy (Orvibo
   banners). Show it clean — no dimming, no gradient — and hide the HTML
   copy visually while keeping it for SEO / screen readers. */
.hero-slide--media-only .hero__media img,
.hero-slide--media-only .hero__media video {
  filter: none;
  transform: none;
}
.hero-slide--media-only .hero__media::after { display: none; }
.hero-slide--media-only .hero__inner {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Staggered copy reveal on the active slide */
.hero-slide .eyebrow,
.hero-slide .h1,
.hero-slide .lede,
.hero-slide .hero__cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.swiper-slide-active .eyebrow   { opacity: 1; transform: none; transition-delay: .15s; }
.swiper-slide-active .h1        { opacity: 1; transform: none; transition-delay: .25s; }
.swiper-slide-active .lede      { opacity: 1; transform: none; transition-delay: .35s; }
.swiper-slide-active .hero__cta { opacity: 1; transform: none; transition-delay: .45s; }

/* Pagination dots — Orvibo style, centered, 40px from the bottom */
.hero-swiper__pagination.swiper-pagination {
  position: absolute;
  left: 0; right: 0;
  bottom: 40px;
  z-index: 3;
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.hero-swiper__pagination .swiper-pagination-bullet {
  width: 8px; height: 8px;
  margin: 0;
  border-radius: var(--r-pill);
  background: var(--text);
  opacity: .35;
  transition: width .3s ease, opacity .3s ease, background .3s ease;
}
.hero-swiper__pagination .swiper-pagination-bullet-active {
  width: 28px;
  opacity: 1;
  background: var(--gold);
}

/* Responsive */
@media (max-width: 920px) {
  .hero-swiper { height: clamp(520px, 90vh, 720px); }
  .hero-slide .hero__inner { padding: 72px 0 110px; }
}
@media (max-width: 640px) {
  .hero-slide .hero__inner { padding: 56px 0 100px; }
  .hero-swiper__pagination.swiper-pagination { bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide .hero__media img { transform: none; transition: none; }
  .hero-slide .eyebrow, .hero-slide .h1, .hero-slide .lede, .hero-slide .hero__cta {
    opacity: 1; transform: none; transition: none;
  }
}
