/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
   background: white;
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.top-bar {
  background-color: var(--color-navy-900);
  font-size: 0.85rem;
  padding: var(--space-xs) 0;
  text-align: center;
  color: var(--color-off-white);
}

.main-header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.brand-name {
  font-weight: var(--font-heading-weight);
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-weight: var(--font-heading-weight);
  transition: all 0.3s ease;
}

.btn-call {
  background-color: var(--color-gold-500);
  color: var(--color-navy-900);
}

.btn-call:hover {
  background-color: var(--color-gold-600);
  box-shadow: var(--shadow-gold);
}

.btn-whatsapp-header {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  padding: var(--space-xs); /* شكل مربع/دائري على الموبايل */
  border-radius: var(--radius-md);
}

.hide-mobile {
  display: none;
}

/* Header Desktop Adjustments */
@media (min-width: 768px) {
  .main-header .header-container {
    padding: var(--space-sm) var(--space-md);
  }
  .brand-name {
    font-size: 1.5rem;
  }
  .hide-mobile {
    display: inline;
  }
  .btn-whatsapp-header {
    padding: var(--space-xs) var(--space-sm);
  }
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-navy-900);
  color: var(--color-off-white);
  padding-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-heading {
  color: var(--color-gold-500);
  font-weight: var(--font-heading-weight);
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links a:hover {
  color: var(--color-gold-500);
}

.footer-bottom {
  background-color: #0A152A; /* أغمق درجة للاختتام */
  padding: var(--space-sm) 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Footer Desktop Adjustments */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Floating WhatsApp Button --- */
/* --- Floating Action Buttons --- */
.floating-actions {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md); /* تم وضعها يساراً حتى لا تغطي شريط التمرير */
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 9999;
}

.float-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.float-btn:hover {
  transform: translateY(-5px);
}

.float-whatsapp {
  background-color: var(--color-whatsapp);
  animation: pulse-whatsapp 2s infinite;
}

.float-call {
  background-color: var(--color-navy-900); /* لون كحلي مميز للاتصال */
  animation: pulse-call 2s infinite;
  animation-delay: 1s; /* تأخير بسيط لينبض الزران بالتبادل */
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes pulse-call {
  0% { box-shadow: 0 0 0 0 rgba(15, 31, 61, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(15, 31, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 31, 61, 0); }
}

/* تصغير المسافة على الموبايل */
@media (max-width: 768px) {
  .floating-actions {
    left: var(--space-sm);
    bottom: var(--space-sm);
  }
}
/* =========================================
   تنسيقات الأيقونات والنصوص
========================================= */
/* إصلاح مشكلة تمطط أيقونات الـ SVG في أي مكان */
.fix-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  flex-shrink: 0;
  display: block;
}

.desktop-text {
  display: inline;
}

/* إخفاء الشريط السفلي في الديسكتوب */
.mobile-sticky-bar {
  display: none;
}

/* زر الواتساب في الهيدر */
.btn-whatsapp-header {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
}

/* =========================================
   الموبايل (الشاشات أصغر من 768px)
========================================= */
@media (max-width: 768px) {
  /* إخفاء نصوص الهيدر للموبايل وترك الأيقونات فقط */
  .desktop-text {
    display: none;
  }
  
  /* تصغير المسافات في الهيدر للموبايل لتوفير مساحة */
  .btn-whatsapp-header, .btn-call {
    padding: var(--space-xs);
  }

  /* إظهار وتنسيق الشريط السفلي المستطيل */
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
  }

  /* المستطيلات تأخذ مساحة متساوية 50/50 */
  .mobile-action-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    padding: 14px 5px;
    color: var(--color-white);
    font-weight: var(--font-heading-weight);
    font-size: 1rem;
    transition: opacity 0.3s;
  }
  
  .mobile-action-btn:active {
    opacity: 0.8;
  }

  .whatsapp-bg {
    background-color: var(--color-whatsapp);
  }

  .call-bg {
    background-color: var(--color-navy-900); /* لون كحلي ثابت */
  }

  /* رفع المحتوى قليلاً حتى لا يغطيه الشريط السفلي */
  body {
    padding-bottom: 56px; 
  }
}



/* تنسيق حاوية الشعار في الهيدر والفوتر */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* ضبط حجم الصورة داخل الـ picture لتعمل بشكل صحيح مع الـ Flexbox */
.brand picture {
  display: block;
  flex-shrink: 0;
  height: 58px;   /* بدل width: 140px */
  width: auto;

}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .brand picture {
    height: 52px;
  }
}

.footer-about .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}
.footer-about .brand picture {
  background-color: var(--color-off-white);
  border-radius: var(--radius-md);
  padding: 8px 8px;
  height: auto;
}

.by{
float: left;
  margin-top: -13px;
}
@media (min-width: 768px) and (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}