/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root {
  --primary: #2563eb;        /* أزرق أساسي */
  --primary-strong: #1d4ed8;
  --primary-soft: #eff6ff;

  --accent: #22c55e;         /* أخضر مساعد */

  --page-bg: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;

  --border: #e2e8f0;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);

  --radius-lg: 26px;
  --radius-md: 18px;
  --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-main);
  background: var(--page-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: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vw, 26px);
}

.section {
  padding: clamp(24px, 4vw, 38px) 0;
  border-bottom: 1px solid var(--border);
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3 {
  margin-top: 0;
  margin-bottom: .6em;
  line-height: 1.4;
  color: var(--text-main);
}

h1 {
  font-size: clamp(24px, 4.1vw, 36px);
}
h2 {
  font-size: clamp(21px, 3.2vw, 30px);
}
h3 {
  font-size: clamp(18px, 2.6vw, 22px);
}

p {
  margin: 0 0 .9em;
}

.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;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary-strong);
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: #ffffff;
  border-color: var(--border);
  color: var(--primary-strong);
}
.btn-ghost:hover {
  background: #e0f2fe;
}

/* ===========================
   HERO
   =========================== */
.hero {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), #eff6ff 40%, #f9fafb 80%),
    linear-gradient(to bottom right, #eff6ff, #fdf2f8);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow-soft);
}

.hero-grid {
  display: grid;
  gap: 24px;
}

.hero-content {
  align-self: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 13px;
  color: var(--primary-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 8px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}
.hero-highlights li::before {
  content: "▸";
  margin-left: 6px;
  color: var(--accent);
}

/* جانب الهيرو */
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.hero-illustration {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  max-width: 320px;
/*  background: #0f172a; */
}

.hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-card {
  background: rgba(255, 255, 255, 0.96);
  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.7vw, 22px);
  margin-bottom: .4em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 10px;
}
.hero-stats dt {
  font-size: 11px;
  color: var(--text-muted);
}
.hero-stats dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    align-items: center;
  }
  .hero-aside {
    align-items: flex-start;
  }
}

/* ===========================
   Services grid
   =========================== */
.service-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.service-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 14px 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.service-card h3 {
  margin-bottom: .4em;
}

.service-card p {
  font-size: 14px;
  color: #111827;
}

.card-link {
  font-size: 13px;
  margin-top: .4em;
}

@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 / How it works)
   =========================== */
.highlight-grid {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.highlight-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  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));
  }
}

/* ===========================
   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(8px);
  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: 800;
  color: #0f172a;
  font-size: 16px;
}

.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;
}

/* الوضع الافتراضي في الموبايل: القائمة مخفية وتفتح بالزر */
.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 #e2e8f0;
  background: #f8fafc;
  font-size: 13px;
  color: #0f172a;
}

header .menu a:hover {
  background: #e0f2fe;
}

/* ديسكتوب */
@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;
  }
}

/* ===========================
   Footer
   =========================== */
footer {
  padding: 20px 0 32px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

footer p {
  font-size: 13px;
  color: var(--text-muted);
}

footer nav[aria-label="روابط سفلية"] .menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 4px;
}

footer nav[aria-label="روابط سفلية"] .menu a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
  background: #f9fafb;
  font-size: 13px;
  color: #0f172a;
}

/* ===========================
   Misc
   =========================== */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
