/* ============================================
   موقع نور كلين — ملف التنسيقات الرئيسي
   Noor Clean — Main Stylesheet
   ============================================ */

/* === استيراد الخطوط === */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* === المتغيرات الأساسية — نظام التصميم === */
:root {
  /* الألوان الأساسية — هوية نظافة/ثقة/انتعاش */
  --color-primary: #0E7C7B;
  --color-primary-dark: #0A5F5E;
  --color-primary-light: #E6F4F3;
  --color-accent: #F2A93B;
  --color-accent-dark: #D8901F;
  --color-ink: #12262B;
  --color-ink-soft: #4A5B5E;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F7FAF9;
  --color-border: #E3EBEA;

  /* الطباعة */
  --font-primary: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  --fs-h1: clamp(2.2rem, 4vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 2.8vw, 2.4rem);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* الأبعاد والحواف */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 8px 24px rgba(14, 124, 123, 0.08);
  --shadow-elevated: 0 16px 40px rgba(14, 124, 123, 0.14);
  --container-max: 1200px;
  --section-spacing: clamp(64px, 8vw, 120px);

  /* ارتفاع الهيدر */
  --header-height: 72px;
}

/* === التصفير العام (Reset) === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  color: var(--color-ink);
  background-color: var(--color-surface);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

.nowrap {
  white-space: nowrap;
}

/* === الحاوية العامة === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* === عنوان القسم المشترك === */
.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 16px;
  position: relative;
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--color-ink-soft);
  max-width: 600px;
  line-height: 1.8;
}

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

.section-header .section-subtitle {
  margin: 0 auto;
}

/* === خط تزييني أسفل العنوان === */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 12px;
}

.section-header .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   القسم 1 — شريط التنقل (Header - Liquid Glass)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* عند التمرير لأسفل الصفحة - زيادة الشفافية والوضوح */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* يوزع الثلاث مجموعات: يمين - وسط - يسار */
  padding: 16px 40px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* اللوقو — أقصى اليمين في RTL */
.header-logo,
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-logo img,
.site-logo img {
  height: 52px;
  width: auto;
}

/* قائمة التنقل — في الوسط تماماً */
.header-nav,
.main-nav {
  display: none;
}

.header-nav ul,
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a,
.main-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-ink);
  position: relative;
  padding: 8px 4px;
  transition: color 0.3s ease;
}

.header-nav a::after,
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.header-nav a:hover,
.header-nav a.active,
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.header-nav a:hover::after,
.header-nav a.active::after,
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* الأزرار — أقصى اليسار */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* زر واتساب في الهيدر (استشارة مجانية) */
.header-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  white-space: nowrap;
}

.header-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  background: #20ba59;
}

.header-whatsapp-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  flex-shrink: 0;
}

.header-whatsapp-btn .btn-text {
  display: inline;
  font-family: var(--font-primary);
  font-weight: 700;
  color: #fff;
}

/* === قائمة تبديل اللغة (Language Dropdown) === */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.lang-toggle-btn:hover,
.lang-dropdown-wrapper.open .lang-toggle-btn {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.lang-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.lang-current-label {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.lang-chevron {
  transition: transform 0.25s ease;
  stroke: currentColor;
}

.lang-dropdown-wrapper.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  /* أزرار الهيدر في طرف الصفحة دائماً، فتُفتح القائمة نحو الداخل.
     inset-inline-end يساوي left في RTL و right في LTR، فيصحّ في اللغتين.
     بدون هذا كانت القائمة (وهي مخفية لكنها باقية في التخطيط) تتجاوز
     حافة الشاشة وتُحدث تمريراً أفقياً على كل المقاسات. */
  inset-inline-end: 0;
  inset-inline-start: auto;
  min-width: 180px;
  max-width: calc(100vw - 24px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1050;
}

/* لا حاجة لقاعدة LTR منفصلة — inset-inline-end أعلاه ينقلب تلقائياً مع الاتجاه.
   القاعدة القديمة كانت تثبّت left:0 في LTR بينما أزرار الهيدر تنتقل لليمين،
   فتخرج القائمة عن الشاشة وتُحدث تمريراً أفقياً. */

.lang-dropdown-wrapper.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--color-ink);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: inherit;
  position: relative;
}

