/* ==========================================================================
   مرفأ للنقل والتخزين — الطائف (Marfa Moving & Storage)
   Main Stylesheet - Pure CSS (RTL-First, Mobile-First, Accessible)
   ========================================================================== */

/* Local Tajawal Font Files (Zero External Network Requests & Instant Render) */
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/tajawal-v12-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/tajawal-v12-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/tajawal-v12-arabic-500.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/tajawal-v12-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/tajawal-v12-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/tajawal-v12-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/tajawal-v12-arabic-800.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/tajawal-v12-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/tajawal-v12-arabic-900.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/tajawal-v12-latin-900.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- 1. متغيرات النظام البصري (Design Tokens) --- */
:root {
  --color-primary: #0f2744;         /* كحلي بحري عميق */
  --color-primary-light: #1e4976;   /* كحلي أفتح للعناصر الثانوية */
  --color-primary-dark: #0a1b30;    /* كحلي داكن للخلفيات */
  --color-accent: #d97706;          /* عنبري دافئ للأزرار والشارات */
  --color-accent-hover: #b45309;    /* عنبري داكن عند التحويم */
  --color-whatsapp: #16a34a;        /* أخضر واتساب زمردي */
  --color-whatsapp-hover: #15803d;
  
  --color-bg-main: #f8fafc;         /* خلفية الموقع العامة */
  --color-bg-card: #ffffff;         /* خلفية البطاقات */
  --color-bg-subtle: #f1f5f9;       /* رمادي ناعم للفواصل */
  --color-border: #e2e8f0;          /* خطوط الحدود */
  --color-border-focus: #3b82f6;
  
  --color-text-main: #0f172a;       /* لون النص الأساسي */
  --color-text-muted: #475569;      /* لون النصوص الثانوية */
  --color-text-light: #94a3b8;
  --color-text-inverse: #ffffff;    /* نص أبيض فوق الخلفيات الداكنة */
  
  --font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 39, 68, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 39, 68, 0.12);
  
  --header-height: 72px;
  --mobile-bar-height: 64px;
  --container-max-width: 1200px;
}

/* --- 2. ضبط الأساسيات وإعادة التعيين (Reset & Base) --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  direction: rtl;
  text-align: right;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.8;
  font-weight: 400;
  padding-bottom: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

ul, ol {
  list-style: none;
}

/* تخطيط الحاوية المركزية */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* --- 3. التيبوغرافيا (Typography) --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.55rem;
  position: relative;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.text-lead {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--color-text-main);
}

.text-center {
  text-align: center;
}

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 2.85rem; }
  h2 { font-size: 2.25rem; }
}

/* --- 4. الأزرار والمكونات التفاعلية (Buttons) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-accent {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  color: #ffffff;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

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

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--color-primary);
}

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

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* الشارات التوضيحية (Badges & Pills) */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background-color: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.25);
  margin-bottom: 0.85rem;
}

.badge-pill-white {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- 5. شريط الترويسة والتنقل (Header & Navigation) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* القائمة على الحواسيب */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
  padding: 0.5rem 0.25rem;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-phone-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  background-color: var(--color-bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.header-phone-link:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .header-phone-link { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
}

/* قائمة الجوال المنزلقة (Mobile Drawer) */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  background-color: #ffffff;
  z-index: 999;
  padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--color-border);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link.active {
  background-color: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.mobile-nav-footer {
  margin-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* --- 6. القسم البطل (Hero Section) --- */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #173860 100%);
  color: #ffffff;
  padding: 1.75rem 0 2.25rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 3rem 0 3.5rem;
  }
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, rgba(217, 119, 6, 0.15) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(22, 163, 74, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    margin-bottom: 1.25rem;
  }
  .hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.85;
    margin-bottom: 2rem;
  }
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
  align-items: stretch;
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
    align-items: center;
  }
}

/* --- 7. شريط ركائز الثقة (Trust Signals Bar) --- */
.trust-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.5rem;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: rgba(15, 39, 68, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.trust-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- 8. الأقسام العامة والبطاقات (Sections & Cards) --- */
.section {
  padding: 2.25rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 4rem 0;
  }
}

.section-alt {
  background-color: var(--color-bg-subtle);
}

.section-header {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 2.75rem;
  }
}

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

/* شبكة البطاقات */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* فئات الشبكة العامة والمرنة (Grid Utilities) */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .card {
    padding: 1.75rem;
  }
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 39, 68, 0.2);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(15, 39, 68, 0.1) 0%, rgba(30, 73, 118, 0.15) 100%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-title {
  margin-bottom: 0.75rem;
}

.card-text {
  flex-grow: 1;
}

.card-features {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.card-feature-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-whatsapp);
  flex-shrink: 0;
}

