/* ===========================
   الزاد العالمية — CSS الكامل النهائي
   =========================== */

/* -------- المتغيرات (هوية بصرية) -------- */
:root{
  --blue-900:#0A3E73;
  --blue-800:#0A6DB8;    /* أزرق الثقة الأساسي */
  --blue-500:#2FA6E6;    /* أزرق فاتح للحالات */
  --gold-600:#F7C41C;    /* ذهبي للـCTA */
  --gold-300:#FFD960;    /* ذهبي فاتح للّمعان */
  --green-500:#79B043;   /* الأخضر (الطبيعة/الفوائد) */
  --text-900:#111827;
  --text-700:#374151;
  --text-500:#6B7280;
  --bg-50:#F8FAFC;
  --white:#fff;

  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:12px;

  --shadow-sm:0 6px 16px rgba(10,109,184,0.08);
  --shadow-md:0 12px 30px rgba(10,109,184,0.12);

  --container:1180px;

  /* مقاس صندوق صور المنتجات */
  --prod-box-h: 360px;
}

/* -------- تهيئة عامة -------- */
*,
*::before,
*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body.site{
  margin:0;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, "Noto Kufi Arabic", Arial, sans-serif;
  line-height:1.75;
  color:var(--text-700);
  background: var(--bg-50);

  /* Sticky footer layout */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header.header{ flex: 0 0 auto; }
main#home{ flex: 1 0 auto; }

img{ max-width:100%; height:auto; display:block; }
a{ color:var(--blue-800); text-decoration:none; }
a:hover{ color:var(--blue-500); }

/* تحسين الوصول */
:focus-visible{
  outline:3px solid var(--gold-600);
  outline-offset:2px;
  border-radius:8px;
}

/* -------- مكوّنات أساسية -------- */
.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:20px;
}

.section{
  padding: clamp(48px, 6vw, 96px) 0;
  position: relative;
}

.section__head{
  text-align:center;
  margin-bottom:32px;
}
.section__head h2{
  margin:0 0 8px;
  font-size:clamp(24px, 3vw, 36px);
  color:var(--blue-800);
}
.section__head p{ margin:0; color:var(--text-500); }

.grid{ display:grid; gap:28px; align-items:center; }
.grid--2{ grid-template-columns: 1.05fr .95fr; }
@media (max-width: 980px){
  .grid--2{ grid-template-columns: 1fr; }
}

/* -------- العناوين -------- */
h1,h2,h3{ color:var(--blue-800); }
h1{
  margin:0 0 10px;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height:1.2;
  letter-spacing:.2px;
}
h2{ font-size: clamp(22px, 3.2vw, 34px); margin:0 0 10px; }
h3{ font-size: clamp(18px, 2.4vw, 22px); margin:0 0 8px; }

/* -------- أزرار -------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 20px;
  border-radius:999px; /* كبسولة */
  font-weight:700; letter-spacing:.2px;
  border:2px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn--primary{
  background: linear-gradient(135deg, var(--gold-600), var(--gold-300));
  color:#1a1a1a;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.03);
}
.btn--outline{
  background: transparent;
  color: var(--blue-800);
  border-image: linear-gradient(90deg, var(--gold-600), var(--white) 40%, var(--gold-600)) 1;
  border-width:2px;
  border-style: solid;
}
.btn--outline:hover{
  background: rgba(255,217,96,0.1);
}

/* -------- الهيدر/التنقل -------- */
.header{
  position:sticky; top:0; z-index:100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom:1px solid #e5e7eb;
}
.header__wrap{
  display:flex; align-items:center; gap:18px;
  min-height:68px;
}
.brand img{ display:block; }

.nav__list{
  display:flex; gap:18px; list-style:none; margin:0; padding:0;
}
.nav__list a{
  padding:10px 14px; border-radius:999px;
  color:var(--text-700); font-weight:700;
}
.nav__list a:hover{
  background: #eef6fd;
  color: var(--blue-800);
}

.header__cta{ margin-inline-start:auto; }
.nav__toggle{
  display:none; background:transparent; border:0; font-size:24px; line-height:1;
}