.lang-option:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.lang-option.active {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.lang-option-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.lang-check {
  margin-right: auto;
  stroke: var(--color-primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

[dir="ltr"] .lang-check {
  margin-right: 0;
  margin-left: auto;
}

.lang-option.active .lang-check {
  opacity: 1;
}

/* زر همبرغر */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 2px;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === القائمة الجانبية (Drawer) — جوال === */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--color-surface);
  z-index: 999;
  padding: 90px 24px 40px;
  transition: right 0.35s ease;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

[dir="ltr"] .mobile-drawer {
  right: auto;
  left: -100%;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.1);
  transition: left 0.35s ease;
}

[dir="ltr"] .mobile-drawer.open {
  left: 0;
}

/* اختيار اللغة داخل القائمة الجانبية */
.mobile-drawer-lang {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-lang-title {
  display: block;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-ink-soft);
  margin-bottom: 10px;
}

.mobile-lang-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-lang-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.mobile-lang-btn.active,
.mobile-lang-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
}

.mobile-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-drawer a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-ink);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.3s ease;
}

.mobile-drawer a:hover {
  color: var(--color-primary);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   القسم 2 — الهيرو (Hero - Curved Video Background)
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  padding: 24px 24px 0 24px; /* هامش يفصل الهيرو عن حواف الشاشة */
  box-sizing: border-box;
}

.hero-inner {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 560px;
  border-radius: 32px; /* الانحناء المطلوب */
  overflow: hidden; /* يقص الفيديو على شكل الزوايا المنحنية */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  background: var(--color-ink);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}

/* طبقة التغميق المتدرجة فوق الفيديو */
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(14, 38, 43, 0.48) 0%,
    rgba(14, 38, 43, 0.35) 50%,
    rgba(14, 38, 43, 0.52) 100%
  );
  z-index: 2;
  border-radius: 32px;
}

/* المحتوى فوق الفيديو */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 24px;
}

/* النصوص باللون الأبيض فوق خلفية الفيديو */
.hero-content h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-content h1 span.accent,
.hero-content h1 .accent,
.hero-title .accent {
  color: var(--color-accent);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-content h1 .nowrap,
.hero-title .nowrap {
  color: #FFFFFF;
}

.hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

/* أزرار عامة */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-body);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(242, 169, 59, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 169, 59, 0.4);
}

.btn-primary svg {
  width: 22px;
  height: 22px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--fs-body);
  padding: 14px 28px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

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

