/* ==========================================================================
   Brand identities and responsive promotional hero slideshows
   Promotional banner artwork is kept separate from the R2 product catalogue.
   ========================================================================== */

/* Shared header-logo sizing is managed by experience-v8.css. */
.footer-brand {
  display: block !important;
  width: min(230px, 100%);
  margin: 0 0 18px !important;
}
.footer-brand-logo {
  display: block;
  width: min(220px, 100%);
  height: auto;
  max-height: 86px;
  object-fit: contain;
  object-position: left center;
}
.company-brand-lockup {
  display: block;
  width: min(520px, 100%);
  height: auto;
  margin: 22px 0;
  object-fit: contain;
}

/* Company logo paired with the live hero eyebrow on all three hero routes. */
.home-company-lockup,
.brand-company-lockup {
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
}
.hero-company-logo {
  display: block;
  flex: 0 1 auto;
  width: clamp(132px, 16vw, 190px);
  height: auto;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  mix-blend-mode: normal;
  filter: none;
}
.home-company-lockup > span,
.brand-company-lockup > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.brand-company-lockup .hero-company-logo {
  width: clamp(112px, 12vw, 150px);
  max-height: 48px;
}
.home-play-brand-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 6px 10px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(38,75,126,.08);
  border-radius: 999px;
  box-shadow: 0 5px 15px rgba(30,55,93,.08);
}
.home-play-brand-pills img {
  display: block;
  width: auto;
  max-width: min(28vw, 178px);
  height: clamp(34px, 4.2vw, 48px);
  object-fit: contain;
  background: transparent;
  mix-blend-mode: normal;
  filter: none;
}
.brand-range-brand-logo {
  position: absolute;
  z-index: 8;
  top: 18px;
  right: 20px;
  display: block;
  width: min(34%, 220px);
  height: 76px;
  max-height: 105px;
  object-fit: contain;
  object-position: right top;
  padding: 7px 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 8px 22px rgba(24,54,96,.12);
  mix-blend-mode: normal;
  filter: none;
}

/* The art panel is a single, contained visual frame. Each image retains its
   complete composition; no product is cropped to fill the frame. */
.home-play-stage,
.brand-range-playyard {
  position: relative !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: clamp(360px, 39vw, 535px) !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border: 7px solid rgba(255,255,255,.94);
  border-radius: clamp(22px, 2.6vw, 34px);
  background: linear-gradient(145deg,#e8f7ff,#fff5df 65%,#e9f7d9);
  box-shadow: 0 22px 54px rgba(30,63,104,.15), 0 4px 0 rgba(255,255,255,.55) inset;
}
.brand-range-playyard {
  height: clamp(340px, 36vw, 490px) !important;
  background: linear-gradient(145deg,#e4f5ff,#fff3d7 65%,#eaf8df);
}
.brand-range-hero-playwave .brand-range-playyard {
  background: linear-gradient(145deg,#e4f4ff,#fff0dc 65%,#fff4c9);
}
.hero-slideshow-visual {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.hero-slideshow-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px) scale(.985);
  transition: opacity .52s ease, transform .65s cubic-bezier(.2,.7,.2,1), visibility .52s;
}
.hero-slideshow-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}
.hero-slideshow-slide img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 15px;
  background: transparent !important;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 8px 14px rgba(30,52,83,.08));
}
.home-play-stage > .home-stage-stamp,
.home-play-stage > .home-stage-caption,
.brand-range-playyard > .brand-range-bubble,
.brand-range-playyard > .brand-range-stage-caption {
  z-index: 6 !important;
}
.home-play-stage .home-stage-stamp {
  right: 3%;
  bottom: 12%;
  opacity: .94;
}
.home-play-stage .home-stage-caption,
.brand-range-playyard .brand-range-stage-caption {
  left: 4%;
  bottom: 4%;
  z-index: 7;
}
.brand-range-playyard .brand-range-bubble {
  right: 3%;
  bottom: 12%;
  z-index: 7;
}

/* Controls are hidden without JavaScript, then enabled after the carousel
   has fully initialized. They remain reachable by keyboard and touch. */
.hero-carousel-controls {
  position: absolute !important;
  z-index: 20 !important;
  left: 50% !important;
  bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 42px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.98);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 22px rgba(29,63,105,.18);
  visibility: hidden;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}
