/* ============================================================
   مأتم الجهرمية — التصميم
   الهوية: مود فاتح مينيمال + برتقالي العلامة (#E85002)
   لمسات إسلامية خفيفة: القوس، الزخرفة الهندسية، خط أميري
   ============================================================ */

:root {
  --orange: #E85002;
  --orange-deep: #C10801;
  --orange-bright: #F16001;
  --orange-tint: #FFF3EC;
  --orange-tint-2: #FFE4D4;
  --ink: #000000;
  --gray-700: #333333;
  --gray-500: #646464;
  --gray-300: #A7A7A7;
  --line: #ECECEC;
  --bg: #F9F9F9;
  --card: #FFFFFF;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .06);
  --shadow-lg: 0 24px 60px rgba(232, 80, 2, .12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Cairo", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--gray-700);
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

/* ---------- الأزرار ---------- */
.btn {
  display: inline-block;
  padding: .8rem 2.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange) 60%, var(--orange-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 80, 2, .28);
}
.btn-gold:hover { box-shadow: 0 14px 32px rgba(232, 80, 2, .38); }

.btn-outline {
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- الشريط العلوي ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 249, 249, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo { width: 46px; height: 46px; }
.brand-name { font-size: 1.15rem; font-weight: 600; white-space: nowrap; }
.brand-name b { color: var(--orange); font-weight: 900; }

.main-nav {
  display: flex;
  gap: 1.4rem;
  margin-inline-start: auto;
}
.main-nav a {
  color: var(--gray-500);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: color .2s;
}
.main-nav a:hover { color: var(--orange); }
.header-donate { padding: .55rem 1.6rem; font-size: .95rem; }

/* ---------- الواجهة الرئيسية ---------- */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(241, 96, 1, .12), transparent 65%),
    radial-gradient(700px 420px at 5% 105%, rgba(232, 80, 2, .07), transparent 60%),
    var(--bg);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("images/pattern.svg");
  background-size: 420px;
  opacity: .05;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
}
.hero-kicker {
  display: inline-block;
  background: var(--orange-tint);
  border: 1px solid var(--orange-tint-2);
  color: var(--orange);
  border-radius: 999px;
  padding: .25rem 1.2rem;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-family: "Amiri", serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 1.2rem;
}
.hero-title span {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-intro {
  font-size: 1.2rem;
  color: var(--gray-500);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-progress-hint {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--card);
  border: 1.5px solid var(--orange-tint-2);
  color: var(--gray-700);
  border-radius: 999px;
  padding: .35rem 1.2rem;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.hero-progress-hint b { color: var(--orange); font-weight: 900; }
.hero-progress-hint:hover { border-color: var(--orange); transform: translateY(-2px); }
.hero-license {
  color: var(--gray-500);
  font-size: .9rem;
  display: flow;
  align-items: center;
  gap: .5rem;
}
.hero-license b { color: var(--orange); }

.arch-frame {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 190px 190px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(circle at 50% 20%, var(--orange-tint), transparent 65%),
    var(--card);
}
.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.arch-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .5);
  pointer-events: none;
}

/* ---------- الأقسام ---------- */
.section { padding: 4.5rem 0; }
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 2.8rem;
  position: relative;
}
.section-title span {
  position: relative;
  padding-inline: 1.5rem;
}
.section-title span::before,
.section-title span::after {
  content: "◆";
  color: var(--orange);
  font-size: .8rem;
  vertical-align: middle;
  opacity: .7;
}

/* ---------- حالة التبرعات ---------- */
.progress-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.8rem;
  box-shadow: var(--shadow);
}
.donut-wrap { position: relative; width: min(230px, 100%); aspect-ratio: 1; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-track,
.donut-value {
  fill: none;
  stroke-width: 20;
  stroke-linecap: round;
}
.donut-track { stroke: var(--orange-tint); }
.donut-value {
  stroke: var(--orange);
  stroke-dasharray: 527.8;   /* 2πr, r=84 */
  stroke-dashoffset: 527.8;
  transition: stroke-dashoffset 1.6s cubic-bezier(.25, .8, .3, 1);
}
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.donut-number { font-size: 2.6rem; font-weight: 900; color: var(--orange); line-height: 1.1; }
.donut-caption { color: var(--gray-500); font-weight: 600; }

.progress-lead { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 1.2rem; }
.progress-lead b { color: var(--orange); }
.progress-bar {
  height: 12px;
  background: var(--orange-tint);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.progress-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange), var(--orange-bright));
  border-radius: inherit;
  transition: width 1.6s cubic-bezier(.25, .8, .3, 1);
}
.progress-amounts { display: flex; gap: 2.5rem; margin-bottom: .8rem; }
.progress-amounts:empty { display: none; }
.progress-amounts .amount b { display: block; font-size: 1.5rem; color: var(--orange); }
.progress-amounts .amount span { color: var(--gray-500); font-size: .9rem; }
.progress-updated { color: var(--gray-300); font-size: .9rem; margin-bottom: 1.4rem; }

