/* کارت دعوت عروسی — استایل بر پایه پالت طرح «کلاسیک»: زمینه کرم گرم، طلایی به‌عنوان تاکید،
   Gulzar برای عنوان‌ها، Noto Naskh Arabic برای متن، Cormorant Garamond برای اعداد و کیکرها. */
@font-face {
  font-family: "Iran Nastaliq";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  /* نام فایل زیر باید دقیقاً هم‌نام با فایل فونت شما در پوشه fonts باشد */
  src: url("../fonts/iran-nastaliq.woff2") format("woff2"),
       url("../fonts/IranNastaliq.ttf") format("truetype");
}
@font-face {
  font-family: "Gulzar";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gulzar-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}
@font-face {
  font-family: "Gulzar";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/gulzar-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-naskh-arabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-naskh-arabic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

:root {
  --bg: #faf8f3;
  --card-bg: #faf8f3;
  --ink: #3d362a;
  --ink-2: #4c4436;
  --muted: #6f6552;
  --muted-2: #82785f;
  --accent: #a1762c;
  --accent-deep: #7d5411;
  --accent-soft: #b68235;
  --line: #d3bd93;
  --line-soft: #c9b891;
  --font-heading: "Gulzar", serif;
  --font-body: "Noto Naskh Arabic", serif;
  --font-display: "Cormorant Garamond", serif;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink-2);
}
a {
  color: var(--accent);
}
a:hover {
  color: var(--accent-deep);
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
}

#app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--bg);
}

.kicker {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.42em;
  font-size: 13px;
  color: var(--muted-2);
  text-transform: uppercase;
}

.rule {
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--line-soft);
  vertical-align: middle;
  margin: 0 10px;
}
.rule-short {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--line-soft);
  margin-bottom: 6px;
}
.hr-short {
  width: 70px;
  height: 1px;
  background: var(--line-soft);
  margin: 6px auto 0;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 34px;
  color: var(--ink);
  line-height: 1.6;
}

/* .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.7, 0.3, 1),
    transform 0.9s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
} */

@keyframes petalFall {
  0% {
    transform: translate3d(0, -6vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translate3d(-40px, 104vh, 0) rotate(320deg);
    opacity: 0;
  }
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
@keyframes sealPulse {
  0%,
  100% {
    box-shadow:
      0 8px 20px rgba(90, 59, 10, 0.35),
      0 0 0 0 rgba(182, 130, 53, 0.45);
  }
  50% {
    box-shadow:
      0 8px 20px rgba(90, 59, 10, 0.35),
      0 0 0 18px rgba(182, 130, 53, 0);
  }
}
@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.09);
  }
}
@keyframes gentleWind {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.02) rotate(0.5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.petals span {
  position: absolute;
  top: 0;
  width: 12px;
  height: 15px;
  border-radius: 60% 40% 55% 45%;
  background: linear-gradient(135deg, #fbf5e8, #e3c795);
  opacity: 0;
  animation: petalFall 13s linear infinite;
}
.petals span:nth-child(1) {
  left: 10%;
  animation-duration: 12s;
}
.petals span:nth-child(2) {
  left: 34%;
  animation-duration: 14s;
  animation-delay: 3s;
}
.petals span:nth-child(3) {
  left: 62%;
  animation-duration: 10.5s;
  animation-delay: 6s;
}
.petals span:nth-child(4) {
  left: 86%;
  animation-duration: 13s;
  animation-delay: 1.5s;
}

/* ═══ افکت در ورودی ═══ */
.door-wrap {
  position: fixed;
  inset: 0;
  z-index: 100; /* قرار گرفتن روی کل سایت */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e3ddd1; /* رنگ پشت درها (نمای دیوار) */
  overflow: hidden;
  transition: opacity 1s ease 1.5s, visibility 1s ease 1.5s; /* محو شدن کل بخش بعد از باز شدن */
}

/* این کلاس توسط جاوااسکریپت سایت شما بعد از کلیک اضافه می‌شود */
.door-wrap.door-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: url('../../uploads/doors.webp'); /* آدرس عکس در */
  background-size: 200% 100%; /* مهم: برای اینکه هر در نصف عکس را نشان دهد */
  background-repeat: no-repeat;
  transition: transform 1.5s cubic-bezier(0.65, 0.05, 0.36, 1);
  z-index: 2;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.15);
}

