/**
 * Fast Way | فاست واي لخدمات النقل والتوصيل
 * الهوية البصرية والتصميم العام (Global Stylesheet)
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* ألوان الهوية البصرية لـ Fast Way */
  --primary-dark: #063B2D;       /* الأخضر الداكن */
  --primary-teal: #0D8178;       /* الأخضر الفيروزي */
  --primary-gold: #D9B233;       /* الذهبي */
  --gold-light: #FDF3D0;
  --bg-page: #F8FAF9;            /* خلفية الصفحة الفاتحة */
  --bg-card: #FFFFFF;            /* خلفية البطاقات */
  --bg-input: #FFFFFF;           /* خلفية الحقول */
  --border-color: #E2EAE6;       /* حدود البطاقات والعناصر */
  --border-focus: #0D8178;       /* لون التركيز عند الكتابة */
  --text-dark: #112620;          /* النص الرئيسي الداكن */
  --text-muted: #526B62;         /* النصوص الفرعية والرمادية */
  --text-light: #FFFFFF;
  
  /* ألوان الحالات والرسائل */
  --status-new: #2563EB;
  --status-pending: #D97706;
  --status-confirmed: #16A34A;
  --status-dispatched: #7C3AED;
  --status-completed: #063B2D;
  --status-danger: #DC2626;

  /* الظلال */
  --shadow-sm: 0 1px 3px rgba(6, 59, 45, 0.06);
  --shadow-md: 0 4px 12px rgba(6, 59, 45, 0.08);
  --shadow-lg: 0 10px 25px rgba(6, 59, 45, 0.12);
  --shadow-hover: 0 12px 30px rgba(13, 129, 120, 0.16);

  /* الزوايا المستديرة */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* الانتقالات */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* إعادة الضبط والقواعد الأساسية */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
}

body {
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img, svg {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ===================================================
   شريط التنقل العلوي (Navbar)
   =================================================== */
.main-header {
  background-color: var(--bg-card);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  height: 56px;
  width: 56px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  transition: var(--transition);
}

.nav-brand:hover .nav-logo {
  transform: scale(1.05);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'Cairo', sans-serif;
}

.brand-name .brand-accent {
  color: var(--primary-gold);
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-teal);
  letter-spacing: 0px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-item:hover, .nav-item.active {
  color: var(--primary-teal);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 12px;
  left: 12px;
  height: 3px;
  background-color: var(--primary-gold);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary-dark);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* ===================================================
   الأزرار العامة (Buttons)
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(6, 59, 45, 0.25);
  border: 1px solid rgba(217, 178, 51, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #10978d 0%, #084c3a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 59, 45, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, #FDE047 0%, var(--primary-gold) 100%);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(217, 178, 51, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #FEF08A 0%, #EAB308 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 178, 51, 0.45);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--primary-dark);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: #F1F5F3;
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

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

.btn-outline:hover {
  background-color: var(--primary-teal);
  color: var(--text-light);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.15rem;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.88rem;
}

/* ===================================================
   القسم الرئيسي (Hero Section)
   =================================================== */
.hero-section {
  background: linear-gradient(135deg, #04271E 0%, #063B2D 50%, #094F3C 100%);
  color: var(--text-light);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary-gold);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(13, 129, 120, 0.25) 0%, transparent 50%),
                    radial-gradient(circle at 15% 80%, rgba(217, 178, 51, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--primary-gold);
}

.hero-desc {
  font-size: 1.2rem;
  color: #D6E4DE;
  line-height: 1.8;
  margin-bottom: 35px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-preview {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 100%;
  max-width: 440px;
}

.hero-car-img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.hero-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}

.trust-item {
  font-size: 0.85rem;
  color: #E2EAE6;
}

.trust-item strong {
  display: block;
  color: var(--primary-gold);
  font-size: 1.05rem;
}

/* ===================================================
   أقسام المحتوى (Sections)
   =================================================== */
.section {
  padding: 70px 0;
}

.section-alt {
  background-color: #EEF3F0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  color: var(--primary-teal);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.section-title {
  color: var(--primary-dark);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* بطاقات الخدمات (Services Grid) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-hover);
}

.service-icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: #E8F5F3;
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: var(--primary-teal);
  color: var(--text-light);
}

.service-icon-wrap svg {
  width: 36px;
  height: 36px;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* بطاقات خطوات الحجز الثلاث (3 Simple Steps) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.step-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px 25px;
  text-align: center;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.step-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-4px);
}

.step-number-bubble {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-dark) 100%);
  color: var(--primary-gold);
  font-weight: 900;
  font-size: 1.3rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -55px auto 20px;
  box-shadow: 0 4px 10px rgba(6, 59, 45, 0.2);
  border: 3px solid var(--bg-card);
}

.step-title {
  color: var(--primary-dark);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* قسم المدن التي نخدمها (Cities Grid) */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.city-pill-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
  color: var(--primary-dark);
  font-weight: 700;
}

.city-pill-card:hover {
  border-color: var(--primary-teal);
  background-color: #F0F8F6;
  transform: translateY(-3px);
}

.city-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #E8F5F3;
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-icon svg {
  width: 22px;
  height: 22px;
}

/* قسم التواصل والواتساب (Direct Contact Banner) */
.contact-banner-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0A4F3D 100%);
  color: var(--text-light);
  border-radius: var(--radius-xl);
  padding: 45px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 2px solid var(--primary-gold);
  box-shadow: var(--shadow-lg);
  flex-wrap: wrap;
}

.contact-info-wrap h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-light);
}

.contact-info-wrap p {
  color: #D6E4DE;
  font-size: 1.05rem;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===================================================
   التذييل (Footer)
   =================================================== */
.main-footer {
  background-color: #04241C;
  color: #CBDCD4;
  padding: 60px 0 25px;
  margin-top: auto;
  border-top: 3px solid var(--primary-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h4 {
  color: var(--text-light);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #9EBEB2;
}

.footer-col h5 {
  color: var(--primary-gold);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: #CBDCD4;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--primary-gold);
  padding-right: 4px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  font-size: 0.9rem;
  color: #7A9E91;
}

/* ===================================================
   زر واتساب العائم (Floating WhatsApp Button)
   =================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px; /* في الواجهة العربية RTL يُفضل وضعه على اليسار لتفادي تغطية أزرار الإرسال */
  z-index: 9999;
  display: flex;
  align-items: center;
  background-color: #25D366;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
  padding: 6px;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.55);
}

.whatsapp-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-tooltip {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding-left: 14px;
  padding-right: 6px;
  white-space: nowrap;
}

/* ===================================================
   التنبيهات المنبثقة (Toasts)
   =================================================== */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  font-weight: 600;
  animation: slideInToast 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #FFFFFF;
}

.toast-success {
  background-color: #10B981;
}

.toast-error {
  background-color: #EF4444;
}

.toast-info {
  background-color: var(--primary-teal);
}

.toast-item.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

@keyframes slideInToast {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===================================================
   الاستجابة للشاشات الصغيرة (Responsive Media Queries)
   =================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: 0;
    left: 0;
    background-color: var(--bg-card);
    flex-direction: column;
    padding: 24px;
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    gap: 16px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .contact-banner-card {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp-btn .whatsapp-tooltip {
    display: none;
  }

  .floating-whatsapp-btn {
    bottom: 20px;
    left: 20px;
  }
}
