/* کارت دعوت عروسی — استایل بر پایه پالت طرح «کلاسیک»: زمینه کرم گرم، طلایی به‌عنوان تاکید،
   ایران نستعلیق (IranNastaliq) برای عنوان‌ها، Noto Naskh Arabic برای متن، Cormorant Garamond برای اعداد و کیکرها. */

@font-face {
  font-family: "IranNastaliq";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IranNastaliq.woff2") format("woff2"); /* حتما فایل فونت را با این نام در پوشه fonts آپلود کنید */
}

@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: "IranNastaliq", 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);
  }
}

.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;
}

/* ═══ پاکت نامه ═══ */
.env-wrap {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  transition:
    opacity 0.9s ease 0.1s,
    visibility 0.9s ease 0.1s;
}
.env-wrap.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.env-blur {
  position: absolute;
  inset: -30px;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  background: rgba(243, 238, 228, 0.55);
}
.env {
  position: relative;
  width: 340px;
  height: 236px;
  max-width: calc(100vw - 32px);
  animation: floaty 5.5s ease-in-out infinite;
}
.env-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fefefd, #f7f5f0);
  border-radius: 4px;
  box-shadow:
    0 36px 70px rgba(80, 68, 48, 0.35),
    0 6px 16px rgba(80, 68, 48, 0.16);
}
.env-letter {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 16px;
  height: 186px;
  background: #fffefc;
  border: 1px solid rgba(90, 75, 50, 0.09);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(90, 75, 50, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  transition: transform 1.1s cubic-bezier(0.22, 0.7, 0.25, 1) 0.55s;
}
.env-letter-kicker {
  font-family: var(--font-display);
  letter-spacing: 0.35em;
  font-size: 10px;
  color: #82785f;
}
.env-letter-names {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--accent-deep);
  line-height: 1.6;
}
.env-letter-rule {
  width: 64px;
  height: 1px;
  background: var(--line);
}
.env-letter-date {
  font-size: 12px;
  color: var(--muted);
}
.env-pocket {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(103deg, #fefefd 40%, #efece5 97%) content-box;
}
.env-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 132px;
  filter: drop-shadow(0 4px 4px rgba(80, 68, 48, 0.18));
  transform-origin: 50% 0;
  transition: transform 1.1s cubic-bezier(0.6, 0, 0.3, 1);
  z-index: 4;
  background: linear-gradient(180deg, #fbfaf6 30%, #eceadf);
  clip-path: polygon(0 0, 100% 0, 52% 100%);
  border-radius: 4px 4px 0 0;
}
.env.open .env-flap {
  transform: rotateX(178deg);
  z-index: 1;
}
.env.open .env-letter {
  transform: translateY(-128px);
}
.env.open .env-seal {
  transform: translate(-50%, 0) scale(0.35);
  opacity: 0;
}
.env-seal {
  position: absolute;
  left: 50%;
  top: 80px;
  transform: translate(-50%, 0);
  width: 92px;
  height: 92px;
  border-radius: 46% 54% 51% 49%/53% 47% 56% 44%;
  border: 0;
  z-index: 5;
  padding: 0;
  background-size: 128% !important;
  background-position: center;
  background-repeat: no-repeat;
  animation: sealPulse 2.6s ease-in-out infinite;
  transition:
    transform 0.6s ease,
    opacity 0.6s ease;
  box-shadow:
    inset 0 2px 5px rgba(255, 240, 200, 0.35),
    inset 0 -3px 7px rgba(70, 45, 5, 0.3),
    0 8px 20px rgba(90, 59, 10, 0.35);
}
.env-hint {
  cursor: pointer;
  font-size: 11px;
}

/* ═══ کارت اصلی ═══ */
.card {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  box-shadow: 0 0 60px rgba(90, 75, 50, 0.25);
  overflow: hidden;
  position: relative;
}
.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: slowZoom 20s ease-in-out infinite alternate;
}
.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: 85px; 
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  color: var(--ink); 
  font-family: var(--font-heading); /* استفاده از فونت ایران نستعلیق */
  font-size: 38px; /* سایز فونت را کمی تنظیم کردیم چون نستعلیق معمولاً ریزتر است */
  font-weight: normal; /* فونت نستعلیق در حالت نرمال (بدون بولد) زیباترین حالت خود را دارد */
  text-shadow: 
    0px 0px 8px rgba(255, 255, 255, 1), 
    0px 0px 15px rgba(255, 255, 255, 0.9); /* هاله روشن برای خوانایی روی عکس */
  animation: floaty 3s ease-in-out infinite; 
  z-index: 20;
}