@media (max-width: 1024px){
  .header__cta{ display:none; }
}
@media (max-width: 860px){
  .nav{ display:none; }
  .nav__toggle{ display:block; margin-inline-start:auto; }
  .mobile-menu{
    background:#fff; border-top:1px solid #eee;
  }
  .mobile-menu ul{ list-style:none; margin:0; padding:10px; }
  .mobile-menu li a{
    display:block; padding:12px 10px; border-radius:12px; color:var(--text-700);
  }
  .mobile-menu li a:hover{ background:#f3f7fb; }
}

/* =========================================================
   الهيرو (البطل) — مُعدّل: الصورة لاصقة يسار + النص من أول الصفحة
   ========================================================= */
.hero{
  position:relative;
  background:
    radial-gradient(1100px 50% at 95% -10%, rgba(247,196,28,0.16), transparent 60%),
    linear-gradient(180deg, #ffffff, #f7fbff);
  padding-top: 24px;            /* تقليل الفراغ العلوي */
  padding-bottom: 32px;
  overflow: hidden;
  --hero-media-w: clamp(260px, 35vw, 520px); /* عرض مرن لصورة الزيت */
}

.hero__wrap{
  position: relative;
  display: block;                /* بدلاً من الشبكة لأن الصورة ستكون مطلقة */
  min-height: 68vh;
  padding-left: var(--hero-media-w); /* حجز مساحة يسار للصورة */
}

.hero__text{
  max-width: 720px;
  margin-inline-start: auto;     /* يجعل النص يبدأ من حافة الصفحة اليمنى (RTL) */
}
.hero__text p{ margin: 12px 0 18px; color:var(--text-700); }
.hero__actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:6px; }

.trustbar{
  display:flex; gap:16px; flex-wrap:wrap;
  list-style:none; margin:20px 0 0; padding:0;
}
.trustbar li{
  padding:6px 12px; border-radius:999px;
  background:#f1f7fe; color:var(--blue-800); font-weight:700; font-size:14px;
  border:1px solid #e6f0fb;
}

/* الصورة لاصقة يسار الشاشة */
.hero__media{
  position: absolute;
  left: 0;                       /* يسار الشاشة */
  top: 0;
  bottom: 0;
  width: var(--hero-media-w);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;          /* لا تعيق التفاعل */
  background: linear-gradient(180deg, #fff0, #fff0); /* لا خلفية إضافية */
}

/* تكبير/تصغير الصورة داخل المساحة المحددة */
.hero__media img{
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  transform: translateX(-6px);   /* لمسة للصق الصورة بحافة اليسار */
}

/* تموّج أسفل الهيرو */
.hero__wave{
  height:74px;
  background: url('assets/waves/hero-wave.svg') bottom center / 1200px 74px repeat-x;
  margin-top: 20px;
}

/* خيار بديل (اختياري): جعل الصورة ثابتة أثناء التمرير */
/*
.hero__media{
  position: fixed;
  left: 0;
  top: 68px;                       // عدّل حسب ارتفاع الهيدر لديك
  height: calc(100vh - 68px);
  width: var(--hero-media-w);
}
*/

/* استجابة للجوال */
@media (max-width: 860px){
  .hero{
    --hero-media-w: clamp(180px, 48vw, 320px);
  }
  .hero__wrap{
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
  }
  .hero__media{
    position: relative;
    left: auto; right: auto; top: auto; bottom: auto;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    height: auto;
  }
  .hero__media img{
    height: auto; width: min(78%, 380px);
    transform: none;
  }
}

/* -------- من نحن / قيم / أهداف -------- */
.card{
  background:#fff; border-radius: var(--radius-xl);
  padding:24px; box-shadow: var(--shadow-sm);
  border:1px solid #eef2f7;
  position:relative; overflow:hidden;
}
.card::before{
  content:""; position:absolute; inset:0;
  border-radius: inherit;
  border:2px solid transparent;
  /* حد مزدوج مستوحى من الشعار الأزرق/الأبيض/الذهبي */
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding:2px;
  background:
    linear-gradient(90deg, var(--gold-600), #fff 40%, var(--gold-600)) border-box;
  opacity:.35; pointer-events:none;
}
.card__icon{ width:56px; height:56px; margin-bottom:10px; }

.list{ margin:0; padding:0; }
.list--check{ list-style:none; }
.list--check li{
  position:relative; padding-inline-start:28px; margin:8px 0;
}
.list--check li::before{
  content:"✔"; color:var(--green-500); font-weight:900;
  position:absolute; inset-inline-start:0; top:0;
}
.list--bullet{ list-style:disc; padding-inline-start:20px; }

/* -------- المنتجات -------- */
.products{ background:#fff; }
.product-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:22px;
}
.product-card{
  position:relative;
  background:#fff; border:1px solid #eef2f7; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); overflow:hidden;
  transition: transform .12s ease, box-shadow .2s ease;
}
.product-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* الخلفية اللمّاعة مع توحيد المقاس */
.product-card__media{
  background:
    radial-gradient(400px 120px at 50% 10%, rgba(255,217,96,.35), transparent 60%),
    linear-gradient(180deg, #fff, #f7fbff);
  padding: 18px 14px 0;
  display:flex; align-items:flex-end; justify-content:center;

  /* توحيد المقاس */
  min-height: unset;
  height: var(--prod-box-h);
}

/* توحيد صورة المنتج داخل الصندوق */
.product-card__media img{
  height: 100%;           /* يملأ الارتفاع */
  width: auto;            /* يحافظ على النسبة */
  max-width: 100%;
  object-fit: contain;    /* بدون قص */
  image-rendering: auto;
  margin-bottom: 6px;     /* اتساق بصري */
}

@media (max-width: 860px){
  :root{ --prod-box-h: 280px; }
}

.product-card__body{ padding: 16px 18px 20px; }
.product-card__title{ margin:0 0 6px; }
.product-card__desc{ margin: 0 0 10px; color:var(--text-700); }
.product-card__meta{
  list-style:none; padding:0; margin:0 0 12px; color:var(--text-500);
}
.product-card__cta{ display:flex; gap:10px; flex-wrap:wrap; }

/* شارة فائدة */
.product-card .badge{
  position:absolute; inset-inline-start:12px; inset-block-start:12px;
  width:72px; height:auto; filter: drop-shadow(0 6px 12px rgba(0,0,0,.08));
}

/* -------- الجودة -------- */
.quality{ background: linear-gradient(180deg, #f9fbff, #ffffff); }

/* -------- الشركاء -------- */
.logos{
  display:flex; gap:18px; flex-wrap:wrap; align-items:center; justify-content:center;
  padding: 10px 0;
}
.logos img{
  filter: drop-shadow(0 4px 10px rgba(10,109,184,0.12));
  background:#fff; border-radius: 14px; padding:10px 14px; border:1px solid #eef2f7;
}

/* -------- التستيمونيالز -------- */
.testimonials{ background:#f7fbff; }
.testimonials__slider{
  display:grid; gap:16px; grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
}
.testimonial{
  margin:0; padding:20px; border-radius: var(--radius-lg);
  background:#fff; border:1px solid #eef2f7; box-shadow: var(--shadow-sm);
}
.testimonial blockquote{ margin:0 0 10px; color:var(--text-700); }
.testimonial figcaption{ color:var(--text-500); }

/* -------- اتصل بنا -------- */
.contact__list{
  list-style:none; padding:0; margin: 12px 0 18px;
}
.contact__list li{ margin:6px 0; }
.map-placeholder{
  height:180px; background: repeating-linear-gradient(45deg, #f3f6fb, #f3f6fb 10px, #eaf1f9 10px, #eaf1f9 20px);
  border-radius: var(--radius-lg);
  border:1px dashed #c9d9ee;
}

.contact__form{
  background:#fff; padding:18px; border-radius: var(--radius-xl);
  border:1px solid #eef2f7; box-shadow: var(--shadow-sm);
}
.form__row{
  display:flex; flex-direction:column; gap:6px; margin-bottom:12px;
}
label{ font-weight:700; color:var(--text-700); }
input, select, textarea{
  appearance:none; width:100%;
  padding:12px 14px; border:1px solid #e5e7eb; border-radius: 12px;
  background:#fff; color:var(--text-900);
  transition: box-shadow .2s ease, border-color .2s ease;
}
input:focus, select:focus, textarea:focus{
  border-color: var(--blue-800);
  box-shadow: 0 0 0 4px rgba(10,109,184,0.12);
}

/* -------- الفوتر البسيط اللاصق -------- */
.footer--simple{
  flex: 0 0 auto;
  margin-top: auto;               /* يدفعه لأسفل عند قلة المحتوى */
  background: #fff;
  border-top: 1px solid #e5e7eb;  /* خط بعرض الصفحة */
  padding: 12px 0;                /* ارتفاع صغير */
}
.footer--simple .container{
  max-width: 100%;
  padding-inline: 16px;
  text-align: center;
}
.footer--simple p{
  margin: 0;
  color: #6B7280;
  font-size: 14px;
  font-weight: 600;
}

/* إخفاء عناصر الفوتر المعقّدة إن وُجدت */
.footer__wrap,
.footer__links,
.footer__social,
.footer__brand { display: none !important; }

/* -------- أقسام خاصة بالنصوص -------- */
.about__media img,
.goals__media img,
.quality__media img{ border-radius: 16px; box-shadow: var(--shadow-sm); }

/* -------- تحسين الحركة لمن يفضّل تقليلها -------- */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}

/* -------- اتجاه RTL (تحسينات طفيفة) -------- */
body[dir="rtl"] input, 
body[dir="rtl"] select, 
body[dir="rtl"] textarea{
  text-align:right;
}

/* -------- حالة رابط نشط في الهيدر -------- */
.header a[aria-current="page"]{
  color: var(--blue-800);
  font-weight: 800;
}