/* زر تصفح خدماتنا فوق الفيديو (حدود بيضاء ونص أبيض شفاف) */
.btn-outline-hero {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline-hero:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* === شريط المدن === */
.cities-bar {
  position: relative;
  z-index: 3;
  background: var(--color-primary-light);
  padding: 16px 0;
  margin-top: 0;
  overflow: hidden;
}

.cities-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cities-bar-label {
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--color-primary-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.cities-scroll-track {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.city-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  background: var(--color-surface);
  color: var(--color-primary-dark);
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.city-tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* ============================================
   القسم 3 — من نحن (About)
   ============================================ */
.about {
  padding: var(--section-spacing) 0;
  background: var(--color-surface);
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}

.about-content {
  flex: 1;
}

.about-content .section-title::after {
  margin-left: unset;
  margin-right: 0;
}

.about-text {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  line-height: 1.9;
  margin-top: 20px;
  max-width: 560px;
}

/* بطاقة الصورة في من نحن (مقاس 1:1) */
.about-visual {
  flex: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image-card {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.about-image-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

/* أرقام إحصائية */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.stat-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
  font-weight: 600;
}

/* ============================================
   القسم 3 — أعمالنا (Portfolio)
   ============================================ */
.portfolio-section {
  padding: var(--section-spacing) 0;
  background: var(--color-surface);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(14, 124, 123, 0.25);
}

/* شبكة المعرض غير متساوية الأحجام */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 18px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* عناصر متباينة الأحجام لكسر الرتابة */
.portfolio-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.portfolio-item:nth-child(4) { grid-column: span 2; }
.portfolio-item:nth-child(7) { grid-row: span 2; }
.portfolio-item:nth-child(9) { grid-column: span 2; }

.portfolio-item img,
.portfolio-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img,
.portfolio-item:hover video {
  transform: scale(1.06);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-caption {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.portfolio-action-icon {
  width: 32px;
  height: 32px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.portfolio-item:hover .portfolio-action-icon {
  background: var(--color-primary);
  transform: scale(1.1);
}

/* نافذة العرض الكامل (Lightbox) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  user-select: none;
  z-index: 2005;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

.lightbox-close {
  top: 24px;
  left: 24px;
}

.lightbox-prev {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* ============================================
   القسم 4 — خدماتنا (Services)
   ============================================ */
.services {
  padding: var(--section-spacing) 0;
  background: var(--color-surface-alt);
}

/* الصف اللي فيه البطاقات */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch; /* أهم سطر - يخلي كل البطاقات بنفس الارتفاع */
}

/* كل بطاقة */
.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-img-wrapper {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
  flex-shrink: 0;
  background: var(--color-surface-alt);
}

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

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

.service-card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 12px;
}

/* النص الوصفي ياخذ المساحة المتاحة ويدفع الزر لتحت */
.service-card p {
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
  line-height: 1.8;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* الزر نفسه */
.service-card .btn-service,
.service-card .btn {
  margin-top: auto; /* يثبته في الأسفل دايماً */
  align-self: center;
}

.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-small);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-service:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-service svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   القسم 5 — لماذا نحن (Why Us - Ghost Numbers)
   ============================================ */
.why-us-section,
.why-us {
  padding: clamp(50px, 6vw, 80px) 0;
  background: var(--color-surface);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  position: relative;
  background: var(--color-surface);
  padding: 44px 36px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.why-card:hover {
  background: #f8fafa;
}

/* الرقم الكبير الشفاف - Ghost Number */
.why-number {
  position: absolute;
  top: 8px;
  left: 20px;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.08;
  font-family: 'Poppins', 'Outfit', sans-serif;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.why-card:hover .why-number {
  opacity: 0.16;
  transform: scale(1.08);
}

.why-card h3 {
  position: relative;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 10px;
  z-index: 1;
}

.why-card p {
  position: relative;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  line-height: 1.75;
  z-index: 1;
}

/* خط تركوازي رفيع يظهر أسفل كل بطاقة عند hover */
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  transition: width 0.35s ease;
}

.why-card:hover::after {
  width: 100%;
}

/* ============================================
   القسم 6 — آراء العملاء (Testimonials)
   ============================================ */
.testimonials {
  padding: var(--section-spacing) 0;
  background: var(--color-primary-light);
}

/* الصف اللي فيه بطاقات الآراء */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch; /* يخلي كل بطاقات الآراء بنفس الارتفاع */
}

/* كل بطاقة رأي */
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.quote-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.quote-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--color-primary-light);
  stroke: var(--color-primary);
  stroke-width: 0;
}

/* نص الرأي يأخذ المساحة المتاحة ويدفع معلومات الكاتب للأسفل */
.testimonial-text {
  font-size: 1.05rem;
  color: var(--color-ink);
  line-height: 1.9;
  margin-bottom: 20px;
  font-style: italic;
  flex-grow: 1;
}

/* معلومات الكاتب والتقييم مثبتة دائماً في الأسفل */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.author-name {
  font-weight: 700;
  color: var(--color-ink);
  font-size: var(--fs-body);
}

/* مؤشرات الـ Carousel (جوال فقط) */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-primary);
  width: 28px;
  border-radius: 5px;
}

/* ============================================
   القسم 7 — الأسئلة الشائعة (FAQ)
   ============================================ */
.faq-section {
  padding: var(--section-spacing) 0;
  background: var(--color-surface-alt);
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-elevated);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 6px 24px rgba(14, 124, 123, 0.12);
}

