/* ===== محله کسب‌وکار — اسلایدر سینمایی تمام‌عرض (هم‌ابعاد هیرو صفحه اصلی) ===== */
.phbs{
  --phbs-blue:#0b2440; --phbs-orange:#f59e0b; --phbs-ink:#08131f;
  position:relative; width:100%; height:373px; overflow:hidden; isolation:isolate;
  background:#050b12; color:#fff; direction:rtl;
  font-family:Vazirmatn,system-ui,-apple-system,"Segoe UI",sans-serif;
  opacity:0; transition:opacity .45s ease;
}
.phbs.is-ready{opacity:1}
@media (max-width:822px){.phbs{height:260px}}
@media (max-width:639px){.phbs{height:238px}}

/* legacy hero hidden while ours is alive */
body.phbs-on #root main .phbs-legacy:not(:has(#phbs)){display:none!important}
body.phbs-on #root main{padding-top:0!important}
body.phbs-on #root main > section.phbs-legacy + section{margin-top:0}
body.phbs-on #phbs{margin-top:0}

.phbs__stage{position:absolute;inset:0}
.phbs__slide{
  position:absolute; inset:0; opacity:0; visibility:hidden;
  transition:opacity var(--t,740ms) cubic-bezier(.4,0,.2,1), visibility 0s linear var(--t,740ms);
  pointer-events:none;
}
.phbs__slide.is-active{opacity:1;visibility:visible;transition-delay:0s;pointer-events:auto;z-index:2}
.phbs__slide.is-leaving{z-index:1}

/* --- media layers (parallax + ken burns) --- */
.phbs__media{position:absolute;inset:0;overflow:hidden;background:#07101a}
.phbs__img{
  position:absolute;inset:-3%;width:106%;height:106%;
  object-fit:cover;object-position:var(--fx,50%) var(--fy,50%);
  transform:translate3d(0,0,0) scale(var(--z,1.02));
  transition:transform 9s cubic-bezier(.22,.61,.36,1);
  will-change:transform;
}
.phbs__slide.is-active .phbs__img{transform:translate3d(calc(var(--px,0) * -14px),calc(var(--py,0) * -8px),0) scale(var(--z2,1.07))}
.phbs__slide[data-preset="pan"]  .phbs__img{transform:translate3d(-2.2%,0,0) scale(1.1)}
.phbs__slide.is-active[data-preset="pan"] .phbs__img{transform:translate3d(2.2%,0,0) scale(1.1);transition-duration:9.5s}
.phbs__slide[data-preset="depth"] .phbs__img{transform:scale(1.04)}
.phbs__slide.is-active[data-preset="depth"] .phbs__img{transform:translate3d(calc(var(--px,0) * -24px),calc(var(--py,0) * -14px),0) scale(1.12);transition-duration:10s}
.phbs__slide[data-preset="static"] .phbs__img,
.phbs__slide.is-active[data-preset="static"] .phbs__img{transform:none;transition:none}

/* light sweep (cinematic reveal, GPU only) */
.phbs__sweep{
  position:absolute;inset:0;pointer-events:none;z-index:2;
  background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.13) 46%,transparent 62%);
  transform:translateX(-120%);opacity:0;
}
.phbs__slide.is-active .phbs__sweep{animation:phbsSweep 1.25s .12s cubic-bezier(.4,0,.2,1) 1}
@keyframes phbsSweep{0%{transform:translateX(-120%);opacity:0}18%{opacity:.9}100%{transform:translateX(120%);opacity:0}}

/* --- scrim: readable text on any photo, brand-tinted --- */
.phbs--right .phbs__scrim{background:linear-gradient(270deg,rgba(6,18,31,.94) 0%,rgba(6,18,31,.86) 26%,rgba(6,18,31,.45) 52%,rgba(6,18,31,.06) 78%,transparent 100%)}
.phbs--left  .phbs__scrim{background:linear-gradient(90deg,rgba(6,18,31,.94) 0%,rgba(6,18,31,.86) 26%,rgba(6,18,31,.45) 52%,rgba(6,18,31,.06) 78%,transparent 100%)}
.phbs--center .phbs__scrim{background:radial-gradient(120% 120% at 50% 50%,rgba(6,18,31,.9),rgba(6,18,31,.62) 60%,rgba(6,18,31,.3))}
.phbs__scrim{position:absolute;inset:0;z-index:1}
.phbs__tint{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(4,10,18,.28),transparent 40%,rgba(4,10,18,.55)),
             radial-gradient(80% 120% at 85% 20%,rgba(245,158,11,.16),transparent 60%),
             radial-gradient(70% 110% at 10% 90%,rgba(11,36,64,.5),transparent 60%)}