/* جدول وبطاقات الأسعار (Pricing Table & Cards) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background-color: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

@media (min-width: 768px) {
  .pricing-card {
    padding: 2rem;
  }
}

.pricing-card.featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 1.5rem;
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 0.25rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: var(--radius-full);
}

.pricing-price {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--color-primary);
  margin: 1rem 0;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* جدول مقارنة التمايز (Comparison Table) */
.comparison-container {
  overflow-x: auto;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  min-width: 600px;
}

.comparison-table th, .comparison-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
}

.comparison-table th:nth-child(2) {
  background-color: var(--color-primary-dark);
  color: var(--color-accent);
}

.comparison-table tr:hover td {
  background-color: rgba(241, 245, 249, 0.6);
}

/* خطوات العمل (Process Timeline) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  counter-reset: step-counter;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* زر العودة لأعلى الصفحة العائم للجوال (Back to Top Floating Button) */
.back-to-top-btn {
  position: fixed;
  bottom: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px) + 16px);
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:active {
  background-color: var(--color-accent);
}

@media (min-width: 1024px) {
  .back-to-top-btn {
    bottom: 24px;
    left: 24px;
  }
}

/* مؤشر السحب الأفقي للجداول في الموبايل */
.table-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  background-color: rgba(217, 119, 6, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .table-scroll-hint {
    display: none;
  }
}

/* الأسئلة الشائعة (FAQ Accordion) */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.25rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.25rem;
}

.faq-answer p {
  margin-bottom: 0;
  line-height: 1.8;
}

/* نموذج التواصل السريع (Contact Form) */
.contact-form-container {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}

.form-control:focus {
  border-color: var(--color-border-focus);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* --- 9. التذييل (Footer) --- */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo svg,
.footer-brand svg {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  flex-shrink: 0;
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.4rem;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

/* --- 10. شريط الجوال السفلي العائم (Sticky Mobile Action Bar) --- */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--mobile-bar-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: #ffffff;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  z-index: 1000;
  border-top: 1px solid var(--color-border);
}

.mobile-sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  min-height: 100%;
  -webkit-tap-highlight-color: transparent;
}

.mobile-sticky-btn.call {
  background-color: var(--color-primary);
  color: #ffffff;
}

.mobile-sticky-btn.call:active {
  background-color: var(--color-primary-dark);
}

.mobile-sticky-btn.whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
}

.mobile-sticky-btn.whatsapp:active {
  background-color: var(--color-whatsapp-hover);
}

@media (min-width: 1024px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* --- 11. معرض وبطاقات المشاريع الميدانية (Field Projects Showcase & Lightbox) --- */
.projects-section {
  background-color: var(--color-bg-alt);
  position: relative;
}

.project-filters {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0.25rem 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.project-filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.6rem 1.25rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  color: var(--color-text-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .project-filters {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    margin-bottom: 2.5rem;
    padding: 0;
  }
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

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

.project-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #e2e8f0;
  cursor: pointer;
}

.project-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-img-wrapper img {
  transform: scale(1.04);
}

.project-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: rgba(15, 39, 68, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.project-zoom-btn {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease;
}

.project-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-accent);
  font-weight: 700;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 25, 45, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-dialog {
  max-width: 900px;
  width: 100%;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  display: flex;
  flex-direction: column;
  margin: auto;
}

.lightbox-img-box {
  width: 100%;
  max-height: 55vh;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-box img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
}

@media (min-width: 768px) {
  .lightbox-modal {
    padding: 1.5rem;
  }
  .lightbox-img-box,
  .lightbox-img-box img {
    max-height: 70vh;
  }
}

.lightbox-caption {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: #ffffff;
}

.lightbox-info h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.lightbox-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background-color 0.2s ease;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

/* Service Page Inline Proof Banners / Cards */
.inline-proof-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: #ffffff;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .inline-proof-card {
    grid-template-columns: 320px 1fr;
  }
}

.inline-proof-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.inline-proof-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- 12. شارات الحسم وصناديق توجيه النية وجداول التكاليف المتغيرة --- */
.decision-badges {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.decision-badges::-webkit-scrollbar {
  display: none;
}

.badge-decision {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-decision-dark {
  background-color: rgba(15, 39, 68, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(15, 39, 68, 0.18);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .decision-badges {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: flex-start;
    margin-bottom: 1.25rem;
  }
}

/* صندوق توجيه النية التبادلي (Intent Disambiguation Box) */
.intent-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 2px solid #86efac;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .intent-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.intent-box-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.intent-box-icon {
  width: 44px;
  height: 44px;
  background-color: #dcfce7;
  color: #16a34a;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intent-box-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.intent-box-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.intent-box-action {
  flex-shrink: 0;
}

/* جدول شفافية التكاليف المتغيرة */
.variable-cost-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
  overflow-x: auto;
}

.variable-cost-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  min-width: 580px;
}

.variable-cost-table th,
.variable-cost-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--color-border);
}

.variable-cost-table th {
  background-color: #f8fafc;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.95rem;
}

