:root {
  --petrol: #0B5563;
  --petrol-dark: #063A44;
  --petrol-deep: #042C34;
  --petrol-light: #4C9AA6;
  --teal: #5FB3BF;
  --gold: #E8C766;
  --gold-dark: #C9A43F;
  --text: #16262B;
  --muted: #6A7B80;
  --line: #E6ECEE;
  --bg: #F3F6F7;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(4, 44, 52, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Tajawal', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.75;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }

/* أزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer;
  border: 0; padding: 12px 24px; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn i { font-size: 1.25em; }
.btn-sm { padding: 8px 18px; font-size: 15px; }
.btn-lg { padding: 15px 32px; font-size: 18px; }
.btn-gold { background: var(--gold); color: var(--petrol-deep); box-shadow: 0 6px 18px rgba(232, 199, 102, .35); }
.btn-gold:hover { background: #f0d47e; }
.btn-petrol { background: var(--petrol); color: #fff; }
.btn-petrol:hover { background: var(--petrol-dark); }
.btn-glass { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.18); }
.btn-outline { background: #fff; color: var(--petrol); border: 1.5px solid var(--line); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* الشريط العلوي */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s;
  color: #fff;
}
.topbar.solid { background: rgba(255,255,255,.97); color: var(--text); box-shadow: 0 2px 16px rgba(0,0,0,.08); backdrop-filter: blur(8px); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { font-size: 18px; font-weight: 800; }
.brand small { font-size: 12.5px; opacity: .8; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 15.5px; transition: background .15s; }
.nav a:hover { background: rgba(127,127,127,.12); }
.topbar.solid .nav a:hover { background: var(--bg); color: var(--petrol); }
.burger { display: none; background: none; border: 0; color: inherit; font-size: 30px; cursor: pointer; padding: 4px; }

/* الواجهة */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(232,199,102,.25), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(95,179,191,.35), transparent 45%),
    linear-gradient(160deg, var(--petrol-light) 0%, var(--petrol) 45%, var(--petrol-deep) 100%);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease; transform: scale(1.05);
}
.hero-slides img.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,44,52,.55) 0%, rgba(11,85,99,.45) 45%, rgba(4,44,52,.92) 100%);
}
.hero.no-slides .hero-shade { background: radial-gradient(circle at 50% 40%, transparent 0, rgba(4,44,52,.35) 80%); }
.hero-in { position: relative; text-align: center; padding: 110px 0 90px; display: flex; flex-direction: column; align-items: center; }
.hero-logo { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,.35)); animation: rise .9s ease both; }
.hero h1 { font-size: clamp(28px, 4.8vw, 54px); font-weight: 800; margin-top: 22px; animation: rise .9s .1s ease both; }
.hero-en { margin: 6px 0 0; letter-spacing: .5px; opacity: .8; font-size: 15px; direction: ltr; animation: rise .9s .2s ease both; }
.hero-lead { font-size: clamp(17px, 2vw, 21px); max-width: 640px; margin: 18px 0 30px; opacity: .95; animation: rise .9s .3s ease both; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; animation: rise .9s .4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 34px; opacity: .75; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* الأقسام */
.sec { padding: 90px 0; }
.sec-alt { background: var(--bg); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--petrol-dark); }
.sec-head p { color: var(--muted); max-width: 640px; margin: 10px auto 0; }
.sec-head.light h2 { color: #fff; }
.sec-head.light p { color: rgba(255,255,255,.85); }
.kicker {
  display: inline-block; color: var(--gold-dark); font-weight: 700; font-size: 14.5px;
  margin-bottom: 6px; position: relative; padding: 0 28px;
}
.kicker::before, .kicker::after { content: ''; position: absolute; top: 50%; width: 20px; height: 2px; background: var(--gold); }
.kicker::before { right: 0; } .kicker::after { left: 0; }
.empty { text-align: center; color: var(--muted); }

/* صفحة نصية */
.page { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.page .pic { position: sticky; top: 100px; }
.page.no-img { grid-template-columns: 1fr; max-width: 820px; margin-inline: auto; text-align: center; }
.page .txt { white-space: pre-line; font-size: 18px; color: #33464c; }
.page .pic { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.page .pic img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; transition: transform .2s, box-shadow .2s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value i { font-size: 38px; color: var(--petrol); }
.value h3 { font-size: 19px; margin: 6px 0; color: var(--petrol-dark); }
.value p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* الأخبار */
.tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.tab { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 20px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tab.on { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(4,44,52,.16); }
.card .thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--petrol-light), var(--petrol-dark)); display: grid; place-items: center; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph { width: 70px; opacity: .55; }
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .meta { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }
.chip { background: #E9F3F5; color: var(--petrol); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 12.5px; }
.card h3 { font-size: 19px; color: var(--petrol-dark); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .more { margin-top: auto; padding-top: 8px; color: var(--petrol); font-weight: 700; font-size: 15px; }

/* الكفالات */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.sp {
  border-radius: 22px; padding: 30px 26px; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.sp:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.sp::after { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: #E9F3F5; top: -70px; left: -60px; z-index: 0; }
.sp > * { position: relative; z-index: 1; }
.sp .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--petrol); color: #fff; display: grid; place-items: center; font-size: 34px; }
.sp .img { border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; }
.sp .img img { width: 100%; height: 100%; object-fit: cover; }
.sp h3 { font-size: 21px; color: var(--petrol-dark); }
.sp p { margin: 0 0 8px; color: var(--muted); flex: 1; }

/* التبرع */
.donate { background: linear-gradient(160deg, var(--petrol) 0%, var(--petrol-deep) 100%); color: #fff; position: relative; overflow: hidden; }
.donate::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.05); top: -200px; right: -160px; }
.donate .wrap { position: relative; }
.don-primary {
  background: #fff; color: var(--text); border-radius: 24px; padding: 28px; display: flex; gap: 22px; align-items: center;
  max-width: 820px; margin: 0 auto 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.don-primary .ic { width: 72px; height: 72px; border-radius: 20px; background: var(--gold); color: var(--petrol-deep); display: grid; place-items: center; font-size: 38px; flex-shrink: 0; }
.don-primary h3 { font-size: 22px; color: var(--petrol-dark); }
.don-primary p { margin: 2px 0 0; color: var(--muted); }
.don-primary .grow { flex: 1; }
.don-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 820px; margin: 0 auto; }
.don {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 18px;
  display: flex; gap: 14px; align-items: center; cursor: pointer; transition: background .15s; color: #fff; text-align: right; font: inherit;
}
.don:hover { background: rgba(255,255,255,.15); }
.don i { font-size: 30px; color: var(--gold); }
.don img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; background: #fff; }
.don strong { display: block; font-size: 17px; }
.don small { opacity: .75; }
.others-title { text-align: center; margin: 36px 0 16px; font-size: 20px; color: var(--gold); }
.don-empty { max-width: 680px; margin: 0 auto; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 24px; padding: 34px 28px; }
.don-empty i.big { font-size: 54px; color: var(--gold); }
.don-empty p { font-size: 18px; margin: 10px 0 22px; }
.don-empty .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* الأسئلة */
.faq details { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; background: #fff; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 12px; color: var(--petrol-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { transition: transform .2s; color: var(--petrol); font-size: 24px; }
.faq details[open] summary i { transform: rotate(180deg); }
.faq .ans { padding: 0 22px 20px; color: #3e5258; white-space: pre-line; }

/* التواصل */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: stretch; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.c-row { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: 0 2px 10px rgba(4,44,52,.05); transition: transform .15s; }
.c-row:hover { transform: translateX(-4px); }
.c-row .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 24px; flex-shrink: 0; }
.c-row small { color: var(--muted); display: block; font-size: 13.5px; }
.c-row strong { font-size: 17px; word-break: break-word; }
.c-row .num { direction: ltr; unicode-bidi: embed; display: inline-block; }
.map { border-radius: 20px; overflow: hidden; min-height: 340px; box-shadow: var(--shadow); background: #dfe8ea; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* التذييل */
.footer { background: var(--petrol-deep); color: rgba(255,255,255,.85); padding-top: 44px; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 30px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 64px; height: 64px; object-fit: contain; }
.footer-brand strong { color: #fff; font-size: 18px; }
.footer-brand p { margin: 2px 0 0; font-size: 14.5px; opacity: .75; }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 22px; transition: background .15s, transform .15s; }
.social a:hover { background: var(--gold); color: var(--petrol-deep); transform: translateY(-3px); }
.copy { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 16px; font-size: 14px; opacity: .65; }

/* نافذة منبثقة */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-back { position: absolute; inset: 0; background: rgba(4,44,52,.6); backdrop-filter: blur(3px); animation: fade .2s; }
.modal-box { position: relative; background: #fff; border-radius: 24px; width: min(640px, 100%); max-height: 90vh; overflow: auto; padding: 32px 28px 28px; animation: pop .25s ease; }
.modal-x { position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; font-size: 22px; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal h3 { font-size: 24px; color: var(--petrol-dark); margin-bottom: 6px; padding-left: 40px; }
.modal .lead { color: var(--muted); margin: 0 0 18px; }
.post-imgs { display: grid; gap: 10px; margin: 16px 0; }
.post-imgs img { border-radius: 14px; width: 100%; }
.post-body { white-space: pre-line; color: #33464c; }
.details-box { background: var(--bg); border-radius: 14px; padding: 16px; white-space: pre-line; margin: 12px 0; user-select: all; }

/* النماذج */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: 15px; color: var(--petrol-dark); }
.form input, .form textarea {
  font: inherit; font-weight: 400; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; background: #FBFCFC; color: var(--text);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--petrol-light); background: #fff; box-shadow: 0 0 0 4px rgba(76,154,166,.15); }
.form textarea { min-height: 110px; resize: vertical; }
.form .note { text-align: center; color: var(--muted); font-size: 13.5px; margin: 0; }
.form .err { color: #C0392B; font-weight: 700; margin: 0; text-align: center; }
.done { text-align: center; padding: 10px 0; }
.done i { font-size: 76px; color: #1E8E5A; }

.wa-float { position: fixed; bottom: 22px; left: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 32px; box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* ظهور تدريجي */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* الشاشات الصغيرة */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .page { grid-template-columns: 1fr; gap: 30px; }
  .contact { grid-template-columns: 1fr; }
  .burger { display: block; margin-inline-start: auto; }
  .nav {
    position: fixed; top: 76px; inset-inline: 0; flex-direction: column; background: #fff; color: var(--text);
    padding: 10px 20px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.12); gap: 2px;
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px; }
  .nav-donate { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .sec { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .hero-logo { width: 116px; height: 116px; }
  .don-primary { flex-direction: column; text-align: center; }
  .form .two { grid-template-columns: 1fr; }
  .modal-box { padding: 28px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
