/* =========================================================
   شركة زراعة الأحلاف لإنتاج البذور — css/style.css
   تصميم عربي RTL متجاوب متطور بدون أي مكتبات خارجية
========================================================= */

/* ---------- المتغيرات والأساسيات ---------- */
:root {
  --green-950: #0a2e18;
  --green-900: #0e3d22;
  --green-800: #14532d;
  --green-700: #1a6b38;
  --green-600: #23803f;
  --green-100: #e3f1e6;
  --green-50: #f3f9f4;
  --leaf: #7cb342;
  --gold: #c9971c;
  --gold-2: #e0b04a;
  --gold-dark: #a87b12;
  --ink: #182b20;
  --muted: #5c6f62;
  --line: #e4ede5;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 14px;
  --shadow-sm: 0 4px 16px rgba(14, 61, 34, 0.06);
  --shadow-md: 0 10px 30px rgba(14, 61, 34, 0.1);
  --shadow-lg: 0 20px 40px rgba(14, 61, 34, 0.15);
  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: "Cairo", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--gold); color: #fff; }

:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1200px, 92%); margin-inline: auto; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.75em 1.8em;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.4;
  white-space: nowrap;
  transition: all var(--tr);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-dark));
  color: var(--green-950);
  box-shadow: 0 6px 20px rgba(201, 151, 28, 0.3);
}
.btn-gold:hover { box-shadow: 0 10px 25px rgba(201, 151, 28, 0.45); }

.btn-green {
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: #fff;
  box-shadow: 0 6px 20px rgba(14, 61, 34, 0.3);
}
.btn-green:hover { box-shadow: 0 10px 25px rgba(14, 61, 34, 0.45); }

/* ---------- عناوين الأقسام ---------- */
.section { padding: clamp(48px, 8vw, 80px) 0; }

.section-head { text-align: center; margin-bottom: clamp(28px, 5vw, 48px); }

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--green-800);
  letter-spacing: -0.5px;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 8px;
  color: var(--leaf);
}
.ornament .icon { width: 20px; height: 20px; }
.ornament span {
  display: block;
  width: 50px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to left, transparent, var(--leaf));
}
.ornament span:last-child { background: linear-gradient(to right, transparent, var(--leaf)); }

.section-sub {
  color: var(--muted);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  max-width: 580px;
  margin-inline: auto;
}

/* ---------- ظهور العناصر عند التمرير ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   الشريط العلوي
========================================================= */
.topbar {
  background: var(--green-950);
  color: #e8f3ea;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 12px;
  padding: 4px 0;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  opacity: 0.9;
  transition: all var(--tr);
}
.topbar-item:hover { opacity: 1; color: var(--gold-2); }
.topbar-item .icon { width: 16px; height: 16px; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.2); }

/* =========================================================
   الترويسة
========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--tr);
  border-bottom: 1px solid var(--line);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: var(--green-800); font-size: 1.2rem; font-weight: 900; }
.brand-text small { color: var(--gold); font-weight: 700; font-size: 0.78rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 0.55em 0.85em;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-900);
  position: relative;
  transition: color var(--tr);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gold);
  transition: width var(--tr);
}
.nav-link:hover { color: var(--gold-dark); }
.nav-link.active { color: var(--green-800); }
.nav-link.active::after { width: 60%; }

.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { font-size: 0.9rem; padding: 0.6em 1.3em; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 10px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
}
.menu-toggle span {
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green-800);
  transition: transform var(--tr), opacity var(--tr);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   الواجهة الرئيسية (السلايدر)
========================================================= */
.hero {
  position: relative;
  height: clamp(520px, 75vh, 660px);
  overflow: hidden;
  background: var(--green-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 0;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.hero-slide.active .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left,
    rgba(255, 255, 255, 0.95) 10%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0.25) 70%,
    rgba(255, 255, 255, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 0;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--green-900);
  max-width: 650px;
}
.hero-title span { display: block; }

.hero-desc {
  margin-top: 14px;
  max-width: 520px;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 600;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
  margin-top: 26px;
}
.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--green-900);
  text-align: center;
}
.hero-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--green-100);
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}
.hero-feature-icon .icon { width: 24px; height: 24px; }

.hero-cta-row { margin-top: 32px; display: flex; gap: 12px; }

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.6);
  transition: all var(--tr);
}
.hero-dot.active { width: 28px; background: var(--gold-2); }

