/* Test V3: clean video hero with a separate retailer strip below. */
body.home .hero-video-test-v3 {
  background-color: #0a2540 !important;
}

/* Keep the header in normal document flow while it remains sticky. This is
   deliberately more specific than the legacy fixed-header runtime rule: no
   duplicate body spacer can appear between header and hero in WordPress. */
html body.mybidet-wordpress-render.home {
  padding-top: 0 !important;
}

html body.mybidet-wordpress-render.home header.site,
html body.mybidet-wordpress-render.home header.site.site-hidden {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
}

body.mybidet-wordpress-render.home .hero-video-test-v3 {
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background-image: none !important;
}

body.home .hero-video-test-v3 .hero-video-shade,
body.home .hero-video-test-v3 .hero-copy,
body.home .hero-video-test-v3 .hero-seal-float,
body.home .hero-video-test-v3 .hero-stage,
body.home .hero-video-test-v3 .hero-water {
  display: none !important;
}

body.home .hero-video-test-v3 .hero-video-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background:
    radial-gradient(circle at 50% 48%, #f1f3f6 0%, #e7eaf0 48%, #d9dee7 100%) !important;
}

/* On common laptop screens, the video and retailer strip fit into the first
   viewport. On taller displays the cap prevents an unnecessarily huge hero. */
@media (min-width: 761px) {
  body.mybidet-wordpress-render.home .hero-video-test-v3,
  body.mybidet-wordpress-render.home .hero-video-test-v3.hero-fullbleed {
    width: 100% !important;
    min-height: 0 !important;
    height: clamp(360px, calc(100svh - var(--mybidet-v3-header-height, 72px) - var(--mybidet-v3-retailer-height, 142px)), 760px) !important;
    max-height: 760px !important;
    padding: 0 !important;
  }

  /* Keep the complete 16:9 frame visible. The quiet background fills wider
     laptop stages without black bars or hard edges. */
  body.home .hero-video-test-v3 .hero-video-player.hero-video-foreground {
    z-index: 1 !important;
    inset: 0 auto 0 50% !important;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    aspect-ratio: 16 / 9;
    object-fit: cover !important;
    object-position: 50% 50% !important;
    background: transparent !important;
    transform: translateX(-50%) !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3.5%, #000 96.5%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 3.5%, #000 96.5%, transparent 100%);
  }

}

body.home .hero-video-test-v3 .hero-video-player {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
  filter: none !important;
}

body.home .hero-video-test-v3 .hero-video-sound-floating {
  position: absolute !important;
  right: clamp(1rem, 3vw, 2rem) !important;
  bottom: clamp(1rem, 3vw, 2rem) !important;
  z-index: 6 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  margin: 0 !important;
  padding: 10px !important;
  color: #fff !important;
  background: rgba(6, 26, 44, 0.64) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.8) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

body.home .hero-retailer-band {
  position: relative;
  z-index: 2;
  padding: 1rem 0 1.1rem !important;
  background: #f7f2e8 !important;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
  border-bottom: 1px solid rgba(10, 37, 64, 0.1);
  box-shadow: 0 14px 34px -32px rgba(10, 37, 64, 0.45);
}

body.home .hero-retailer-band-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

body.home .hero-retailer-message {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding: 0.35rem 0 0.55rem;
}

body.home .hero-retailer-message-title {
  margin: 0 !important;
  color: #0a2540 !important;
  font-family: "Archivo", "Bricolage Grotesque", "Mona Sans", system-ui, sans-serif !important;
  font-size: clamp(3.4rem, 5.2vw, 5.6rem) !important;
  font-weight: 900 !important;
  line-height: 0.82 !important;
  letter-spacing: -0.065em !important;
  text-align: center;
}

body.home .hero-retailer-message-title span {
  display: block;
}

body.home .hero-retailer-message-title .hero-retailer-message-accent {
  color: #1bb6c6 !important;
  -webkit-text-fill-color: #1bb6c6 !important;
}

body.home .hero-retailer-message-copy {
  max-width: 920px;
  margin: 0 !important;
  color: #334155;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: balance;
}

