/* =========================================================
   جمعية دار البر — النموذج الثاني: «إرث»
   ========================================================= */

/* الخط: Lyon Arabic Text (خط واحد لكامل النموذج) */
@font-face { font-family: "Lyon Arabic"; src: url("../assets/fonts/LyonArabicText-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lyon Arabic"; src: url("../assets/fonts/LyonArabicText-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lyon Arabic"; src: url("../assets/fonts/LyonArabicText-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  /* ===== الألوان الأساسية الموحّدة (من شعار دار البر) — مطابقة في النموذجين =====
     الأزرق: اللون الطاغي | الذهبي: لون التمييز | الزيتوني: لمسات ثانوية جدًا */
  --blue: #1c79b5;
  --blue-dark: #155f8f;
  --blue-deep: #0f4467;
  --blue-light: #e8f2f9;
  --olive: #485019;
  --olive-dark: #353b12;
  --olive-light: #eef0e3;
  --gold: #fbc006;
  --gold-dark: #d9a400;
  --gold-light: #fff6d6;
  --red: #d93a2b;
  --ink: #1d1f16;

  /* أسماء مشتقة */
  --navy: var(--blue-deep);     /* الأسطح الداكنة والعناوين */
  --accent: var(--blue);        /* اللون الطاغي في العناصر التفاعلية */
  --gold-600: var(--gold-dark);
  --gold-soft: var(--gold-light);

  /* محايدات */
  --cream: #f8f4ea;
  --cream-2: #f1ebdc;
  --sand: #e9e0ca;
  --ink-2: #3b3d33;
  --muted: #6b6d62;
  --line: rgba(15, 68, 103, .14);

  --f-body: "Lyon Arabic", "Times New Roman", serif;
  --f-ui: "Lyon Arabic", "Times New Roman", serif;
  --f-serif: "Lyon Arabic", "Times New Roman", serif;

  --ease: cubic-bezier(.22, .8, .2, 1);
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 16.5px; line-height: 1.75; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--navy); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--sm { width: 16px; height: 16px; }
.ic--xs { width: 13px; height: 13px; }
.skip { position: absolute; top: -100px; right: 16px; background: var(--gold); padding: 8px 16px; z-index: 999; }
.skip:focus { top: 8px; }

/* ---------- عناصر عامة ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px; font-family: var(--f-ui); font-weight: 600; font-size: 15.5px; white-space: nowrap; border-radius: 2px; position: relative; overflow: hidden; transition: color .3s, background .3s, border-color .3s, transform .2s; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold::before { background: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue::before { background: var(--navy); }
.btn--line { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn--line::before { background: rgba(255, 255, 255, .1); }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-weight: 600; font-size: 14px; letter-spacing: .02em; color: var(--gold); margin-bottom: 18px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker--dark { color: var(--accent); }
.title { font-family: var(--f-serif); font-weight: 600; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.2; color: var(--navy); }
.title em, .display em { font-style: normal; color: var(--accent); position: relative; }
.more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-ui); font-weight: 600; font-size: 15px; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap .3s; }
.more:hover { gap: 14px; }
.more--light { color: var(--gold); }
.circle { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); color: #fff; transition: .3s; }
.circle:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.circle--dark { border-color: var(--line); color: var(--navy); }
.circle--dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.circle:disabled { opacity: .3; pointer-events: none; }
.hero__pattern { position: absolute; inset: 0; background: url("../assets/img/pattern.svg") 0 0 / 96px; opacity: .07; pointer-events: none; }

/* ---------- الهيدر ---------- */
.header { position: fixed; top: 0; inset-inline: 0; z-index: 60; color: #fff; transition: background .4s, color .4s, box-shadow .4s, transform .4s; }
.util { border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; transition: max-height .4s, opacity .3s; max-height: 44px; overflow: hidden; }
.util__in { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.util__verse { font-family: var(--f-serif); opacity: .75; }
.util__links { display: flex; gap: 22px; }
.util__links a { display: inline-flex; align-items: center; gap: 6px; opacity: .85; }
.util__links a:hover { opacity: 1; }
.util__links b { color: var(--gold); font-family: var(--f-ui); font-size: 15px; }
.util .ic { width: 15px; height: 15px; }
.header__in { display: flex; align-items: center; gap: 32px; height: 84px; transition: height .4s; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__emblem { height: 60px; width: auto; transition: height .4s; }
.brand__text img { height: 42px; width: auto; }
.brand .on-light { display: none; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 6px; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-family: var(--f-ui); font-weight: 600; font-size: 15px; position: relative; }
.nav a::after, .nav button::after { content: ""; position: absolute; bottom: 4px; inset-inline: 14px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover::after, .nav button:hover::after { transform: scaleX(1); }
.nav__hot { color: var(--gold); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; right: 0; min-width: 260px; padding: 12px; background: var(--cream); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(15, 68, 103, .4); border-top: 3px solid var(--gold); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s var(--ease); }
.has-sub:hover .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; gap: 14px; padding: 12px 14px; font-family: var(--f-serif); font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.sub a:last-child { border: 0; }
.sub a::after { display: none; }
.sub a span { font-family: var(--f-ui); font-size: 12px; color: var(--olive); padding-top: 6px; }
.sub a:hover { background: var(--cream-2); color: var(--accent); }
.actions { display: flex; align-items: center; gap: 4px; }
.act { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.act:hover { background: rgba(255, 255, 255, .1); }
.count { position: absolute; top: 2px; left: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gold); color: var(--navy); font: 700 11px/18px var(--f-ui); text-align: center; font-style: normal; padding: 0 4px; }
.count--red { background: var(--red); color: #fff; }
.actions__cta { margin-inline-start: 10px; }
.burger { display: none; }

.header.is-solid { background: rgba(248, 244, 234, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header.is-solid .util { max-height: 0; opacity: 0; border: 0; }
.header.is-solid .header__in { height: 72px; }
.header.is-solid .brand__emblem { height: 50px; }
.header.is-solid .on-dark { display: none; }
.header.is-solid .on-light { display: block; }
.header.is-solid .act:hover { background: var(--cream-2); }
.header.is-solid .nav__hot { color: var(--red); }

/* ---------- الهيرو ---------- */
.hero { position: relative; z-index: 2; background: radial-gradient(900px 600px at 15% 30%, var(--blue) 0%, transparent 60%), linear-gradient(160deg, var(--blue-dark), var(--navy)); color: #fff; padding-top: 150px; overflow-x: clip; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; min-height: 620px; padding-bottom: 130px; }
.hero__slides { display: grid; }
.hcopy { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.hcopy.is-active { opacity: 1; visibility: visible; }
.hcopy > * { transform: translateY(30px); opacity: 0; transition: transform 1s var(--ease), opacity 1s; }
.hcopy.is-active > * { transform: none; opacity: 1; }
.hcopy.is-active > :nth-child(2) { transition-delay: .12s; }
.hcopy.is-active > :nth-child(3) { transition-delay: .24s; }
.display { font-family: var(--f-serif); font-weight: 700; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 22px; }
.display em { color: var(--gold); }
.lead { font-size: 19px; max-width: 520px; color: rgba(255, 255, 255, .78); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__pager { display: flex; align-items: center; gap: 14px; margin-top: 48px; }
.hero__num { font-family: var(--f-ui); font-size: 14px; color: rgba(255, 255, 255, .6); min-width: 64px; }
.hero__num b { color: #fff; font-size: 22px; }
.hero__lines { display: flex; gap: 6px; margin-inline-end: 10px; }
.hero__lines i { width: 40px; height: 2px; background: rgba(255, 255, 255, .2); position: relative; overflow: hidden; }
.hero__lines i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: right; }
.hero__lines i.is-active::after { animation: grow 6.5s linear forwards; }
@keyframes grow { to { transform: scaleX(1); } }

.hero__visual { position: relative; height: 560px; }
.arch { position: absolute; border-radius: 999px 999px 0 0; }
.arch--outline { inset: 0 30px 20px 60px; border: 1px solid rgba(251, 192, 6, .5); transform: translate(-28px, -24px); }
.arch--frame { inset: 0 30px 20px 60px; overflow: hidden; background: var(--navy); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.arch--frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.2s var(--ease), transform 7s var(--ease); }
.arch--frame img.is-active { opacity: 1; transform: scale(1); }
.live { position: absolute; bottom: 70px; left: 0; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--cream); color: var(--ink); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .4); max-width: 290px; border-right: 3px solid var(--gold); }
.live small { font-family: var(--f-ui); color: var(--accent); font-size: 12px; font-weight: 600; }
.live p { font-size: 14px; line-height: 1.5; transition: opacity .35s; }
.live b { color: var(--accent); }
.live__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; box-shadow: 0 0 0 0 rgba(251, 192, 6, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(251, 192, 6, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 192, 6, 0); } }
.seal { position: absolute; top: 30px; right: 0; width: 132px; height: 132px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .4); }
.seal svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 26s linear infinite; }
.seal text { font-family: var(--f-ui); font-size: 11.2px; font-weight: 600; fill: var(--accent); letter-spacing: .5px; }
.seal img { width: 52px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* نموذج الجملة */
.sentence { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: -70px; padding: 26px 32px; background: var(--cream); color: var(--ink); box-shadow: 0 30px 60px -24px rgba(15, 68, 103, .45); border-top: 3px solid var(--gold); transform: translateY(50%); }
.sentence__line { font-family: var(--f-serif); font-size: clamp(20px, 2vw, 26px); line-height: 2.1; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--accent); padding: 0 6px; margin: 0 4px; color: var(--accent); font-weight: 700; position: relative; }
.pill select, .pill input { border: 0; background: none; font-family: var(--f-serif); font-weight: 700; font-size: inherit; color: inherit; appearance: none; padding: 0 0 0 4px; cursor: pointer; outline: none; }
.pill--amt input { width: 3.6ch; text-align: center; -moz-appearance: textfield; }
.pill--amt input::-webkit-outer-spin-button, .pill--amt input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pill em { font-style: normal; font-size: .8em; }
.pill:focus-within { background: var(--gold-soft); }
.sentence__side { display: flex; align-items: center; gap: 14px; flex: none; }
.sentence__quick { display: flex; border: 1px solid var(--line); }
.sentence__quick button { width: 56px; height: 54px; font-family: var(--f-ui); font-weight: 600; transition: .25s; }
.sentence__quick button + button { border-inline-start: 1px solid var(--line); }
.sentence__quick button.is-active, .sentence__quick button:hover { background: var(--accent); color: #fff; }

/* ---------- الأثر ---------- */
.impact { padding: 170px 0 90px; }
.impact__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.impact__head p { max-width: 380px; color: var(--muted); }
.impact__row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num { padding: 36px 28px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.num + .num { border-inline-start: 1px solid var(--line); }
.num b { font-family: var(--f-serif); font-size: clamp(42px, 5vw, 72px); line-height: 1; font-weight: 600; color: var(--accent); }
.num b::after { content: "+"; color: var(--gold-600); font-size: .6em; margin-inline-start: 4px; vertical-align: top; }
.num span { color: var(--ink-2); font-size: 16px; }

/* ---------- الأقسام ---------- */
.sec { padding: clamp(80px, 9vw, 130px) 0; position: relative; }
.sec--sand { background: var(--cream-2); }
.sec--cream2 { background: linear-gradient(var(--cream) 0 50%, var(--cream-2) 50%); }
.sec__head { margin-bottom: 56px; max-width: 720px; }
.sec__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec__sub { color: var(--muted); font-size: 17.5px; margin-top: 14px; max-width: 560px; }

/* الدوري */
.plans { display: grid; grid-template-columns: 1fr 1.35fr; gap: 0; border: 1px solid var(--line); background: #fffdf8; }
.plans__list { border-inline-end: 1px solid var(--line); counter-reset: p; }
.plans__list li { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 8px; padding: 26px 30px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; transition: background .35s; }
.plans__list li:last-child { border-bottom: 0; }
.plans__list li::before { content: ""; position: absolute; inset-block: 0; right: 0; width: 3px; background: var(--gold); transform: scaleY(0); transition: transform .4s var(--ease); }
.plans__list li:hover { background: var(--cream); }
.plans__list li.is-active { background: var(--cream-2); }
.plans__list li.is-active::before { transform: scaleY(1); }
.plans__n { font-family: var(--f-ui); font-size: 13px; color: var(--olive); }
.plans__list b { font-family: var(--f-serif); font-weight: 600; font-size: 24px; color: var(--navy); }
.plans__list small { font-size: 14px; color: var(--muted); }
.plans__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 40px; align-items: center; }
.plans__media { display: grid; place-items: center; }
.plans__arch { width: 100%; max-width: 300px; aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; background: radial-gradient(circle at 50% 80%, var(--gold-soft), var(--sand) 70%); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; position: relative; }
.plans__arch::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(15, 68, 103, .2); border-radius: inherit; }
.plans__arch img { height: 88%; width: auto; max-width: 96%; object-fit: contain; transition: opacity .35s, transform .6s var(--ease); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .15)); }
.plans__arch img.is-swap { opacity: 0; transform: translateY(20px); }
.plans__body h3 { font-family: var(--f-serif); font-size: 34px; font-weight: 700; color: var(--navy); }
.plans__body > p { color: var(--muted); margin: 8px 0 22px; }
.toggle { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-bottom: 16px; }
.toggle button { height: 44px; font-family: var(--f-ui); font-weight: 600; font-size: 14px; transition: .25s; }
.toggle button + button { border-inline-start: 1px solid var(--line); }
.toggle button.is-active { background: var(--accent); color: #fff; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 10px; border: 1px solid var(--line); margin-bottom: 16px; background: #fff; }
.stepper button { width: 44px; height: 44px; display: grid; place-items: center; background: var(--cream-2); transition: .2s; }
.stepper button:hover { background: var(--accent); color: #fff; }
.stepper div { text-align: center; line-height: 1.1; }
.stepper b { font-family: var(--f-serif); font-size: 38px; color: var(--accent); }
.stepper small { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.plans__note { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* التبرّع السريع */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.tabs button { font-family: var(--f-ui); font-weight: 600; font-size: 15px; padding: 6px 0; color: var(--muted); position: relative; transition: color .3s; }
.tabs button::after { content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs button:hover, .tabs button.is-active { color: var(--navy); }
.tabs button.is-active::after { transform: scaleX(1); }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 28px) / 4); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 6px; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__ctrl { display: flex; align-items: center; gap: 10px; margin-top: 36px; }
.rail__count { font-family: var(--f-ui); font-size: 14px; color: var(--muted); margin-inline-start: 12px; }

.prj { background: #fffdf8; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.prj:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -28px rgba(15, 68, 103, .4); }
.prj.is-hidden { display: none; }
.prj__top { position: relative; padding: 22px 22px 0; }
.prj__arch { height: 230px; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, var(--sand), var(--gold-soft)); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.prj__arch img { height: 92%; width: auto; max-width: 92%; object-fit: contain; transition: transform .6s var(--ease); }
.prj:hover .prj__arch img { transform: scale(1.06) translateY(-4px); }
.ring { position: absolute; top: 12px; left: 12px; width: 66px; height: 66px; background: #fffdf8; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .25); }
.ring svg { position: absolute; inset: 5px; width: 56px; height: 56px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .ring__bg { stroke: var(--sand); }
.ring .ring__fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; transition: stroke-dashoffset 1.6s var(--ease); }
.ring b { font-family: var(--f-ui); font-size: 14px; color: var(--navy); }
.prj__fav { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fffdf8; color: var(--muted); transition: .2s; }
.prj__fav.is-on { color: var(--red); }
.prj__fav.is-on .ic { fill: var(--red); }
.prj__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.prj__body h3 { font-family: var(--f-serif); font-weight: 700; font-size: 25px; color: var(--navy); margin-bottom: 12px; }
.prj__dl { margin: 0 0 18px; }
.prj__dl div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.prj__dl dt { color: var(--muted); }
.prj__dl dd { margin: 0; font-family: var(--f-ui); font-weight: 600; direction: ltr; }
.prj__dl div:last-child dd { color: var(--accent); }
.prj__act { display: flex; margin-top: auto; border: 1px solid var(--accent); }
.prj__act input { flex: 1; min-width: 0; height: 48px; border: 0; padding: 0 12px; background: transparent; outline: none; text-align: center; -moz-appearance: textfield; }
.prj__act input::-webkit-outer-spin-button, .prj__act input::-webkit-inner-spin-button { -webkit-appearance: none; }
.prj__act .add { width: 48px; display: grid; place-items: center; border-inline-start: 1px solid var(--accent); color: var(--accent); transition: .2s; }
.prj__act .add:hover { background: var(--cream-2); }
.prj__act .go { padding: 0 18px; background: var(--accent); color: #fff; font-family: var(--f-ui); font-weight: 600; transition: background .2s; }
.prj__act .go:hover { background: var(--navy); }

/* آية */
.ayah { position: relative; background: var(--accent); color: #fff; padding: 96px 0; text-align: center; overflow: hidden; }
.ayah .hero__pattern { opacity: .1; }
.ayah__in { position: relative; max-width: 980px; }
.ayah__wheat { width: 56px; height: 56px; fill: none; stroke: var(--gold); stroke-width: 1.2; margin: 0 auto 20px; display: block; }
.ayah blockquote { margin: 0; font-family: var(--f-serif); font-size: clamp(24px, 3.2vw, 42px); line-height: 1.8; }
.ayah cite { display: block; margin-top: 18px; font-family: var(--f-ui); font-style: normal; font-size: 14px; color: var(--gold); letter-spacing: .04em; }

/* الحملات */
.camps { display: grid; grid-template-columns: 1fr 1fr 340px; gap: 28px; }
.camp { position: relative; display: flex; flex-direction: column; background: #fffdf8; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.camp:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(15, 68, 103, .4); }
.camp__img { height: 280px; overflow: hidden; margin: 18px 18px 0; border-radius: 999px 999px 0 0; background: var(--sand); }
.camp__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.camp--a .camp__img img { object-fit: contain; padding: 30px 10px 0; object-position: bottom; }
.camp:hover .camp__img img { transform: scale(1.06); }
.camp__txt { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 6px; flex: 1; align-items: flex-start; }
.camp__no { font-family: var(--f-ui); font-size: 13px; color: var(--olive); }
.camp h3 { font-family: var(--f-serif); font-weight: 700; font-size: 30px; color: var(--navy); }
.camp__en { font-family: var(--f-ui); font-size: 14px; color: var(--muted); direction: ltr; margin-top: -4px; }
.camp__txt > p:not(.camp__en) { color: var(--ink-2); margin: 6px 0 14px; }
.camp__txt .more { margin-top: auto; }
.camp--urgent { background: var(--navy); color: #fff; padding: 36px 30px; justify-content: flex-end; gap: 14px; overflow: hidden; border: 0; }
.camp--urgent::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/news-1.webp") center / cover; opacity: .35; transition: transform 1s var(--ease); }
.camp--urgent::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 10%, var(--navy) 85%); }
.camp--urgent:hover::before { transform: scale(1.06); }
.camp--urgent > * { position: relative; z-index: 1; }
.camp--urgent h3 { color: #fff; font-size: 32px; line-height: 1.25; }
.camp--urgent p { color: rgba(255, 255, 255, .8); font-size: 14.5px; }
.camp--urgent p b { color: var(--gold); font-family: var(--f-ui); font-size: 18px; }
.camp--urgent .btn { align-self: flex-start; }
.urgent__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--red); padding: 4px 12px; font-family: var(--f-ui); font-weight: 600; font-size: 13px; margin-bottom: auto; }
.urgent__tag i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.urgent__bar { height: 4px; background: rgba(255, 255, 255, .2); }
.urgent__bar i { display: block; height: 100%; background: var(--gold); }

/* الزكاة */
.zk { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; background: #fffdf8; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(15, 68, 103, .5); }
.zk__form { padding: clamp(28px, 4vw, 56px); }
.zk__form .sec__sub { font-family: var(--f-serif); font-size: 18px; margin-bottom: 30px; }
.zk__tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.zk__tabs button { padding: 12px 22px; font-family: var(--f-ui); font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .25s; white-space: nowrap; }
.zk__tabs button.is-active { color: var(--navy); border-color: var(--gold); }
.zk__pane { display: none; gap: 18px; }
.zk__pane.is-active { display: grid; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.line-field { display: grid; grid-template-columns: 1fr auto; align-items: end; border-bottom: 1px solid rgba(15, 68, 103, .3); padding-bottom: 6px; transition: border-color .3s; }
.line-field:focus-within { border-color: var(--accent); }
.line-field span { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); font-family: var(--f-ui); font-weight: 600; }
.line-field input { border: 0; background: none; outline: none; height: 44px; font-family: var(--f-serif); font-size: 24px; color: var(--navy); min-width: 0; -moz-appearance: textfield; }
.line-field input::-webkit-outer-spin-button, .line-field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.line-field em { font-style: normal; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
.zk__year { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 26px; font-size: 15px; }
.zk__year > span { font-family: var(--f-ui); font-weight: 600; color: var(--navy); }
.zk__year label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.zk__year input { accent-color: var(--accent); width: 18px; height: 18px; }
.zk__year small { color: var(--muted); }
.zk__result { position: relative; background: var(--navy); color: #fff; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 10px; overflow: hidden; }
.zk__result .hero__pattern { opacity: .08; }
.zk__result > * { position: relative; }
.zk__result > span { font-family: var(--f-ui); color: var(--gold); font-weight: 600; }
.zk__total { font-family: var(--f-serif); font-size: clamp(48px, 5vw, 72px); line-height: 1.1; font-weight: 700; display: flex; flex-direction: column; }
.zk__total small { font-family: var(--f-body); font-size: 15px; font-weight: 400; opacity: .7; }
.zk__dl { margin: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .14); }
.zk__dl div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 15px; }
.zk__dl dt { opacity: .7; }
.zk__dl dd { margin: 0; font-family: var(--f-ui); font-weight: 600; }

/* الإهداء */
.gift { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.gift__occ { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.gift__occ button { height: 40px; padding: 0 18px; border: 1px solid var(--line); font-family: var(--f-ui); font-weight: 600; font-size: 14px; transition: .25s; }
.gift__occ button.is-active, .gift__occ button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.gift__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.gift__grid .line-field input { font-size: 20px; }
.gift__stage { display: grid; place-items: center; padding: 50px 20px; background: radial-gradient(circle at 50% 40%, var(--gold-soft), transparent 65%); }
.envelope { position: relative; width: min(100%, 440px); aspect-ratio: 1.45; background: var(--accent); box-shadow: 0 40px 70px -30px rgba(15, 68, 103, .6); }
.envelope::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/pattern.svg") 0 0 / 64px; opacity: .12; }
.envelope::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent 49.6%, rgba(0, 0, 0, .12) 50%, transparent 50.4%), linear-gradient(to top left, transparent 49.6%, rgba(0, 0, 0, .12) 50%, transparent 50.4%); pointer-events: none; }
.letter { position: absolute; inset: -46px 26px 26px; z-index: 1; background: #fffdf8; padding: 28px 30px; display: flex; flex-direction: column; align-items: center; text-align: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3); transform: rotate(2deg); transition: transform .6s var(--ease); border-top: 4px solid var(--gold); }
.envelope:hover .letter { transform: rotate(0) translateY(-10px); }
.letter__emblem { width: 44px; margin-bottom: 8px; }
.letter__occ { font-family: var(--f-ui); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .08em; }
.letter__to { font-family: var(--f-serif); font-size: 28px; color: var(--navy); margin: 4px 0 8px; line-height: 1.3; }
.letter__msg { font-size: 14.5px; color: var(--ink-2); max-width: 300px; }
.letter__from { margin-top: auto; font-family: var(--f-serif); font-size: 18px; color: var(--accent); }

/* الأخبار */
.mag { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; }
.mag__lead { position: relative; min-height: 520px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; }
.mag__lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mag__lead:hover img { transform: scale(1.05); }
.mag__lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(15, 68, 103, .92)); }
.mag__cap { position: relative; z-index: 1; padding: 36px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mag__cap h3 { font-family: var(--f-serif); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; }
.mag__meta { font-family: var(--f-ui); font-weight: 600; font-size: 13px; color: var(--accent); }
.mag__cap .mag__meta { color: var(--gold); }
.mag__list { display: flex; flex-direction: column; }
.mag__item { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mag__item:first-child { padding-top: 0; }
.mag__item img { width: 150px; height: 104px; object-fit: cover; transition: filter .4s; filter: saturate(.85); }
.mag__item:hover img { filter: saturate(1.1); }
.mag__item h4 { font-family: var(--f-serif); font-weight: 600; font-size: 19px; line-height: 1.5; margin-top: 4px; transition: color .25s; }
.mag__item:hover h4 { color: var(--accent); }

/* طرق التبرع */
.ways { padding: 60px 0; border-top: 1px solid var(--line); }
.ways__in { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 0; align-items: stretch; }
.ways__title { font-family: var(--f-serif); font-size: 32px; font-weight: 600; color: var(--navy); align-self: center; }
.ways__title em { font-style: normal; color: var(--accent); }
.ways__item { display: flex; flex-direction: column; gap: 2px; padding: 8px 26px; border-inline-start: 1px solid var(--line); }
.ways__item .ic { width: 28px; height: 28px; color: var(--accent); margin-bottom: 10px; }
.ways__item b { font-family: var(--f-ui); font-weight: 600; font-size: 16px; }
.ways__item small { color: var(--muted); font-size: 14px; }

/* الفوتر */
.footer { position: relative; background: var(--navy); color: rgba(255, 255, 255, .7); overflow: hidden; }
.footer .hero__pattern { opacity: .05; }
.footer > .wrap { position: relative; }
.footer__top { padding: 72px 0 56px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__news { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__news h2 { font-family: var(--f-serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 46px); color: #fff; }
.footer__news h2 em { font-style: normal; color: var(--gold); }
.footer__form { display: flex; width: min(100%, 460px); border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 8px; gap: 10px; }
.footer__form input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-size: 17px; }
.footer__form input::placeholder { color: rgba(255, 255, 255, .45); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0; }
.footer h4 { font-family: var(--f-ui); color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .06em; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 6px; margin-top: 22px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .14); transition: .25s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.socials .ic { width: 17px; height: 17px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.footer__pay, .bag__pay { display: flex; gap: 6px; }
.footer__pay i, .bag__pay i { font: 700 11px/1 var(--f-ui); font-style: normal; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .15); direction: ltr; }

.mdock { display: none; }

/* الطبقات */
.layer { position: fixed; inset: 0; z-index: 100; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.layer--search { background: rgba(15, 68, 103, .96); color: #fff; display: grid; place-items: center; }
.srch { width: min(100% - 32px, 860px); position: relative; }
.srch__x { position: absolute; top: -80px; left: 0; }
.srch__hint { font-family: var(--f-ui); color: var(--gold); margin-bottom: 8px; }
.srch input { width: 100%; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); outline: none; font-family: var(--f-serif); font-size: clamp(30px, 5vw, 60px); color: #fff; padding: 10px 0; }
.srch__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.srch__tags a { padding: 6px 16px; border: 1px solid rgba(255, 255, 255, .2); font-size: 15px; }
.srch__tags a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.layer--cart { background: rgba(15, 68, 103, .5); }
.bag { position: absolute; top: 0; bottom: 0; left: 0; width: min(100%, 440px); background: var(--cream); display: flex; flex-direction: column; animation: slide .45s var(--ease); }
@keyframes slide { from { transform: translateX(-100%); } }
.bag__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.bag__head h3 { font-family: var(--f-serif); font-size: 26px; color: var(--navy); }
.bag__list { flex: 1; overflow: auto; padding: 8px 26px; }
.bag__list li { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag__list b { flex: 1; font-family: var(--f-serif); font-size: 19px; font-weight: 600; }
.bag__list span { font-family: var(--f-ui); font-weight: 600; color: var(--accent); }
.bag__empty { flex: 1; display: grid; place-items: center; color: var(--muted); font-family: var(--f-serif); font-size: 20px; }
.bag__foot { padding: 22px 26px; background: var(--cream-2); }
.bag__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.bag__total b { font-family: var(--f-serif); font-size: 28px; color: var(--navy); }
.bag__pay { justify-content: center; margin-top: 14px; }
.bag__pay i { border-color: var(--line); color: var(--ink-2); }

.toast { position: fixed; z-index: 200; bottom: 28px; right: 28px; background: var(--navy); color: #fff; padding: 14px 22px; border-right: 3px solid var(--gold); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .4); transform: translateY(20px); opacity: 0; visibility: hidden; transition: .4s var(--ease); font-size: 15px; }
.toast.is-show { transform: none; opacity: 1; visibility: visible; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- الاستجابة ---------- */
@media (max-width: 1200px) {
  .nav a, .nav button { padding: 10px 9px; font-size: 14.5px; }
  .brand__text { display: none; }
  .camps { grid-template-columns: 1fr 1fr; }
  .camp--urgent { grid-column: 1 / -1; min-height: 280px; }
  .rail__track { grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; }
  .sentence { flex-direction: column; align-items: stretch; }
  .sentence__side { justify-content: space-between; }
}
@media (max-width: 1024px) {
  .burger { display: grid; }
  .brand__text { display: block; }
  .nav { position: fixed; inset: 72px 0 0; background: var(--cream); color: var(--ink); padding: 20px 16px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .35s var(--ease); overflow: auto; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a, .nav button { width: 100%; justify-content: space-between; padding: 18px 4px; font-family: var(--f-serif); font-size: 24px; border-bottom: 1px solid var(--line); }
  .nav a::after, .nav button::after { display: none; }
  .nav__hot { color: var(--red) !important; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; padding: 0 0 0 0; background: none; }
  .has-sub.is-open .sub { display: block; }
  .sub a { font-size: 18px; padding: 12px 16px; }
  .actions__cta { display: none; }
  .header.menu-open { background: var(--cream); color: var(--ink); }
  .header.menu-open .util { max-height: 0; opacity: 0; }
  .header.menu-open .header__in { height: 72px; }
  .header.menu-open .on-dark { display: none; }
  .header.menu-open .on-light { display: block; }
  .hero { padding-top: 130px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 110px; min-height: 0; }
  .hero__visual { height: 460px; max-width: 520px; width: 100%; margin-inline: auto; }
  .plans { grid-template-columns: 1fr; }
  .plans__list { display: flex; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .plans__list li { grid-template-columns: auto; flex: none; padding: 18px 22px; border-bottom: 0; border-inline-end: 1px solid var(--line); gap: 2px; }
  .plans__list li::before { inset: auto 0 0 0; width: auto; height: 3px; transform: scaleX(0); }
  .plans__list li.is-active::before { transform: scaleX(1); }
  .plans__list b { font-size: 20px; }
  .zk { grid-template-columns: 1fr; }
  .gift { grid-template-columns: 1fr; gap: 40px; }
  .mag { grid-template-columns: 1fr; }
  .mag__lead { min-height: 400px; }
  .ways__in { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .ways__title { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .util__verse { display: none; }
  .util__in { justify-content: center; }
  .brand__emblem { height: 50px; }
  .brand__text img { height: 34px; }
  .hero__visual { height: 380px; }
  .arch--frame, .arch--outline { inset: 0 10px 10px 30px; }
  .seal { width: 100px; height: 100px; top: 10px; }
  .seal text { font-size: 13.5px; }
  .seal img { width: 38px; }
  .live { bottom: 30px; max-width: 250px; }
  .lead { font-size: 17px; }
  .hero__pager { margin-top: 32px; }
  .hero__lines i { width: 26px; }
  .sentence { padding: 20px; margin-top: -60px; }
  .sentence__line { font-size: 19px; line-height: 2.3; }
  .sentence__side { flex-direction: column; align-items: stretch; }
  .sentence__quick button { flex: 1; }
  .impact { padding-top: 220px; }
  .impact__row { grid-template-columns: 1fr 1fr; }
  .num { padding: 24px 16px; }
  .num:nth-child(3) { border-inline-start: 0; }
  .num:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plans__panel { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .plans__arch { max-width: 220px; }
  .rail__track { grid-auto-columns: 80%; gap: 16px; }
  .camps { grid-template-columns: 1fr; }
  .camp__img { height: 230px; }
  .gift__grid { grid-template-columns: 1fr; }
  .letter { inset: -36px 16px 16px; padding: 20px; }
  .letter__to { font-size: 22px; }
  .letter__msg { font-size: 13px; }
  .mag__lead { min-height: 340px; }
  .mag__cap { padding: 22px; }
  .mag__item { grid-template-columns: 110px 1fr; gap: 14px; }
  .mag__item img { width: 110px; height: 84px; }
  .mag__item h4 { font-size: 16.5px; }
  .ways__in { grid-template-columns: 1fr; gap: 0; }
  .ways__item { border-inline-start: 0; border-top: 1px solid var(--line); padding: 18px 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .ways__item .ic { margin: 0; }
  .ways__item small { width: 100%; padding-inline-start: 40px; }
  .ways__title { margin-bottom: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { padding-bottom: 96px; justify-content: center; text-align: center; }
  .mdock { display: flex; position: fixed; bottom: 0; inset-inline: 0; z-index: 70; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--navy); }
  .mdock button { position: relative; width: 54px; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
  .mdock i { position: absolute; top: 4px; left: 4px; background: var(--gold); color: var(--navy); font: 700 10px/16px var(--f-ui); min-width: 16px; border-radius: 8px; font-style: normal; }
  .mdock .btn { flex: 1; }
  .toast { right: 16px; left: 16px; bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* منع تمدد عناصر الشبكة بسبب المحتوى القابل للتمرير */
.hero__grid > *, .plans > *, .zk > *, .gift > *, .mag > *, .camps > *, .sentence > * { min-width: 0; }
