/* ============================================================
   قالب garden — فاتح هوائي + لمسات نباتية خضراء/ذهبية
   ============================================================ */

:root {
  --bg:      #f3f6f1;   /* أبيض مائل للأخضر الفاتح */
  --cream:   #faf8f1;
  --sage:    #8aa68f;   /* أخضر مريمي */
  --sage-dp: #5f7d68;
  --gold:    #b89b62;
  --gold-sf: #cdb784;
  --ink:     #44514a;   /* نص أخضر داكن دافئ */
  --ink-sf:  #6f7d73;
  --line:    rgba(138, 166, 143, 0.4);

  --font-display: "Aref Ruqaa", serif;
  --font-script:  "Amiri", serif;
  --font-body:    "Tajawal", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, #ffffff, transparent 55%),
    radial-gradient(circle at 0% 100%, #e9f0e8, transparent 45%),
    radial-gradient(circle at 100% 90%, #eef3ec, transparent 40%);
  line-height: 1.85;
  overflow-x: hidden;
}

/* ====================== شاشة الدخول ====================== */
.cover {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 40%, #ffffff, var(--bg) 95%);
  transition: opacity 1s ease, visibility 1s ease;
}
.cover.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

/* ====== صورة خلفية اختيارية بحواف متلاشية (feather) ====== */
.bg-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.9s ease; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 74% at 50% 42%, #000 48%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 74% at 50% 42%, #000 48%, transparent 100%);
}
.bg-photo.is-shown { opacity: 0.62; }

.cover__inner { position: relative; z-index: 1; width: min(360px, 86vw); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.wreath { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sage); animation: spinIn 1.2s ease both; }
.cover__center { position: relative; z-index: 2; }
.cover__label { color: var(--ink-sf); letter-spacing: normal; font-size: 13px; }
.cover__mono {
  font-family: var(--font-display);
  font-size: clamp(30px, 9vw, 52px); padding: 0 14px;
  color: var(--sage-dp);
  line-height: 1.1; margin: 6px 0 18px;
}
.cover__btn {
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  color: var(--cream);
  background: linear-gradient(180deg, var(--sage), var(--sage-dp));
  border: none; border-radius: 999px; padding: 13px 34px; cursor: pointer;
  letter-spacing: normal; box-shadow: 0 10px 24px rgba(95, 125, 104, 0.3);
  transition: transform 0.25s ease, filter 0.25s ease;
}
.cover__btn:hover { transform: translateY(-2px); filter: brightness(1.04); }

@keyframes spinIn { from { opacity: 0; transform: rotate(-12deg) scale(0.9); } to { opacity: 1; transform: none; } }

/* ====================== المحتوى ====================== */
.invite { position: relative; max-width: 680px; margin: 0 auto; padding: 0 20px 72px; }
.leaves { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }

.section { position: relative; z-index: 2; text-align: center; padding: clamp(46px, 9vw, 82px) clamp(10px, 4vw, 30px); }
.section + .section { border-top: 1px solid var(--line); }
.section__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(25px, 6vw, 36px); color: var(--sage-dp); margin-bottom: 16px;
}
.sprig { color: var(--gold); font-size: 22px; display: inline-block; }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--sage); max-width: 280px; margin: 24px auto; }
.divider span { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--sage), transparent); }

/* الترويسة */
.hero { padding-top: clamp(56px, 13vw, 110px); }
.bismillah { font-family: var(--font-script); color: var(--gold); font-size: clamp(16px, 4.5vw, 21px); margin: 12px 0 16px; }
.hero__kicker { color: var(--ink-sf); letter-spacing: normal; font-size: 13px; margin-bottom: 4px; }
.couple {
  font-family: var(--font-display); font-weight: 700; line-height: 1.4;
  font-size: clamp(38px, 11vw, 70px); color: var(--ink); margin: 6px 0 14px;
}
.couple__name { display: block; }
.couple__amp { display: block; color: var(--gold); font-size: 0.6em; margin: -2px 0; }
.hero__sub { color: var(--ink-sf); font-size: clamp(14px, 4vw, 17px); }

/* صورة العروسين في الترويسة */
#heroPhoto { display: none; }
#heroPhoto.is-shown {
  display: block;
  width: clamp(120px, 34vw, 180px);
  margin: 8px auto 18px;
  animation: heroPhotoIn 0.9s ease both;
}
#heroPhoto img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--cream);
  box-shadow:
    0 0 0 1px var(--gold-sf),
    0 14px 30px rgba(95, 125, 104, 0.28);
}
@keyframes heroPhotoIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: none; }
}