/* --- content --- */
.phbs__wrap{
  position:relative;z-index:3;height:100%;width:100%;margin:0;
  /* bleed: hug the very edge of the full-bleed slider, not a 1280px container */
  padding:0 max(44px,calc((100% - 1760px)/2 + 44px));display:flex;align-items:center;
}
.phbs--left .phbs__wrap{justify-content:flex-start}
/* RTL: the text column sits on the right edge, always right-aligned */
.phbs--right .phbs__wrap{justify-content:flex-end;flex-direction:row}
/* physical margins on purpose: inline-* resolves against the row's own direction */
.phbs--right .phbs__copy{text-align:right;margin-left:auto;margin-right:0}
/* belt-and-braces: every line inside the copy stays flush to the right edge */
.phbs--right .phbs__copy>*{text-align:right}
.phbs--right .phbs__copy>*:not(.phbs__cta){margin-left:0;margin-right:0}
.phbs--right .phbs__eyebrow{align-self:flex-start}
.phbs--center .phbs__wrap{justify-content:center;text-align:center}
.phbs__copy{max-width:560px;text-align:right}
.phbs--left .phbs__copy{text-align:left}
.phbs--center .phbs__copy{text-align:center}
.phbs__eyebrow{
  display:inline-flex;align-items:center;gap:8px;margin:0 0 12px;
  padding:6px 13px;border-radius:999px;font-size:11.5px;font-weight:700;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);
  color:#ffe6b8;backdrop-filter:blur(8px);
}
.phbs__eyebrow i{width:6px;height:6px;border-radius:50%;background:var(--phbs-orange);box-shadow:0 0 0 4px rgba(245,158,11,.18)}
.phbs__title{margin:0;font-size:clamp(24px,2.9vw,40px);line-height:1.3;font-weight:900;letter-spacing:-.2px;color:#fff;text-shadow:0 2px 20px rgba(0,0,0,.35)}
.phbs__title b{color:var(--phbs-orange);font-weight:900}
.phbs__desc{margin:10px 0 0;font-size:clamp(12.5px,.95vw,14.5px);line-height:1.9;color:rgba(255,255,255,.86);max-width:520px}
.phbs--center .phbs__desc{margin-inline:auto}
.phbs__cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.phbs--center .phbs__cta{justify-content:center}
.phbs__btn{
  display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:12px;
  font-family:inherit;font-size:13px;font-weight:800;text-decoration:none;border:1px solid transparent;
  background:linear-gradient(135deg,#f59e0b,#ea8a06);color:#20130a;
  box-shadow:0 10px 24px -12px rgba(245,158,11,.9);transition:transform .25s ease,box-shadow .25s ease,background .25s ease;
}
.phbs__btn:hover{transform:translateY(-2px);box-shadow:0 14px 28px -12px rgba(245,158,11,.95);background:linear-gradient(135deg,#fbb130,#f59e0b)}
.phbs__btn--ghost{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.26);color:#fff;box-shadow:none;backdrop-filter:blur(8px)}
.phbs__btn--ghost:hover{background:rgba(255,255,255,.16);box-shadow:none}
.phbs__btn:focus-visible,.phbs__arrow:focus-visible,.phbs__dot:focus-visible,.phbs__toggle:focus-visible{
  outline:2px solid #fff;outline-offset:3px}

/* staggered entrance */
.phbs__reveal{opacity:0;transform:translate3d(0,14px,0);transition:opacity .6s cubic-bezier(.22,.61,.36,1),transform .6s cubic-bezier(.22,.61,.36,1)}
.phbs--left .phbs__slide.is-active .phbs__reveal{transform:translate3d(14px,0,0)}
.phbs__slide.is-active .phbs__reveal{opacity:1;transform:none}
.phbs__slide.is-active .phbs__reveal:nth-child(1){transition-delay:.10s}
.phbs__slide.is-active .phbs__reveal:nth-child(2){transition-delay:.22s}
.phbs__slide.is-active .phbs__reveal:nth-child(3){transition-delay:.34s}
.phbs__slide.is-active .phbs__reveal:nth-child(4){transition-delay:.46s}
.phbs__slide[data-preset="fade"] .phbs__reveal{transform:none}
.phbs__slide[data-preset="static"] .phbs__reveal{opacity:1;transform:none;transition:none}

/* --- controls --- */
.phbs__ui{position:absolute;inset:auto 0 14px 0;z-index:6;display:flex;align-items:center;justify-content:center;gap:16px;padding:0 max(44px,calc((100% - 1280px)/2 + 44px))}
display:flex;gap:8px;z-index:7}
.phbs__arrows{position:absolute;inset-inline-end:max(44px,calc((100% - 1280px)/2 + 44px));bottom:14px;display:flex;gap:8px;z-index:7}
.phbs__arrow{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;cursor:pointer;
  background:rgba(9,20,33,.55);border:1px solid rgba(255,255,255,.24);color:#fff;
  backdrop-filter:blur(10px);transition:background .2s ease,transform .2s ease;
}
.phbs__arrow:hover{background:rgba(245,158,11,.9);color:#20130a;transform:translateY(-1px)}
.phbs__arrow svg{width:15px;height:15px}
.phbs__dots{display:flex;align-items:center;gap:6px}
.phbs__dot{
  position:relative;height:4px;width:26px;border-radius:99px;border:0;cursor:pointer;padding:0;
  background:rgba(255,255,255,.3);overflow:hidden;transition:width .3s ease,background .3s ease;
}
.phbs__dot[aria-current="true"]{width:46px;background:rgba(255,255,255,.35)}
.phbs__dot span{position:absolute;inset:0;width:0;background:var(--phbs-orange);border-radius:99px}
.phbs__dot[aria-current="true"] span{animation:phbsFill var(--dur,7000ms) linear forwards}
.phbs.is-paused .phbs__dot[aria-current="true"] span{animation-play-state:paused}
@keyframes phbsFill{to{width:100%}}
.phbs__toggle{
  width:28px;height:28px;border-radius:50%;display:grid;place-items:center;cursor:pointer;
  background:rgba(9,20,33,.45);border:1px solid rgba(255,255,255,.2);color:rgba(255,255,255,.85);
}
.phbs__toggle svg{width:12px;height:12px}

/* credit (photo attribution, tiny + accessible) */
.phbs__credit{position:absolute;inset-inline-start:10px;bottom:6px;z-index:5;font-size:9.5px;color:rgba(255,255,255,.5);text-decoration:none}
.phbs__credit:hover{color:#fff}

/* --- legacy placeholder before JS/data (prevents layout jump) --- */
.phbs-skeleton{width:100%;height:373px;background:linear-gradient(110deg,#0a1624 25%,#12263a 45%,#0a1624 65%);background-size:220% 100%;animation:phbsSk 1.6s linear infinite}
@keyframes phbsSk{to{background-position:-220% 0}}
@media (max-width:822px){.phbs-skeleton{height:260px}}
@media (max-width:639px){.phbs-skeleton{height:238px}}


/* --- motion-graphic slides (SVG scenes): no photo scrim, let the art breathe --- */
.phbs--motion .phbs__scrim{
  /* text sits on the right; the scrim only needs to protect that column */
  background:linear-gradient(270deg,rgba(4,10,18,.80) 0%,rgba(4,10,18,.58) 16%,rgba(4,10,18,.22) 34%,rgba(4,10,18,0) 46%);
}
.phbs--motion.phbs--center .phbs__scrim{background:radial-gradient(120% 130% at 50% 50%,rgba(4,10,18,.86),rgba(4,10,18,.4) 62%,rgba(4,10,18,0))}
.phbs--motion .phbs__tint{background:linear-gradient(180deg,rgba(3,7,13,.14),transparent 42%,rgba(3,7,13,.22))}
/* static: no device-pixel zoom (the SVG stays pin-sharp); motion comes from the artwork itself */
.phbs--motion .phbs__img,
.phbs--motion .phbs__slide.is-active .phbs__img,
.phbs--motion .phbs__slide[data-preset="pan"] .phbs__img,
.phbs--motion .phbs__slide[data-preset="pan"].is-active .phbs__img,
.phbs--motion .phbs__slide[data-preset="depth"] .phbs__img,
.phbs--motion .phbs__slide[data-preset="depth"].is-active .phbs__img,
.phbs--motion .phbs__slide[data-preset="fade"] .phbs__img{transform:none!important;transition:none!important}
.phbs--motion .phbs__slide.is-active .phbs__reveal{animation:phbsaIn .8s cubic-bezier(.19,1,.22,1) both}
@keyframes phbsaIn{from{opacity:0;transform:translate3d(0,14px,0)}to{opacity:1;transform:none}}
/* --- 5D parallax: the SVG's 8 depth planes (<g id="pN">) driven by pointer --- */
.phbs--motion .phbs__media::after{ /* depth vignette + warm rim so planes read as one scene */
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(120% 128% at 62% 46%,transparent 46%,rgba(3,7,13,.42) 100%);
}
.phbs--motion .phbs__slide{transform-style:preserve-3d}
@media (hover:hover) and (pointer:fine){
  .phbs--motion .phbs__img{transition:transform .9s cubic-bezier(.22,.61,.36,1);inset:-4.5%;width:109%;height:109%;object-position:0% 50%!important}
}
/* each plane drifts by its own depth factor; --px/--py are -1..1 */
.phbs--motion #p0{transform:translate3d(calc(var(--px,0) * 5px),calc(var(--py,0) * 3px),0)}
.phbs--motion #p1{transform:translate3d(calc(var(--px,0) * 8px),calc(var(--py,0) * 4px),0)}
.phbs--motion #p2{transform:translate3d(calc(var(--px,0)  * 12px),calc(var(--py,0) * 6px),0)}
.phbs--motion #p3{transform:translate3d(calc(var(--px,0) * 18px),calc(var(--py,0) * 9px),0)}
.phbs--motion #p4{transform:translate3d(calc(var(--px,0) * 26px),calc(var(--py,0) * 13px),0)}
.phbs--motion #p5{transform:translate3d(calc(var(--px,0) * 36px),calc(var(--py,0) * 18px),0)}
.phbs--motion #p6{transform:translate3d(calc(var(--px,0) * 48px),calc(var(--py,0) * 24px),0)}
.phbs--motion #p7{transform:translate3d(calc(var(--px,0) * 62px),calc(var(--py,0) * 30px),0)}
.phbs--motion #p0,.phbs--motion #p1,.phbs--motion #p2,.phbs--motion #p3,
.phbs--motion #p4,.phbs--motion #p5,.phbs--motion #p6,.phbs--motion #p7{
  transform-origin:62% 50%;transition:transform .55s cubic-bezier(.22,.61,.36,1);will-change:transform}

.phbs__media::after{transition:opacity .5s ease}
@media (prefers-reduced-motion:reduce){
  .phbs--motion #p0,.phbs--motion #p1,.phbs--motion #p2,.phbs--motion #p3,
  .phbs--motion #p4,.phbs--motion #p5,.phbs--motion #p6,.phbs--motion #p7{transform:none!important}
}
@media (max-width:900px){
  .phbs--motion .phbs__scrim{background:linear-gradient(to top,rgba(4,10,18,.95) 0%,rgba(4,10,18,.82) 38%,rgba(4,10,18,.30) 68%,rgba(4,10,18,.04) 100%)}
  /* the portrait crop slices the 1800px scene on the left: the card rides on its own plane */
  /* discount slide: the scene already carries its card, so darken only the copy band */
  .phbs--motion.phbs--right .phbs__slide[data-discount="1"] .phbs__scrim, .phbs--motion .phbs__slide[data-discount="1"] .phbs__scrim{background:linear-gradient(to top,rgba(4,10,18,.72) 0%,rgba(4,10,18,.55) 26%,rgba(4,10,18,.20) 46%,rgba(4,10,18,.04) 62%,rgba(4,10,18,0) 100%)}
}


/* --- hero subject layer: a separate SVG plane that sits above the scene so pointer
   parallax can move the card against its own backdrop (and it survives any crop) --- */
.phbs--motion .phbs__media .phbs__card{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:0% 50%;
  z-index:2;pointer-events:none;display:block}
@media (max-width:900px){
  .phbs--motion .phbs__card{object-position:50% 50%}
  /* the tall crop reads from the left of the 1800px scene; the portrait scene is authored for this frame */
  .phbs--motion .phbs__img[data-mob="1"]{object-position:50% 50%!important}
}
.phbs--motion .phbs__slide:not(.is-active) .phbs__card{opacity:0}
.phbs--motion .phbs__slide.is-active .phbs__card{opacity:1;transition:opacity .7s ease .18s}

/* --- responsive --- */
/* wide screens: keep the right column near the edge instead of stranding it mid-canvas */
@media (min-width:1441px){
  .phbs__wrap{padding-left:max(44px,calc((100% - 1760px)/2 + 44px));padding-right:max(44px,calc((100% - 1760px)/2 + 44px))}
}
@media (max-width:1023px){
  .phbs__wrap{padding:0 30px}
  .phbs__ui{padding:0 30px}
  .phbs__arrows{inset-inline-end:30px}
  .phbs--center .phbs__copy{max-width:520px}
}
@media (max-width:822px){
  .phbs__wrap{padding:0 22px}
  .phbs__title{font-size:26px;line-height:1.32}
  .phbs__desc{font-size:12px;line-height:1.8;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
  .phbs__cta{margin-top:10px;gap:8px}
  .phbs__btn{padding:9px 14px;font-size:11.5px;border-radius:10px}
  .phbs__eyebrow{font-size:10px;padding:5px 10px;margin-bottom:9px}
  .phbs__arrows{inset-inline-end:16px;bottom:11px}
  .phbs__arrow{width:30px;height:30px}
  .phbs__ui{bottom:11px;padding:0 16px}
}
@media (max-width:639px){
  /* photo is on top on phones: a vertical scrim keeps Persian text readable */
  .phbs--right .phbs__scrim,.phbs--left .phbs__scrim,.phbs--center .phbs__scrim{
    background:linear-gradient(to top,rgba(5,13,22,.96) 0%,rgba(5,13,22,.88) 42%,rgba(5,13,22,.45) 72%,rgba(5,13,22,.12) 100%);
  }
  /* discount slide already carries its own card: keep only a light copy band */
  .phbs--motion .phbs__slide[data-discount="1"] .phbs__scrim{
    background:linear-gradient(to top,rgba(5,13,22,.80) 0%,rgba(5,13,22,.55) 24%,rgba(5,13,22,.26) 44%,rgba(5,13,22,.10) 66%,rgba(5,13,22,.04) 100%);
  }
  .phbs__tint{background:linear-gradient(180deg,rgba(4,10,18,.35),transparent 45%)}
  .phbs__title{text-shadow:0 2px 14px rgba(0,0,0,.65)}
  .phbs__desc{color:rgba(255,255,255,.92)}
  .phbs__wrap{padding:0 16px;align-items:flex-end;padding-bottom:40px}
  .phbs--center .phbs__copy{max-width:100%}
  .phbs__copy{max-width:100%}
  .phbs__title{font-size:20px;line-height:1.35}
  .phbs__desc{font-size:10.5px;line-height:1.7;-webkit-line-clamp:2;margin-top:5px}
  .phbs__cta{margin-top:8px;gap:6px}
  .phbs__btn{padding:7px 11px;font-size:10px;border-radius:9px}
  .phbs__btn--ghost{display:none}
  .phbs__eyebrow{font-size:9px;padding:3px 8px;margin-bottom:6px;gap:6px}
  .phbs__eyebrow i{width:5px;height:5px}
  .phbs__ui{bottom:8px;justify-content:flex-start;padding:0 16px}
  .phbs__arrows{inset-inline-end:12px;bottom:8px;gap:6px}
  .phbs__arrow{width:26px;height:26px}
  .phbs__dot{width:18px;height:3px}
  .phbs__dot[aria-current="true"]{width:30px}
  .phbs__credit{display:none}
  .phbs--center .phbs__wrap{justify-content:center}
}

/* single slide: no nav chrome */
.phbs.is-single .phbs__ui,.phbs.is-single .phbs__arrows{display:none}

/* reduced motion: no zoom, no sweep, instant reveal */
@media (prefers-reduced-motion:reduce){
  .phbs__img,.phbs__slide.is-active .phbs__img{transform:none!important;transition:none!important}
  .phbs__sweep{display:none}
  .phbs__reveal{opacity:1!important;transform:none!important;transition:none!important}
  .phbs__slide{transition:opacity .2s linear}
  .phbs__dot[aria-current="true"] span{animation:none;width:100%}
  .phbs-skeleton{animation:none}
}

/* hide when the section scrolls away on low-end devices (class toggled by JS) */
.phbs.is-asleep .phbs__img{transition:none;animation:none}