.door-left {
  left: 0;
  background-position: left center;
  border-right: 2px solid rgba(0,0,0,0.2);
}

.door-right {
  right: 0;
  background-position: right center;
  border-left: 2px solid rgba(0,0,0,0.2);
}

/* انیمیشن باز شدن درها به طرفین */
.door-wrap.door-open .door-left {
  transform: translateX(-100%);
}
.door-wrap.door-open .door-right {
  transform: translateX(100%);
}

.door-content {
  position: relative;
  z-index: 3;
  text-align: center;
  background: rgba(250, 248, 243, 0.95); /* هماهنگ با پس‌زمینه سایت شما */
  padding: 35px 45px;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transition: opacity 0.4s ease;
}

/* محو شدن کتیبه وسط هنگام باز شدن در */
.door-wrap.door-open .door-content {
  opacity: 0;
  pointer-events: none;
}

.door-kicker {
  font-family: var(--font-display);
  letter-spacing: 0.25em;
  font-size: 12px;
  color: var(--muted);
}

.door-names {
  font-family: var(--font-heading);
  font-size: 38px;
  color: var(--accent-deep);
  margin-top: 10px;
}

/* ═══ کارت اصلی ═══ */
.card {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  box-shadow: 0 0 60px rgba(90, 75, 50, 0.25);
  overflow: hidden;
}
.section {
  position: relative;
  overflow: hidden;
}
.framebg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-position: center;
  background-size: 100% 100%;
  opacity: 0.12;
}

/* ═══ سرآغاز ═══ */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 28px;
  background: var(--bg);
}

.hero::after{
    content:"";
    position:absolute;

    left:0;
    bottom:-25px;

    width:100%;
    height:50px;

    background:inherit;

    filter:blur(20px);

    opacity:.8;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  animation: gentleWind 8s ease-in-out infinite;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 248, 242, 0.62),
    rgba(250, 248, 242, 0.5) 45%,
    rgba(248, 245, 237, 0.66)
  );
}
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 34px;
  letter-spacing: 0.3em;
  color: var(--muted);
  line-height: 1.2;
}
.hero-lead span {
  font-size: 15px;
  letter-spacing: 0.5em;
  color: var(--muted-2);
}
.hero-names {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(42px, 13vw, 60px);
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.hero-names span {
  color: var(--accent);
  font-size: clamp(28px, 9vw, 40px);
}
.hero-date-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  color: var(--ink);
  margin-top: 4px;
}
.hero-date-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.1em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6px 2px;
}
.hero-date-day {
  font-family: var(--font-display);
  font-size: clamp(44px, 12vw, 58px);
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  font-feature-settings: "tnum";
}
.hero-time {
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--muted);
}
.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.3em;
  animation: floaty 3s ease-in-out infinite;
}

