/* ==========================================================================
   المسار الآمن - الفحص الفني الدوري للمركبات (S.P.P.I)
   ملف التنسيقات الرئيسي (Main Stylesheet)
   HTML5 & CSS3 Pure - Fully Responsive & RTL Native
   ========================================================================== */

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

/* --- المتغيرات اللونية والتصميمية (CSS Custom Properties) --- */
:root {
  /* ألوان الهوية المستخرجة من الشعار */
  --primary-yellow: #FAB81E;
  --primary-yellow-hover: #E5A308;
  --primary-yellow-light: #FFFBEB;
  --primary-yellow-subtle: #FEF3C7;
  
  --brand-slate-dark: #1E293B;
  --brand-slate: #334155;
  --brand-slate-medium: #475569;
  --brand-slate-light: #64748B;
  --brand-slate-muted: #94A3B8;

  /* الخلفيات والحدود */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F1F5F9;
  --border-light: #E2E8F0;
  --border-hover: #CBD5E1;

  /* ألوان الحالات */
  --color-success: #10B981;
  --color-success-bg: #ECFDF5;
  --color-info: #0284C7;
  --color-info-bg: #E0F2FE;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;

  /* الخطوط */
  --font-family-base: 'Tajawal', 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  
  /* المسافات والانحناءات */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* الظلال */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 15px 30px -5px rgba(15, 23, 42, 0.15);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max-width: 1200px;
}

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

html {
  direction: rtl;
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--brand-slate);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-main);
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* تخطي إلى المحتوى لسهولة الوصول (Accessibility Skip Link) */
.skip-link {
  position: absolute;
  top: -100px;
  right: 20px;
  background: var(--brand-slate-dark);
  color: var(--primary-yellow);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 700;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 20px;
}

/* الحاويات العامة (Containers) */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* العناوين والبادئات */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--primary-yellow-light);
  color: #B45309;
  border: 1px solid var(--primary-yellow-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: var(--brand-slate-dark);
  line-height: 1.46;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--brand-slate-medium);
}

/* الأزرار (Buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-yellow);
  color: var(--brand-slate-dark);
}
.btn-primary:hover {
  background-color: var(--primary-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(250, 184, 30, 0.35);
}

.btn-secondary {
  background-color: var(--brand-slate-dark);
  color: #FFFFFF;
}
.btn-secondary:hover {
  background-color: #0F172A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-hover);
  color: var(--brand-slate-dark);
}
.btn-outline:hover {
  background-color: var(--bg-card-alt);
  border-color: var(--brand-slate);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   الهيدر وشريط التنقل (Header & Navigation)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* شريط علوي فرعي للتواصل السريع */
.top-bar {
  background-color: var(--brand-slate-dark);
  color: #E2E8F0;
  font-size: 0.8125rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #CBD5E1;
}
.top-bar-link:hover {
  color: var(--primary-yellow);
}

.top-bar-admin-link {
  color: var(--primary-yellow);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.top-bar-admin-link:hover {
  text-decoration: underline;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 18px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-wrapper a {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  height: 62px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: contrast(1.06);
}

/* زر تبديل اللغة */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(250, 184, 30, 0.45);
  background-color: rgba(250, 184, 30, 0.12);
  color: var(--primary-yellow);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.4;
  white-space: nowrap;
}
.lang-switch-btn:hover {
  background-color: var(--primary-yellow);
  color: var(--brand-slate-dark);
}

.nav-lang-mobile {
  display: none;
}

/* قائمة التنقل للحواسيب */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-weight: 700;
  font-size: 0.9875rem;
  line-height: 1.5;
  color: var(--brand-slate-dark);
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 3px;
  background-color: var(--primary-yellow);
  border-radius: var(--radius-pill);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: #0F172A;
}

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

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

/* قائمة الجوال بنظام Pure HTML/CSS Checkbox Hack */
.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-card-alt);
}

