/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary: #0070C0;
  --primary-dark: #1d4ed8;
  --primary-light: #e0e7ff;
  --secondary: #10b981;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #94a3b8;
  --light-gray: #e2e8f0;
  --white: #ffffff;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
}

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

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: auto;
  max-height: 60px;
  transition: transform 0.3s ease;
  display: block;
}

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

.site-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.site-navigation a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.site-navigation a:hover {
  color: var(--primary);
}

/* Navigation Underline Animation */
.site-navigation > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.site-navigation > ul > li > a:hover::after {
  width: 100%;
}

.nav-icon {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.lang-switch {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.dropdown::after {
  content: "▼";
  font-size: 0.6em;
  margin-left: 6px;
}

.dropdown-menu {
  display: none !important; /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  flex-direction: column;
  min-width: 330px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  z-index: 1000;
  gap: 0 !important;
}

.has-dropdown:hover .dropdown-menu {
  display: flex !important;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  padding: 0.75rem 1.25rem;
  width: 100%;
  display: block;
}

.dropdown-menu a::after {
  display: none; /* Disable underline animation in dropdown */
}

.dropdown-menu a:hover {
  background-color: var(--light);
}

/* Mobile Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  width: 30px;
  height: 3px;
  background: var(--dark);
  border-radius: 10px;
  transition: all 0.3s linear;
}
/* About Page Specifics */
.about-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
  font-size: 1.05rem;
}
/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.hero-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/people.png');
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero .intro-text {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* =========================================
   4. GENERAL SECTIONS & COMPONENTS
   ========================================= */
.section {
  padding: 4rem 0;
}

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

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--dark);
  position: relative;
}

.section h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-item p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  flex-grow: 1; /* Pushes the link to the bottom */
}

.service-item a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
  margin-top: auto;
}

.service-item a:hover {
  color: var(--primary-dark);
}

.service-item a i {
  transition: transform 0.3s ease;
}

.service-item a:hover i {
  transform: translateX(3px);
}

/* =========================================
   5. FOOTER
   ========================================= */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer p {
  opacity: 0.8;
}

/* =========================================
   6. RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .site-navigation {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
  }

  .site-navigation.active {
    display: block;
  }

  .site-navigation ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .site-navigation > ul > li {
    width: 100%;
    border-bottom: 1px solid var(--light-gray);
  }

  .site-navigation > ul > li:last-child {
    border-bottom: none;
  }

  .site-navigation a {
    padding: 1rem 1.5rem;
    display: block;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    min-width: 100%;
    background: var(--light);
    border-radius: 0;
    padding: 0;
  }

  .has-dropdown:hover .dropdown-menu {
    display: none !important; /* Disables hover on mobile */
  }
  
  /* You will need JS to toggle dropdowns on mobile, but this forces them open if the parent is clicked for now */
  .site-navigation.active .dropdown-menu {
    display: flex !important; 
  }

  .dropdown-menu a {
    padding-left: 2.5rem;
    font-size: 0.95rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}

/* =========================================
   7. RTL SUPPORT (ARABIC)
   ========================================= */
[dir="rtl"] .nav-icon {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .dropdown::after {
  margin-left: 0;
  margin-right: 6px;
}

[dir="rtl"] .service-item a i {
  transform: scaleX(-1); /* Flips the arrow */
}

[dir="rtl"] .service-item a:hover i {
  transform: scaleX(-1) translateX(3px);
}

@media (min-width: 769px) {
  [dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
  }
  /* Apply Cairo font to all text on Arabic pages */
[dir="rtl"] body {
  font-family: 'Cairo', sans-serif;
}
/* Align FAQ items together in Arabic instead of pushing them apart */
[dir="rtl"] .faq-item summary {
  justify-content: flex-start;
}
}

/* =========================================
   8. PAGE SPECIFIC OVERRIDES (BCM & FAQ)
   ========================================= */
/* (I have kept your custom BCM and FAQ styles intact here, exactly as you had them, to ensure those pages do not break.) */
.bcm-page .services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1200px) { .bcm-page .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bcm-page .services-grid { grid-template-columns: 1fr; } }
.bcm-page .service-item.method-card { margin-top: 36px; }
.bcm-page .method-title { margin: 0 0 8px 0; font-weight: 700; color: var(--primary); }
.bcm-page .method-intro { margin: 0 0 18px 0; max-width: 820px; }
.bcm-page .delivery-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
@media (max-width: 1200px) { .bcm-page .delivery-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bcm-page .delivery-grid-4 { grid-template-columns: 1fr; } }
.bcm-page .delivery-step-compact { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.12); padding: 16px; border-radius: 12px; }
.bcm-page .step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bcm-page .step-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.14); color: var(--primary); opacity: 0.75; font-size: 14px; font-weight: 600; line-height: 1; }
.bcm-page .step-icon { color: var(--primary); font-size: 16px; }
.bcm-page .step-title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--primary); }
.bcm-page .delivery-step-compact .text-sm { margin: 0; }
.faq-wrap { margin-top: 34px; max-width: 980px; }
.faq-title { margin: 0 0 12px 0; }
.faq-item { border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; background: rgba(255,255,255,0.02); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus { outline: none; }
.faq-item summary:focus-visible { outline: 2px solid rgba(255,255,255,0.25); outline-offset: 2px; border-radius: 10px; }
.faq-icon { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.14); display: inline-flex; align-items: center; justify-content: center; opacity: 0.9; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-content { padding: 0 18px 16px 18px; opacity: 0.92; }
.faq-content p { margin: 10px 0 0 0; }
/* Packages 3-Column Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 1200px) {
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .packages-grid { grid-template-columns: 1fr; }
}
/* =========================================
   9. CONTACT PAGE SPECIFIC
   ========================================= */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: start;
}

.contact-info, .contact-form-container {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
}

.contact-info h2, .contact-form h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  background: var(--primary-light);
  color: var(--primary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.contact-details p, .contact-details a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--primary);
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--light);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
  background-color: var(--white);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}
/* =========================================
   RTL SUPPORT (ARABIC) FONTS
   ========================================= */
[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] p,
[dir="rtl"] a,
[dir="rtl"] span,
[dir="rtl"] div,
[dir="rtl"] li {
  font-family: 'Cairo', sans-serif !important;
}