/* ==========================================================================
   منصة شركة كنوز الإنجاز الزراعية - نظام الأنماط والهوية البصرية الفاخرة
   Knouz Al-Enjaz Agricultural Platform - Modern Luxury Design System (RTL)
   ========================================================================== */

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

:root {
  /* درجات الألوان الطبيعية الزراعية */
  --primary-darker: #072617;
  --primary-dark: #0B3B24;
  --primary: #0F5132;
  --primary-light: #198754;
  --primary-soft: #e8f5ed;
  --accent-emerald: #20C997;
  --accent-gold: #C5A85C;
  --accent-gold-soft: #fcf8ee;
  
  /* الألوان الحيادية والخلفيات */
  --bg-page: #F8FAF8;
  --bg-surface: #FFFFFF;
  --bg-muted: #EFF5F0;
  --text-main: #14281A;
  --text-muted: #526B57;
  --text-light: #7E9783;
  --border-light: #E2ECE4;
  --border-focus: #198754;

  /* الظلال */
  --shadow-sm: 0 2px 8px rgba(15, 81, 50, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 81, 50, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 81, 50, 0.12);
  --shadow-card: 0 10px 30px rgba(11, 59, 36, 0.06);

  /* الخطوط */
  --font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   أزرار المنصة (Buttons)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(15, 81, 50, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(15, 81, 50, 0.35);
  color: #FFFFFF;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.7);
  color: #FFFFFF;
}

.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--primary-dark);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1eb956;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* ==========================================================================
   الشريط العلوي (Top Utility Bar)
   ========================================================================== */
.top-bar {
  background-color: var(--primary-darker);
  color: #D1E5D7;
  font-size: 0.86rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.top-bar-item svg {
  width: 15px;
  height: 15px;
  fill: var(--accent-emerald);
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar-social a {
  color: #D1E5D7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.top-bar-social a:hover {
  color: var(--accent-emerald);
  transform: translateY(-2px);
}

.top-bar-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ==========================================================================
   Header الرئيسي وقائمة التنقل (Main Navigation)
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(11, 59, 36, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo img {
  height: 58px;
  width: auto;
  transition: var(--transition);
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.5px;
}

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

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-emerald));
  border-radius: 3px;
  transition: var(--transition);
}

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

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

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

/* زر القائمة للشاشات الصغيرة */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary-dark);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ==========================================================================
   قائمة الجوال الجانبية (Mobile Drawer)
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1050;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}

.drawer-header img {
  height: 48px;
}

.drawer-close {
  background: var(--bg-muted);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
}

.drawer-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.drawer-nav {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.drawer-link {
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  border-right: 4px solid transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-link:hover,
.drawer-link.active {
  color: var(--primary);
  background: var(--bg-muted);
  border-right-color: var(--primary);
}

.drawer-footer {
  margin-top: auto;
  padding: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 38, 23, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   قسم Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  background: url('../images/hero_garden.jpg') center center / cover no-repeat;
  color: #FFFFFF;
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 38, 23, 0.9) 0%, rgba(11, 59, 36, 0.8) 50%, rgba(20, 75, 47, 0.65) 100%);
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #D4EDDA;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-emerald);
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-title span {
  color: var(--accent-emerald);
  display: inline-block;
  position: relative;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #E2ECE4;
  margin-bottom: 36px;
  max-width: 680px;
  font-weight: 500;
}

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

/* ==========================================================================
   شريط الإحصائيات (Stats Counters)
   ========================================================================== */
.stats-section {
  position: relative;
  z-index: 3;
  margin-top: -60px;
  margin-bottom: 70px;
}

.stats-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 10px;
}

.stat-item:not(:last-child) {
  border-left: 1px solid var(--border-light);
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   العناوين العامة للأقسام (Section Headers)
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   قسم الخدمات الزراعية (Services Grid & Cards)
   ========================================================================== */
.services-section {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.service-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 34px 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-emerald));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(25, 135, 84, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-soft), #d8efe1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
}

.service-card:hover .service-card-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFFFFF;
  transform: scale(1.05);
}

.service-card-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

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

.service-card-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.service-chip {
  background: var(--bg-muted);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.service-link {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: var(--transition);
}

.service-card:hover .service-link svg {
  transform: translateX(-5px);
}

/* ==========================================================================
   سلايدر قبل وبعد التفاعلي (Before / After Comparison Slider)
   ========================================================================== */
.before-after-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-muted) 100%);
}

