/* ألوان مؤقتة — تُستبدل بهوية المصمم لاحقاً (عدّل المتغيرات هنا فقط) */
:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 17px;
}

a { color: var(--brand); }

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

/* الهيدر */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand);
  text-decoration: none;
}
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }

/* الأزرار */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { background: var(--brand-dark); }
.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-outline:hover { background: var(--bg-soft); }

/* الواجهة */
.hero { padding: 80px 0 64px; background: var(--bg-soft); }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.4; margin: 0 0 16px; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

section { padding: 64px 0; }
section h2 { font-size: 1.8rem; margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 32px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg);
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

/* مثال الحسبة */
.calc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 520px;
  background: var(--bg);
}
.calc-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.calc-row:last-child { border-bottom: none; }
.calc-row.minus span:last-child { color: #b91c1c; }
.calc-row.total { font-weight: 700; font-size: 1.15rem; color: var(--brand); border-top: 2px solid var(--text); border-bottom: none; margin-top: 4px; padding-top: 12px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* الصفحات القانونية */
.page { padding: 56px 0 72px; }
.page .container { max-width: 800px; }
.page h1 { font-size: 2rem; margin: 0 0 8px; }
.page .updated { color: var(--muted); margin: 0 0 32px; }
.page h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.page ul { padding-inline-start: 22px; }
.note {
  background: var(--bg-soft);
  border-inline-start: 4px solid var(--brand);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 24px 0;
}
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
th, td { border: 1px solid var(--border); padding: 10px 12px; text-align: start; vertical-align: top; }
th { background: var(--bg-soft); }
.table-wrap { overflow-x: auto; }

/* الفوتر */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; margin-inline-end: 16px; }
.site-footer a:hover { color: var(--brand); }
