/* =========================================================
   IJAARI — نظام تصميم موحّد لموقع البرنامج
   ========================================================= */

:root {
  --navy: #002B6D;
  --navy-deep: #051534;
  --navy-soft: #E8EEF9;
  --orange: #FFAD31;
  --orange-soft: #FFF3E0;
  --paper: #F6F8FC;
  --ink: #16233F;
  --muted: #64708A;
  --line: #E1E7F2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 43, 109, 0.08);
  --shadow-sm: 0 2px 10px rgba(0, 43, 109, 0.06);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

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

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

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  text-decoration: none;
}
.nav-brand img { width: 34px; height: 34px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 62px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-cta { margin: 16px 24px; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--navy-deep);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 173, 49, 0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--navy); }

/* ---------- Roofline divider (signature element) ---------- */
.roofline {
  width: 100%;
  height: 28px;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 15% -10%, #0A3A8C 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 72px 0 0;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 173, 49, 0.16);
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero p.lead {
  color: #C9D5EE;
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.hero-note {
  color: #93A3C7;
  font-size: 13px;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .plate {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 28px;
  padding: 36px;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}
.hero-visual img { width: 100%; max-width: 260px; margin: 0 auto; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual .plate { padding: 24px; }
  .hero-visual img { max-width: 180px; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head .eyebrow-line {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  margin-bottom: 10px;
  display: block;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Feature grid ---------- */
.grid-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .grid-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-features { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Steps (timeline — genuine sequence) ---------- */
.steps-wrap { background: var(--navy-soft); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px 22px;
  box-shadow: var(--shadow-sm);
}
.step .num {
  counter-increment: step;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--orange);
  margin-bottom: 12px;
}
.step .num::before {
  content: "0" counter(step);
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
.cta-band p { color: #C9D5EE; margin-bottom: 28px; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand span { font-family: 'Cairo'; font-weight: 800; color: var(--navy); font-size: 16px; }
footer h4 {
  font-family: 'Cairo';
  color: var(--navy);
  font-size: 14px;
  margin: 0 0 14px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--navy); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ---------- Badge (used on download page) ---------- */
.badge {
  display: inline-block;
  background: var(--orange-soft);
  color: #B87A0E;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
}