:root {
  --primary-color: #1a56db;
  --primary-dark: #1245a8;
  --primary-light: #3b82f6;
  --secondary-color: #fbbf24;
  --secondary-light: #fcd34d;
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --text-color: #0f172a;
  --text-color-light: #334155;
  --text-color-lighter: #64748b;
  --light-color: #f8fafc;
  --dark-color: #0f172a;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

.product-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.product-modal.show {
  display: block;
}
.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.product-modal-body {
  position: relative;
  max-width: 600px;
  margin: 80px auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: start;
}
.product-modal-body .close-btn {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
}
.pm-company {
  margin-top: 6px;
  font-weight: 600;
  color: #333;
}
.pm-specs {
  margin-top: 12px;
  padding-inline-start: 20px;
}
html[dir="rtl"] .pm-specs {
  padding-inline-start: 0;
  padding-inline-end: 20px;
}



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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-color);
  background-color: var(--light-color);
  line-height: 1.5;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  font-size: 16px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.btn-light {
  background-color: white;
  color: var(--primary-color);
}

.btn-light:hover {
  background-color: var(--light-color);
}

/* Section Styles */
.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 16px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 10px;
}

/* Header & Navigation */
header {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  position: relative;
}

.logo a {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 24px;
  color: var(--primary-color);
}

.logo img {
  width: 40px;
  height: 40px;
  margin-left: 8px;
}

.nav-menu {
  display: flex;
  margin: 0;
  transition: var(--transition);
}

.nav-menu li {
  margin: 0 16px;
}

.nav-menu a {
  color: var(--text-color);
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  bottom: 0;
  right: 0;
  transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--accent-color);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 5px;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('https://images.pexels.com/photos/3760529/pexels-photo-3760529.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 120px 0;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-md);
  border-color: var(--accent-color);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-light);
  border-radius: 50%;
}