/* ═══ شمارش معکوس ═══ */
.countdown-section {
  padding: 64px 24px 76px;
  text-align: center;
  background: var(--bg);
}
.countdown-sub {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 30px;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}
.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.cd-ring {
  width: min(80px, 19vw);
  height: min(80px, 19vw);
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(var(--accent-soft) var(--pct, 0deg), #ece2ca 0);
  box-shadow: 0 6px 16px rgba(115, 100, 75, 0.14);
}
.cd-ring-accent {
  background: conic-gradient(#c99a4b var(--pct, 0deg), #f0e6cf 0);
  box-shadow: 0 6px 16px rgba(161, 118, 44, 0.22);
}
.cd-num {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fffefb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 29px;
  font-feature-settings: "tnum";
  color: var(--ink);
}
.cd-ring-accent .cd-num {
  color: var(--accent);
}
.cd-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.countdown-phrase {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted-2);
}

/* ═══ متن دعوت ═══ */
.invite-section {
  padding: 80px 30px;
  text-align: center;
  background: var(--bg);
}
.invite-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 24px 10px;
  position: relative;
}
.poem {
  font-family: var(--font-heading);
  font-size: 23px;
  line-height: 2.5;
  color: var(--ink-2);
  margin: 0;
}
.invite-text {
  font-size: 16px;
  line-height: 2.3;
  color: var(--ink-2);
  max-width: 320px;
  margin: 0;
  min-height: 110px;
}
.invite-names {
  font-family: var(--font-heading);
  font-size: 23px;
  color: var(--accent-deep);
}

