/* شهود — ورقة الأنماط الوحيدة للموقع الثابت.
   الألوان مأخوذة من ثيم التطبيق (ShohoodTheme). */

:root {
  --teal: #0f6360;
  --teal-dark: #094040;
  --mint: #6bb3a3;
  --navy: #144566;
  --gold: #cc8c3d;
  --pearl: #f7f2e6;
  --pearl-light: #fefcf7;
  --ink: #142627;
  --muted: #596866;

  --bg: var(--pearl);
  --bg-soft: var(--pearl-light);
  --surface: rgba(255, 255, 255, 0.66);
  --surface-solid: #ffffff;
  --text: var(--ink);
  --text-muted: var(--muted);
  --accent: var(--teal);
  --accent-soft: rgba(15, 99, 96, 0.1);
  --line: rgba(15, 99, 96, 0.18);
  --shadow: 0 10px 30px rgba(20, 38, 39, 0.08);

  --gutter: 16px;
  --radius: 18px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1516;
    --bg-soft: #101e1f;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-solid: #142425;
    --text: #edece4;
    --text-muted: #a4b5b2;
    --accent: #7fc9bb;
    --accent-soft: rgba(127, 201, 187, 0.14);
    --line: rgba(127, 201, 187, 0.22);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", "SF Arabic", "Geeza Pro", "Noto Naskh Arabic",
    Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 20;
}
.skip-link:focus { inset-inline-start: 8px; top: 8px; }

/* ---------- الترويسة ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a { color: var(--text-muted); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 48px;
}
.btn-appstore {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-appstore:hover { background: var(--teal-dark); text-decoration: none; }
.btn-appstore svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}
.btn-note { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ---------- البطل ---------- */
.hero {
  padding-block: 44px 34px;
  display: grid;
  gap: 24px;
  align-items: center;
}
.hero-art {
  width: min(58vw, 230px);
  border-radius: 28px;
  box-shadow: var(--shadow);
  justify-self: center;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}
h1 {
  margin: 16px 0 12px;
  font-size: clamp(1.75rem, 7vw, 3rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lead {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
}

/* ---------- الأقسام ---------- */
main section { padding-block: 34px; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.4;
  font-weight: 700;
}
h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 700; }
.section-intro { margin: 0 0 20px; color: var(--text-muted); }

.cards {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card p { margin: 0; color: var(--text-muted); }
.card .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.pull-quote {
  margin: 20px 0 0;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.85;
}
@media (prefers-color-scheme: dark) {
  .pull-quote { background: var(--teal-dark); }
}

/* ---------- الأسعار ---------- */
.price-card { display: flex; flex-direction: column; gap: 6px; }
.price-card .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.price-card ul { margin: 6px 0 0; padding-inline-start: 20px; color: var(--text-muted); }
.price-card li { margin-bottom: 4px; }
.note {
  margin-top: 16px;
  padding: 16px;
  border-inline-start: 4px solid var(--gold);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
}
.note p { margin: 0; }

/* ---------- الأسئلة الشائعة ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 4px 16px;
}
.faq summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: left;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--text-muted); }

/* ---------- صفحات النصوص ---------- */
.page-head { padding-block: 32px 8px; }
.page-head h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
.prose { padding-block: 10px 40px; }
.prose h2 {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.2rem, 4.5vw, 1.6rem);
}
.prose h3 { margin-top: 22px; font-size: 1.05rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  margin: 18px 0;
  padding: 14px 18px;
  border-inline-start: 4px solid var(--mint);
  background: var(--surface);
  border-radius: 10px;
}
.prose blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: start;
  vertical-align: top;
}
.prose th { background: var(--accent-soft); color: var(--text); font-weight: 700; }

.contact-box {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact-box h2 { border: 0; margin-top: 0; padding-top: 0; }

/* ---------- تذييل ---------- */
.site-footer {
  margin-top: 20px;
  padding-block: 28px 20px;
  background: var(--teal-dark);
  color: rgba(255, 255, 255, 0.82);
}
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand { font-weight: 700; font-size: 1.15rem; color: #fff; margin: 0 0 6px; }
.site-footer p { margin: 0 0 16px; font-size: 0.95rem; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 20px;
  font-size: 0.95rem;
}
.footer-legal {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- شاشات أوسع ---------- */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .hero { grid-template-columns: 1.3fr 0.7fr; padding-block: 64px 48px; }
  .hero-art { width: min(100%, 300px); justify-self: end; }
  main section { padding-block: 52px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
