/* ===== أشكال الواجهة (طلب سيف 2026-11-26) =====
   الكلاس من site-state.js: gs-hl-{split|full|center|stack|slider}، الارتفاع gs-hh-{normal|tall|screen}،
   قوة التغميق فوق الصورة gs-ho-{light|medium|strong}، ومكان النص gs-ha-{start|center}.
   split هو الشكل القديم (hero-v2.css) وما بيتغيّر هون. */
html.gs-front{--hh:clamp(460px,72svh,780px);--ov:.66}
html.gs-front.gs-hh-tall{--hh:clamp(520px,86svh,920px)}
html.gs-front.gs-hh-screen{--hh:max(520px,calc(100svh - 72px))}
html.gs-front.gs-ho-light{--ov:.42}
html.gs-front.gs-ho-strong{--ov:.82}

/* ---- بعرض الشاشة (full / center / slider): الصورة أو الفيديو خلفية، والنص فوقها ---- */
html.gs-front:is(.gs-hl-full,.gs-hl-center,.gs-hl-slider) .hero{position:relative;background:#1d140d!important;min-height:var(--hh)!important;isolation:isolate}
html.gs-front:is(.gs-hl-full,.gs-hl-center,.gs-hl-slider) .hero:after{display:none!important}
html.gs-front:is(.gs-hl-full,.gs-hl-center) .gsf-media{position:absolute!important;inset:0;width:auto;aspect-ratio:auto!important;max-height:none!important;border-radius:0!important;margin:0;z-index:0;animation:none!important}
html.gs-front:is(.gs-hl-full,.gs-hl-center) .gsf-media:before{display:none}
html.gs-front:is(.gs-hl-full,.gs-hl-center) .gsf-media .hero-media{border-radius:0!important;box-shadow:none!important}
html.gs-front:is(.gs-hl-full,.gs-hl-center,.gs-hl-slider) .hero:before{content:""!important;display:block!important;position:absolute;inset:0;z-index:1;pointer-events:none;opacity:1!important;animation:none!important;
  background:linear-gradient(270deg,rgba(12,22,18,var(--ov)) 0%,rgba(12,22,18,calc(var(--ov)*.55)) 42%,rgba(12,22,18,calc(var(--ov)*.1)) 78%)!important}
html[dir="ltr"].gs-front:is(.gs-hl-full,.gs-hl-slider) .hero:before{transform:scaleX(-1)}
html.gs-front:is(.gs-hl-center,.gs-ha-center) .hero:before{background:linear-gradient(180deg,rgba(12,22,18,calc(var(--ov)*.55)),rgba(12,22,18,var(--ov)) 55%,rgba(12,22,18,calc(var(--ov)*.8)))!important;transform:none!important}
html.gs-front:is(.gs-hl-full,.gs-hl-center,.gs-hl-slider) .hero .hero-content{position:static!important;grid-template-columns:minmax(0,1fr)!important;min-height:var(--hh);align-content:center;padding-block:clamp(40px,8vh,96px)!important}
html.gs-front:is(.gs-hl-full,.gs-hl-center,.gs-hl-slider) .gsf-hero{position:relative;z-index:2;max-width:640px!important;--hx-ink:#fff;--hx-sub:rgba(255,255,255,.9);--hx-kick:#e9cf8b;--hx-more:#fff}
html.gs-front:is(.gs-hl-full,.gs-hl-center,.gs-hl-slider) .gsf-hero .gsf-title{font-size:clamp(2.3rem,5vw,4.4rem)!important;text-shadow:0 2px 24px rgba(0,0,0,.35)}
html.gs-front:is(.gs-hl-full,.gs-hl-center,.gs-hl-slider) .gsf-hero .gsf-sub{text-shadow:0 1px 12px rgba(0,0,0,.4)}
/* النص بالنص */
html.gs-front:is(.gs-hl-center,.gs-ha-center) .gsf-hero{margin-inline:auto;text-align:center}
html.gs-front:is(.gs-hl-center,.gs-ha-center,.gs-hl-stack) .gsf-hero :is(.gsf-sub,.gsf-title,.gsf-kicker){margin-inline:auto;text-align:center!important}
html.gs-front:is(.gs-hl-center,.gs-ha-center) .gsf-hero .gsf-ctas{justify-content:center}

/* ---- النص فوق وشريط عريض تحته (stack) ---- */
html.gs-front.gs-hl-stack .hero .hero-content{grid-template-columns:minmax(0,1fr)!important;justify-items:center;gap:clamp(24px,4vh,40px)}
html.gs-front.gs-hl-stack .gsf-hero{text-align:center;max-width:760px!important}
html.gs-front.gs-hl-stack .gsf-hero .gsf-sub{margin-inline:auto}
html.gs-front.gs-hl-stack .gsf-hero .gsf-ctas{justify-content:center}
html.gs-front.gs-hl-stack .gsf-media{aspect-ratio:21/9!important;max-height:none!important;width:100%}
@media (max-width:899px){html.gs-front.gs-hl-stack .gsf-media{aspect-ratio:4/3!important}}

/* ---- شرائح متحركة (slider) ---- */
html.gs-front.gs-hl-slider .gsf-media{display:none!important}
.gsh-slider{position:absolute;inset:0;z-index:0;overflow:hidden;background:#1d140d}
.gsh-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1),visibility 0s .9s}
.gsh-slide.on{opacity:1;visibility:visible;transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1),visibility 0s}
.gsh-slide img,.gsh-slide video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--sp,50% 50%)}
.gsh-fx-slide .gsh-slide{opacity:1;transform:translateX(-100%)}
.gsh-fx-slide .gsh-slide.on{transform:none}
.gsh-fx-slide .gsh-slide.prev{transform:translateX(100%);visibility:visible}
@media (prefers-reduced-motion:no-preference){
  .gsh-fx-zoom .gsh-slide.on img{animation:gshZoom var(--gsh-t,7s) linear both}
  @keyframes gshZoom{from{transform:scale(1.12)}to{transform:scale(1)}}
}
html.gs-front.gs-hl-slider .gsf-hero{transition:opacity .45s ease}
html.gs-front.gs-hl-slider .gsf-hero.gsh-swap{opacity:0}
.gsh-nav{position:absolute;z-index:3;inset-inline:0;bottom:clamp(14px,3vh,28px);display:flex;justify-content:center;align-items:center;gap:10px;pointer-events:none}
.gsh-dots{display:flex;gap:8px;pointer-events:auto;background:rgba(0,0,0,.28);padding:7px 10px;border-radius:999px;backdrop-filter:blur(4px)}
.gsh-dot{all:unset;cursor:pointer;width:9px;height:9px;border-radius:999px;background:rgba(255,255,255,.5);transition:width .3s,background .3s}
.gsh-dot[aria-current="true"]{width:26px;background:#e4c982}
.gsh-arrow{all:unset;cursor:pointer;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:46px;height:46px;border-radius:999px;display:grid;place-items:center;
  background:rgba(0,0,0,.3);color:#fff;font-size:26px;line-height:1;border:1px solid rgba(228,201,130,.5);backdrop-filter:blur(4px);transition:background .2s}
.gsh-arrow:hover{background:rgba(0,0,0,.5)}
.gsh-prev{inset-inline-start:max(14px,calc((100% - 1300px)/2))}
.gsh-next{inset-inline-end:max(14px,calc((100% - 1300px)/2))}
.gsh-dot:focus-visible,.gsh-arrow:focus-visible{outline:2px solid #e4c982;outline-offset:3px}
.gsh-noarrows .gsh-arrow{display:none}

/* الموبايل: النص تحت شوي عشان الصورة تبيّن، والأسهم بتختفي (السحب بالإصبع بيكفي) */
@media (max-width:899px){
  html.gs-front{--hh:clamp(480px,78svh,720px)}
  html.gs-front.gs-hh-tall{--hh:clamp(520px,88svh,820px)}
  html.gs-front:is(.gs-hl-full,.gs-hl-slider):not(.gs-ha-center) .hero:before{background:linear-gradient(180deg,rgba(12,22,18,calc(var(--ov)*.15)) 0%,rgba(12,22,18,calc(var(--ov)*.5)) 45%,rgba(12,22,18,var(--ov)) 100%)!important;transform:none}
  html.gs-front:is(.gs-hl-full,.gs-hl-slider) .hero .hero-content{align-content:end;padding-bottom:64px!important}
  html.gs-front:is(.gs-hl-full,.gs-hl-center,.gs-hl-slider) .gsf-hero .gsf-title{font-size:clamp(2rem,9vw,2.8rem)!important}
  .gsh-arrow{display:none}
}