.nav-toggle-label span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--brand-slate-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   القسم الرئيسي (Hero Section)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(#FAB81E 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 18px;
  background-color: rgba(250, 184, 30, 0.15);
  border: 1px solid rgba(250, 184, 30, 0.3);
  color: var(--primary-yellow);
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  max-width: 100%;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(1.95rem, 3.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1.52;
  margin-bottom: 24px;
  color: #FFFFFF;
}

.hero-title br {
  display: none;
}

.hero-title span {
  display: block;
  margin-top: 8px;
  color: var(--primary-yellow);
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #CBD5E1;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust-indicators {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary-yellow);
}

.trust-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #E2E8F0;
  font-weight: 600;
}

.hero-media {
  position: relative;
  padding-bottom: 24px;
}

.hero-image-wrapper {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
}

.hero-image-wrapper img {
  border-radius: var(--radius-lg);
  width: 100%;
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  right: 16px;
  background-color: var(--bg-card);
  color: var(--brand-slate-dark);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-light);
  max-width: calc(100% - 32px);
}

.floating-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-title {
  font-size: 0.875rem;
  font-weight: 800;
}

.floating-subtitle {
  font-size: 0.75rem;
  color: var(--brand-slate-light);
}

/* ==========================================================================
   قسم خطوات الفحص (Inspection Steps)
   ========================================================================== */
.steps-section {
  background-color: #FFFFFF;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
  padding-top: 16px;
  position: relative;
}

.step-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px 24px 30px;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}

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

.step-number {
  position: absolute;
  top: -16px;
  right: 24px;
  width: 36px;
  height: 36px;
  background-color: var(--brand-slate-dark);
  color: var(--primary-yellow);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.step-icon-wrap {
  width: 64px;
  height: 64px;
  background-color: var(--primary-yellow-light);
  color: #B45309;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 20px;
}

.step-icon {
  width: 32px;
  height: 32px;
}

.step-title {
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--brand-slate-dark);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--brand-slate-medium);
  line-height: 1.7;
}

/* ==========================================================================
   قسم المزايا (Features Section)
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background-color: var(--brand-slate-dark);
  color: var(--primary-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--brand-slate-dark);
}

.feature-text {
  font-size: 0.9375rem;
  color: var(--brand-slate-medium);
  line-height: 1.7;
}

/* ==========================================================================
   قسم الفروع (Branches Section)
   ========================================================================== */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.branch-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.branch-thumb {
  height: 190px;
  position: relative;
  background-color: var(--brand-slate-dark);
  overflow: hidden;
}

.branch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.branch-card:hover .branch-thumb img {
  transform: scale(1.05);
}

.branch-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: rgba(30, 41, 59, 0.9);
  color: var(--primary-yellow);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.branch-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 16px;
}

.branch-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--brand-slate-dark);
}

.branch-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--brand-slate-medium);
}

.branch-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.branch-meta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--brand-slate-light);
}

.branch-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.branch-actions .btn {
  flex: 1 1 130px;
}

/* ==========================================================================
   قسم الأسئلة الشائعة (FAQ Accordion Pure HTML/CSS)
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--primary-yellow);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--brand-slate-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--brand-slate-light);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-yellow-hover);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--brand-slate-medium);
  font-size: 1rem;
  line-height: 1.7;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
  border-top-color: var(--border-light);
  padding-top: 16px;
}

/* ==========================================================================
   قسم الدعوة للإجراء (Pre-footer CTA Banner)
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-slate-dark) 0%, #0F172A 100%);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-banner-content {
  max-width: 620px;
}

.cta-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.44;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.cta-title span {
  color: var(--primary-yellow);
}

.cta-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #CBD5E1;
}

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

/* ==========================================================================
   صفحة من نحن (About Page Specifics)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
}

.page-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.44;
  margin-bottom: 14px;
}

.page-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #94A3B8;
}

.page-breadcrumb a {
  color: var(--primary-yellow);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-content h3 {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--brand-slate-dark);
  margin-bottom: 16px;
}

.about-content p {
  color: var(--brand-slate-medium);
  margin-bottom: 18px;
  line-height: 1.8;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: #FFFFFF;
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  text-align: center;
}

.pillar-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-yellow-light);
  color: #B45309;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 12px;
  color: var(--brand-slate-dark);
}

/* ==========================================================================
   صفحة الخدمات (Services Page Specifics)
   ========================================================================== */
.services-grid-detailed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card-detailed {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-normal);
}

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

.service-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.service-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--brand-slate);
}