/* العدّاد */
.when__date { font-family: var(--font-display); font-size: clamp(21px, 5.5vw, 30px); color: var(--ink); }
.when__time { color: var(--ink-sf); margin-top: 2px; font-size: 15px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2vw, 14px); max-width: 430px; margin: 26px auto 0; }
.cd__cell { border: 1px solid var(--line); border-radius: 12px; padding: 15px 4px; background: rgba(255,255,255,0.55); }
.cd__num { display: block; font-family: var(--font-display); font-size: clamp(26px, 7.5vw, 40px); color: var(--sage-dp); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd__lbl { display: block; color: var(--ink-sf); font-size: 12px; margin-top: 2px; }
.when__arrived { font-family: var(--font-display); color: var(--sage-dp); font-size: clamp(22px, 6vw, 32px); margin-top: 20px; }

/* القاعة */
.venue__art { color: var(--sage); width: clamp(150px, 44vw, 200px); margin: 0 auto 14px; }
.venue__art svg { width: 100%; height: auto; display: block; }
/* لاستخدام صورتك الخاصة بدل الرسمة:
   1) ضع الصورة في  assets/venue.jpg
   2) احذف سطر التعليق من القاعدة التالية
.venue__art { background: url("assets/venue.jpg") center/cover no-repeat; height: 180px; border-radius: 14px; }
.venue__art svg { display: none; }
*/
.venue__name { font-family: var(--font-display); font-size: clamp(22px, 6vw, 32px); color: var(--ink); }
.venue__addr { color: var(--ink-sf); margin-top: 4px; font-size: 15px; }
.venue__btn {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  font-weight: 700; font-size: 15px; color: var(--cream);
  background: linear-gradient(180deg, var(--sage), var(--sage-dp));
  border-radius: 999px; padding: 12px 28px; text-decoration: none;
  box-shadow: 0 8px 20px rgba(95,125,104,0.28); transition: transform 0.25s ease, filter 0.25s ease;
}
.venue__btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.hero__date { color: var(--sage-dp); font-family: var(--font-display); font-size: clamp(15px, 4vw, 19px); margin-top: 14px; }

/* تلميح التمرير للأسفل */
.hero__scroll {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: clamp(26px, 6vw, 40px);
  color: var(--sage-dp);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero__scroll-txt {
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.88rem; letter-spacing: normal;
}
.hero__scroll-arrow {
  font-size: 1.2rem; line-height: 1;
  color: var(--gold);
  animation: scrollBob 1.8s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* دعاء افتتاحي */
.verse__text { font-family: var(--font-script); font-size: clamp(18px, 5vw, 25px); color: var(--sage-dp); line-height: 2; max-width: 30ch; margin: 0 auto; }

/* نص الدعوة */
.invitation__text { font-size: clamp(15px, 4vw, 17px); color: var(--ink); line-height: 2.1; max-width: 42ch; margin: 0 auto; }

/* عائلتا العروسين */
.families { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 4vw, 26px); flex-wrap: wrap; }
.family { flex: 1; min-width: 130px; }
.family__label { display: block; color: var(--ink-sf); font-size: 13px; letter-spacing: normal; margin-bottom: 6px; }
.family__names { font-family: var(--font-display); color: var(--ink); font-size: clamp(16px, 4.4vw, 20px); }
.families__heart { color: var(--gold); font-size: 20px; }

/* برنامج الحفل */
.timeline { list-style: none; max-width: 360px; margin: 6px auto 0; text-align: start; }
.timeline__item { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 12px; padding: 12px 18px 12px 0; border-inline-start: 2px solid var(--line); margin-inline-start: 6px; }
.timeline__dot { position: absolute; inset-inline-start: -7px; top: 17px; width: 11px; height: 11px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px var(--bg); }
.timeline__time { font-family: var(--font-display); color: var(--sage-dp); font-size: 15px; min-width: 86px; }
.timeline__title { color: var(--ink); font-size: 15px; }

/* ملاحظات */
.notes__list { list-style: none; max-width: 400px; margin: 4px auto 0; text-align: start; }
.notes__item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; color: var(--ink); font-size: 15px; line-height: 1.7; }
.notes__mark { color: var(--gold); font-size: 13px; margin-top: 4px; flex-shrink: 0; }

/* الخاتمة */
.closing__note { font-family: var(--font-script); font-size: clamp(18px, 5vw, 26px); color: var(--ink); margin-bottom: 8px; }
.closing__hashtag { color: var(--sage-dp); font-weight: 700; font-size: 15px; letter-spacing: normal; margin-bottom: 18px; }
.contact { margin: 0 auto 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; max-width: 280px; background: rgba(255,255,255,0.55); }
.contact__label { display: block; color: var(--ink-sf); font-size: 13px; margin-bottom: 4px; }
.contact__link { color: var(--sage-dp); font-weight: 700; font-size: 17px; text-decoration: none; }
.contact__link:hover { text-decoration: underline; }
.closing__families { color: var(--ink-sf); font-size: 15px; margin-bottom: 16px; }

/* حركة الظهور */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* أوراق متساقطة */
.leaf { position: absolute; top: -24px; opacity: 0; animation: fall linear forwards; }
@keyframes fall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  12% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(105vh) rotate(280deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, .reveal { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* أسطر Enter في حقل «الدعاء/العبارة» تُعرض كما كتبها الزبون (بسملة فوق والآية تحتها) */
.verse__text { white-space: pre-line; }