/* ---------- لماذا نتبرع ---------- */
.section-features { padding-top: 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: var(--orange-tint-2);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto .8rem;
  display: grid;
  place-content: center;
  font-size: 1.7rem;
  border-radius: 16px;
  background: var(--orange-tint);
}
.feature p { font-weight: 700; color: var(--ink); font-size: 1rem; }
.salam { color: var(--orange); }

/* ---------- طرق التبرع ---------- */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
  align-items: stretch;
}
.donate-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 0;
}
.donate-card h3 {
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: 1.4rem;
  font-weight: 800;
}
.qr-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  width: min(240px, 80%);
  margin: 0 auto 1rem;
  box-shadow: var(--shadow);
}
.qr-frame img { width: 100%; }
.qr-note { color: var(--gray-500); font-weight: 600; }

.iban-card { display: flex; flex-direction: column; justify-content: center; }
.iban-bank { color: var(--gray-500); margin-bottom: 1rem; font-weight: 600; }
.iban-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--orange-tint);
  border: 1px dashed var(--orange);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.iban-box code {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--orange-deep);
  letter-spacing: .06em;
  font-family: "Cairo", monospace;
  word-break: break-all;
  max-width: 100%;
}
.btn-copy {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .5rem 1.4rem;
  font-family: inherit;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s;
}
.btn-copy:hover { transform: scale(1.05); }
.btn-copy.copied { background: #2e9e5b; }

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  justify-content: center;
  color: var(--gray-500);
  font-size: .92rem;
}
.license-badge b { color: var(--orange); }

/* ---------- الفيديو ---------- */
.video-wrap {
  display: flex;
  justify-content: center;
}
.video-wrap iframe,
.video-wrap blockquote {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg);
  max-width: 100% !important;
  min-width: 0 !important;
}

/* ---------- السلايدر ---------- */
.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--card);
}
.slider-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--orange-tint);
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.2rem 1.6rem 1.1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  color: var(--orange);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}
.slider-btn:hover { background: var(--orange); color: #fff; }
.slider-prev { right: 14px; }
.slider-next { left: 14px; }
.slider-dots {
  position: absolute;
  bottom: 12px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  gap: .5rem;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .65);
  cursor: pointer;
  transition: background .2s, transform .2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.slider-dots button.active {
  background: var(--orange);
  transform: scale(1.3);
}

/* ---------- تحديثات المشروع ---------- */
.timeline {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding-inline-start: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), var(--orange-tint));
}
.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  inset-inline-start: -2.2rem;
  top: .2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--orange);
}
.timeline-date {
  color: var(--orange);
  font-weight: 800;
  font-size: .95rem;
}
.timeline-title {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  margin: .2rem 0 .3rem;
}
.timeline-text { color: var(--gray-500); }

/* ---------- التواصل ---------- */
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 2.2rem;
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange-tint-2);
  box-shadow: var(--shadow-lg);
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--orange-tint);
  font-size: 1.4rem;
}
.contact-name { color: var(--ink); font-weight: 800; }
.contact-phone { color: var(--orange); font-weight: 700; letter-spacing: .08em; }

/* ---------- التذييل ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 5.5rem;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 120%, var(--orange-tint), transparent 70%),
    var(--card);
}
.dua {
  font-family: "Amiri", serif;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--orange-deep);
  max-width: 34rem;
  margin: 0 auto 1.6rem;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.footer-social:empty { display: none; }
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
  font-size: .8rem;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--orange); color: #fff; }
.copyright { color: var(--gray-300); font-size: .9rem; }

/* ---------- شريط التبرع للجوال ---------- */
.mobile-donate-bar {
  display: none;
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 60;
  text-align: center;
  padding: 1rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-bright), var(--orange) 60%, var(--orange-deep));
  box-shadow: 0 -8px 24px rgba(232, 80, 2, .25);
}

/* ---------- الظهور عند التمرير ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- الجوال ---------- */
@media (max-width: 920px) {
  .main-nav { display: none; }

  /* واجهة مضغوطة: تظهر بداية قسم «حالة التبرعات» من دون تمرير */
  .hero { padding: .9rem 0 1.6rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: .9rem; }
  .hero-intro { margin-inline: auto; font-size: .95rem; line-height: 1.65; margin-bottom: 1rem; }
  .hero-cta { justify-content: center; gap: .7rem; margin-bottom: .8rem; }
  .hero-cta .btn { padding: .6rem 1.5rem; font-size: .95rem; }
  .hero-progress-hint { margin-bottom: 0; }
  .hero-kicker { margin-bottom: .5rem; font-size: .85rem; padding: .15rem 1rem; }
  .hero-title { font-size: clamp(1.7rem, 7vw, 2.2rem); margin-bottom: .5rem; }
  .hero-art { order: -1; }
  .arch-frame {
    width: min(200px, 55%);
    aspect-ratio: 1 / 1;
    border-radius: 100px 100px 12px 12px;
  }
  .section { padding: 2.4rem 0; }
  .section-title { margin-bottom: 1.6rem; }
  .progress-card { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.4rem; }
  .donut-wrap { margin-inline: auto; }
  .progress-amounts { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .donate-grid { grid-template-columns: 1fr; }
  .mobile-donate-bar { display: block; }
  .header-donate { display: none; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .iban-box { flex-direction: column; }
}
