/* Hero — one promise, one primary action. Parallax is limited to decorative patterns; the content block itself never transforms. */ function Hero({ lang, t }) { const p1Ref = React.useRef(null); const p2Ref = React.useRef(null); React.useEffect(() => { if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return; let raf = null; const onScroll = () => { if (raf) return; raf = requestAnimationFrame(() => { const y = window.scrollY; if (p1Ref.current) p1Ref.current.style.transform = `translate3d(0, ${y * 0.14}px, 0) rotate(${y * 0.015}deg)`; if (p2Ref.current) p2Ref.current.style.transform = `translate3d(0, ${-y * 0.1}px, 0) rotate(${-y * 0.012}deg)`; raf = null; }); }; window.addEventListener('scroll', onScroll, { passive: true }); return () => { window.removeEventListener('scroll', onScroll); if (raf) cancelAnimationFrame(raf); }; }, []); return (
{t.hero.tag_label} {t.hero.tag_text}

{' '} {lang === 'ar' ? <> {t.hero.title_2} {t.hero.title_4} : <> {t.hero.title_2}{t.hero.title_4}}

{t.hero.sub}

{t.hero.cta_primary} {Icons.arrow} {t.hero.cta_secondary}
{t.hero.stat1_label}
{t.hero.stat2_label}
{lang === 'ar' ? 'شحنة ناجحة' : 'successful shipments'}
); } window.Hero = Hero;