/* =========================================================
   المنتجات (تحسين شامل وخاصة للـ Mobile)
========================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: all var(--tr);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 179, 66, 0.4);
}

.product-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-50);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-media img { transform: scale(1.06); }

.product-name {
  padding: 12px 8px 2px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--green-900);
}
.product-leaf { display: inline-block; color: var(--leaf); padding-bottom: 10px; }
.product-leaf .icon { width: 16px; height: 16px; }

/* بطاقة المنتج المفتوحة (توسيع التفاصيل) */
.product-card.is-open {
  grid-column: 1 / -1 !important;
  border: 2px solid var(--leaf);
  box-shadow: var(--shadow-lg);
  cursor: default;
  background: #fff;
  border-radius: var(--radius);
}
.product-card.is-open:hover { transform: none; }

.product-card.is-open .product-media,
.product-card.is-open .product-name,
.product-card.is-open .product-leaf { display: none; }

.product-info {
  display: none;
  grid-template-columns: minmax(260px, 1fr) 1.5fr;
  align-items: center;
  gap: clamp(20px, 4vw, 36px);
  padding: clamp(20px, 4vw, 36px);
}
.product-card.is-open .product-info { display: grid; }

.product-info-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--green-50);
}
.product-info-media img { width: 100%; height: 100%; object-fit: cover; }

.product-info-body { text-align: right; }
.product-info-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 900;
  color: var(--green-900);
  margin-bottom: 8px;
}

.product-info-desc { color: var(--muted); font-size: 0.98rem; line-height: 1.8; }
.product-info-desc ul { margin: 12px 0 0; padding: 0; }
.product-info-desc li {
  position: relative;
  padding-right: 20px;
  margin-bottom: 8px;
}
.product-info-desc li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
}
.product-info-desc strong { color: var(--green-900); font-weight: 800; }

.product-info-close {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 18px;
  padding: 0.6em 1.5em;
  border-radius: 999px;
  border: 1.5px solid var(--leaf);
  background: var(--green-50);
  color: var(--green-900);
  font-weight: 800;
  font-size: 0.9rem;
  transition: all var(--tr);
}
.product-info-close:hover { background: var(--leaf); color: #fff; }

.products-more { display: flex; justify-content: center; margin-top: 36px; }

/* =========================================================
   رؤيتنا وأهدافنا
========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.vision-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: linear-gradient(135deg, var(--green-800), var(--green-950));
  border-radius: var(--radius);
  overflow: hidden;
  color: #eaf5ec;
  box-shadow: var(--shadow-md);
}
.vision-text {
  padding: clamp(20px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.vision-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
}
.vision-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: var(--gold-2);
  flex: none;
}
.vision-text p { line-height: 1.9; font-size: 0.98rem; }

.vision-media { position: relative; min-height: 220px; }
.vision-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.goals-card {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.goals-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--green-800);
}
.goals-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
  flex: none;
}

.goals-list { display: flex; flex-direction: column; gap: 12px; }
.goals-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.8;
}
.goals-list .icon { color: var(--green-600); margin-top: 4px; width: 20px; height: 20px; flex: none; }

/* =========================================================
   الخدمات
========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 12px;
  text-align: center;
  transition: all var(--tr);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.service-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
  transition: all var(--tr);
}
.service-card:hover .service-icon { background: var(--green-800); color: #fff; }
.service-icon .icon { width: 26px; height: 26px; }

.service-card h3 { font-size: 0.92rem; font-weight: 800; color: var(--ink); line-height: 1.5; }

/* =========================================================
   البذور والتصدير
========================================================= */
.export { background: var(--green-50); }

.export-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 1.5fr) 1fr;
  gap: 20px;
  align-items: center;
}

.export-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.export-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
}
.export-card h3 { font-weight: 900; color: var(--green-800); margin-bottom: 6px; font-size: 1.05rem; }
.export-card p { color: var(--muted); font-size: 0.9rem; }

.export-map img { width: 100%; filter: drop-shadow(0 10px 20px rgba(14, 61, 34, 0.08)); }

/* =========================================================
   فروعنا والتواصل
========================================================= */
.branches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 20px;
  align-items: stretch;
}

