/* Vanilla hero slider (never-break)
   Fail-safe rules:
   - If JS fails: show ALL slides in a horizontal scroll carousel (swipe/trackpad works).
   - If JS loads: we "lock" it into an autoplay/controls slider (overflow hidden + transforms).
*/

.ps-hero-section{
  margin-top: 10px;
  margin-bottom: 12px;
}

.ps-hero-slider {
  position: relative;
  width: 100%;
  /* ✅ NO-JS fallback: horizontal scroll carousel */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 14px;
  background: #f6f7f9;
}

/* ✅ JS mode: lock the slider (no scrollbars, we animate via transforms) */
html.hero-js .ps-hero-slider {
  overflow: hidden;
}

/* ✅ Height: 50% desktop, 35% mobile */
.ps-hero-slider {
  height: 50vh;
  min-height: 240px;
  max-height: 520px;
}
@media (max-width: 768px) {
  .ps-hero-slider {
    height: 35vh;
    min-height: 170px;
    max-height: 360px;
  }
}

.ps-hero-track {
  height: 100%;
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.ps-hero-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Images always visible (no opacity traps) */
.ps-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Always show all slides (NO-JS fallback uses horizontal scroll) */
.ps-hero-slide { display: block; }

/* Minimal arrows (desktop only) */
.ps-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,0.30);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  user-select: none;
}
.ps-hero-arrow:hover { background: rgba(0,0,0,0.44); }
.ps-hero-arrow:active { transform: translateY(-50%) scale(0.98); }

.ps-hero-arrow.left { left: 12px; }
.ps-hero-arrow.right { right: 12px; }

@media (max-width: 768px) {
  .ps-hero-arrow { display: none; }
}

/* Dots */
.ps-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 6;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.16);
  backdrop-filter: blur(4px);
}

.ps-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
}
.ps-hero-dot.is-active {
  width: 16px;
  background: rgba(255,255,255,0.92);
}

/* Overlay + CTA */
.ps-hero-overlay{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  max-width:680px;
  color:#fff;
  z-index:7;
  pointer-events:none;
}
.ps-hero-eyebrow{
  display:inline-block;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.92;
  margin-bottom:6px;
}
.ps-hero-headline{
  font-size:28px;
  line-height:1.08;
  font-weight:700;
  margin-bottom:6px;
  text-shadow:0 8px 20px rgba(0,0,0,.35);
}
.ps-hero-subtext{
  font-size:14px;
  opacity:.92;
  margin-bottom:10px;
  text-shadow:0 6px 18px rgba(0,0,0,.35);
}
.ps-hero-cta{
  pointer-events:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  font-weight:600;
  text-decoration:none;
  backdrop-filter: blur(6px);
}
.ps-hero-cta:hover{ background:rgba(0,0,0,.48); }
@media (max-width: 768px){
  .ps-hero-headline{ font-size:22px; }
}


/* Hero hardening: avoid duplicated glass treatment on nested slider layers */
.ps-hero-track,
.ps-hero-slide,
.ps-hero-slide > a,
.ps-hero-overlay,
.ps-hero-eyebrow,
.ps-hero-headline,
.ps-hero-subtext,
.ps-hero-dots,
.ps-hero-arrow {
  background: transparent !important;
  box-shadow: none !important;
}

.ps-hero-slider img {
  background: transparent !important;
}

.ps-hero-slide > a {
  display: block;
  width: 100%;
  height: 100%;
}

.ps-hero-overlay {
  pointer-events: none;
}

.ps-hero-cta {
  pointer-events: auto;
}