.faq-question {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.25s ease;
}

.faq-item.active .faq-question {
  color: var(--color-primary);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-ink-soft);
  transition: transform 0.3s ease, color 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 280px;
  padding: 0 24px 22px 24px;
}

.faq-answer p {
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  line-height: 1.85;
  margin: 0;
}

/* ============================================
   القسم 8 — تواصل معنا (Contact)
   ============================================ */
.contact {
  padding: var(--section-spacing) 0;
  background: var(--color-surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* نموذج الاتصال */
.contact-form-wrapper {
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--color-border);
}

.contact-form-wrapper h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-ink);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  color: var(--color-ink);
  background: var(--color-surface);
  transition: border-color 0.3s ease;
  direction: rtl;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group input::placeholder {
  color: var(--color-ink-soft);
  opacity: 0.6;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-body);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  width: 100%;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
}

.btn-submit:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-submit svg {
  width: 22px;
  height: 22px;
}

/* معلومات التواصل */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

.info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-text h4 {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.info-text p,
.info-text a {
  font-size: var(--fs-small);
  color: var(--color-ink-soft);
  line-height: 1.6;
}

.info-text a:hover {
  color: var(--color-primary);
}

/* الخريطة */
.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 280px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   القسم 8 — التذييل (Footer)
   ============================================ */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.75);
  padding-block-start: clamp(48px, 7vw, 80px);
  padding-bottom: 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .site-footer {
    padding-bottom: 32px;
  }
}

/* شبكة الأعمدة الأربعة */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .footer-main-grid {
    grid-template-columns: 1.4fr 1fr 1.15fr 1.25fr;
    gap: 32px;
    margin-bottom: 48px;
  }
}

@media (min-width: 1024px) {
  .footer-main-grid {
    grid-template-columns: 1.4fr 1fr 1.15fr 1.25fr;
    gap: 44px;
  }
}

/* العمود الأول: الهوية */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo-card {
  background: #FFFFFF;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}

.footer-logo-card:hover {
  transform: translateY(-2px);
}

.footer-logo-card img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  max-width: 340px;
  margin: 0;
}

/* عناوين الأعمدة */
.footer-col-title {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  margin-block-end: 18px;
  position: relative;
  padding-block-end: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

/* سلوك الأكورديون في الجوال */
.footer-accordion summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.footer-accordion summary::-webkit-details-marker {
  display: none;
}

.accordion-chevron {
  transition: transform 0.25s ease;
  stroke: var(--color-accent);
  flex-shrink: 0;
}

.footer-accordion[open] .accordion-chevron {
  transform: rotate(180deg);
}

@media (max-width: 767.98px) {
  .footer-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
  }

  .footer-accordion summary {
    margin-block-end: 0;
    padding-block-end: 14px;
  }

  .footer-accordion[open] summary {
    margin-block-end: 14px;
  }
}

@media (min-width: 768px) {
  .footer-accordion summary {
    pointer-events: none;
    cursor: default;
  }

  .footer-accordion summary .accordion-chevron {
    display: none;
  }
}

/* القوائم والروابط */
.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer-links-list a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1.6;
}

.footer-links-list a:hover {
  color: #FFFFFF;
  transform: translateX(-4px);
}

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

/* العمود الرابع: تواصل معنا */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-contact-item:hover {
  color: var(--color-accent);
  transform: translateX(-3px);
}

[dir="ltr"] .footer-contact-item:hover {
  transform: translateX(3px);
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.ltr-num {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: inherit;
}

/* أزرار التواصل الاجتماعي */
.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.footer-social-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* شريط المدن المخدومة */
.footer-cities-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin-top: 10px;
}

.footer-cities-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  text-align: center;
}

.footer-cities-title {
  font-size: var(--fs-small);
  font-weight: 700;
  color: #FFFFFF;
}

.footer-cities-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.city-dot {
  color: var(--color-accent);
  font-weight: 700;
}

/* الشريط السفلي (Bottom Bar) */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    text-align: start;
  }
}

