/* Pawon Nusantara v6.8 — dynamic hero menu carousel */
.hero-slider{
  --hero-slide-duration:5000ms;
  isolation:isolate;
  outline:none;
}
.hero-slider__link{
  display:block;
  color:inherit;
  text-decoration:none;
  transform:translateZ(0);
}
.hero-slider__image{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  opacity:0;
  transform:scale(1.055) translate3d(10px,0,0);
  filter:saturate(.88) contrast(.96) brightness(.96);
  transition:
    opacity .68s cubic-bezier(.22,.61,.36,1),
    transform 1.05s cubic-bezier(.22,.61,.36,1),
    filter .72s ease;
  will-change:opacity,transform,filter;
}
.hero-slider__image.is-active{
  z-index:2;
  opacity:1;
  transform:scale(1) translate3d(0,0,0);
  filter:saturate(1.03) contrast(1.01) brightness(1);
}
.hero-slider__glow{
  position:absolute;
  z-index:3;
  inset:-28%;
  pointer-events:none;
  background:
    radial-gradient(circle at 84% 8%,rgba(255,202,40,.23),transparent 24%),
    radial-gradient(circle at 8% 92%,rgba(101,185,29,.14),transparent 26%);
  mix-blend-mode:screen;
  opacity:.72;
  transform:rotate(-7deg);
}
.hero-slider__shade{
  position:absolute;
  z-index:3;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg,rgba(24,13,7,0) 52%,rgba(24,13,7,.34) 100%),
    linear-gradient(90deg,rgba(255,255,255,.05),transparent 42%);
}
.hero-slider__badge{
  position:absolute;
  z-index:5;
  left:18px;
  top:18px;
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(239,35,21,.94),rgba(255,134,21,.94));
  box-shadow:0 9px 24px rgba(93,32,6,.2);
  color:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.075em;
  text-transform:uppercase;
  backdrop-filter:blur(10px);
  transition:opacity .24s ease,transform .24s ease;
}
.hero-slider .hero-visual__card{
  z-index:7;
  width:min(290px,58%);
  max-width:290px;
  min-height:86px;
  padding:13px 16px;
  border-color:rgba(255,255,255,.82);
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,249,238,.91));
  box-shadow:0 20px 44px rgba(59,30,12,.19);
  transition:opacity .24s ease,transform .32s cubic-bezier(.22,.61,.36,1);
}
.hero-slider .hero-visual__card.is-updating{
  opacity:.12;
  transform:translateY(8px) scale(.975);
}
.hero-slider .hero-visual__icon{
  background:linear-gradient(145deg,#ffefb8,#ffb84c);
  color:#b42b14;
  box-shadow:inset 0 0 0 1px rgba(255,134,21,.2);
}
.hero-slider__copy{
  min-width:0;
}
.hero-slider__copy small{
  display:block;
  margin:0 0 3px;
  color:#9b3b20;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1.2;
  text-transform:uppercase;
}
.hero-slider__copy strong{
  display:block;
  overflow:hidden;
  color:#2f1a11;
  font-size:16px;
  font-weight:900;
  line-height:1.18;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hero-slider__copy span{
  display:block;
  margin-top:4px;
  color:#257014;
  font-size:12px;
  font-weight:900;
}
.hero-slider__controls{
  position:absolute;
  z-index:8;
  right:18px;
  bottom:18px;
  display:flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:5px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:999px;
  background:rgba(32,20,13,.72);
  box-shadow:0 14px 32px rgba(27,14,8,.23);
  color:#fff;
  backdrop-filter:blur(14px);
}
.hero-slider__button{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font:inherit;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.hero-slider__button:hover,
.hero-slider__button:focus-visible{
  background:#fff;
  color:#d63218;
  transform:scale(1.06);
  outline:none;
}
.hero-slider__counter{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding-inline:3px;
  font-size:10px;
  font-variant-numeric:tabular-nums;
  letter-spacing:.05em;
}
.hero-slider__counter b{color:#ffd05b;font-size:12px}
.hero-slider__counter i{opacity:.45;font-style:normal}
.hero-slider__counter span{opacity:.78}
.hero-slider__progress{
  position:absolute;
  z-index:9;
  left:12px;
  right:12px;
  bottom:6px;
  height:3px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.25);
  pointer-events:none;
}
.hero-slider__progress span{
  display:block;
  width:100%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#ffdf50,#ff8214,#ef2315);
  box-shadow:0 0 14px rgba(255,199,41,.72);
  transform:scaleX(0);
  transform-origin:left center;
}
.hero-slider__progress span.is-running{
  animation:heroSlideProgress var(--hero-slide-duration) linear forwards;
}
.hero-slider.is-transitioning .hero-slider__badge{
  opacity:.4;
  transform:translateY(-4px);
}
.hero-slider:focus-within .hero-visual__frame{
  box-shadow:0 0 0 4px rgba(255,134,21,.2),0 25px 60px rgba(87,38,7,.2);
}
@keyframes heroSlideProgress{
  from{transform:scaleX(0)}
  to{transform:scaleX(1)}
}

@media(max-width:680px){
  .hero-slider__badge{left:11px;top:11px;min-height:28px;padding-inline:9px;font-size:8px}
  .hero-slider .hero-visual__card{left:11px;right:105px;bottom:12px;width:auto;max-width:none;min-height:66px;padding:9px 11px}
  .hero-slider .hero-visual__icon{width:34px;height:34px;border-radius:10px;font-size:16px}
  .hero-slider__copy small{font-size:8px}
  .hero-slider__copy strong{font-size:13px}
  .hero-slider__copy span{font-size:10px}
  .hero-slider__controls{right:11px;bottom:12px;min-height:40px;padding:4px}
  .hero-slider__button{width:31px;height:31px;font-size:14px}
  .hero-slider__counter{display:none}
  .hero-slider__progress{left:8px;right:8px;bottom:4px;height:2px}
}

@media(max-width:480px){
  .hero-slider .hero-visual__card{display:flex;right:92px;min-height:58px}
  .hero-slider .hero-visual__icon{display:none}
  .hero-slider__copy strong{font-size:12px}
  .hero-slider__copy span{margin-top:2px}
}

@media(prefers-reduced-motion:reduce){
  .hero-slider__image,
  .hero-slider .hero-visual__card,
  .hero-slider__badge,
  .hero-slider__button{transition:none!important}
  .hero-slider__image{transform:none!important}
  .hero-slider__progress span.is-running{animation:none}
}
