/* موقع الجلّاب — نفس ألوان وخطوط التطبيق */

@font-face { font-family: "Amiri"; font-weight: 400; src: url(../fonts/amiri-arabic-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Amiri"; font-weight: 700; src: url(../fonts/amiri-arabic-700-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Amiri"; font-weight: 400; src: url(../fonts/amiri-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: "Amiri"; font-weight: 700; src: url(../fonts/amiri-latin-700-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: "Naskh"; font-weight: 400; src: url(../fonts/noto-naskh-arabic-arabic-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Naskh"; font-weight: 600; src: url(../fonts/noto-naskh-arabic-arabic-600-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Naskh"; font-weight: 700; src: url(../fonts/noto-naskh-arabic-arabic-700-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --brown: #86401c;
  --brown-dark: #4a2412;
  --night: #24150c;
  --cream: #fffaf4;
  --sand: #f6ecdf;
  --sand-deep: #ead7c1;
  --gold: #c99159;
  --gold-soft: #e7c79f;
  --ink: #2b1d14;
  --muted: #7a6b5f;
  --line: #eadccb;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(74, 36, 18, .14);
  --wrap: 1180px;
  --body-font: "Naskh", "Segoe UI", Tahoma, sans-serif;
  --display-font: "Amiri", "Naskh", serif;
}
:lang(en) { --body-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --display-font: "Amiri", Georgia, serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 17px/1.9 var(--body-font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:lang(en) body { line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ======= الشريط العلوي ======= */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 250, 244, .86); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 220, 203, .7);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 48px; }
.nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15.5px; }
.nav a { color: var(--ink); text-decoration: none; opacity: .8; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav .lang {
  opacity: 1; border: 1.5px solid var(--sand-deep); border-radius: 99px; padding: 4px 16px;
  font-family: system-ui, sans-serif; font-size: 14px;
}
.nav .lang:lang(ar) { font-family: var(--body-font); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }

/* ======= الواجهة ======= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 520px at 20% 110%, rgba(201, 145, 89, .55), transparent 60%),
    radial-gradient(900px 480px at 85% -10%, #fff 0%, transparent 60%),
    linear-gradient(180deg, #fff8ee 0%, #f7e6cf 55%, #edd0ab 100%);
}
.hero::after { /* تموّج الكثبان في أسفل الواجهة */
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 110px;
  background: var(--cream);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C240 20 420 20 720 60 S1200 110 1440 40 V110 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C240 20 420 20 720 60 S1200 110 1440 40 V110 H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 30px; min-height: min(760px, calc(100vh - 72px)); padding-block: 60px 130px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  color: var(--brown); font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero h1 {
  margin: 0; font: 700 clamp(38px, 4.6vw, 64px)/1.4 var(--display-font); color: var(--brown-dark);
}
.hero h1 .line2 { display: block; color: var(--brown); }
@media (min-width: 1100px) { .hero h1 .line1 { white-space: nowrap; } }
.hero .lead { margin: 22px 0 34px; font-size: clamp(17px, 1.6vw, 20px); color: #5d4a3d; max-width: 34em; }
.hero-art { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-art .sun {
  position: absolute; inset: -14% -12% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff3df, #f1c992 55%, rgba(233, 176, 110, 0) 72%);
}
.hero-art img.logo {
  position: relative; width: 100%; border-radius: 34px;
  border: 1px solid rgba(201, 145, 89, .25);
  box-shadow: 0 30px 70px rgba(74, 36, 18, .20), 0 0 0 10px rgba(255, 250, 244, .55);
}

/* أزرار المتاجر "قريباً" */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-width: 200px; padding: 11px 22px 11px 20px; border-radius: 16px;
  background: var(--night); color: #fff; text-decoration: none;
  box-shadow: 0 10px 26px rgba(36, 21, 12, .28); cursor: default;
}
.store svg { width: 30px; height: 30px; flex: none; }
.store span { display: grid; line-height: 1.2; }
.store small { font-size: 12px; opacity: .75; }
.store b { font: 700 19px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .01em; }
.store .soon {
  position: absolute; top: -10px; inset-inline-end: 14px;
  background: linear-gradient(135deg, #e9bf82, #c99159); color: var(--night);
  font: 700 11.5px/1 var(--body-font); padding: 5px 10px; border-radius: 99px;
  box-shadow: 0 4px 10px rgba(201, 145, 89, .45);
}
.stores-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ======= الأقسام العامة ======= */
section { padding-block: 100px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin: 0 0 12px; font: 700 clamp(30px, 3.6vw, 46px)/1.35 var(--display-font); color: var(--brown-dark); }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.ornament { display: block; width: 90px; height: 14px; margin: 0 auto 18px; color: var(--gold); }

/* ======= لمن الجلّاب ======= */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px; box-shadow: 0 1px 0 rgba(74, 36, 18, .04);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, #f8ead8, #efd6b6); color: var(--brown); margin-bottom: 18px;
}
.card .icon svg { width: 30px; height: 30px; }
.card h3 { margin: 0 0 8px; font: 700 24px/1.4 var(--display-font); color: var(--brown-dark); }
.card p { margin: 0; color: #5f4f43; }

/* ======= الحلال ======= */
.halal { background: linear-gradient(180deg, var(--cream), var(--sand)); }
.halal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.halal-card {
  display: grid; grid-template-columns: 294px 1fr; align-items: center; gap: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 16px;
  box-shadow: var(--shadow);
}
.halal-card .photo { width: 294px; height: 258px; border-radius: 20px; overflow: hidden; background: var(--sand-deep); }
.halal-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.halal-card .label { padding-inline-end: 12px; }
.halal-card h3 { margin: 0 0 6px; font: 700 32px/1.3 var(--display-font); color: var(--brown-dark); }
.halal-card p { margin: 0; color: #5f4f43; }

/* ======= القيم ======= */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 26px 22px; border-radius: 20px; background: var(--sand); }
.value h3 { margin: 0 0 6px; font: 700 20px/1.4 var(--display-font); color: var(--brown-dark); }
.value p { margin: 0; font-size: 15.5px; color: #5f4f43; }
.value svg { width: 28px; height: 28px; color: var(--brown); margin-bottom: 10px; }

/* ======= الدعوة الأخيرة ======= */
.cta {
  text-align: center; border-radius: 34px; padding: 70px 30px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 4 L34 26 L56 30 L34 34 L30 56 L26 34 L4 30 L26 26Z' fill='%23c99159' fill-opacity='.10'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #5a2a13, #86401c 55%, #a8612f);
  color: #fff5e8; box-shadow: var(--shadow);
}
.cta h2 { margin: 0 0 10px; font: 700 clamp(30px, 3.6vw, 46px)/1.35 var(--display-font); }
.cta p { margin: 0 auto 30px; max-width: 34em; color: #f3dcc4; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff8ef; color: var(--night); }
.cta a.mail { color: #fff; }

/* ======= الأسفل ======= */
footer { background: var(--sand); color: #6a5848; padding: 56px 0 28px; margin-top: 90px; border-top: 1px solid var(--line); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer .brand img { height: 56px; }

footer .tag { margin: 12px 0 0; font: 700 20px/1.5 var(--display-font); color: var(--brown); }
footer h4 { margin: 0 0 12px; color: var(--brown-dark); font-size: 16px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: #6a5848; text-decoration: none; }
footer a:hover { color: var(--brown); }
footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--sand-deep); padding-top: 22px; font-size: 14px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ======= الصفحات القانونية والدعم ======= */
.page-hero { background: linear-gradient(180deg, #fff8ee, var(--sand)); padding: 70px 0 50px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0; font: 700 clamp(34px, 4.2vw, 54px)/1.3 var(--display-font); color: var(--brown-dark); }
.page-hero p { margin: 8px 0 0; color: var(--muted); }
.doc { display: grid; grid-template-columns: 260px 1fr; gap: 50px; padding-block: 50px 20px; align-items: start; }
.toc { position: sticky; top: 96px; background: var(--sand); border-radius: 18px; padding: 20px 22px; font-size: 15px; }
.toc strong { display: block; margin-bottom: 8px; color: var(--brown-dark); }
.toc ol { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.toc a { color: #5f4f43; text-decoration: none; }
.toc a:hover { color: var(--brown); }
.prose { max-width: 780px; }
.prose h2 { margin: 44px 0 12px; font: 700 28px/1.4 var(--display-font); color: var(--brown-dark); scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 8px; font-size: 19px; color: var(--brown); }
.prose p, .prose li { color: #3e3027; }
.prose ul { padding-inline-start: 22px; }
.prose li { margin-bottom: 4px; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15.5px; }
.prose th, .prose td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sand); color: var(--brown-dark); }
.prose tr:last-child td { border-bottom: 0; }
.prose blockquote { margin: 0 0 24px; padding: 14px 18px; border-radius: 14px; background: #fff; border-inline-start: 4px solid var(--gold); color: var(--muted); font-size: 15px; }
.prose blockquote p { margin: 0; }
.prose hr { display: none; }
.prose code { font-family: inherit; background: var(--sand); padding: 1px 8px; border-radius: 6px; }

.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brown); color: #fff; font-weight: 700; }
.button {
  display: inline-flex; align-items: center; gap: 10px; background: var(--brown); color: #fff;
  text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 14px;
  box-shadow: 0 10px 22px rgba(134, 64, 28, .25);
}
.button:hover { background: #733716; }
.note-box { background: #fff7ea; border: 1px solid #f0dcbe; border-radius: 16px; padding: 16px 20px; color: #6a5341; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--brown-dark); }
.faq details p { margin: 10px 0 0; }

/* ======= الشاشات الصغيرة ======= */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .wrap { min-height: 0; gap: 10px; padding-block: 24px 110px; text-align: center; }
  .hero .eyebrow { justify-content: center; }
  .hero .lead { margin-inline: auto; }
  .hero .stores { justify-content: center; }
  .hero-art { order: -1; width: min(52%, 300px); }
  .audience, .values { grid-template-columns: 1fr 1fr; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding-block: 70px; }
  .audience, .values, .halal-grid { grid-template-columns: 1fr; }
  .halal-card { grid-template-columns: 1fr; gap: 16px; }
  .halal-card .photo { width: 100%; height: auto; aspect-ratio: 294 / 258; }
  .halal-card .label { padding: 0 8px 8px; }
  /* أزرار المتاجر جنب بعض في الجوال */
  .stores { flex-wrap: nowrap; gap: 10px; }
  .hero .stores, .cta .stores { justify-content: center; }
  .store { flex: 1 1 0; min-width: 0; max-width: 175px; gap: 8px; padding: 9px 12px; border-radius: 13px; }
  .store svg { width: 24px; height: 24px; }
  .store small { font-size: 10.5px; }
  .store b { font-size: 15px; white-space: nowrap; }
  .store .soon { top: -9px; inset-inline-end: 10px; font-size: 10.5px; padding: 4px 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none; } }

/* ======= مسافات أقسام محددة ======= */
.values-section { padding-block: 20px 0; }
.cta-section { padding-block: 80px 0; }
.wrap.narrow { max-width: 820px; padding-block: 50px 10px; }
.page-hero.not-found { text-align: center; padding-block: 120px; }
.page-hero .actions { margin-top: 28px; }
