:root {
  --bg: #ffffff;
  --text: #1b2430;
  --muted: #5f6b7a;
  --primary: #0d6efd; /* أزرق */
  --accent: #1abc9c;  /* فيروزي */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans Arabic", sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(13,110,253,0.08), transparent);
  backdrop-filter: blur(6px);
}
.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15));
}
.main-nav a {
  margin-inline: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
}
.main-nav a:hover {
  background: rgba(26,188,156,0.12);
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 28vh; /* أقصر لرفع صورة الهيرو */
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 400px at 80% 20%, rgba(26,188,156,0.25), transparent 60%),
              linear-gradient(135deg, rgba(13,110,253,0.15), transparent 50%);
  overflow: hidden;
}
.hero-overlay {
  text-align: center;
  padding: 18px 12px; /* تقليل الحشوة لتصغير المساحة */
}
.hero h1 {
  margin: 0 0 8px 0;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.hero p { color: var(--muted); margin: 0; }

/* Optional big image under header */
.hero-image {
  padding: 0 16px; /* بدون مسافة علوية ليكون تحت الهيدر مباشرة */
}
.hero-image img {
  display: none; /* يبقى مخفيًا حتى يتم تعيين مصدر صالح عبر JS */
  width: 100%;
  height: calc(100vh - var(--header-h, 72px)); /* ارتفاع يملىء الشاشة تحت الهيدر */
  max-height: none;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: opacity 400ms ease;
  opacity: 0;
}

/* Products */
.products { padding: 32px 16px 12px; }
.products h2 { margin: 0 0 18px 0; }
.products-rotator {
  position: relative;
  min-height: 560px; /* مساحة أكبر للصورة الكبيرة يساراً */
}
.empty-state {
  color: var(--muted);
  background: linear-gradient(180deg, rgba(26,188,156,0.06), transparent);
  border: 1px dashed rgba(13,110,253,0.25);
  padding: 18px;
  border-radius: 12px;
}
.slide {
  display: grid;
  grid-template-columns: 2fr 1fr; /* صورة أكبر يساراً ونص يميناً */
  gap: 24px;
  align-items: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms ease, transform 400ms ease;
  padding: 8px 0;
}
.slide.active {
  opacity: 1;
  transform: translateY(0);
}
.slide .text {
  font-size: 1.28rem; /* أكبر وأكثر وضوحاً */
  line-height: 1.9;
}
.slide .text b { font-weight: 800; }
.slide .image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;            /* مربع */
  max-width: 520px;               /* أكبر كما طُلب */
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #f7f9fc;
  overflow: hidden;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;            /* احتواء الصورة داخل المربع بدون قص */
  border-radius: 0;
  box-shadow: none;               /* الظل على الحاوية بدل الصورة */
  background: transparent;
}
/* لم نعد نستخدم تناوب اليسار/اليمين — الصورة دائماً يساراً */

/* About */
.about { padding: 24px 16px 40px; }
.about-text { color: var(--muted); margin-bottom: 16px; }
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.partners img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
  filter: grayscale(100%) saturate(0) brightness(0.95);
  transition: filter 250ms ease, transform 200ms ease, opacity 200ms ease;
  opacity: 0.9;
}
.partners img:hover { filter: none; transform: translateY(-2px); opacity: 1; }

/* Footer */
.site-footer {
  background: linear-gradient(0deg, rgba(13,110,253,0.08), rgba(26,188,156,0.08));
  padding: 24px 16px 12px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo { height: 32px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.1rem; }
.footer-col h3, .footer-col h4 { margin: 0 0 8px 0; }
.footer-col p { margin: 0; color: var(--muted); }
.footer-col a { color: var(--primary); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.copyright {
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 860px) {
  .hero { min-height: 32vh; }
  .hero-image img { height: calc(100vh - var(--header-h, 64px)); }
  .slide { position: static; grid-template-columns: 1fr; }
  .products-rotator { min-height: unset; }
}