/* افکت تایپ‌شدنِ تدریجی متن دعوت */
[data-type].typing::after {
  content: "|";
  color: var(--accent);
  animation: caret 1s step-end infinite;
}
@keyframes caret {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ═══ برنامه مراسم ═══ */
.timeline-section {
  padding: 64px 24px 76px;
  background: var(--bg);
}
.timeline-kicker {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.32em;
  font-size: 16px;
  color: var(--muted);
}
.timeline {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.timeline-line {
  position: absolute;
  right: 50%;
  top: 6px;
  bottom: 6px;
  width: 1px;
  transform: translateX(0.5px);
  background: linear-gradient(
    180deg,
    transparent,
    var(--line-soft) 5%,
    var(--line-soft) 95%,
    transparent
  );
  z-index: 1;
}
.timeline-progress-dot {
  position: absolute;
  right: 50%;
  top: 3%;
  transform: translate(50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e6bd7a, #a1762c);
  box-shadow:
    0 0 0 4px rgba(182, 130, 53, 0.2),
    0 2px 6px rgba(90, 59, 10, 0.4);
  z-index: 3;
  opacity: 0.60;
  transition: top 0.4s ease;
}
.timeline-row {
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  align-items: center;
  min-height: 88px;
}
.timeline-card {
  border: 1px solid #ddcba0;
  background: #fffefc;
  box-shadow: 0 6px 16px rgba(115, 100, 75, 0.1);
  padding: 10px 14px;
  text-align: center;
  grid-column: 1;
}
.row-left .timeline-card {
  grid-column: 3;
}
.t-title {
  font-size: 15px;
  color: var(--ink);
}
.t-subtitle {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 3px;
}
.timeline-dot {
  grid-column: 2;
  justify-self: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fffefc;
  border: 1px solid var(--accent-soft);
  box-shadow: 0 4px 10px rgba(161, 118, 44, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-feature-settings: "tnum";
  color: var(--accent-deep);
}

/* ══════════════════════════════════════════ */
/* ═══ تنظیمات نهایی کادر عکس دونفره (تمام‌صفحه) ═══ */
/* ══════════════════════════════════════════ */
/* ══════════════════════════════════════════ */
/* ═══ تنظیمات نهایی کادر عکس جدید (تمام‌صفحه) ═══ */
/* ══════════════════════════════════════════ */

.couple-photo-section {
  background: #ffffff !important;
  display: flex;
  justify-content: center;
  padding: 0 !important;
}

.couple-photo-frame {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100svh !important; /* پر کردن کل صفحه موبایل */
  max-width: none !important;
  aspect-ratio: auto !important; 
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  overflow: hidden;
  background: #ffffff;
}

/* تنظیمات عکس جدید */
.single-hero-photo {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  
  /* استفاده از cover برای پر کردن کل صفحه */
  object-fit: cover !important; 
  object-position: center center !important; /* قرار دادن عکس دقیقاً در وسط */
  
  z-index: 1 !important;
  
  /* اعمال یک افکت زوم بسیار کند و رویایی به کل تصویر */
  animation: slowZoom 20s ease-in-out infinite alternate !important;
}

.couple-photo-frame {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100svh !important; /* پر کردن ۱۰۰٪ ارتفاع صفحه موبایل */
  max-width: none !important; /* حذف محدودیت سایز */
  aspect-ratio: auto !important; 
  margin: 0 !important;
  border: none !important; /* حذف قاب و حاشیه */
  outline: none !important;
  box-shadow: none !important;
  overflow: hidden;
  background: #ffffff;
}


/* ═══ مسیریابی ═══ */
.map-section {
  padding: 70px 24px 80px;
  background: var(--bg);
}
.map-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin: 6px 0 0;
}
.map-frame {
  border: 6px solid #fffefb;
  outline: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(115, 100, 75, 0.14);
  height: 280px;
  overflow: hidden;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.04em;
  background: rgba(255, 254, 250, 0.7);
  transition: background 0.2s ease;
}
.btn-outline:hover {
  background: #fdf6e8;
}
.btn-block {
  width: 100%;
  justify-content: center;
  padding: 13px;
}
.btn-ghost {
  margin-top: 16px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: none;
  font-size: 13px;
}

/* ═══ دفتر یادبود ═══ */
.guestbook-section {
  padding: 70px 26px 80px;
  background: var(--bg);
}
.gb-book-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.gb-book {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-height: 216px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 0 30px,
      #ecdfc4 30px 31px
    ),
    #fffdf6;
  border: 1px solid #ddcba0;
  border-right: 3px solid #c9ab6e;
  border-radius: 3px 8px 8px 3px;
  box-shadow:
    -3px 3px 0 #f2ead8,
    -6px 6px 0 #e9dfc8,
    0 14px 30px rgba(115, 100, 75, 0.18);
  padding: 24px 24px 40px;
  display: flex;
  flex-direction: column;
}
@keyframes pageTurn {
  0% {
    transform: rotateY(70deg);
    opacity: 0.15;
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
  }
}
.gb-book.flip {
  animation: pageTurn 0.5s cubic-bezier(0.3, 0.7, 0.3, 1) both;
  transform-origin: 100% 50%;
}
.gb-quote {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: #c9ab6e;
}
.gb-message {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 31px;
  margin: 4px 0 0;
  color: var(--ink-2);
  flex: 1;
}
.gb-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13.5px;
  margin-top: 10px;
}
.gb-page {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #a99a76;
}
.gb-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.gb-nav button {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  color: #b3a88f;
  background: none;
  font-size: 13.5px;
}
.gb-nav button.active {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.gb-form {
  position: relative;
  padding: 30px 24px 26px;
  background: rgba(255, 254, 250, 0.85);
  border: 1px solid #ddcba0;
  box-shadow: 0 10px 26px rgba(115, 100, 75, 0.1);
}
.gb-form-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--accent-soft);
}
.gb-form-corner.tl {
  top: 6px;
  right: 6px;
  border-top: 1px solid;
  border-right: 1px solid;
}
.gb-form-corner.tr {
  top: 6px;
  left: 6px;
  border-top: 1px solid;
  border-left: 1px solid;
}
.gb-form-corner.bl {
  bottom: 6px;
  right: 6px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}
.gb-form-corner.br {
  bottom: 6px;
  left: 6px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}
.gb-form-icon {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: #c9ab6e;
}
.gb-form textarea {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 31px;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 0;
  background:
    repeating-linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0 30px,
        #ecdfc4 30px 31px
      )
      0 8px,
    #fffdf6;
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  color: var(--ink-2);
}
.gb-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.gb-form-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 12px;
}

