/* ==========================================================
   المهندس موبايل — ملف التنسيق الرئيسي
   الترتيب:
   1. المتغيرات (الألوان والخطوط والمقاسات)
   2. الأساسيات
   3. الأزرار والأيقونات
   4. الشريط العلوي
   5. الواجهة الرئيسية
   6. الأقسام العامة والبطاقات
   7. التسوق أونلاين
   8. الصيانة
   9. التواصل والموقع
   10. التذييل وزر واتساب
   11. الشاشات الصغيرة
   ========================================================== */

/* ---------- 1. المتغيرات ---------- */
:root {
  /* الألوان */
  --c-dark: #0B2730;          /* الخلفية الداكنة */
  --c-dark-2: #12343F;        /* داكن ثانوي */
  --c-dark-line: #1F4652;     /* حدود على الداكن */
  --c-primary: #1A7F8E;       /* الأزرار */
  --c-primary-hover: #136977;
  --c-accent: #5CC9D6;        /* لمسة التمييز */
  --c-soft: #EEF6F7;          /* خلفية فاتحة */
  --c-tint: #E1F2F4;          /* خلفية التحديد */
  --c-border: #D3E6E9;
  --c-text: #0E2229;
  --c-muted: #4F6870;
  --c-muted-light: #B5CDD2;   /* نص ثانوي على الداكن */
  --c-white: #FFFFFF;

  /* الخطوط */
  --f-display: 'Readex Pro', sans-serif;
  --f-body: 'IBM Plex Sans Arabic', sans-serif;

  /* المقاسات */
  --container: 1200px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --header-h: 74px;
}

/* ---------- 2. الأساسيات ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-hover); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

section { scroll-margin-top: var(--header-h); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---------- 3. الأزرار والأيقونات ---------- */
.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 20px; height: 20px; }
.icon-lg { width: 28px; height: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; font-weight: 600; }
.btn-lg { height: 56px; padding: 0 24px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

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

.btn-accent { background: var(--c-accent); color: var(--c-dark); }
.btn-accent:hover { background: #7DD5DF; color: var(--c-dark); }

.btn-light { background: var(--c-white); color: var(--c-dark); }
.btn-light:hover { background: var(--c-tint); color: var(--c-dark); }

.btn-white { background: var(--c-white); color: var(--c-primary-hover); }
.btn-white:hover { background: var(--c-tint); color: var(--c-primary-hover); }

.btn-outline-white { background: transparent; color: var(--c-white); border: 2px solid var(--c-white); }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); color: var(--c-white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 4. الشريط العلوي ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-dark);
  color: var(--c-white);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-white);
  text-decoration: none;
}
.brand:hover { color: var(--c-white); }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 22px; }
.brand-sub { font-size: 11px; letter-spacing: 3px; color: var(--c-muted-light); }

.main-nav { display: flex; gap: 28px; font-size: 15px; }
.main-nav a { color: var(--c-white); text-decoration: none; }
.main-nav a:hover { color: var(--c-accent); }

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--c-dark-2);
  color: var(--c-white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- 5. الواجهة الرئيسية ---------- */
.section-dark { background: var(--c-dark); color: var(--c-white); }

.hero { overflow: hidden; }
.hero-inner {
  padding-top: 72px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.hero-content { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; }

.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--c-dark-2);
  color: var(--c-muted-light);
  font-size: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--c-accent); }

.hero-title { font-family: var(--f-display); font-weight: 700; font-size: 58px; line-height: 1.3; }
.accent { color: var(--c-accent); }
.hero-lead { font-size: 19px; line-height: 1.9; color: var(--c-muted-light); max-width: 520px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--c-dark-line);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--f-display); font-size: 26px; }
.hero-stats span { font-size: 14px; color: var(--c-muted-light); }

.hero-visual {
  flex: 1 1 400px;
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  border: 2px dashed var(--c-dark-line);
}
.hero-logo { position: relative; height: 340px; width: auto; }

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-dark);
  font-weight: 600;
  font-size: 15px;
}
.badge-top { top: 40px; right: 10px; }
.badge-bottom { bottom: 50px; left: 0; }
.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--c-tint);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 6. الأقسام العامة والبطاقات ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--c-soft); }

.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.section-head.center { align-items: center; text-align: center; }

