/* ============================================================
   لجنة الزكاة بولاية عبري — الموقع الجديد
   الهوية: أخضر زمردي + ذهبي + عاجي
   ============================================================ */

:root {
  --green-900: #2c383b;
  --green-700: #46585c;
  --green-600: #5a6e72;
  --green-100: #eef1f0;
  --gold-500: #a9812f;
  --gold-600: #8a681f;
  --ivory: #faf8f1;
  --ink: #242e30;
  --muted: #5f6b6d;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(44, 56, 59, 0.10);
  --shadow-sm: 0 4px 14px rgba(44, 56, 59, 0.08);
  --font-display: "Alexandria", sans-serif;
  --font-body: "IBM Plex Sans Arabic", sans-serif;
  --font-quran: "Amiri", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.8;
  direction: rtl;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.45; }

/* ---------- شريط علوي ---------- */
.topbar {
  background: var(--green-900);
  color: #dfe6e5;
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a { color: var(--gold-500); font-weight: 600; }

/* ---------- الترويسة ---------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid #e9e4d6;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand .brand-text strong { display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--green-700); }
.brand .brand-text span { font-size: 0.72rem; color: var(--muted); }

nav.main-nav ul { display: flex; gap: 4px; align-items: center; }
nav.main-nav a {
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
nav.main-nav a:hover { background: var(--green-100); color: var(--green-700); }
nav.main-nav a.active { background: var(--green-700); color: var(--white); }
nav.main-nav a.nav-cta {
  background: var(--gold-500);
  color: var(--green-900);
  margin-inline-start: 8px;
}
nav.main-nav a.nav-cta:hover { background: var(--gold-600); color: var(--white); }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--green-700);
  color: var(--green-700);
  border-radius: 10px;
  font-size: 1.3rem;
  width: 44px; height: 44px;
  cursor: pointer;
}

/* ---------- البطل (Hero) ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(169, 129, 47, 0.18), transparent 60%),
    linear-gradient(160deg, var(--green-900), var(--green-700));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='84' height='84' viewBox='0 0 84 84' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06'%3E%3Cpath d='M42 6 L52 32 L78 42 L52 52 L42 78 L32 52 L6 42 L32 32 Z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 72px 0 84px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero .verse {
  font-family: var(--font-quran);
  font-size: 1.25rem;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; margin-bottom: 16px; }
.hero p.lead { color: #dde5e4; max-width: 56ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-logo { display: grid; place-items: center; }
.hero-logo .logo-ring {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.hero-logo img { width: 220px; height: auto; }

/* ---------- أزرار ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-500); color: var(--green-900); box-shadow: 0 8px 20px rgba(169, 129, 47, 0.35); }
.btn-gold:hover { background: #bd9440; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255, 255, 255, 0.5); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-green { background: var(--green-700); color: var(--white); }
.btn-green:hover { background: var(--green-900); }

/* ---------- الأقسام ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--green-900); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* فاصل النجمة الثمانية */
.star-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 14px; }
.star-divider::before, .star-divider::after { content: ""; height: 1px; width: 60px; background: var(--gold-500); }
.star-divider svg { width: 20px; height: 20px; fill: var(--gold-500); }