.ba-wrapper {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.ba-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 24px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path 0.05s ease-out;
}

.ba-badge {
  position: absolute;
  top: 20px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.ba-badge-after {
  right: 20px;
  background: rgba(15, 81, 50, 0.9);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.ba-badge-before {
  left: 20px;
  background: rgba(40, 40, 40, 0.85);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #FFFFFF;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: ew-resize;
  border: 3px solid var(--primary);
}

.ba-handle-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.ba-caption {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.ba-caption h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 8px;
}

.ba-caption p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   قسم المشاريع (Projects Showcase)
   ========================================================================== */
.projects-section {
  padding: 80px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

.project-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-thumb img {
  transform: scale(1.06);
}

.project-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(15, 81, 50, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
}

.project-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.project-card-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.project-card-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   قسم الصيانة الدورية (Maintenance Highlight)
   ========================================================================== */
.maintenance-section {
  padding: 80px 0;
  background: var(--bg-muted);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.package-card {
  background: #FFFFFF;
  border-radius: 22px;
  padding: 38px 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.package-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: var(--primary);
  color: #FFFFFF;
  padding: 5px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(15, 81, 50, 0.3);
}

.package-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.package-freq {
  font-size: 0.92rem;
  color: var(--primary-light);
  font-weight: 700;
  margin-bottom: 16px;
}

.package-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  min-height: 48px;
}

.package-price {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-light);
}

.price-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.price-currency {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

.package-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.package-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-main);
}

.package-feature-item svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-light);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   قسم لماذا كنوز الإنجاز (Why Knouz)
   ========================================================================== */
.why-section {
  padding: 80px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.why-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 32px 26px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: right;
}

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

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--bg-muted);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.why-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

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

/* ==========================================================================
   بانر الحث على اتخاذ قرار (CTA Banner)
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  border-radius: 28px;
  padding: 60px 48px;
  margin: 40px auto 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.2rem;
  color: #D1E5D7;
  max-width: 680px;
  margin: 0 auto 32px;
}

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

/* ==========================================================================
   Footer المتكامل
   ========================================================================== */
.main-footer {
  background: var(--primary-darker);
  color: #E2ECE4;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-about img {
  height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 0.95rem;
  color: #A9C2B0;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 3px;
  background: var(--accent-emerald);
  border-radius: 3px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: #A9C2B0;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-link:hover {
  color: var(--accent-emerald);
  transform: translateX(-5px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #A9C2B0;
}

.footer-contact-item svg {
  width: 20px;
  height: 20px;
  fill: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: #7E9B85;
}

/* ==========================================================================
   زر الواتساب العائم (Floating WhatsApp Button)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 990;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  background: #1A2E1D;
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ==========================================================================
   شريط الجوال السفلي الثابت (Mobile Sticky Bottom Bar)
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(11, 59, 36, 0.1);
  z-index: 1020;
  padding: 10px 16px;
}

.mobile-bottom-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 10px;
  align-items: center;
}

.mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.mobile-bar-call {
  background: var(--bg-muted);
  color: var(--primary-dark);
  border: 1px solid var(--border-light);
}

.mobile-bar-wa {
  background: #25D366;
  color: #FFFFFF;
}

.mobile-bar-rfq {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFFFFF;
}

/* ==========================================================================
   استجابة الشاشات (Responsive Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .stats-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-item:nth-child(2) {
    border-left: none;
  }
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  .package-card.popular {
    transform: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* تفعيل البادينج السفلي في الجوال لتفادي حجب المحتوى من الشريط الثابت */
  body {
    padding-bottom: 74px;
  }

  .top-bar {
    display: none;
  }

  .main-nav,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-inner {
    height: 72px;
  }

  .hero-section {
    padding: 60px 0 90px;
    min-height: auto;
  }

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

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .stats-section {
    margin-top: -30px;
  }

  .stats-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .stat-item {
    border-left: none !important;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 18px;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .ba-wrapper {
    padding: 20px;
  }

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

  .cta-banner {
    padding: 40px 24px;
  }

  .cta-banner h2 {
    font-size: 1.8rem;
  }

  /* إظهار الشريط السفلي للجوال */
  .mobile-bottom-bar {
    display: block;
  }

  .whatsapp-float {
    bottom: 84px;
    left: 20px;
    width: 54px;
    height: 54px;
  }
}
