
:root{
  --bg:#F7FAFF;
  --bg2:#FFFFFF;
  --card:#FFFFFF;
  --line:rgba(17,24,39,.10);
  --text:#0B1220;
  --muted:rgba(11,18,32,.72);
  --accent:#12B981;
  --accent2:#F59E0B;
  --radius:18px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --shadow2: 0 10px 26px rgba(15, 23, 42, .08);
  --max: 1180px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: 'Almarai', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(900px 600px at 15% 0%, rgba(18,185,129,.14), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(245,158,11,.14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  overflow-x:hidden;
}

a{color:inherit}
.container{max-width:var(--max);margin:0 auto;padding:0 18px}
.section{padding:72px 0}
.section--tight{padding:52px 0}
.hairline{height:1px;background:var(--line);width:100%}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border:1px solid var(--line);
  border-radius:999px;background:rgba(255,255,255,.75);
  color:var(--muted);font-weight:800;font-size:13px;
  box-shadow: var(--shadow2);
}
.badge i{
  width:8px;height:8px;border-radius:999px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  display:inline-block;
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;
  background:linear-gradient(90deg,var(--accent),#22c55e);
  border:1px solid rgba(255,255,255,.0);
  color:#052016;font-weight:900;text-decoration:none;
  box-shadow: 0 16px 36px rgba(18,185,129,.22);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover{transform:translateY(-2px);filter:saturate(1.06)}
.btn--ghost{
  background:#FFFFFF;
  color:var(--text);
  border:1px solid var(--line);
  box-shadow: var(--shadow2);
}
.btn--ghost:hover{background:#FFFFFF}

header{
  position:sticky;top:0;z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(247,250,255,.75);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 0;
}
.brand{display:flex;align-items:center;gap:14px;min-width:0}
.brand img{
  width:260px; height:auto; max-height:66px;
  object-fit:contain;display:block;
}
.navLinks{display:flex;gap:14px;align-items:center}
.navLinks a{
  text-decoration:none;color:rgba(11,18,32,.72);font-weight:900;font-size:14px;
  padding:10px 10px;border-radius:12px;
  transition: background .15s ease, color .15s ease;
}
.navLinks a:hover{background:rgba(17,24,39,.06);color:var(--text)}
.navCtas{display:flex;gap:10px;align-items:center}

/* HERO SLIDER */
.hero{padding:32px 0 28px}
.heroWrap{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  align-items:stretch;
}
.heroSlider{
  position:relative;
  border:1px solid var(--line);
  border-radius: 26px;
  overflow:hidden;
  box-shadow: var(--shadow);
  background:#fff;
  min-height: 420px;
}
.heroSlide{
  position:absolute; inset:0;
  opacity:0; transform:scale(1.02);
  transition: opacity .5s ease, transform .6s ease;
  display:grid; align-items:end;
}
.heroSlide.is-active{opacity:1; transform:none; z-index:2}
.heroBg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
}
.heroOverlay{
  position:absolute; inset:0;
  background: linear-gradient(90deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.72) 40%, rgba(255,255,255,.18) 100%);
}
.heroContent{
  position:relative;
  padding:28px;
  max-width: 560px;
}
.heroContent h1{
  margin:12px 0 10px;
  font-size:42px;line-height:1.12;letter-spacing:-.02em;
}
.heroContent p{
  margin:0 0 14px; color:var(--muted);
  font-size:15px; line-height:1.85;
}
.heroActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}

.heroNav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px;height:44px;border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.85);
  box-shadow: var(--shadow2);
  cursor:pointer;
  display:grid;place-items:center;
  font-size:28px; line-height:1;
  color:rgba(11,18,32,.85);
  transition: transform .15s ease, background .15s ease;
  z-index:5;
}
.heroNav:hover{background:#fff; transform:translateY(-50%) scale(1.04)}
/* RTL: prev on right, next on left */
.heroNav--prev{right:14px; left:auto}
.heroNav--next{left:14px; right:auto}

.heroDots{
  position:absolute; bottom:12px; left:0; right:0;
  display:flex; gap:8px; justify-content:center;
  z-index:6;
}
.heroDot{
  width:10px;height:10px;border-radius:999px;
  border:1px solid rgba(11,18,32,.20);
  background:rgba(255,255,255,.75);
  cursor:pointer;
}
.heroDot.is-active{
  width:26px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  border-color:rgba(18,185,129,.25);
}

.heroAside{
  border:1px solid var(--line);
  border-radius: 26px;
  background:rgba(255,255,255,.78);
  box-shadow: var(--shadow2);
  padding:18px;
}
.kpis{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
.stat{
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.9);
  padding:16px 16px;
  box-shadow: var(--shadow2);
}
.stat h3{margin:0 0 6px;font-size:13px;color:var(--muted);font-weight:900}
.stat p{margin:0;font-size:16px;font-weight:900}

.cardsGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}
.card{
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.92);
  box-shadow: var(--shadow2);
  overflow:hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover{transform:translateY(-4px);border-color:rgba(18,185,129,.35);box-shadow: var(--shadow)}