.footer-copy {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-dev {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dev-link {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dev-link:hover {
  color: var(--color-accent);
}

/* ============================================
   حركات الظهور (Reveal Animations)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   زر واتساب العائم (Floating WhatsApp)
   ============================================ */
.floating-whatsapp {
  position: fixed;
  inset-inline-end: 20px;
  inset-block-end: 20px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  z-index: 900;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
  animation: floatBounce 3s ease-in-out infinite;
}

.floating-whatsapp.footer-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.8) translateY(20px);
}

.floating-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ============================================
   زر الرجوع إلى الأعلى (Back to Top)
   ============================================ */
.back-to-top {
  position: fixed;
  inset-inline-end: 20px;
  inset-block-end: 86px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(14, 124, 123, 0.35);
  z-index: 900;
  cursor: pointer;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.back-to-top svg {
  stroke: #fff;
}

/* ============================================
   الاستجابة — نقاط التوقف (Responsive Breakpoints)
   ============================================ */

/* === 480px — موبايل متوسط === */
@media (min-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === تعديلات الشاشات الصغيرة (الجوال أقل من 768px) === */
@media (max-width: 767px) {
  .header-inner {
    padding: 10px 20px;
    gap: 12px;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
  }

  .header-logo,
  .site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
  }

  .header-logo img,
  .site-logo img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    display: block;
  }

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

  /* 5. التوزيع العمودي وإزالة الفراغ الميت */
  .hero {
    min-height: 88svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 12px 0 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-inner {
    position: relative;
    width: 100%;
    min-height: calc(88svh - 12px);
    height: auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-video {
    border-radius: 20px;
  }

  /* 3. طبقة العتامة المتوازنة فوق الفيديو */
  .hero-overlay {
    border-radius: 20px;
    background: linear-gradient(
      to top,
      rgba(18, 38, 43, 0.55) 0%,
      rgba(18, 38, 43, 0.38) 45%,
      rgba(18, 38, 43, 0.48) 100%
    );
    z-index: 1;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding-block: 48px;
    padding-inline: 20px;
    padding-bottom: max(48px, env(safe-area-inset-bottom));
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  /* 1. إصلاح كسر ومقاسات العنوان الرئيسي */
  .hero-title,
  .hero-content h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    line-height: 1.45;
    letter-spacing: 0;
    max-width: 16ch;
    margin-inline: auto;
    margin-bottom: 20px;
    text-wrap: balance;
    text-align: center;
  }

  .hero-title .accent,
  .hero-content h1 .accent,
  .hero-title span.accent,
  .hero-content h1 span.accent {
    color: var(--color-accent);
  }

  .hero-title .nowrap,
  .hero-content h1 .nowrap {
    color: #FFFFFF;
  }

  /* 2. إصلاح الفقرة الوصفية */
  .hero-subtitle,
  .hero-desc {
    font-size: 0.95rem;
    line-height: 1.85;
    max-width: 34ch;
    margin-inline: auto;
    margin-bottom: 32px;
    text-wrap: pretty;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    letter-spacing: 0;
  }

  /* 4. توحيد عرض الزرين وتنسيق الأزرار */
  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-outline,
  .hero-actions .btn-outline-hero {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    padding: 0 20px;
    letter-spacing: 0;
  }

  .hero-actions .btn-outline,
  .hero-actions .btn-outline-hero {
    background: transparent;
    border: 1.5px solid #FFFFFF;
    color: #FFFFFF;
  }

  .hero-actions .btn-primary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .cities-bar {
    margin-top: 14px;
    padding: 10px 0;
    width: 100%;
    overflow: hidden;
  }

  .cities-bar-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .cities-bar-label {
    flex-shrink: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0;
    padding-inline-end: 6px;
    white-space: nowrap;
  }

  .cities-scroll-track {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
    gap: 8px;
    padding: 4px 4px;
    scroll-behavior: smooth;
  }

  .cities-scroll-track::-webkit-scrollbar {
    display: none; /* Chrome / Safari / Opera */
  }

  .city-tag {
    padding: 6px 14px;
    font-size: 0.82rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 12px;
  }

  .portfolio-item:nth-child(1),
  .portfolio-item:nth-child(4),
  .portfolio-item:nth-child(7),
  .portfolio-item:nth-child(9) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .portfolio-caption {
    font-size: 0.8rem;
  }

  .portfolio-action-icon {
    width: 26px;
    height: 26px;
    padding: 5px;
  }

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    padding: 32px 24px;
  }

  .why-number {
    font-size: 56px;
  }
}

/* === 6. حالة الشاشات الصغيرة جداً (360px فأقل) === */
@media (max-width: 360px) {
  .hero-title,
  .hero-content h1 {
    font-size: 1.6rem;
  }
  .hero-subtitle,
  .hero-desc {
    font-size: 0.9rem;
    line-height: 1.75;
  }
  .hero-actions .btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-outline,
  .hero-actions .btn-outline-hero {
    height: 48px;
    font-size: 0.95rem;
  }
}

/* === 768px — تابلت === */
@media (min-width: 768px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .about-inner {
    flex-direction: row;
  }

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

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

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

  .carousel-dots {
    display: none;
  }

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

/* === إخفاء زر واتساب في الهيدر على الجوال والتابلت (أقل من 1024px) === */
@media (max-width: 1023.98px) {
  .header-whatsapp-btn {
    display: none !important;
  }
}

/* === 1024px — لابتوب === */
@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }

  .hamburger-btn {
    display: none;
  }

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

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

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

/* === 1280px — ديسكتوب كبير === */
@media (min-width: 1280px) {
  .container {
    padding: 0 40px;
  }

  .about-inner {
    gap: 60px;
  }
}

/* === تقليل الحركة لمن يفضل ذلك === */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .floating-whatsapp {
    animation: none;
  }
}

/* ============================================
   ===== قسم الأسعار =====
   (الشريط السهمي Chevron Ribbon — مبني بالكامل بـ CSS)
   ============================================ */
.pricing-section {
  padding: clamp(50px, 6vw, 80px) 0 40px 0;
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  /* محتوى هذا القسم عربي بالكامل — نثبّت الاتجاه حتى لا تنقلب هندسة الأسهم عند تبديل اللغة */
  direction: rtl;
  text-align: right;
}

/* === العنوان واسم الفئة النشطة === */
.pricing-heading {
  text-align: center;
  margin-bottom: 34px;
}

.pricing-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1.3;
  margin-bottom: 18px;
}