.eyebrow { color: var(--c-primary); font-weight: 600; font-size: 15px; }
.eyebrow-light { color: var(--c-accent); }

.section-title { font-family: var(--f-display); font-weight: 700; font-size: 38px; line-height: 1.4; color: var(--c-dark); }
.section-dark .section-title { color: var(--c-white); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--c-accent); }
.card-plain { gap: 10px; }
.card-title { font-family: var(--f-display); font-weight: 600; font-size: 22px; color: var(--c-dark); }
.card-text { font-size: 16px; line-height: 1.8; color: var(--c-muted); }

/* ---------- 7. التسوق أونلاين ---------- */
#offers { padding: 72px 0; }
.promo {
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.promo-text { display: flex; flex-direction: column; gap: 8px; }
.promo-title { font-family: var(--f-display); font-weight: 700; font-size: 30px; }
.promo-text p { font-size: 17px; color: var(--c-tint); }

/* ---------- 8. الصيانة ---------- */
.repair-top { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-bottom: 48px; }
.repair-intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.lead-light { font-size: 17px; line-height: 1.9; color: var(--c-muted-light); }

.repair-list {
  flex: 1 1 480px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.repair-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--c-dark-2);
  font-size: 16px;
  font-weight: 500;
}
.repair-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--c-accent);
  flex: none;
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step {
  border: 1px solid var(--c-dark-line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-num { font-family: var(--f-display); font-weight: 700; font-size: 40px; color: var(--c-accent); }
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.step p { font-size: 15px; line-height: 1.8; color: var(--c-muted-light); }

/* ---------- 9. التواصل والموقع ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.contact-info { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  color: var(--c-text);
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.contact-item:hover { border-color: var(--c-primary); background: var(--c-soft); color: var(--c-text); }
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--c-tint);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-label { display: block; font-size: 14px; color: var(--c-muted); }
.contact-value { font-weight: 700; font-size: 20px; }
.contact-email { font-weight: 600; font-size: 17px; word-break: break-all; }

.social { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--c-muted); }
.social-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--c-dark);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-btn:hover { background: var(--c-primary); color: var(--c-white); }

.location-card {
  flex: 1 1 460px;
  min-height: 460px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--c-dark);
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.map-box {
  flex: 1;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--c-dark-2);
  position: relative;
}
.map-box iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-image:
    linear-gradient(var(--c-dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-dark-line) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-pin {
  width: 64px;
  height: 64px;
  border-radius: 999px 999px 999px 0;
  transform: rotate(-45deg);
  background: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-pin span { width: 22px; height: 22px; border-radius: 999px; background: var(--c-white); }
.map-caption { font-size: 15px; color: var(--c-muted-light); }

.location-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.meta-label { display: block; font-size: 14px; color: var(--c-muted-light); }
.meta-value { font-weight: 600; font-size: 18px; }

/* ---------- 10. التذييل وزر واتساب ---------- */
.site-footer { background: var(--c-dark); color: var(--c-muted-light); border-top: 1px solid var(--c-dark-line); }
.footer-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-logo { height: 34px; width: auto; }
.footer-name { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--c-white); }

.whatsapp-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(11, 39, 48, .3);
  transition: transform .2s, background-color .2s;
}
.whatsapp-float:hover { background: var(--c-primary-hover); color: var(--c-white); transform: scale(1.06); }

/* ---------- 11. الشاشات الصغيرة ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--c-dark);
    border-top: 1px solid var(--c-dark-line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--c-dark-line); font-size: 17px; }
  .main-nav a:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 0 12px; }
  .brand-name { font-size: 19px; }

  .hero-inner { padding-top: 48px; padding-bottom: 64px; gap: 24px; }
  .hero-title { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero-stats { gap: 20px; }
  .hero-visual { height: 340px; }
  .hero-ring { width: 300px; height: 300px; }
  .hero-logo { height: 230px; }
  .badge-top { top: 10px; right: 0; }
  .badge-bottom { bottom: 10px; left: 0; }

  .section { padding: 64px 0; }
  .section-title { font-size: 30px; }
  .promo { padding: 28px; }
  .promo-title { font-size: 25px; }
  .repair-list { grid-template-columns: 1fr; }
  .location-card { padding: 20px; min-height: 0; }
  .whatsapp-float { left: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