/* ═══ شمارش معکوس ═══ */
.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 {
  /*padding: 56px 24px 44px;*/
  background: var(--bg);
   display: flex;
  justify-content: center;
}
.couple-photo-frame {
  cursor: zoom-in;
  max-width: 340px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  aspect-ratio: 4/5;
  border: 6px solid #fffefb;
  outline: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(115, 100, 75, 0.14);
  overflow: hidden;
}
.couple-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══ مسیریابی ═══ */
.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);
}
/* ═══ نام مهمان در بالای پاکت ═══ */
.guest-name-above {
    position: absolute;
    bottom: 100%; /* این ویژگی نوشته را به بیرون و بالای پاکت منتقل می‌کند */
    left: 50%;
    transform: translateX(-50%); /* وسط‌چین کردن دقیق نسبت به پاکت */
    width: max-content; /* عرض به اندازه خود متن */
    max-width: 90vw;
    margin-bottom: 35px; /* فاصله مناسب از بالاترین لبه پاکت سفید */
    text-align: center;
    font-family: var(--font-heading); /* استفاده از فونت زیبای ایران نستعلیق */
    font-size: clamp(28px, 6vw, 38px); /* تغییر اندازه خودکار برای موبایل و کامپیوتر */
    color: var(--ink-2); /* رنگ تیره و متناسب با پالت کلاسیک شما */
    z-index: 10;
    pointer-events: none; /* جلوگیری از تداخل در کلیک کردن مهمان روی المان‌های دیگر */
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease; /* انیمیشن نرم برای محو شدن */
}

/* ═══ محو شدن اسم هنگام باز شدن پاکت ═══ */
/* کلاس open هنگام کلیک روی مهر به پاکت اضافه می‌شود */
.env.open .guest-name-above {
    opacity: 0; /* نامرئی شدن متن */
    visibility: hidden;
    transform: translateX(-50%) translateY(-15px); /* هنگام محو شدن کمی به سمت بالا حرکت می‌کند تا افکت زیباتری داشته باشد */
}
/* ═══ شاخه گل متحرک در پایین سایت ═══ */
.floral-branch-footer {
    position: absolute;
    bottom: -15px; /* چسباندن گل به پایین‌ترین نقطه کادر */
    left: -15px; /* قرارگیری در گوشه سمت چپ */
    width: 30vw; /* عرض متغیر برای تناسب در موبایل */
    min-width: 180px; 
    max-width: 280px; 
    height: 60vh; 
    min-height: 400px;
    background-image: url('../../uploads/floral-branch.png'); /* مطمئن شو نام عکست دقیقاً همین است */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    z-index: 10; /* قرارگیری روی پس‌زمینه فوتر */
    pointer-events: none; /* جلوگیری از مزاحمت گل برای کلیک روی دکمه‌ها و متن‌ها */
    transform-origin: bottom left; /* نقطه لولای انیمیشن در ریشه گیاه */
    animation: sway-floral 4.5s ease-in-out infinite alternate;
}

/* انیمیشن حرکت ملایم شاخه */
@keyframes sway-floral {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(4deg); }
}
/* ═══ استایل‌های ویدیوی ورودی ═══ */
/* ═══ استایل‌های ویدیوی ورودی ═══ */
#video-intro-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg); /* به جای سفید خالص، رنگ کرم پس‌زمینه سایت را قرار دادیم تا زیباتر شود */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

#envelope-video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 👈 کلمه cover را به contain تغییر دادیم تا مشکل زوم شدن حل شود */
  z-index: 1;
}

/* متن چشمک‌زن راهنما */
#tap-hint {
  position: absolute;
  bottom: 15%;
  font-size: 26px;
  color: var(--ink);
  z-index: 2;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
  animation: pulse-hint 2s infinite alternate;
  pointer-events: none; /* تا مزاحم کلیک کاربر روی ویدیو نشود */
}

@keyframes pulse-hint {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.4; transform: scale(0.95); }
}

/* افکت محو شدن در سفیدی */
#video-intro-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity 1.5s ease; /* سرعت سفید شدن صفحه (۱.۵ ثانیه) */
}

/* کلاسی که توسط جاوااسکریپت برای سفید شدن صفحه اضافه می‌شود */
#video-intro-wrap.fade-to-white::after {
  opacity: 1;
}

/* کلاسی که در نهایت کل لایه ویدیو را مخفی می‌کند تا سایت دیده شود */
#video-intro-wrap.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* ═══ نام مهمان بالای ویدیوی پاکت ═══ */
.video-guest-name-above {
  position: absolute;
  top: 12%; /* قرارگیری در قسمت بالای صفحه تا روی ویدیوی پاکت نیفتد */
  left: 50%;
  transform: translateX(-50%); /* وسط‌چین کردن دقیق متن */
  text-align: center;
  font-family: var(--font-heading); /* فونت زیبای ایران نستعلیق */
  font-size: clamp(32px, 7vw, 44px); /* سایز متغیر: در گوشی کوچک‌تر و در مانیتور بزرگ‌تر */
  color: var(--ink-2); /* هماهنگ با رنگ متن‌های کلاسیک سایت */
  z-index: 10;
  pointer-events: none; /* جلوگیری از اختلال در لمس صفحه */
  transition: opacity 0.8s ease, visibility 0.8s ease; /* انیمیشن نرم برای محو شدن */
  width: max-content;
  max-width: 90vw;
  /* اضافه کردن یک هاله بسیار محو و روشن پشت متن برای خوانایی بیشتر روی ویدیو */
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* کلاسی که هنگام لمس صفحه به متن اضافه می‌شود تا محو شود */
.video-guest-name-above.hidden-name {
  opacity: 0;
  visibility: hidden;
}