تعميم أساسي */ body {
  margin: 0;
  font-family: "Arial", sans-serif;
  background-color: #fff;
  color: #333;
  direction: rtl;
}

/* الهيدر */
.hero {
  background-image: url('fence1.jpg');
  background-size: cover;
  background-position: center;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  /* تظليل */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 90%;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.hero-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #f5a623;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero-btn:hover {
  background-color: #d48806;
}

.navbar {
  background-color: #001f23;
  color: #fff;
  padding: 20px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  /* ✅ يسمح بالتمرير في الجوال */
  white-space: nowrap;
  /* ✅ يمنع الانكسار */
  gap: 12px;
  padding: 0 10px;
  max-width: 100%;
}

.nav-links {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-size: 0.85em;
  /* ✅ حجم خط أصغر عشان ما يزحم */
  white-space: nowrap;
  transition: color 0.3s ease;
}

.logo {
  font-size: 1.2em;
  font-weight: bold;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 12px;
  /* ✅ التباعد بين الروابط */
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  justify-content: center;
}

.nav-links li a {
  font-size: 0.8em;
  padding: 4px 0;
}

.nav-links li a:hover {
  color: #f5a623;
}

/* قسم من نحن */
.about-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.about-container {
  display: flex;
  flex-direction: row-reverse;
  /* الصورة يسار */
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.about-image {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-text h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #222;
}

.about-text p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444;
}

/* استجابة للجوال */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-text {
    padding-top: 20px;
  }
}

/* قسم خدماتنا */
.services-section {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #222;
}

.section-subtitle {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #666;
}

.services-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.service-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  width: 300px;
  padding: 20px;
  transition: transform 0.3s ease;
}

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

.service-card img {
  width: 100%;
  border-radius: 8px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #333;
}

.service-card p {
  font-size: 1em;
  color: #555;
  line-height: 1.6;
}

/* استجابة للجوال */
@media (max-width: 768px) {
  .services-grid {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 90%;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3em;
  font-weight: bold;
  color: white;
  white-space: nowrap;
}

.logo-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.gallery-section {
  background-color: #fff;
  padding: 50px 20px;
  text-align: center;
}

.gallery-container {
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #222;
}

.gallery-row {
  display: flex;
  flex-wrap: nowrap;
  /* لا تنكسر الأسطر */
  overflow-x: auto;
  /* يسمح بالتمرير الأفقي على الجوال */
  gap: 15px;
  padding-bottom: 10px;
}

.gallery-img {
  flex: 0 0 auto;
  width: 250px;
  height: 180px;
  border: 3px solid #000;
  border-radius: 8px;
  object-fit: cover;

}

.gallery-img:hover {
  transform: scale(1.05);
}

.gallery-section {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.gallery-container {
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 2.2em;
  margin-bottom: 40px;
  color: #222;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* صورتين في كل صف */
  gap: 20px;
  justify-content: center;
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 3px solid #000;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
}

/* الجوال – تظل صورتين بجانب بعض إذا الشاشة تسمح */
@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-img {
    height: 150px;
  }
}

@media (max-width: 500px) {
  .navbar-container {
    gap: 8px;
    padding: 6px 10px;
  }

  .logo {
    font-size: 0.85em;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links li a {
    font-size: 0.75em;
  }
}

@media (max-width: 500px) {
  .nav-links {
    gap: 14px;
    /* تباعد أنيق في الشاشات الصغيرة */
  }

  .nav-links li a {
    font-size: 0.8em;
    padding: 4px 6px;
  }

  .logo {
    gap: 6px;
  }

  .navbar-container {
    padding: 6px 12px;
  }
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-size: 1em;
  min-width: 120px;
  text-align: center;
}
.btn.whatsapp {
  background-color: #25D366;
}

.btn.phone {
  background-color: #e53935;
}
.fixed-buttons {
  position: fixed;
  bottom: 80px;
  width: 100%;
  z-index: 9999;
  pointer-events: none;
}

.fixed-buttons a {
  position: absolute;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.fixed-buttons .btn-whatsapp {
  left: 20px;
}

.fixed-buttons .btn-call {
  right: 20px;
}

.fixed-buttons img {
  width: 30px;
  height: 30px;
}
.services-section {
  text-align: center;
  padding: 30px 15px;
  font-family: 'Cairo', sans-serif;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
}

.service-card {
  background-color: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px;
  max-width: 300px;
  flex: 1 1 280px;
  text-align: center;
}

.service-card img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.3rem;
  color: #222;
  margin-bottom: 10px;
}

.fence-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
  color: #333;
  font-weight: bold;
}

.fence-list li {
  margin: 6px 0;
  font-size: 0.95rem;
}

/* للجوال */
@media (max-width: 600px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    max-width: 90%;
  }
}
.site-footer {
  background-color: #004d40; /* أخضر غامق أنيق */
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 1.1rem;
  margin-top: 40px;
}

.site-footer a {
  color: #ffd700; /* ذهبي جذاب */
  text-decoration: none;
  font-weight: bold;
}

.site-footer a:hover {
  text-decoration: underline;
}