/* ===========================================================
   وظّفني — Shared base styles & design tokens
   =========================================================== */

:root {
  /* Brand */
  --orange:        #F97E18;
  --orange-deep:   #ED6A00;
  --yellow:        #FFC928;
  --grad:          linear-gradient(135deg, #FFC928 0%, #F97E18 100%);
  --grad-soft:     linear-gradient(135deg, #FFF3D6 0%, #FFE2C2 100%);

  /* Neutrals */
  --ink:           #111827;
  --ink-soft:      #374151;
  --muted:         #6B7280;
  --muted-2:       #9CA3AF;
  --bg:            #FFFFFF;
  --bg-soft:       #F8FAFC;
  --bg-tint:       #FFFAF2;
  --border:        #E5E7EB;
  --border-soft:   #F1F3F5;

  /* Shadows */
  --shadow-sm:     0 1px 2px rgba(17,24,39,.05);
  --shadow:        0 8px 24px -8px rgba(17,24,39,.12);
  --shadow-lg:     0 24px 60px -20px rgba(17,24,39,.22);
  --shadow-orange: 0 16px 40px -12px rgba(249,126,24,.45);

  /* Radii */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  /* Layout */
  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 48px);

  --font: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -12px rgba(249,126,24,.55); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: #d8dde3; box-shadow: var(--shadow); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.01em;
}
.brand .logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-orange);
  flex: none;
}
.brand .logo-mark svg { width: 22px; height: 22px; }
.brand .logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 64px 0 36px;
  margin-top: 90px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #9CA3AF; font-size: .98rem; line-height: 1.7; }

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}
.footer-col h4 {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: #D1D5DB;
  font-size: 1rem;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  color: #6B7280;
  font-size: .92rem;
}

/* ---------- Section heading helper ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .92rem;
  color: var(--orange-deep);
  background: var(--bg-tint);
  border: 1px solid #FCE3C7;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.section-lead {
  color: var(--muted);
  font-size: 1.12rem;
  margin-top: 14px;
  max-width: 620px;
}
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

/* ---------- Legal pages ---------- */
.legal-hero {
  background: var(--grad-soft);
  border-bottom: 1px solid #FCE3C7;
  padding: 64px 0 56px;
  text-align: center;
}
.legal-hero .eyebrow { background: #fff; }
.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -.02em;
}
.legal-hero .updated {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  color: var(--orange-deep);
  font-weight: 700;
  font-size: .98rem;
  background: #fff;
  border: 1px solid #FCE3C7;
  border-radius: 999px;
  padding: 8px 18px;
}
.legal-hero .updated svg { width: 16px; height: 16px; }

.legal-body { padding: 56px 0 0; }
.legal-body .wrap { max-width: 840px; }

.legal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.legal-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-card h2 .n {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--grad-soft); color: var(--orange-deep);
  display: grid; place-items: center; font-size: 1rem; font-weight: 900;
}
.legal-card h3 { font-size: 1.1rem; font-weight: 800; margin: 18px 0 8px; }
.legal-card p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.85; margin-bottom: 12px; }
.legal-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 6px 0 8px; }
.legal-card li {
  position: relative;
  padding-inline-start: 28px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}
.legal-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px; top: 11px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.legal-card a.inline { color: var(--orange-deep); font-weight: 700; }
.legal-mail {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-tint); border: 1px solid #FCE3C7;
  border-radius: 12px; padding: 11px 16px;
  font-weight: 700; color: var(--orange-deep);
  margin-top: 6px;
}
.legal-mail svg { width: 18px; height: 18px; }

.legal-note {
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  padding: 22px 26px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.8;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.legal-note svg { width: 22px; height: 22px; color: var(--muted-2); flex: none; margin-top: 2px; }

.legal-toc {
  display: flex; flex-wrap: wrap; gap: 18px 30px;
  margin-top: 22px;
}
.legal-toc a {
  color: var(--orange-deep);
  font-weight: 700;
  font-size: .96rem;
}
.legal-toc a:hover { text-decoration: underline; }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-weight: 700; font-size: .98rem;
  margin-bottom: 26px;
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--orange-deep); }
