/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  /* البرتقالي = Moving / السهم في اللوجو */
  --primary: #f97316;
  --primary-strong: #ea580c;
  --primary-soft: #fff7ed;

  /* التركوازي = الأيقونة في اللوجو */
  --accent: #0ea5e9;

  /* خلفية عامة قريبة من خلفية اللوجو */
  --bg: #f3f4f6;

  /* النص الداكن والرمادي زي ما هو تقريبًا */
  --text: #0f172a;
  --muted: #6b7280;

  --border: #e2e8f0;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
}


body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
}

/* النص الافتراضي يمين */
h1, h2, h3, h4, p, li {
  text-align: right;
}

/* روابط */
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===========================
   Layout helpers
   =========================== */
.container {
  width: min(1120px, 94vw);
  margin-inline: auto;
}

.page {
  padding: 18px 0 40px;
}

.stack {
  display: block;
  gap: clamp(14px, 2.4vw, 26px);
}

.section {
  padding: clamp(22px, 4vw, 38px) 0;
  border-bottom: 1px solid var(--border);
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3 {
  color: var(--text);
  margin-top: 0;
  margin-bottom: .6em;
  line-height: 1.4;
}

h1 {
  font-size: clamp(24px, 4.2vw, 36px);
}
h2 {
  font-size: clamp(21px, 3.4vw, 30px);
}
h3 {
  font-size: clamp(18px, 2.6vw, 22px);
}

p {
  margin: 0 0 .85em;
}

.lead {
  font-size: clamp(15px, 2.3vw, 18px);
  color: #1f2937;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  min-width: 0;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary-strong);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--primary-strong);
}
.btn-ghost:hover {
  background: #fefce8;
}

/* ===========================
   HERO
   =========================== */
.hero {
  border-radius: var(--radius-lg);
  /* مزج بين التركوازي والبرتقالي وخلفية فاتحة */
  background: radial-gradient(
      circle at top right,
      rgba(14, 165, 233, 0.24),
      #e0f2fe 40%,
      #fff7ed 85%
  );
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow-soft);
}


.hero-grid {
  display: grid;
  gap: 22px;
}

.hero-content {
  align-content: start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(248, 250, 252, 0.9);
  font-size: 13px;
  color: var(--primary-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 8px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.hero-highlights li::before {
  content: "•";
  margin-left: 6px;
  color: var(--accent); /* تركوازي */
}


/* جانب الهيرو */
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
   align-items: center;
}
.hero-illustration {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  max-width: 320px;      /* عرض مناسب للموبايل */
}

.hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 16px 18px;
  width: 100%;
}

.hero-card h2 {
  font-size: clamp(18px, 2.8vw, 22px);
  margin-bottom: .4em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 10px;
}
.hero-stats dt {
  font-size: 11px;
  color: var(--muted);
}
.hero-stats dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
  }
}
@media (min-width: 1040px) {
  .hero-aside {
    align-items: flex-start;
  }
  .hero-illustration {
    max-width: 320px;
  }
}
/* ===========================
   Tags cloud
   =========================== */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tags-cloud a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 12px;
  color: #111827;
  white-space: nowrap;
}
.tags-cloud a:hover {
  background: #fff7ed;
  border-color: #fed7aa;
}

/* ===========================
   Services grid
   =========================== */
.service-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
}

.service-card h3 {
  margin-bottom: .4em;
}

.service-card p {
  font-size: 14px;
  color: #111827;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===========================
   Highlights (Why us)
   =========================== */
.highlight-grid {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.highlight-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
}

.highlight-card h3 {
  margin-bottom: .4em;
}

.highlight-card p {
  font-size: 14px;
  color: #111827;
}

@media (min-width: 900px) {
  .highlight-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===========================
   FAQ
   =========================== */
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.faq-item {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
}

.faq-item h3 {
  margin-bottom: .4em;
}

.faq-item p {
  font-size: 14px;
}

/* ===========================
   CTA Final
   =========================== */
.cta-final {
  text-align: right;
}
.cta-final p {
  max-width: 56rem;
}

/* ===========================
   Header / Nav (للهيدر الخارجي إن وُجد)
   =========================== */
 header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid #e2e8f0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand a {
  font-weight: 700;
  color: #111827;
  font-size: 15px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/*
nav[aria-label="روابط الموقع"] {
  overflow: hidden;
}

.menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.menu a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 13px;
  color: #111827;
  white-space: nowrap;
}
.menu a:hover {
  background: #fff7ed;
}

.menu-collapsible.open {
  display: block;
}
.menu-collapsible {
  display: none;
} 
*/
/* ===========================
   Header / Nav (قائمة الهيدر)
   =========================== */

/* وضع افتراضي: القائمة مخفية في الموبايل وتظهر عند الضغط على زر المنيو */
.menu-collapsible {
  display: none;
  width: 100%;
}

.menu-collapsible.open {
  display: block;
}

/* المنيو نفسها عمودية في الموبايل */
header nav[aria-label="روابط الموقع"] {
  overflow: visible;
}

header .menu {
  display: flex;
  flex-direction: column;      /* <-- عمودي */
  gap: 6px;
  margin-top: 8px;
  padding: 0;
}

header .menu a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 13px;
  color: #111827;
}

header .menu a:hover {
  background: #fff7ed;
}

/* من أول عرض 920px فما فوق: نخليها أفقية مثل ما تظهر عندك على الديسكتوب */
@media (min-width: 920px) {
  /* نظهر القائمة دائماً في الديسكتوب */
  header .menu-collapsible {
    display: block;
    width: auto;
  }

  header .menu {
    flex-direction: row;       /* <-- أفقي في الديسكتوب */
    align-items: center;
    gap: 8px;
    margin-top: 0;
  }

  header .menu a {
    width: auto;
    white-space: nowrap;
  }

  /* نخفي زر المنيو في الديسكتوب */
  .menu-toggle {
    display: none;
  }
}
 
@media (min-width: 920px) {
  .menu-collapsible {
    display: block;
  }
  
}
 
/* ===========================
   Footer (للفوتر الخارجي إن وُجد)
   =========================== */
footer {
  padding: 20px 0 32px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

footer p {
  font-size: 13px;
  color: var(--muted);
}

/* القائمة في الفوتر (إن وُجدت) */
footer .menu ul li a {
  padding: 3px 10px;
  font-size: 13px;
  font-weight: bold;
}
footer .menu ul li {
  display: block !important;
  float: right;
}

footer .menu {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
footer .menu a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 13px;
  color: #111827;
}
footer nav[aria-label="روابط سفلية"] .menu {
  margin-inline: -12px;
  padding-inline: 12px;
}

/* ===========================
   Misc
   =========================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