.branch-card {
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.branch-whatsapp {
  background: linear-gradient(150deg, var(--green-700), var(--green-950));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.branch-wa-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: #1fa855;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  margin-bottom: 4px;
}
.branch-wa-icon .icon { width: 28px; height: 28px; }
.branch-whatsapp h3 { font-size: 1rem; font-weight: 800; color: #d9ecdd; }
.branch-phone { font-size: 1.4rem; font-weight: 900; color: var(--gold-2); letter-spacing: 0.5px; transition: color var(--tr); }
.branch-phone:hover { color: #fff; }
.branch-whatsapp p { font-size: 0.88rem; opacity: 0.85; line-height: 1.8; }

.branch-center { background: var(--green-50); border: 1px solid var(--line); }
.branch-pin {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 4px;
}
.branch-center h3 { color: var(--green-800); font-weight: 900; }
.branch-center ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.branch-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.branch-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   التذييل
========================================================= */
.footer { background: var(--green-950); color: #c9dccd; margin-top: 20px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr 1fr;
  gap: 30px;
  padding: 50px 0 36px;
}

.footer-brand { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.footer-logo { width: 56px; height: 56px; margin-bottom: 6px; }
.footer-brand strong { color: #fff; font-size: 1.25rem; font-weight: 900; }
.footer-brand small { color: var(--gold-2); font-weight: 700; }

.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: #e8f3ea;
  transition: all var(--tr);
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--green-950); transform: translateY(-3px); }

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gold);
}
.footer-col p { line-height: 1.9; font-size: 0.9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.footer-col ul a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--tr);
}
.footer-col ul a:hover { color: var(--gold-2); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 0; font-size: 0.85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- زر العودة إلى الأعلى ---------- */
.to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--tr);
  z-index: 1100;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--green-950); }

/* =========================================================
   الاستجابة للشاشات المختلفة (Responsive Web Design)
========================================================= */

@media (max-width: 1024px) {
  .menu-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 6px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 0.8em 1em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link::after { display: none; }
  .nav-link.active { background: var(--green-50); color: var(--green-700); border-radius: 8px; border-bottom: none; }
  .nav-cta { display: flex; justify-content: center; margin-top: 12px; }
  .header-cta { display: none; }

  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }

  .export-grid { grid-template-columns: 1fr 1fr; }
  .export-map { grid-column: 1 / -1; order: -1; max-width: 480px; margin: 0 auto; }

  .branches-grid { grid-template-columns: 1fr 1fr; }
  .branch-map { grid-column: 1 / -1; min-height: 280px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { height: auto; min-height: 580px; }
  .hero-overlay {
    background: linear-gradient(to top,
      rgba(255, 255, 255, 0.98) 25%,
      rgba(255, 255, 255, 0.85) 60%,
      rgba(255, 255, 255, 0.4) 100%);
  }
  .hero-content { align-items: center; text-align: center; padding: 40px 0; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hero-desc { text-align: center; }
  .hero-features { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; }
  .vision-card { grid-template-columns: 1fr; }
  .vision-media { min-height: 180px; order: -1; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  
  /* معالجة فتح تفاصيل كارت المنتج على الشاشات الصغيرة */
  .product-info {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }
  .product-info-media {
    max-height: 200px;
  }
  .product-info-body {
    text-align: center;
  }
  .product-info-desc li {
    padding-right: 0;
    padding-bottom: 4px;
  }
  .product-info-desc li::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .topbar-contact { display: none; }
  
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-name { font-size: 0.88rem; }
  
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .export-grid { grid-template-columns: 1fr; }
  .branches-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ---------- تقليل الحركة لمصممي تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide .hero-content > * { opacity: 1; transform: none; animation: none; }
  .hero-bg { transform: none; transition: none; }
}
/* =========================================================
   تعديل وتصحيح الهيدر والأزرار العلويّة
========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--tr);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px; /* مسافة أمان لمنع تداخل الشعار مع الأزرار */
  min-height: var(--header-h);
  padding: 8px 0;
}

/* الأزرار العلويّة (الرئيسية + اطلب الآن) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px !important; /* ضمان وجود مسافة فصل كافية بين زر الرئيسية واطلب الآن */
  flex-shrink: 0; /* منع انغلاق الأزرار على بعضها */
}

/* تنسيق زر "الرئيسية" المفرّغ */
.btn-outline-green {
  border: 1.5px solid var(--green-700);
  color: var(--green-800);
  background: transparent;
  padding: 0.55em 1.2em;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  transition: all var(--tr);
}
.btn-outline-green:hover {
  background: var(--green-50);
}

/* ضبط الأزرار للشاشات الصغيرة (الجوال) */
@media (max-width: 768px) {
  .header-inner {
    padding: 6px 0;
  }
  
  .brand-logo {
    width: 38px;
    height: 38px;
  }
  
  .brand-text strong {
    font-size: 1rem;
  }
  
  .brand-text small {
    font-size: 0.7rem;
  }

  /* تصغير حواف الأزرار على الجوال لمنع الانحشار */
  .header-actions {
    gap: 8px !important;
  }
  
  .header-actions .btn {
    padding: 0.5em 0.9em !important;
    font-size: 0.82rem !important;
    box-shadow: none !important; /* إلغاء الظل العريض الذي كان يغطي جزءاً من زر الرئيسية */
  }
}