/* ═══ تاییدیه حضور ═══ */
.rsvp-section {
  padding: 70px 26px 76px;
  background: var(--bg);
}
.rsvp-box {
  position: relative;
  border: 1px solid var(--line);
  padding: 40px 22px;
  background: rgba(255, 255, 254, 0.72);
}
.rsvp-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 52px;
  letter-spacing: 0.14em;
  color: var(--accent);
  line-height: 1;
}
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.input {
  font-family: var(--font-body);
  width: 100%;
  box-sizing: border-box;
  background: #fffefb;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink-2);
}
.input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.input[readonly] {
  background: #f3efe4;
  color: var(--muted);
}
.field label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  color: var(--muted);
}
.rsvp-toggle {
  display: flex;
  gap: 8px;
}
.rsvp-toggle button {
  flex: 1;
  padding: 11px 4px;
  font-size: 14.5px;
  border: 1px solid var(--line);
  background: #fffefb;
  color: var(--ink);
}
.rsvp-toggle button.active {
  border-color: var(--accent);
  background: #fdf6e8;
}
.rsvp-thanks {
  text-align: center;
  padding: 10px 0;
}
.rsvp-thanks-mark {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--accent);
}
.rsvp-thanks h4 {
  font-weight: 400;
  margin-bottom: 6px;
  color: var(--ink);
}
.rsvp-thanks p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* ═══ فوتر ═══ */
.footer {
  position: relative;
  padding: 48px 24px 92px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}
.footer-names {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--accent-deep);
  line-height: 1.8;
}
.footer-date {
  font-size: 13px;
  color: var(--muted);
}

/* ═══ لایت‌باکس ═══ */
/* توجه: display را روی .lightbox پایه نمی‌گذاریم چون ویژگی سراسری [hidden] را override می‌کند؛
   نمایش فقط زمانی فعال می‌شود که ویژگی hidden از عنصر برداشته شده باشد. */
.lightbox[hidden] {
  display: none;
}
.lightbox:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(30, 26, 18, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 94%;
  max-height: 88%;
  border: 6px solid #fffefb;
  outline: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 254, 250, 0.5);
  background: rgba(0, 0, 0, 0.25);
  color: #fffefb;
  font-size: 20px;
}

/* ═══ دکمه موسیقی ═══ */
.music-btn {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fffefb;
  box-shadow: 0 6px 18px rgba(115, 100, 75, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
}
.site-footer{
    text-align:center;
    padding:35px 20px;
    margin-top:60px;

    color:#9B8B75;
    font-size:15px;

    border-top:1px solid rgba(180,160,120,.2);

    background:#FCFAF5;
}

.site-footer span{
    color:#B08D57;
    font-weight:700;
    letter-spacing:1px;
}
.footer-line{
    width:120px;
    height:2px;
    margin:0 auto 20px;
    background:linear-gradient(to right,transparent,#C9A96E,transparent);
}
/* متن راهنمای پایین در */
.door-click-hint {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 18px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 14px;
    pointer-events: none;
    animation: pulseHint 2s infinite;
    transition: opacity 0.3s;
}

/* مخفی شدن متن راهنما وقتی در باز می‌شود */
.door-wrap.door-open .door-click-hint {
    opacity: 0;
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ══════════════════════════════════════════ */
/* ═══ تنظیمات نهایی پروانه‌های متحرک و طبیعی ═══ */
/* ══════════════════════════════════════════ */

/* تنظیمات پایه‌ای (نگه داشتن پروانه‌ها در صفحه) */
.magic-butterfly {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.75;
}

/* ═══ پروانه اول (بزرگتر) ═══ */
.butterfly-one {
    width: 70px;
    top: 50%;
    left: 50%;
    animation: floatPathOne 45s infinite ease-in-out;
}
.butterfly-one img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 15px 10px rgba(0, 0, 0, 0.15));
    transform-origin: center;
    /* اعمال الگوی بال زدن ۷ ثانیه‌ای */
    animation: realisticFlapA 7s infinite linear;
}

/* ═══ پروانه دوم (کوچکتر) ═══ */
.butterfly-two {
    width: 50px;
    top: 30%;
    left: 20%;
    animation: floatPathTwo 53s infinite ease-in-out;
}
.butterfly-two img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 15px 10px rgba(0, 0, 0, 0.15));
    transform-origin: center;
    /* اعمال الگوی بال زدن ۸.۵ ثانیه‌ای */
    animation: realisticFlapB 8.5s infinite linear;
}

