/* Easy Compass - الموقع التعريفي */
:root {
  --ink: #13324A;
  --ink-2: #1F4560;
  --orange: #23698A;
  --orange-soft: #E8F1F5;
  --green: #2E8B3A;
  --green-soft: #EAF6EC;
  --paper: #F3F6FA;
  --card: #FFFFFF;
  --line: #DDE4EE;
  --muted: #5B6B82;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---------- الهيدر ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.top .logo img { height: 42px; width: auto; }
.top nav { display: flex; gap: 22px; margin-inline-start: auto; }
.top nav a { text-decoration: none; font-weight: 500; color: var(--muted); font-size: 15.5px; }
.top nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: var(--radius-md);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 0; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #1B5873; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.top .btn { height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- الواجهة ---------- */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* المشهد: طلب واحد وعروض المكاتب توصل عليه */
.scene { position: relative; }
.req {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 22px 24px; box-shadow: 0 24px 50px -24px rgba(19, 50, 74, 0.55);
}
.req .tag { display: inline-block; font-size: 13px; background: rgba(255,255,255,.12); padding: 3px 12px; border-radius: 30px; }
.req h3 { margin: 10px 0 4px; font-size: 22px; }
.req .meta { display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255,255,255,.72); font-size: 14.5px; }
.offers { list-style: none; padding: 0; margin: -14px 18px 0; display: grid; gap: 10px; }
.offer {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 14px 16px; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
}
.offer .av {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; background: var(--orange-soft); color: var(--orange);
}
.offer b { display: block; font-size: 15.5px; }
.offer small { color: var(--muted); font-size: 13px; }
.offer .price { font-weight: 700; font-size: 18px; }
.offer .price span { font-size: 12px; color: var(--muted); font-weight: 500; }
.offer.best { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.offer.best .av { background: var(--green-soft); color: var(--green); }
.offer .badge { display: inline-block; font-size: 11.5px; color: var(--green); background: var(--green-soft); padding: 1px 8px; border-radius: 20px; margin-inline-start: 6px; }

/* لحظة واحدة عند فتح الصفحة: العروض توصل وحدة ورا الثانية */
@media (prefers-reduced-motion: no-preference) {
  .offer { opacity: 0; transform: translateY(14px); animation: arrive .5s ease-out forwards; }
  .offer:nth-child(1) { animation-delay: .5s; }
  .offer:nth-child(2) { animation-delay: 1.1s; }
  .offer:nth-child(3) { animation-delay: 1.7s; }
  @keyframes arrive { to { opacity: 1; transform: none; } }
}

/* ---------- الأقسام ---------- */
section.block { padding: 72px 0; }
section.block h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.35; margin: 0 0 10px; }
section.block .sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; }

/* خطوات العمل (تسلسل حقيقي) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { position: relative; padding-top: 58px; }
.steps li::before {
  counter-increment: s; content: counter(s, arabic-indic);
  position: absolute; top: 0; inset-inline-start: 0;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--card); border: 2px solid var(--orange); color: var(--orange);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; inset-inline-start: 52px; inset-inline-end: -4px;
  border-top: 2px dashed var(--line);
}
.steps b { display: block; font-size: 17.5px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* الخدمات */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.svc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 16px 12px; text-align: center; font-weight: 600;
}
.svc img { width: 56px; height: 56px; margin: 0 auto 8px; object-fit: contain; }
.svc .ic { width: 56px; height: 56px; margin: 0 auto 8px; display: grid; place-items: center; font-size: 30px; }

/* للأماكن: التقويم */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.cal .head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; }
.cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal .d { border-radius: var(--radius-sm); padding: 6px 2px; font-size: 14px; font-weight: 700; border: 1px solid #BFE0C4; line-height: 1.3; }
.cal .d small { display: block; font-size: 11px; color: var(--green); font-weight: 600; }
.cal .d.x { background: #F1F2F4; border-color: #E5E7EB; color: #9CA3AF; text-decoration: line-through; }
.cal .d.x small { color: #9CA3AF; }
.cal .d.sp small { color: var(--orange); }
.cal .d.sel { background: var(--orange); border-color: var(--orange); color: #fff; }
.cal .d.sel small { color: #fff; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { padding-inline-start: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 700; }

/* للمكاتب */
.offices { background: var(--ink); color: #fff; border-radius: 28px; padding: 56px; }
section.block .offices .sub { color: rgba(255,255,255,.75); }
.offices .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 8px 0 34px; }
.offices h3 { font-size: 18px; margin: 0 0 6px; color: var(--orange); }
.offices p { margin: 0; color: rgba(255,255,255,.78); font-size: 15.5px; }

/* الأسئلة */
.faq { max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: left; color: var(--orange); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* التطبيق */
.get { text-align: center; }
.get .actions { justify-content: center; display: flex; gap: 12px; flex-wrap: wrap; }
.get .install-note { margin: 18px auto 0; max-width: 34em; font-size: 14px; color: var(--muted); }

/* الفوتر */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; }
footer img { height: 34px; width: auto; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .legal { flex-basis: 100%; font-size: 13px; line-height: 1.8; }

/* صفحات النصوص (الخصوصية والشروط) */
.doc { max-width: 780px; padding: 48px 0 72px; }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc .date { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: #26364F; }
.doc ul { padding-inline-start: 22px; }

/* ---------- طيارة الإقلاع (الحركة من السكربت في index.html) ---------- */
.takeoff {
  position: fixed; left: 0; bottom: 0; z-index: 50;
  width: 440px; max-width: 60vw; pointer-events: none; opacity: 0;
  transform-origin: 70% 60%; will-change: transform;
  backface-visibility: hidden;
}
.takeoff svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ---------- الجوال ---------- */
@media (max-width: 900px) {
  .top nav { display: none; }
  .top .btn { margin-inline-start: auto; }
  .hero { padding: 36px 0 48px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { padding-top: 0; padding-inline-start: 58px; min-height: 42px; }
  .steps li::after { display: none; }
  .offices { padding: 32px 22px; border-radius: 22px; }
  .offices .cols { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, 1fr); }
  section.block { padding: 52px 0; }
}