.service-check-icon {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* ==========================================================================
   صفحة تفاصيل الفرع (Branch Details Page)
   ========================================================================== */
.branch-details-layout {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 36px;
  align-items: start;
}

.branch-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.branch-gallery-thumb {
  height: 110px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.branch-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branch-sidebar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.branch-sidebar-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--brand-slate-dark);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.branch-supported-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.map-embed-placeholder {
  height: 240px;
  border-radius: var(--radius-md);
  background-color: #E2E8F0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--brand-slate-medium);
  border: 1px dashed var(--brand-slate-light);
  text-align: center;
  padding: 20px;
}

/* ==========================================================================
   صفحة تواصل معنا (Contact Page Specifics)
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
}

.contact-info-card {
  background-color: var(--brand-slate-dark);
  color: #FFFFFF;
  padding: 36px;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.45;
  color: #FFFFFF;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background-color: rgba(250, 184, 30, 0.15);
  color: var(--primary-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-slate-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background-color: var(--bg-main);
  color: var(--brand-slate-dark);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-yellow);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(250, 184, 30, 0.2);
}

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

/* ==========================================================================
   الفوتر (Footer)
   ========================================================================== */
.site-footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding-top: 70px;
  border-top: 4px solid var(--primary-yellow);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  margin-top: 16px;
  line-height: 1.7;
  font-size: 0.9375rem;
  color: #94A3B8;
}

.footer-title {
  color: #FFFFFF;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 3px;
  background-color: var(--primary-yellow);
  border-radius: var(--radius-pill);
}

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