body.home .hero-retailer-message-copy strong {
  color: #0a2540;
  font-weight: 800;
}

body.home .hero-retailer-band-note {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  justify-content: center;
  width: 100%;
  color: #0a2540;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 800;
  white-space: nowrap;
}

body.home .hero-retailer-band-note .hero-shelf-badge-icon {
  width: 22px;
  height: 22px;
  color: #6f8f57;
}

body.home .hero-retailer-band .hero-retailers {
  width: min(100%, 760px);
  margin-inline: auto;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.45rem, 1vw, 0.8rem) !important;
}

body.home .hero-retailer-band .hero-retailer {
  min-width: 0;
  height: 58px !important;
  min-height: 58px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.45rem 0.8rem !important;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid rgba(10, 37, 64, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 9px 24px -20px rgba(10, 37, 64, 0.6) !important;
}

body.home .hero-retailer-band .hero-retailer img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 82% !important;
  max-height: 30px !important;
  object-fit: contain !important;
  transform: none !important;
}

body.home .hero-retailer-band .hero-retailer[href*="rossmann"] img {
  max-width: 88% !important;
  max-height: 19px !important;
}

body.home .hero-retailer-band .hero-retailer[href*="budni"] img {
  max-height: 31px !important;
}

@media (max-width: 760px) {
  body.mybidet-wordpress-render.home .hero-video-test-v3 {
    margin-top: 0 !important;
  }

  /* Mobile V3: a compact portrait viewport instead of the previous almost
     full-screen stage. The dedicated 720 x 920 source preserves the useful
     mobile composition while cover crops only small amounts at the edges. */
  body.mybidet-wordpress-render.home .hero-video-test-v3,
  body.mybidet-wordpress-render.home .hero-video-test-v3.hero-fullbleed,
  body.mybidet-wordpress-render.home .hero-video-test-v3 .hero-fullbleed {
    width: 100% !important;
    min-height: 0 !important;
    height: clamp(430px, 58svh, 500px) !important;
    max-height: 500px !important;
    padding: 0 !important;
  }

  body.home .hero-video-test-v3 .hero-video-player {
    object-fit: cover !important;
    object-position: 50% 50% !important;
  }

  body.home .hero-video-test-v3 .hero-video-sound-floating {
    right: 0.75rem !important;
    bottom: 0.75rem !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 8px !important;
  }

  body.home .hero-retailer-band {
    padding: 0.7rem 0 !important;
  }

  body.home .hero-retailer-band-inner {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
  }

  body.home .hero-retailer-message {
    gap: 0.6rem;
    padding: 0.2rem 0 0.45rem;
  }

  body.home .hero-retailer-message-title {
    font-size: clamp(2.75rem, 14vw, 3.65rem) !important;
    line-height: 0.84 !important;
    letter-spacing: -0.06em !important;
  }

  body.home .hero-retailer-message-copy {
    max-width: 34ch;
    font-size: clamp(0.98rem, 4.4vw, 1.08rem);
    line-height: 1.42;
  }

  body.home .hero-retailer-band-note {
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1.25;
    font-weight: 800;
    white-space: normal;
    text-align: center;
  }

  body.home .hero-retailer-band-note .hero-shelf-badge-icon {
    width: 18px;
    height: 18px;
  }

  body.home .hero-retailer-band .hero-retailers {
    width: 100%;
    gap: 0.35rem !important;
  }

  body.home .hero-retailer-band .hero-retailer {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0.25rem 0.35rem !important;
    border-radius: 12px !important;
  }

  body.home .hero-retailer-band .hero-retailer img {
    max-width: 86% !important;
    max-height: 23px !important;
  }

  body.home .hero-retailer-band .hero-retailer[href*="rossmann"] img {
    max-width: 94% !important;
    max-height: 14px !important;
  }

  body.home .hero-retailer-band .hero-retailer[href*="budni"] img {
    max-height: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .hero-video-test-v3 .hero-video-sound-floating {
    display: none !important;
  }
}