.feature-icon img {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

/* Products Preview Section */
.products-preview {
  padding: 80px 0;
  background-color: var(--light-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
}

.product-image {
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 24px;
}

.product-info h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.product-info p {
  margin-bottom: 16px;
  color: var(--text-color-light);
}

.products-cta {
  margin-top: 48px;
  text-align: center;
}
.company-badge {
  display: inline-block;
  margin-bottom: 8px; /* 👈 مسافة أسفل اسم الشركة */
}

/* ================================
   🤝 شركاؤنا - صفوف ثابتة
   ================================ */
.partners-section {
  background: #f5f6f7;
  padding: 60px 0;
}

.partners-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 700;
  color: #1f2937;
}

/* الشبكة */
.partners-grid {
  display: flex;
  flex-wrap: wrap;           /* 👈 دي أهم سطر: لو زادوا ينزلوا سطر */
  gap: 30px;
  justify-content: center;   /* يوسّط الصفوف */
}

/* كل لوجو في كارت صغير */
.partner-item {
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  min-width: 100px;          /* أقل عرض للبلوك */
  max-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

/* الصورة نفسها */
.partner-item img {
  max-width: 140px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* موبايل */
@media (max-width: 768px) {
  .partners-grid {
    gap: 20px;
  }
  .partner-item {
    min-width: 45%;
  }
}




/* CTA Section */
.cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.footer-logo h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links h4, .footer-contact h4 {
  margin-bottom: 24px;
  font-size: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after, .footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: white;
  padding-right: 5px;
}

.footer-contact p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--accent-color);
}

.social-link img {
  width: 20px;
  height: 20px;
}

.copyright {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Page Header */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  opacity: 0.9;
}

/* Products Page */
.products {
  padding: 80px 0;
}

.filter-section {
  margin-bottom: 48px;
  text-align: center;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.filter-btn {
  padding: 8px 16px;
  border: none;
  background-color: white;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--accent-color);
  color: white;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.product-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.product-details {
  padding: 24px;
}

.product-details h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.product-features {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.feature-badge {
  background-color: var(--accent-light);
  color: var(--text-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.product-description p {
  margin-bottom: 16px;
  color: var(--text-color-light);
}

/* ==========================
   👁️‍🗨️ عرض وإخفاء تفاصيل المنتج
   ========================== */
.product-description {
  max-height: 90px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.product-item.show-full .product-description {
  max-height: 600px; /* المساحة الكافية للمواصفات */
}


.product-specs {
  list-style: disc;
  padding-right: 20px;
  margin-bottom: 24px;
  color: var(--text-color-light);
}

.product-action {
  display: flex;
  gap: 16px;
}

/* Gallery */
.gallery {
  padding: 80px 0;
  background-color: var(--light-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  aspect-ratio: 1/1;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About Page */
.about-section {
  padding: 80px 0;
  background-color: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 16px;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 10px;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.values-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background-color: white;
  padding: 32px 24px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-light);
  border-radius: 50%;
}

.value-card h3 {
  margin-bottom: 16px;
}

.team-section {
  padding: 80px 0;
  background-color: white;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-member {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-md);
}

.member-image {
  height: 300px;
  overflow: hidden;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  padding: 24px;
  text-align: center;
}

.member-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.member-title {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 16px;
}

.achievements-section {
  padding: 80px 0;
  background-color: var(--light-color);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.achievement-card {
  background-color: white;
  border-radius: var(--border-radius);
  text-align: center;
  padding: 32px 24px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
}

.achievement-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 16px;
}

/* Contact Page */
.contact-section {
  padding: 80px 0;
  background-color: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  background-color: var(--light-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-info h2 {
  font-size: 28px;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 16px;
}

.contact-info h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 10px;
}

.info-item {
  display: flex;
  margin-bottom: 24px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-light);
  color: var(--text-color);
}

.info-icon img {
  width: 24px;
  height: 24px;
}

.info-content h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.social-contact {
  margin-top: 40px;
}

.social-contact h3 {
  margin-bottom: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--border-radius, 8px);
  margin: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* 🎯 ألوان المنصات */
.facebook-link {
  background-color: #1877F2;
}
.whatsapp-link {
  background-color: #25D366;
}


.instagram-link {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.youtube-link {
  background-color: #FF0000;
}

.tiktok-link {
  background-color: #010101;
}

/* الأيقونات */
.social-link i {
  font-size: 18px;
}

.social-link span {
  margin-right: 8px;
}

/* ==========================
   🔘 زر واتساب + فقاعة ترحيب
   ========================== */
.floating-whatsapp-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.floating-whatsapp {
  background-color: #25D366;
  color: white;
  font-size: 28px;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* 💬 فقاعة الترحيب */
.whatsapp-bubble {
  position: absolute;
  bottom: 75px;
  right: 0;
  background-color: #ffffff;
  color: #333;
  padding: 10px 16px;
  border-radius: 18px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  font-size: 14px;
  white-space: nowrap;
  animation: fadeInBubble 0.6s ease forwards;
}

/* 🔄 حركة ظهور الفقاعة */
@keyframes fadeInBubble {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* الحالة الطبيعية */
.whatsapp-bubble {
  opacity: 1;
  transition: opacity 0.5s ease; /* مهم للإخفاء */
}

/* حالة الإخفاء */
.whatsapp-bubble.hide {
  opacity: 0;
  pointer-events: none;       /* تمنع التفاعل وقت الاختفاء */
}


/* دعم RTL */
html[dir="rtl"] .floating-whatsapp-wrapper {
  left: auto;
  right: 20px;
}

html[dir="rtl"] .whatsapp-bubble {
  left: auto;
  right: 0;
}


.contact-form {
  background-color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.contact-form h2 {
  font-size: 28px;
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 16px;
}

.contact-form h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.map-section {
  padding: 80px 0;
  background-color: var(--light-color);
  text-align: center; /* يوسّط العنوان والعنصر */
}

.map-placeholder {
  display: flex;
  justify-content: center; /* يوسّط أفقياً */
  align-items: center;     /* يوسّط عمودياً */
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  margin: 0 auto; /* يجعلها في منتصف الصفحة */
  max-width: 900px; /* عرض أقصى للخريطة */
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--border-radius);
  object-fit: cover;
}

/* تجاوب الموبايل */
@media (max-width: 768px) {
  .map-placeholder {
    height: 300px;
    max-width: 100%;
  }
}


.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 32px;
}

.faq-section {
  padding: 80px 0;
  background-color: white;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--light-color);
  cursor: pointer;
}

.faq-question h3 {
  font-size: 18px;
  margin: 0;
}

.faq-toggle {
  font-size: 24px;
  font-weight: 700;
  transition: var(--transition);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 16px 24px;
  max-height: 200px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}