.variable-cost-table tr:last-child td {
  border-bottom: none;
}

/* --- 13. أشكال وبراهين العمل الميداني المصورة (Semantic Work Figures) --- */
.work-figure {
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.work-figure img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.work-caption {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background-color: #f8fafc;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.work-caption-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.85rem;
  background: rgba(15, 39, 68, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

/* --- 14. مكونات التغطية الجغرافية والمدد الزمنية والضمان الصريح --- */

/* أ. بطاقات الجدول الزمني الميداني (Timelines) */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .timeline-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.timeline-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.timeline-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  width: fit-content;
}

.timeline-card h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.timeline-phases {
  list-style: none;
  padding: 0;
  margin: auto 0 0 0;
  font-size: 0.82rem;
  color: var(--color-text-main);
  border-top: 1px dashed var(--color-border);
  padding-top: 0.75rem;
}

.timeline-phases li {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.timeline-phases li::before {
  content: "✔";
  color: #10b981;
  font-weight: bold;
}

/* ب. صندوق ميثاق الضمان الشفاف (Warranty Scope) */
.warranty-container {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.warranty-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e3a5f 100%);
  color: #ffffff;
  padding: 1.75rem 2rem;
}

.warranty-header h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.warranty-header p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.warranty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .warranty-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.warranty-col {
  padding: 2rem;
}

.warranty-col-covered {
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
}

@media (min-width: 768px) {
  .warranty-col-covered {
    border-bottom: none;
    border-left: 1px solid #bbf7d0;
  }
}

.warranty-col-excluded {
  background: #fafafa;
}

.warranty-col-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.warranty-col-title.green {
  color: #166534;
}

.warranty-col-title.neutral {
  color: #475569;
}

.warranty-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.warranty-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #1e293b;
}

.warranty-list.covered li svg {
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.warranty-list.excluded li svg {
  color: #64748b;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.warranty-footer {
  padding: 1.25rem 2rem;
  background: #f8fafc;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ج. مصفوفة قطاعات التغطية الجغرافية بالطائف (Coverage Sectors) */
.coverage-sectors-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .coverage-sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .coverage-sectors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sector-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.sector-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.sector-icon {
  font-size: 1.4rem;
}

.sector-title {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 800;
  margin: 0;
}

.sector-notes {
  font-size: 0.82rem;
  color: #d97706;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sector-neighborhoods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.sector-chip {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

/* --- 15. تنسيقات صفحات الثقة والشفافية (من نحن، الشروط، الخصوصية) --- */
.trust-prose-container {
  max-width: 860px;
  margin-inline: auto;
  padding-block: 2.5rem 4rem;
}

.trust-prose-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .trust-prose-card {
    padding: 1.5rem;
  }
}

.trust-section {
  margin-block-end: 2.5rem;
}

.trust-section:last-child {
  margin-block-end: 0;
}

.trust-heading {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-block-end: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

.trust-p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.85;
  margin-block-end: 1rem;
}

.trust-list {
  padding-right: 1.25rem;
  margin-block-end: 1.25rem;
  line-height: 1.85;
  color: #334155;
}

.trust-list li {
  margin-block-end: 0.5rem;
}

.trust-callout {
  background: #f8fafc;
  border-right: 4px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 4px var(--radius-md) var(--radius-md) 4px;
  margin-block: 1.5rem;
}

.trust-callout-warning {
  background: #fffbeb;
  border-right-color: #d97706;
}

.trust-callout-success {
  background: #f0fdf4;
  border-right-color: #16a34a;
}

/* --- 15. بطاقات الخدمات المصورة المدمجة بالبرهان الميداني (Integrated Visual Craft Cards) --- */
.cards-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-visual {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-visual:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(15, 39, 68, 0.25);
}

.card-visual-media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #f1f5f9;
}

@media (min-width: 1024px) {
  .card-visual-media {
    height: 260px;
  }
}

.card-visual-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.card-visual:hover .card-visual-media img {
  transform: scale(1.04);
}

.card-visual-location {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  background: rgba(15, 39, 68, 0.88);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
}

.card-visual-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-visual-body .card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-visual-body .card-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-visual-features {
  border-top: 1px dashed var(--color-border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-visual-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}

.card-visual-feature-item svg {
  width: 17px;
  height: 17px;
  color: #16a34a;
  flex-shrink: 0;
}

.cards-grid-3 .card-visual-media {
  height: 200px;
}

/* صندوق نداء التحويل المخصص لخدمة تغليف العفش */
.packing-cta-card {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

@media (min-width: 900px) {
  .packing-cta-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.packing-cta-content {
  max-width: 650px;
}

.packing-cta-title {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.packing-cta-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.packing-cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.packing-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.packing-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .packing-cta-actions {
    flex-direction: row;
  }
}

@media (min-width: 900px) {
  .packing-cta-actions {
    flex-direction: column;
    min-width: 250px;
  }
}