[data-hero-slideshow].hero-carousel-ready .hero-carousel-controls {
  visibility: visible;
}
.hero-carousel-arrow,
.hero-carousel-dot {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 29px;
  width: 29px;
  height: 29px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eaf4ff;
  color: #1e477f;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.hero-carousel-arrow:hover,
.hero-carousel-arrow:focus-visible {
  background: #1d4e91;
  color: #fff;
}
.hero-carousel-arrow:focus-visible,
.hero-carousel-dot:focus-visible {
  outline: 3px solid #f4c93c;
  outline-offset: 2px;
}
.hero-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hero-carousel-dot {
  min-width: 8px;
  width: 8px;
  height: 8px;
  background: #b8cce2;
  transition: width .2s ease, background .2s ease;
}
.hero-carousel-dot[aria-pressed="true"] {
  width: 21px;
  border-radius: 99px;
  background: #f04a7d;
}
.hero-carousel-counter {
  min-width: 38px;
  color: #244a7c;
  font-size: .57rem;
  font-weight: 1000;
  letter-spacing: .06em;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .hero-company-logo { width: clamp(122px, 16vw, 166px); }
  .home-play-brand-pills img { max-width: 150px; }
  .brand-range-brand-logo { width: min(34%, 190px); height: 66px; }
  .home-play-stage { height: clamp(330px, 42vw, 440px) !important; }
  .brand-range-playyard { height: clamp(310px, 38vw, 410px) !important; }
}

@media (max-width: 760px) {
  .footer-brand-logo { width: 195px; }
  .home-company-lockup,
  .brand-company-lockup {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 9px;
    padding: 8px 11px;
  }
  .home-company-lockup .hero-company-logo {
    width: 142px;
    max-height: 48px;
    object-position: center;
  }
  .brand-company-lockup .hero-company-logo {
    width: 112px;
    max-height: 39px;
    object-position: center;
  }
  .home-play-brand-pills { gap: 7px; }
  .home-play-brand-pills span { padding: 5px 9px; }
  .home-play-brand-pills img { height: 37px; max-width: 145px; }
  .home-play-stage,
  .brand-range-playyard {
    width: 100%;
    height: clamp(230px, 67vw, 315px) !important;
    min-height: 0 !important;
    margin-top: 8px;
    border-width: 5px;
    border-radius: 22px;
  }
  .hero-slideshow-slide { padding: 8px; }
  .hero-slideshow-slide img { border-radius: 12px; }
  .brand-range-brand-logo {
    top: 10px;
    right: 10px;
    width: min(31%, 130px);
    height: 48px;
    padding: 5px 7px;
    border-radius: 12px;
  }
  .home-play-stage .home-stage-stamp,
  .brand-range-playyard .brand-range-bubble { display: none !important; }
  .home-play-stage .home-stage-caption,
  .brand-range-playyard .brand-range-stage-caption { display: none !important; }
  .hero-carousel-controls {
    bottom: 8px !important;
    min-height: 34px;
    gap: 5px !important;
    padding: 4px 7px;
  }
  .hero-carousel-arrow {
    min-width: 25px;
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }
  .hero-carousel-dot { min-width: 7px; width: 7px; height: 7px; }
  .hero-carousel-dot[aria-pressed="true"] { width: 17px; }
  .hero-carousel-counter { min-width: 31px; font-size: .5rem; }
}
@media (max-width: 420px) {
  .home-company-lockup .hero-company-logo { width: 128px; max-height: 42px; }
  .brand-company-lockup .hero-company-logo { width: 96px; max-height: 32px; }
  .home-play-brand-pills img { height: 31px; max-width: 128px; }
  .brand-range-brand-logo { width: min(29%, 112px); height: 40px; }
  .home-play-stage,
  .brand-range-playyard { height: clamp(215px, 65vw, 270px) !important; }
  .hero-carousel-controls { gap: 4px !important; }
  .hero-carousel-arrow { min-width: 23px; width: 23px; height: 23px; }
  .hero-carousel-counter { min-width: 28px; font-size: .46rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow-slide,
  .hero-carousel-arrow,
  .hero-carousel-dot { transition: none !important; }
}