.cardMedia{
  height:190px;
  display:grid;place-items:center;
  background:rgba(15,23,42,.02);
  border-bottom:1px solid var(--line);
}
.cardMedia img{width:100%;height:100%;object-fit:cover;display:block}
.cardBody{padding:16px}
.cardTitle{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cardTitle h3{margin:0;font-size:16px;font-weight:900}
.cardBody p{margin:10px 0 0;color:var(--muted);line-height:1.7;font-size:14px}

.productsHead{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;
  margin-bottom:18px;
}
.productsHead h2{margin:0;font-size:28px;letter-spacing:-.01em}
.productsHead p{margin:6px 0 0;color:var(--muted);max-width:520px;line-height:1.7}

.filters{display:flex;gap:10px;flex-wrap:wrap}
.filterBtn{
  cursor:pointer;
  padding:10px 14px;border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:rgba(11,18,32,.70);
  font-weight:900;font-size:13px;
  box-shadow: var(--shadow2);
}
.filterBtn.is-active{
  background:linear-gradient(90deg, rgba(18,185,129,.18), rgba(245,158,11,.14));
  color:var(--text);
  border-color:rgba(18,185,129,.35);
}

.productGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.productCard .cardMedia{height:210px}
.productCard .tag{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 10px;border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:rgba(11,18,32,.70);font-weight:900;font-size:12px;
  box-shadow: var(--shadow2);
}
.tagLogo{
  width:22px;height:22px;border-radius:999px;background:rgba(15,23,42,.04);
  display:grid;place-items:center;overflow:hidden;
}
.tagLogo img{width:100%;height:100%;object-fit:contain}

.partners{
  display:grid;grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
}
.partner{
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.92);
  height:72px;
  display:grid;place-items:center;
  padding:10px;
  box-shadow: var(--shadow2);
  transition: transform .15s ease;
}
.partner img{
  max-width:100%;max-height:40px;object-fit:contain;
  filter: grayscale(1);
  opacity:.85;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.partner:hover{transform:scale(1.06)}
.partner:hover img{filter:none;opacity:1;transform:scale(1.06)}

.footer{
  padding:32px 0 44px;
  border-top:1px solid var(--line);
  color:rgba(11,18,32,.70);
  background:rgba(255,255,255,.70);
}
.footerGrid{
  display:grid;grid-template-columns:1.2fr .8fr;
  gap:18px;align-items:start;
}
small{color:rgba(11,18,32,.55)}

.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease, transform .6s ease}
.reveal.is-in{opacity:1;transform:none}

/* Responsive */
@media (max-width: 980px){
  .heroWrap{grid-template-columns:1fr}
  .brand img{width:220px;max-height:58px}
  .cardsGrid,.productGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .partners{grid-template-columns:repeat(3,minmax(0,1fr))}
  .footerGrid{grid-template-columns:1fr}
  .heroSlider{min-height:380px}
}
@media (max-width: 620px){
  .heroContent h1{font-size:32px}
  .cardsGrid,.productGrid{grid-template-columns:1fr}
  .navLinks{display:none}
  .brand img{width:190px;max-height:54px}
  .heroSlider{min-height:360px}
}


/* === PARTNERS VISIBILITY FIX === */
.partner{
  background:#ffffff !important;
}
.partner img{
  max-height:46px !important;
  width:auto !important;
  height:auto !important;
}