/* ═══ مسیرهای پرواز مستقل دور صفحه ═══ */
@keyframes floatPathOne {
    0%   { transform: translate(-45vw, 30vh) rotate(15deg); }
    33%  { transform: translate(30vw, -35vh) rotate(-10deg); }
    66%  { transform: translate(15vw, 40vh) rotate(5deg); }
    100% { transform: translate(-45vw, 30vh) rotate(15deg); }
}

@keyframes floatPathTwo {
    0%   { transform: translate(45vw, -20vh) rotate(-15deg); }
    33%  { transform: translate(-30vw, 40vh) rotate(15deg); }
    66%  { transform: translate(-10vw, -35vh) rotate(-5deg); }
    100% { transform: translate(45vw, -20vh) rotate(-15deg); }
}

/* ═══ الگوی طبیعی بال زدن (پروانه اول) ═══ */
@keyframes realisticFlapA {
    0%  { transform: rotateY(0deg) rotateZ(0deg); }
    2%  { transform: rotateY(70deg) rotateZ(-3deg); }
    4%  { transform: rotateY(0deg) rotateZ(0deg); }
    6%  { transform: rotateY(70deg) rotateZ(3deg); }
    8%  { transform: rotateY(0deg) rotateZ(0deg); }
    35% { transform: rotateY(0deg) rotateZ(0deg); } /* مکث طولانی */
    37% { transform: rotateY(70deg) rotateZ(-2deg); }
    39% { transform: rotateY(0deg) rotateZ(0deg); }
    41% { transform: rotateY(70deg) rotateZ(4deg); }
    43% { transform: rotateY(0deg) rotateZ(0deg); }
    45% { transform: rotateY(70deg) rotateZ(-2deg); }
    47% { transform: rotateY(0deg) rotateZ(0deg); }
    100%{ transform: rotateY(0deg) rotateZ(0deg); } /* سُر خوردن */
}

/* ═══ الگوی طبیعی بال زدن (پروانه دوم) ═══ */
@keyframes realisticFlapB {
    0%  { transform: rotateY(0deg) rotateZ(0deg); }
    2%  { transform: rotateY(70deg) rotateZ(2deg); }
    4%  { transform: rotateY(0deg) rotateZ(0deg); }
    25% { transform: rotateY(0deg) rotateZ(0deg); } /* مکث */
    27% { transform: rotateY(70deg) rotateZ(-3deg); }
    29% { transform: rotateY(0deg) rotateZ(0deg); }
    31% { transform: rotateY(70deg) rotateZ(3deg); }
    33% { transform: rotateY(0deg) rotateZ(0deg); }
    60% { transform: rotateY(0deg) rotateZ(0deg); } /* مکث */
    62% { transform: rotateY(70deg) rotateZ(-2deg); }
    64% { transform: rotateY(0deg) rotateZ(0deg); }
    100%{ transform: rotateY(0deg) rotateZ(0deg); } /* سُر خوردن */
}
/* ═══ استایل اختصاصی خط بالای سایت (با فونت نستعلیق) ═══ */
.bold-top-text {
  font-family: "Iran Nastaliq", serif !important; /* اعمال فونت نستعلیق */
  font-size: 48px !important; /* سایز بزرگتر چون فونت نستعلیق ذاتا ریزتر است */
  font-weight: normal !important; /* نستعلیق در حالت نرمال زیباتر است */
  color: var(--ink) !important;
  letter-spacing: 0 !important; /* حذف فاصله‌های اضافی برای پیوستگی حروف */
  margin-bottom: 5px !important;
  line-height: 1.2 !important;
}