.pricing-category {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 10px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

/* === التبويبات === */
.pricing-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.pricing-tab {
  padding: 12px 26px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  background: transparent;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pricing-tab:hover {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}

.pricing-tab.active {
  background: var(--color-primary);
  color: var(--color-surface);
  border-bottom-color: var(--color-primary);
}

.pricing-tab:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 3px;
}

/* === حاوية اللوحات === */
.pricing-panels {
  position: relative;
  min-height: 0;
}

.pricing-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pricing-panel.is-visible {
  display: block;
}

.pricing-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* === قائمة الصفوف === */
.price-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-pair {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

/* صف مفرد متمركز */
.price-pair--single {
  justify-content: center;
}

.price-pair--single .price-row {
  flex: 0 1 calc(50% - 12px);
}

.price-row {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

.price-row--mirrored {
  flex-direction: row-reverse;
}

/* === الشريط السهمي === */
.price-ribbon {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* شريط صلب بنص أبيض — أعلى تباين ضد خلفية القسم، مطبّق على كل الأشرطة بثبات */
  background: var(--color-primary);
  color: var(--color-surface);
  /* رأس السهم على اليسار */
  clip-path: polygon(0 50%, 32px 0, 100% 0, 100% 100%, 32px 100%);
  padding-inline-start: 28px;
  padding-inline-end: 44px;
}

.price-row--mirrored .price-ribbon {
  /* رأس السهم على اليمين */
  clip-path: polygon(100% 50%, calc(100% - 32px) 100%, 0 100%, 0 0, calc(100% - 32px) 0);
  justify-content: flex-end;
  padding-inline-start: 44px;
  padding-inline-end: 28px;
}

.price-ribbon-label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
}

.price-row--mirrored .price-ribbon-label {
  text-align: end;
}

/* === بطاقة السعر === */
.price-chip {
  flex: 0 0 72px;
  width: 72px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  background: var(--color-surface);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(18, 38, 43, 0.12);
  position: relative;
  z-index: 2;
  /* تراكب بسيط فوق رأس السهم */
  margin-inline-start: -14px;
}

.price-row--mirrored .price-chip {
  margin-inline-start: 0;
  margin-inline-end: -14px;
}

.price-chip-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-ink);
}