/* Language switcher */
.langSwitch{display:flex;gap:8px;align-items:center;margin-inline-start:10px}
.langBtn{cursor:pointer;padding:8px 10px;border-radius:12px;border:1px solid var(--line);background:#fff;box-shadow: var(--shadow2);font-weight:900;font-size:12px;color:rgba(11,18,32,.70)}
.langBtn.is-active{background:linear-gradient(90deg, rgba(18,185,129,.18), rgba(245,158,11,.14));color:var(--text);border-color:rgba(18,185,129,.35)}
/* LTR adjustments */
html[dir="ltr"] body{direction:ltr}
html[dir="ltr"] .heroOverlay{background: linear-gradient(270deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.72) 40%, rgba(255,255,255,.18) 100%)}
html[dir="ltr"] .heroNav--prev{left:14px; right:auto}
html[dir="ltr"] .heroNav--next{right:14px; left:auto}


/* === FULL WIDTH HERO === */
.hero{padding:18px 0 28px}
.heroWrap{display:block}
.heroSlider{
  width:100vw;
  margin-inline-start: calc(50% - 50vw);
  border-radius: 0;
  min-height: 480px;
}
.heroContent{
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 18px;
}
.heroOverlay{
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.74) 42%, rgba(255,255,255,.18) 100%);
}
html[dir="ltr"] .heroOverlay{
  background: linear-gradient(270deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.74) 42%, rgba(255,255,255,.18) 100%);
}
@media (max-width: 980px){
  .heroSlider{min-height:420px}
}
@media (max-width: 620px){
  .heroSlider{min-height:380px}
  .heroContent h1{font-size:30px}
}


/* === PRODUCT READABILITY === */
.productCard .cardBody{
  padding:18px;
}
.productCard .cardTitle h3{
  font-size:16px;
  line-height:1.35;
  color: #0B1220;
}
.productCard p{
  color: rgba(11,18,32,.82);
  font-size:14px;
  line-height:1.85;
  margin-top:10px;
}
.productCard .tag{
  background: rgba(255,255,255,.95);
  color: rgba(11,18,32,.78);
}
.productCard .cardMedia{
  position:relative;
}
.productCard .cardMedia::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 100%);
  pointer-events:none;
}
@media (max-width: 620px){
  .productCard .cardTitle h3{font-size:15px}
  .productCard p{font-size:13.5px}
}


/* === MOTION ENHANCEMENTS === */
html{scroll-behavior:smooth}
.card, .btn, .filterBtn, .partner, .langBtn{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, filter .18s ease, opacity .18s ease;
}
.card:hover{transform:translateY(-6px)}
.btn:active{transform:translateY(0)}
.filterBtn:hover{transform:translateY(-2px)}
.partner:hover{transform:scale(1.08)}
.reveal{will-change:transform,opacity}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important}
}


/* === MOBILE NAV === */
.navToggle{
  display:none;
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow2);
  cursor:pointer;
  font-size:20px;
}
@media (max-width: 720px){
  .navToggle{display:grid;place-items:center}
  .navLinks{
    position:absolute;
    top:64px;
    inset-inline-start: 18px;
    inset-inline-end: 18px;
    display:none;
    flex-direction:column;
    gap:6px;
    padding:10px;
    background: rgba(255,255,255,.92);
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow: var(--shadow);
  }
  .navLinks.is-open{display:flex}
  header .nav{position:relative}
}


/* WhatsApp link */
.waLink{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.9);
  text-decoration:none;
  box-shadow: var(--shadow2);
}
.waLink:hover{transform:translateY(-2px);border-color:rgba(18,185,129,.35)}
.waIcon{
  width:34px;height:34px;
  border-radius:12px;
  display:grid;place-items:center;
  background: linear-gradient(90deg, rgba(18,185,129,.20), rgba(34,197,94,.14));
  border:1px solid rgba(18,185,129,.20);
}
.waText{
  font-weight:900;
  font-size:13px;
  color: rgba(11,18,32,.82);
}

.ltrNum{direction:ltr; unicode-bidi: plaintext; font-variant-numeric: tabular-nums;}


/* === FORCE PRODUCT CARD COLUMN (text under image) === */
.productCard{
  display:flex;
  flex-direction:column;
}
.productCard .cardMedia{
  flex:0 0 auto;
}
.productCard .cardBody{
  flex:1 1 auto;
  background: rgba(255,255,255,.96);
  position:relative;
  z-index:1;
}