/* ---------- الإحصائيات ---------- */
.stats { background: var(--white); border-block: 1px solid #e9e4d6; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--green-700); }
.stat .num span { color: var(--gold-600); font-size: 1.4rem; }
.stat .label { color: var(--muted); font-size: 0.9rem; }

/* ---------- البطاقات ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #eae5d6;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .card-icon {
  height: 120px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--green-100), #f4f6f4);
  font-size: 2.6rem;
}
.card .card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card h3 { color: var(--green-900); font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; flex: 1; margin-bottom: 18px; }
.card .btn { align-self: flex-start; padding: 9px 20px; font-size: 0.88rem; }

/* بطاقة مميزة */
.card.featured { border: 2px solid var(--gold-500); position: relative; }
.card.featured::before {
  content: "الأبرز";
  position: absolute; top: 12px; left: 12px;
  background: var(--gold-500); color: var(--green-900);
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 12px; border-radius: 999px;
}

/* ---------- المنصات الرقمية ---------- */
.platforms { background: linear-gradient(180deg, var(--ivory), #f2efe6); }
.platforms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform-tile {
  background: var(--white);
  border: 1px solid #e7e2d2;
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.platform-tile:hover { transform: translateY(-4px); border-color: var(--gold-500); box-shadow: var(--shadow-sm); }
.platform-tile .p-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: var(--green-100);
  color: var(--green-700);
}
.platform-tile h3 { font-size: 1rem; color: var(--green-900); margin-bottom: 4px; }
.platform-tile p { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.platform-tile .p-link { font-size: 0.85rem; font-weight: 700; color: var(--gold-600); }
.platform-tile .p-link::after { content: " ←"; }

/* ---------- الآية ---------- */
.verse-band {
  background: var(--green-900);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
  position: relative;
}
.verse-band .quran {
  font-family: var(--font-quran);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: #eadfbe;
  max-width: 30ch;
  margin: 0 auto 10px;
}
.verse-band .sadaq { color: var(--gold-500); font-size: 0.95rem; }

/* ---------- الأعضاء ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member {
  background: var(--white);
  border: 1px solid #eae5d6;
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.member .avatar {
  width: 74px; height: 74px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--green-700), var(--green-900));
  color: var(--gold-500);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
}
.member h3 { font-size: 1rem; color: var(--green-900); }
.member .role {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.78rem;
  background: var(--green-100);
  color: var(--green-700);
  padding: 3px 14px;
  border-radius: 999px;
  font-weight: 600;
}
.member.chief { border: 2px solid var(--gold-500); }
.member.chief .role { background: var(--gold-500); color: var(--green-900); }

/* ---------- القيم ---------- */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eae5d6;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.value-box .v-icon { font-size: 1.8rem; margin-bottom: 10px; }
.value-box h3 { color: var(--green-700); margin-bottom: 6px; font-size: 1.05rem; }
.value-box p { color: var(--muted); font-size: 0.92rem; }

/* ---------- الأسئلة الشائعة ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: 14px; }
details.faq-item {
  background: var(--white);
  border: 1px solid #e7e2d2;
  border-radius: var(--radius);
  overflow: hidden;
}
details.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-900);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; color: var(--gold-600); font-size: 1.4rem; transition: transform 0.2s; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .answer { padding: 0 22px 20px; color: var(--muted); }

/* ---------- نموذج البلاغ ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #e7e2d2;
  box-shadow: var(--shadow-sm);
  padding: 32px;
  max-width: 720px;
  margin-inline: auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--green-900); }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d6cfbd;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--ivory);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-700); border-color: var(--green-700); }
textarea { min-height: 120px; resize: vertical; }

.notice {
  background: var(--green-100);
  border-right: 4px solid var(--green-700);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--green-900);
  margin-bottom: 22px;
}

/* ---------- الحساب البنكي ---------- */
.bank-card {
  background: linear-gradient(150deg, var(--green-900), var(--green-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.bank-card .acc-num {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  letter-spacing: 2px;
  direction: ltr;
  color: var(--gold-500);
  font-weight: 800;
}
.bank-card .copy-btn {
  background: var(--gold-500); color: var(--green-900);
  border: none; border-radius: 10px;
  padding: 10px 22px; font-weight: 700; font-family: var(--font-display);
  cursor: pointer;
}

/* ---------- صفحة داخلية: رأس ---------- */
.page-head {
  background: linear-gradient(160deg, var(--green-900), var(--green-700));
  color: var(--white);
  text-align: center;
  padding: 52px 0;
}
.page-head .verse { font-family: var(--font-quran); color: var(--gold-500); margin-bottom: 8px; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.page-head p { color: #dde5e4; margin-top: 8px; }

/* ---------- التذييل ---------- */
footer.site-footer { background: var(--green-900); color: #ccd6d5; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-grid h4 { color: var(--white); margin-bottom: 14px; font-size: 1rem; }
.footer-grid h4::after { content: ""; display: block; width: 34px; height: 2px; background: var(--gold-500); margin-top: 6px; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { font-size: 0.9rem; transition: color 0.2s; }
.footer-grid a:hover { color: var(--gold-500); }
.footer-about img { height: 84px; margin-bottom: 12px; background: rgba(255,255,255,0.92); border-radius: 14px; padding: 8px; }
.footer-about p { font-size: 0.88rem; }
.social-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.social-row a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.15s;
}
.social-row a:hover { background: var(--gold-500); color: var(--green-900); transform: translateY(-2px); }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
}
.copyright .gold { color: var(--gold-500); }

/* ---------- استجابة ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 48px 0 56px; }
  .hero-actions { justify-content: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 150px; }
  .cards-grid, .platforms-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .menu-toggle { display: block; }
  nav.main-nav {
    position: fixed; inset: 0; top: 0;
    background: rgba(44, 56, 59, 0.98);
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 100;
    display: grid; place-items: center;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav ul { flex-direction: column; gap: 10px; text-align: center; }
  nav.main-nav a { color: var(--white); font-size: 1.15rem; }
  nav.main-nav .nav-close {
    position: absolute; top: 20px; left: 20px;
    background: none; border: none; color: var(--white);
    font-size: 2rem; cursor: pointer;
  }
}

@media (max-width: 580px) {
  .cards-grid, .platforms-grid, .team-grid, .values-grid, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .brand .brand-text span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}


/* ---------- الأخبار ---------- */
.news-card .card-img { height: 190px; overflow: hidden; }
.news-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .card-img img { transform: scale(1.05); }
.news-card .date { font-size: 0.78rem; color: var(--gold-600); font-weight: 600; margin-bottom: 6px; }
.article-body { max-width: 780px; margin-inline: auto; background: var(--white); border: 1px solid #eae5d6; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.article-body img { border-radius: 12px; margin-bottom: 22px; }
.article-body .date { color: var(--gold-600); font-size: 0.85rem; margin-bottom: 14px; font-weight: 600; }
.article-body .content { color: #3d4a4c; white-space: pre-line; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span { padding: 8px 16px; border-radius: 10px; background: var(--white); border: 1px solid #e7e2d2; font-weight: 700; }
.pagination .current { background: var(--green-700); color: var(--white); border-color: var(--green-700); }

.alert { padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.alert-success { background: #e8f3e8; color: #1e5e2e; border-right: 4px solid #2e8b45; }
.alert-error { background: #fbe9e7; color: #8c2f24; border-right: 4px solid #c0392b; }