.price-chip-unit {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-ink-soft);
}

/* === عنوان فرعي داخل اللوحة === */
.pricing-subhead {
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 18px;
  margin-top: 18px;
}

.price-list > .pricing-subhead:first-child {
  margin-top: 0;
}

.pricing-subhead-label {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 6px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
}

/* === وسوم "تشمل" === */
.pricing-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pricing-tag {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.6;
}

/* === خط فاصل === */
.pricing-divider {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 14px 0;
}

/* === شارة الضمان === */
.pricing-guarantee {
  text-align: center;
  margin-top: 10px;
}

.pricing-guarantee span {
  display: inline-block;
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.5;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-accent);
}

/* === زر الحجز === */
.pricing-cta-wrap {
  text-align: center;
  margin-top: 28px;
  margin-bottom: 0;
}

.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--color-accent);
  color: var(--color-surface);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-cta:hover {
  background: var(--color-accent-dark);
  color: var(--color-surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.pricing-cta:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

.pricing-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* === إخلاء مسؤولية الأسعار === */
.pricing-disclaimer {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  font-size: var(--fs-small);
  line-height: 1.8;
  color: var(--color-ink-soft);
}

/* === قسم الأسعار — الجوال === */
@media (max-width: 767px) {
  .pricing-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .pricing-tabs::-webkit-scrollbar {
    display: none;
  }

  .pricing-tab {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .pricing-category {
    padding: 8px 26px;
    font-size: 0.95rem;
  }

  /* على الجوال تُترك اللوحات بارتفاعها الطبيعي — توحيد الارتفاع هنا
     يترك فراغاً كبيراً أسفل التبويبات القصيرة دون فائدة، لأن اللوحة
     أطول من الشاشة أصلاً ولا يظهر تغيّر الارتفاع كقفزة */
  .pricing-panels {
    min-height: 0;
  }

  /* الصف المزدوج ينهار إلى صفين، وكل الأشرطة تعود للاتجاه الافتراضي */
  .price-pair {
    flex-direction: column;
    gap: 12px;
  }

  .price-pair--single .price-row,
  .price-row {
    flex: 1 1 auto;
    width: 100%;
  }

  .price-row--mirrored {
    flex-direction: row;
  }

  .price-row--mirrored .price-ribbon {
    clip-path: polygon(0 50%, 32px 0, 100% 0, 100% 100%, 32px 100%);
    justify-content: flex-start;
    padding-inline-start: 20px;
    padding-inline-end: 40px;
  }

  .price-row--mirrored .price-ribbon-label {
    text-align: start;
  }

  .price-row--mirrored .price-chip {
    margin-inline-start: -14px;
    margin-inline-end: 0;
  }

  .price-ribbon {
    height: 48px;
    padding-inline-start: 20px;
    padding-inline-end: 40px;
  }

  .price-ribbon-label {
    font-size: 0.88rem;
  }

  .price-chip {
    min-height: 48px;
  }

  .price-chip-value {
    font-size: 1.35rem;
  }

  .pricing-tag {
    padding: 7px 14px;
    font-size: 0.85rem;
  }

  .pricing-guarantee span {
    font-size: 1.3rem;
  }

  .pricing-cta {
    width: 100%;
    max-width: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-panel {
    transition: none;
    transform: none;
  }

  .pricing-cta:hover {
    transform: none;
  }
}
