:root {
  --navy: #2f4156;
  --teal: #567C8D;
  --sky: #cbd9eb;
  --beige: #f5efeb;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.25);
}

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

html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', 'Poppins', Tahoma, Arial;
  background: var(--beige);
  color: var(--navy);
  line-height: 1.5;
}

/* ---------- HEADER (معدل بالكامل) ---------- */
header {
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: 10000;
  border-bottom: 1px solid rgba(47, 65, 86, 0.12);
}

/* اللوغو - حجم مناسب للكمبيوتر */
.hero-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* أزرار التواصل */
.social {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.social .contact-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  background: transparent;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid rgba(47, 65, 86, 0.2);
  border-radius: 40px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.social .contact-btn:hover {
  background-color: var(--teal);
  color: white;
  border-color: var(--teal);
}

/* ---------- DROPDOWN (تم إصلاح الـ position) ---------- */
.munu {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 12px 20px;
}

.dropdown {
  position: relative;
  width: 100%;
}

.dropdown-btn {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 40px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  transition: all 0.2s;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 3000;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: #f0f7f3;
  color: var(--teal);
}

/* ---------- عامة لمرونة العناصر ---------- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero1, .about2 {
  padding: 40px 24px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 30px 24px;
  border-radius: 40px;
}

/* بطاقات الخدمات */
.card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 24px;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.befor-after {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.befor-after img {
  max-width: 100%;
  border-radius: 20px;
  height: auto;
  object-fit: cover;
}

/* أزرار عامة */
.btn, .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 60px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover, .back-btn:hover {
  background: #3e5e6b;
  transform: translateY(-2px);
}

/* شبكة الخدمات */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* ---------- تحسين الشاشات الكبيرة (لابتوب / كمبيوتر) ---------- */
@media (min-width: 1200px) {
  header {
    padding: 20px 60px;
  }
  .hero-logo {
    width: 200px;
  }
  .container {
    padding: 0 40px;
  }
  .card {
    padding: 32px;
  }
}

/* ---------- تحسين الموبايل ---------- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 16px;
    text-align: center;
  }
  .hero-logo {
    width: 150px;
  }
  .social {
    justify-content: center;
  }
  .container {
    padding: 0 16px;
  }
  .befor-after {
    flex-direction: column;
  }
  .dropdown-btn, .dropdown-menu {
    width: 100%;
  }
  .munu {
    max-width: 100%;
    margin: 8px auto;
  }
}