/* ===== Reset & Base ===== */
/* إزالة الهوامش والحشوات الافتراضية وضبط الحسابات لتضمين الحواف */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* تعريف متغيرات الألوان والظلال لاستخدامها في جميع أنحاء الصفحة */
:root {
  --primary: #0f766e;
  --primary-dark: #0d5e56;
  --secondary: #fbbf24;
  --offers: #ff6b6b;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --success: #10b981;
  --error: #ef4444;
}

/* إعداد الخطوط الأساسية ولون الخلفية ولون الخط */
body {
  font-family: "Tajawal", Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* حاوية لعرض المحتوى بحدود عرض أقصى وتوسيط */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* تنسيق الروابط لإزالة التسطير ووراثة اللون */
a {
  text-decoration: none;
  color: inherit;
}

/* تنسيق الصور لتكون مرنة ومناسبة لجميع الأجهزة */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Navbar ===== */
/* بار التنقل */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: var(--shadow);
}

/* ترتيب شريط التنقل باستخدام Flexbox */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

/* شعار الموقع */
.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* قائمة الروابط */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

/* روابط شريط التنقل */
.nav-links a {
  font-weight: 500;
  transition: color 0.3s;
}

/* تأثير اللون عند المرور أو الرابط النشط */
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* مجموعة أزرار الإجراءات في شريط التنقل */
.nav-actions {
  display: flex;
  gap: 0.75rem;
}

/* زر قائمة الهامبرغر لأجهزة الجوال */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

/* خطوط زر الهامبرغر */
.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--text-dark);
  transition: all 0.3s;
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ===== WhatsApp Floating Button ===== */
/* زر واتساب العائم */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* تأثير عند المرور على زر الواتساب */
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ===== Buttons ===== */
/* الأزرار الأساسية */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 0.95rem;
  text-align: center;
}

/* زر رئيسي بالألوان الأساسية */
.btn-primary {
  background: var(--primary);
  color: var(--white);
}

/* تأثير hover على الزر الأساسي */
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* حجم زر أكبر */
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* زر يعرض بعرض كامل */
.btn-block {
  width: 100%;
  display: block;
}

/* ===== Page Header ===== */
/* قسم رأس الصفحة */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #14b8a6 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

/* عنوان الصفحة الكبيرة */
.page-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

/* العنوان الفرعي */
.page-subtitle {
  font-size: 1.3rem;
  opacity: 0.95;
}

/* ===== Offers Section ===== */
/* قسم العروض */
.offers-section {
  padding: 4rem 0;
}

/* شبكة العروض */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* بطاقة العرض */
.offer-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  position: relative;
}

/* تأثير hover على بطاقة العرض */
.offer-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* شعار العرض داخل البطاقة */
.offer-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--offers);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(255, 107, 107, 0.4);
}

/* صورة العرض */
.offer-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
}

/* محتوى البطاقة */
.offer-body {
  padding: 2rem;
}

/* وصف العرض */
.offer-description {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  min-height: 60px;
}

/* تفاصيل السعر */
.offer-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* مبلغ السعر */
.price-amount {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
}

/* عملة السعر */
.price-currency {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* تاريخ العرض */
.offer-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* أزرار إجراءات العرض */
.offer-actions {
  display: flex;
  gap: 1rem;
}

/* زر الحجز داخل العرض */
.btn-book {
  flex: 1;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* تأثير hover لزر الحجز */
.btn-book:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(15, 118, 110, 0.3);
}

/* زر WhatsApp داخل العرض */
.btn-whatsapp {
  background: #25d366;
  color: white;
  border: none;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
}

/* تأثير hover لزر WhatsApp */
.btn-whatsapp:hover {
  background: #1da851;
  transform: scale(1.05);
}

/* ===== Loading State ===== */
/* رسالة التحميل */
.loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: var(--text-muted);
}

/* أيقونة التحميل */
.loading i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* نص التحميل */
.loading p {
  font-size: 1.2rem;
}

/* ===== Modal ===== */
/* مودال الحجز: مخفي بشكل افتراضي */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s;
}

/* عرض المودال عند تفعيله */
.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* تأثير التلاشي عند فتح المودال */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* محتوى المودال */
.modal-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 550px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  animation: slideUp 0.3s;
  box-shadow: var(--shadow-lg);
}

/* تأثير حركة صعود المودال */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* زر إغلاق المودال */
.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--bg-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-dark);
}

/* تأثير hover لزر الإغلاق */
.modal-close:hover {
  background: var(--border);
  transform: rotate(90deg);
}

/* عنوان المودال */
.modal-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

/* معلومات العرض داخل المودال */
.modal-offer-info {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* تنسيق الحقول داخل نموذج الحجز */
.booking-form .form-group {
  margin-bottom: 1.5rem;
}

/* تسميات الحقول */
.booking-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* حقول الإدخال والنصوص */
.booking-form input,
.booking-form textarea {
  width: 100%;
  padding: 0.9rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

/* تأثير التركيز على الحقول */
.booking-form input:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* رسالة حالة الحجز */
.booking-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  display: none;
}

/* رسالة نجاح */
.booking-message.success {
  background: #d1fae5;
  color: #065f46;
  display: block;
}

/* رسالة خطأ */
.booking-message.error {
  background: #fee2e2;
  color: #991b1b;
  display: block;
}

/* ===== Footer ===== */
/* تذييل الصفحة */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

/* شبكة التذييل */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* عناوين التذييل */
.footer h4 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* قائمة روابط التذييل */
.footer ul {
  list-style: none;
}

/* روابط التذييل */
.footer a {
  color: #cbd5e1;
  transition: color 0.3s;
}

/* تأثير hover على روابط التذييل */
.footer a:hover {
  color: var(--secondary);
}

/* أسفل التذييل */
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
}

/* ===== Responsive ===== */
/* استجابة التصميم لشاشات أصغر من 768 بكسل */
@media (max-width: 768px) {
  /* قائمة التنقل تصبح عرضية ومغلقة افتراضياً */
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    background: var(--white);
    flex-direction: column;
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s;
    z-index: 998;
  }

  /* عندما تفعل قائمة الهاتف */
  .nav-links.mobile-active {
    right: 0;
  }

  /* ظهور زر القائمة */
  .menu-toggle {
    display: flex;
  }

  /* تصغير العناوين */
  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  /* شبكة العروض بصيغة عمودية */
  .offers-grid {
    grid-template-columns: 1fr;
  }

  /* تقليل padding المودال */
  .modal-content {
    padding: 2rem 1.5rem;
  }

  /* جعل أزرار الإجراءات في العرض عمودية */
  .offer-actions {
    flex-direction: column;
  }
}

/* استجابة التصميم لشاشات أصغر من 480 بكسل */
@media (max-width: 480px) {
  /* تصغير عنوان الصفحة */
  .page-title {
    font-size: 1.6rem;
  }

  /* تصغير مبلغ السعر */
  .price-amount {
    font-size: 2rem;
  }

  /* تقليل حجم زر الواتساب */
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    font-size: 28px;
  }
}
