:root {
  /* ألوان قريبة من الهوية */
  --primary-green: #007a3d;   /* أخضر غامق */
  --secondary-green: #5bb54c; /* أخضر فاتح */
  --text-main: #263238;
  --text-muted: #616e7c;
  --bg-page: #f5f7f4;
  --overlay-light: rgba(255, 255, 255, 0.9);

  --border: #e6ece7;
  --card: #ffffff;
}

/* reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.8;
}

/* الحاوية */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* الهيدر */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,247,244,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-content {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center;
  gap: 0.75rem; padding: 0.6rem 0;
}

/* الشعار */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-logo { height: 52px; width: auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 0.05rem; }
.brand-name { font-weight: 800; font-size: 1rem; color: var(--primary-green); line-height: 1.1; }
.brand-tagline { font-size: 0.8rem; color: var(--text-muted); line-height: 1.1; }

/* زر قائمة للموبايل */
.menu-toggle { display: none; }
.burger {
  display: none; width: 42px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border); align-items: center; justify-content: center;
  cursor: pointer; transition: .2s ease; background: #fff;
}
.burger span { display: block; width: 20px; height: 2px; background: #333; margin: 3px 0; }

/* القائمة */
.main-nav ul {
  list-style: none; display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
}
.main-nav a {
  padding: 0.4rem 0.9rem; border-radius: 999px; color: var(--text-main);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.main-nav a:hover { background-color: rgba(0,122,61,0.08); color: var(--primary-green); transform: translateY(-1px); }

/* موبايل: نجعل القائمة قابلة للفتح */
@media (max-width: 820px) {
  .header-content { grid-template-columns: 1fr auto; }
  .burger { display: inline-flex; }
  .main-nav { grid-column: 1 / -1; width: 100%; }
  .main-nav ul {
    display: none; flex-direction: column; align-items: flex-start;
    padding: 0.5rem 0; border-top: 1px solid var(--border); margin-top: 0.4rem;
  }
  .menu-toggle:checked ~ .main-nav ul { display: flex; }
}

/* الأقسام العامة مع خلفيات */
.section {
  position: relative; padding: 4rem 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.section-layer {
  background-color: var(--overlay-light);
  position: relative; z-index: 1; padding: 3rem 0;
}

/* العناوين */
.section-inner { display: flex; flex-direction: column; gap: 1.75rem; }
.section-heading { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.5rem; }
.section-heading h2 {
  font-size: 1.4rem; font-weight: 800; color: var(--primary-green);
  border-right: 6px solid var(--secondary-green); padding-right: 0.5rem;
}

/* شبكات */
.grid-two { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; }
.grid-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
@media (max-width: 900px) {
  .grid-two, .grid-three { grid-template-columns: 1fr; }
}

/* نصوص وقوائم */
.text-block p { margin-bottom: 0.7rem; font-size: 0.96rem; color: var(--text-main); }
.check-list { list-style: none; margin-top: 0.3rem; }
.check-list li { position: relative; padding-right: 1.4rem; margin-bottom: 0.35rem; font-size: 0.94rem; }
.check-list li::before {
  content: "✔"; position: absolute; right: 0; top: 0; font-size: 0.8rem; color: var(--secondary-green);
}

/* البطاقات مع الصور */
.info-card, .feature-box {
  background: var(--card); border-radius: 0.9rem; border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}
.info-card { padding: 0; overflow: hidden; }
.info-card img { width: 100%; height: 180px; object-fit: cover; }
.info-card__body { padding: 1rem 1.1rem; }

.feature-box { padding: 0; overflow: hidden; }
.feature-box img { width: 100%; height: 160px; object-fit: cover; }
.feature-box h3 { font-size: 1rem; margin: 0.8rem 0.9rem 0.3rem; color: var(--primary-green); }
.feature-box p { font-size: 0.94rem; color: var(--text-main); padding: 0 0.9rem 1rem; }

/* هيرو */
.section-hero {
  background-image: url("https://mediaaws.almasryalyoum.com/news/large/2015/08/11/357329_0.JPG");
}
.hero-layout {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.8fr); gap: 1.5rem; align-items: center;
}
@media (max-width: 900px) { .hero-layout { grid-template-columns: 1fr; } }

.hero-title { font-size: 2rem; font-weight: 900; color: var(--primary-green); margin-bottom: 0.5rem; }
.hero-subtitle { font-size: 1.05rem; color: var(--text-main); margin-bottom: 1rem; }
.hero-body { font-size: 0.96rem; color: var(--text-main); margin-bottom: 1.4rem; }

.btn-main {
  display: inline-block; padding: 0.6rem 1.5rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: #ffffff; font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,122,61,0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,122,61,0.35); opacity: 0.97; }

.hero-media { background-color: #fff; border-radius: 1rem; border: 1px solid var(--border); padding: 0.6rem; box-shadow: 0 14px 30px rgba(0,0,0,0.06); }
.hero-media img { border-radius: 0.8rem; }
.hero-caption { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; text-align: center; }

/* خلفيات الأقسام */
.section-about    { background-image: url("https://images.unsplash.com/photo-1586201375794-180a55b18f26?q=80&w=1600&auto=format&fit=crop"); }
.section-products { background-image: url("https://images.unsplash.com/photo-1605522510961-8d14a2a3c2d6?q=80&w=1600&auto=format&fit=crop"); }
.section-clients  { background-image: url("https://images.unsplash.com/photo-1524593410522-0055f7c9b5a7?q=80&w=1600&auto=format&fit=crop"); }
.section-contact  { background-image: url("https://images.unsplash.com/photo-1542500186-6c3a13f35fcd?q=80&w=1600&auto=format&fit=crop"); }

/* معرض صور */
.section-gallery { background-image: url("https://www.aliqtisadi.ps/public/files/image/2016/10/0000fbv0dfav0.jpg"); }
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.mosaic img { height: 130px; width: 100%; object-fit: cover; border-radius: 10px; }
@media (max-width: 1024px) { .mosaic { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .mosaic { grid-template-columns: repeat(2, 1fr); } }

/* تواصل */
.contact-layout { align-items: flex-start; }
.contact-list { list-style: none; margin-top: 0.8rem; }
.contact-list li { margin-bottom: 0.4rem; font-size: 0.94rem; }
.contact-label { color: var(--text-muted); margin-left: 0.3rem; }
.contact-value { font-weight: 600; }

/* الفوتر */
.site-footer { padding: 1.5rem 0 2rem; text-align: center; font-size: 0.85rem; color: var(--text-muted); background: #fff; border-top: 1px solid var(--border); }