.footer-link {
  color: #94A3B8;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-link:hover {
  color: var(--primary-yellow);
  transform: translateX(-4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.9375rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #CBD5E1;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-yellow);
  flex-shrink: 0;
  margin-top: 4px;
}

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

.social-icon-btn {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background-color: var(--primary-yellow);
  color: var(--brand-slate-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.65;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: var(--primary-yellow);
}

/* ==========================================================================
   التجاوب مع الشاشات (Responsive Media Queries)
   ========================================================================== */

/* شاشات اللابتوب الصغيرة (1120px وما دون) لتفادي تزاحم القائمة */
@media (max-width: 1120px) {
  .header-inner {
    gap: 12px;
  }

  .site-logo {
    height: 54px;
  }

  .nav-menu {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.9375rem;
  }
}

/* أجهزة التابلت والشاشات المتوسطة (992px وما دون) */
@media (max-width: 992px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #FFFFFF;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 2px solid var(--primary-yellow);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
  }

  .nav-toggle-input:checked ~ .nav-menu {
    display: flex;
  }

  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-input:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

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

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-indicators {
    justify-content: center;
  }

  .hero-floating-card {
    right: 50%;
    transform: translateX(50%);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .features-grid,
  .branches-grid,
  .services-grid-detailed,
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .about-intro-grid,
  .branch-details-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

/* أجهزة الجوال (768px وما دون) */
@media (max-width: 768px) {
  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero-section {
    padding: 50px 0 60px;
  }

  .hero-title {
    font-size: 1.875rem;
    line-height: 1.54;
    margin-bottom: 20px;
  }

  .hero-media {
    padding-bottom: 0;
  }

  .hero-floating-card {
    position: static;
    transform: none;
    margin-top: 14px;
    max-width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.65rem;
    line-height: 1.48;
  }

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

  .form-card,
  .contact-info-card {
    padding: 24px;
  }

  .branch-supported-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: 76px;
  }

  .site-logo {
    height: 48px;
    max-width: 210px;
  }

  .nav-lang-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    background-color: var(--brand-slate-dark);
    color: var(--primary-yellow);
    font-weight: 800;
    font-size: 0.9375rem;
    width: 100%;
  }

  .top-bar {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn {
    padding: 7px 12px;
    font-size: 0.8125rem;
  }

  /* بطاقات الفروع المضغوطة على الجوال لتقليل التمرير الطويل */
  .branches-grid {
    gap: 14px;
  }

  .branch-thumb {
    height: auto;
    background: none;
    padding: 14px 16px 0;
  }

  .branch-thumb img {
    display: none;
  }

  .branch-badge {
    position: static;
    display: inline-flex;
    background-color: var(--primary-yellow-light);
    color: #92400E;
    border: 1px solid var(--primary-yellow-subtle);
    padding: 3px 10px;
    font-size: 0.75rem;
    backdrop-filter: none;
  }

  .branch-body {
    padding: 12px 16px 16px;
    gap: 10px;
  }

  .branch-title {
    font-size: 1.0625rem;
  }

  .branch-meta-list {
    gap: 6px;
    font-size: 0.8125rem;
  }

  .branch-actions {
    padding-top: 10px;
    gap: 8px;
  }

  .steps-grid,
  .features-grid,
  .branches-grid,
  .services-grid-detailed,
  .pillars-grid {
    grid-template-columns: 1fr;
  }

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

  .form-group-full {
    grid-column: span 1;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .about-stats-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .header-inner {
    gap: 8px;
  }

  .site-logo {
    height: 40px;
    max-width: 168px;
  }

  .nav-toggle-label {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .header-actions .btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    gap: 4px;
  }

  .header-actions .btn svg {
    display: none;
  }
}

/* ==========================================================================
   المساعد الذكي (Chatbot Widget - المسار الآمن)
   ========================================================================== */
.sppi-chat-root {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1200;
  font-family: var(--font-family-base);
  direction: rtl;
}

.sppi-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 18px;
  background-color: var(--brand-slate-dark);
  color: #FFFFFF;
  border: 1.5px solid var(--primary-yellow);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, box-shadow 0.18s ease;
}

.sppi-chat-launcher:hover {
  background-color: #0F172A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.sppi-chat-launcher:focus-visible {
  outline: 3px solid var(--primary-yellow);
  outline-offset: 2px;
}

.sppi-chat-launcher-icon {
  width: 22px;
  height: 22px;
  color: var(--primary-yellow);
  flex-shrink: 0;
}

.sppi-chat-panel {
  position: fixed;
  bottom: 86px;
  left: 24px;
  width: 410px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 116px);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
}

.sppi-chat-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.sppi-chat-header {
  background-color: var(--brand-slate-dark);
  color: #FFFFFF;
  padding: 14px 16px;
  border-bottom: 2px solid var(--primary-yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.sppi-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sppi-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: rgba(250, 184, 30, 0.14);
  border: 1px solid rgba(250, 184, 30, 0.4);
  color: var(--primary-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sppi-chat-title {
  font-size: 0.975rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sppi-chat-subtitle {
  font-size: 0.75rem;
  color: #CBD5E1;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sppi-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sppi-chat-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sppi-chat-icon-btn:hover {
  background-color: rgba(250, 184, 30, 0.18);
  color: var(--primary-yellow);
}

.sppi-chat-icon-btn:focus-visible {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 2px;
}

.sppi-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sppi-chat-msg {
  max-width: 88%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sppi-chat-msg--user {
  align-self: flex-start;
}

.sppi-chat-msg--model {
  align-self: flex-end;
}

.sppi-chat-bubble {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.65;
  word-wrap: break-word;
}

.sppi-chat-msg--user .sppi-chat-bubble {
  background-color: var(--brand-slate-dark);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.sppi-chat-msg--model .sppi-chat-bubble {
  background-color: #FFFFFF;
  color: var(--brand-slate-dark);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}

.sppi-chat-bubble p + p {
  margin-top: 8px;
}

.sppi-chat-bubble ul {
  margin-top: 6px;
  margin-bottom: 4px;
  padding-right: 16px;
  list-style: disc;
}

.sppi-chat-bubble li {
  margin-bottom: 4px;
}

.sppi-chat-bubble a {
  color: #0369A1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sppi-chat-bubble a:hover {
  color: var(--brand-slate-dark);
}

.sppi-chat-msg--error .sppi-chat-bubble {
  background-color: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}

.sppi-chat-retry-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #FCA5A5;
  background-color: #FFFFFF;
  color: #991B1B;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.sppi-chat-retry-btn:hover {
  background-color: #FEE2E2;
}

.sppi-chat-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.sppi-chat-quick-btn {
  padding: 7px 11px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-slate-dark);
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  text-align: right;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sppi-chat-quick-btn:hover {
  border-color: var(--primary-yellow);
  background-color: var(--primary-yellow-light);
}

.sppi-chat-quick-btn:focus-visible {
  outline: 2px solid var(--brand-slate-dark);
  outline-offset: 1px;
}

.sppi-chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
}

.sppi-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-slate-light);
  animation: sppiTyping 1.1s infinite ease-in-out;
}

.sppi-chat-typing span:nth-child(2) {
  animation-delay: 0.16s;
}

.sppi-chat-typing span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes sppiTyping {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.sppi-chat-footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 10px 12px 12px;
  flex-shrink: 0;
}

.sppi-chat-note {
  font-size: 0.72rem;
  color: var(--brand-slate-light);
  margin-bottom: 8px;
  text-align: center;
}

.sppi-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.sppi-chat-input {
  flex: 1;
  resize: none;
  min-height: 42px;
  max-height: 104px;
  padding: 9px 12px;
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  background-color: var(--bg-main);
  color: var(--brand-slate-dark);
  font-size: 0.9rem;
  line-height: 1.45;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sppi-chat-input:focus {
  outline: none;
  border-color: var(--brand-slate-dark);
  background-color: #FFFFFF;
}

.sppi-chat-send {
  height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background-color: var(--primary-yellow);
  color: var(--brand-slate-dark);
  font-weight: 800;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.sppi-chat-send:hover:not(:disabled) {
  background-color: var(--primary-yellow-hover);
}

.sppi-chat-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sppi-chat-send:focus-visible {
  outline: 2px solid var(--brand-slate-dark);
  outline-offset: 2px;
}

@media (max-width: 540px) {
  .sppi-chat-root {
    bottom: 14px;
    left: 14px;
  }

  .sppi-chat-launcher {
    height: 46px;
    padding: 0 14px;
    font-size: 0.875rem;
  }

  .sppi-chat-panel {
    left: 10px;
    right: 10px;
    bottom: 68px;
    width: auto;
    max-width: none;
    height: 74vh;
    max-height: calc(100vh - 88px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sppi-chat-launcher,
  .sppi-chat-panel,
  .sppi-chat-typing span {
    transition: none;
    animation: none;
  }
}

/* ==========================================================================
   خريطة الفروع التفاعلية (Branches Interactive Map - Leaflet)
   ========================================================================== */
.branches-filter-bar {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.branches-map-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.branches-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.branches-map-title {
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--brand-slate-dark);
}

.branches-map-subtitle {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--brand-slate-light);
  margin-top: 4px;
}

.branches-map-canvas {
  width: 100%;
  height: 440px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  z-index: 1;
}

.sppi-map-pin-wrapper {
  background: transparent;
  border: none;
}

.sppi-map-pin {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background-color: var(--brand-slate-dark);
  border: 2.5px solid var(--primary-yellow);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.sppi-map-pin:hover {
  background-color: #0F172A;
  transform: rotate(-45deg) scale(1.1);
}

.sppi-map-pin-num {
  transform: rotate(45deg);
  color: var(--primary-yellow);
  font-family: var(--font-family-base);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 2px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-family-base);
  direction: rtl;
  text-align: right;
}

.leaflet-popup-content {
  margin: 12px 14px;
}

.sppi-map-popup {
  font-family: var(--font-family-base);
  direction: rtl;
  text-align: right;
}

.sppi-map-popup-region {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-slate-light);
  margin-bottom: 3px;
}

.sppi-map-popup-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-slate-dark);
  margin-bottom: 6px;
  text-decoration: none;
}

.sppi-map-popup-title:hover {
  color: #B45309;
  text-decoration: underline;
}

.sppi-map-popup-meta {
  font-size: 0.8125rem;
  color: var(--brand-slate-medium);
  line-height: 1.5;
  margin-bottom: 4px;
}

.sppi-map-popup-hours {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-slate);
  margin-bottom: 10px;
}

.sppi-map-popup-actions {
  display: flex;
  gap: 8px;
}

.sppi-map-popup-btn {
  width: 100%;
  justify-content: center;
  text-decoration: none !important;
}

.sppi-map-tooltip {
  font-family: var(--font-family-base);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-slate-dark);
  direction: rtl;
  padding: 4px 10px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .branches-map-canvas {
    height: 300px;
  }

  .sppi-chat-root {
    bottom: 16px;
    left: 12px;
  }

  .sppi-chat-launcher {
    height: 44px;
    padding: 0 13px;
    font-size: 0.8125rem;
  }

  .sppi-chat-panel {
    left: 10px;
    right: 10px;
    bottom: 68px;
    width: auto;
    max-width: none;
    height: 68vh;
    max-height: calc(100vh - 88px);
  }
}

/* ==========================================================================
   أدوات البحث بالمدينة وأقرب فرع (City Filter & Nearest Branch Geolocation)
   ========================================================================== */
.branches-tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.branch-city-select {
  min-width: 210px;
  padding: 9px 14px;
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
  color: var(--brand-slate-dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.branch-city-select:focus {
  outline: none;
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 3px rgba(250, 184, 30, 0.22);
}

.btn-nearest-branch {
  background-color: var(--brand-slate-dark);
  color: var(--primary-yellow);
  border: 1.5px solid var(--brand-slate-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-nearest-branch:hover:not(:disabled) {
  background-color: #0F172A;
  transform: translateY(-1px);
}

.btn-nearest-branch:disabled {
  opacity: 0.65;
  cursor: wait;
}

.nearest-branch-banner {
  display: none;
  background-color: #FFFBEB;
  border: 1.5px solid var(--primary-yellow);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  color: var(--brand-slate-dark);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nearest-branch-banner.is-visible {
  display: flex;
}

.nearest-branch-banner.is-error {
  background-color: #FEF2F2;
  border-color: #FCA5A5;
  color: #991B1B;
}

.branch-card.is-nearest {
  border: 2px solid var(--primary-yellow);
  box-shadow: 0 10px 25px -5px rgba(250, 184, 30, 0.25);
}

.branch-distance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: #ECFDF5;
  color: #065F46;
  font-size: 0.8125rem;
  font-weight: 800;
  margin-top: 2px;
  width: fit-content;
}

@media (max-width: 768px) {
  .branches-filter-bar {
    padding: 14px;
    gap: 10px;
  }

  .branch-city-select,
  .btn-nearest-branch {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   تعديلات الاتجاه من اليسار إلى اليمين للنسخة الإنجليزية (LTR Overrides)
   ========================================================================== */
html[dir="ltr"] {
  direction: ltr;
}

html[dir="ltr"] .hero-title {
  line-height: 1.32;
}

html[dir="ltr"] .hero-title span {
  margin-top: 6px;
}

html[dir="ltr"] .hero-floating-card {
  right: auto;
  left: 16px;
}

@media (max-width: 992px) {
  html[dir="ltr"] .hero-floating-card {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  html[dir="ltr"] .hero-floating-card {
    left: auto;
    transform: none;
  }
}

html[dir="ltr"] .skip-link {
  right: auto;
  left: 20px;
}

html[dir="ltr"] .nav-link::after {
  right: auto;
  left: 0;
}

html[dir="ltr"] .footer-title::after {
  right: auto;
  left: 0;
}

html[dir="ltr"] .footer-link:hover {
  transform: translateX(4px);
}

html[dir="ltr"] .branch-badge {
  right: auto;
  left: 14px;
}

html[dir="ltr"] .sppi-chat-root {
  left: auto;
  right: 24px;
  direction: ltr;
}

html[dir="ltr"] .sppi-chat-panel {
  left: auto;
  right: 24px;
}

html[dir="ltr"] .sppi-chat-quick-btn {
  text-align: left;
}

html[dir="ltr"] .sppi-chat-bubble ul {
  padding-right: 0;
  padding-left: 18px;
}

html[dir="ltr"] .leaflet-popup-content-wrapper,
html[dir="ltr"] .sppi-map-popup,
html[dir="ltr"] .sppi-map-tooltip {
  direction: ltr;
  text-align: left;
}

@media (max-width: 768px) {
  html[dir="ltr"] .sppi-chat-root {
    left: auto;
    right: 12px;
    bottom: 16px;
  }

  html[dir="ltr"] .sppi-chat-panel {
    left: 10px;
    right: 10px;
  }
}



