/* ============================================================
   SINH NHẬT — NGUYỄN PHẠM SAO MAI — Modern Pink Pastel Luxury
   ============================================================ */
:root {
  --white: #ffffff;
  --pearl: #fff5f8;
  --ink: #3b232e;
  --ink-soft: #7a5568;
  --navy: #c2427c;
  --navy-deep: #7a1f4b;
  --blue: #e0729e;
  --blue-soft: #f0a8c4;
  --blue-pale: #fbdce8;
  --gold: #b9974d;
  --gold-light: #e7d7ad;
  --line: rgba(194, 66, 124, 0.16);

  --font-serif: 'Cormorant Garamond', serif;
  --font-letter: 'Lora', 'Cormorant Garamond', serif;
  --font-script: 'Alex Brush', cursive;
  --font-script2: 'Great Vibes', cursive;
  --font-sans: 'Be Vietnam Pro', sans-serif;
  --font-head: 'Cinzel', var(--font-serif), serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --reveal-dur: 1.4s;

  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: "lnum" 1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--pearl);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.script { font-family: var(--font-script2); font-weight: 400; }

/* ============ REVEAL ON SCROLL — VARIED LUXURIOUS SLOW ANIMATIONS ============ */
.reveal,
.reveal-fade-down,
.reveal-zoom,
.reveal-left,
.reveal-right,
.reveal-flip {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 3.0s cubic-bezier(0.16, 1, 0.3, 1), transform 3.0s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Trượt nhẹ từ dưới lên (Fade Up) */
.reveal {
  transform: translateY(24px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Nhẹ nhàng hạ từ trên xuống (Fade Down) */
.reveal-fade-down {
  transform: translateY(-20px);
}
.reveal-fade-down.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Phóng to mượt mà (Zoom In) */
.reveal-zoom {
  transform: scale(0.95) translateY(12px);
}
.reveal-zoom.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* 4. Trượt từ bên trái sang (Slide Left) */
.reveal-left {
  transform: translateX(-24px) translateY(6px);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* 5. Trượt từ bên phải sang (Slide Right) */
.reveal-right {
  transform: translateX(24px) translateY(6px);
}
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* On mobile screens: elegant subtle slide-in */
@media (max-width: 640px) {
  .reveal-left {
    transform: translateX(-14px) translateY(4px);
  }
  .reveal-right {
    transform: translateX(14px) translateY(4px);
  }
}

/* 6. Lật nhẹ 3D Hoàng Gia (Soft 3D Tilt) */
.reveal-flip {
  transform: perspective(900px) rotateX(7deg) translateY(18px);
}
.reveal-flip.is-visible {
  opacity: 1;
  transform: perspective(900px) rotateX(0deg) translateY(0);
}

/* Các khoảng hoãn nhịp nhàng cho các phần tử con — Xuất hiện chậm rãi, thanh lịch */
.delay-1 { transition-delay: 0.22s; }
.delay-2 { transition-delay: 0.48s; }
.delay-3 { transition-delay: 0.75s; }
.delay-4 { transition-delay: 1.05s; }
.delay-5 { transition-delay: 1.35s; }
.delay-6 { transition-delay: 1.65s; }

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ============ AMBIENT LAYER — CÁNH HOA ĐÀO HỒNG BAY RƠI (Chạy ở nền dưới) ============ */
.ambient-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.ambient-star {
  position: absolute; top: -6vh;
  background: linear-gradient(135deg, #f6d9e6 0%, #f0a8c4 55%, #e0729e 100%);
  border-radius: 100% 0 100% 0;
  opacity: .85;
  box-shadow: 0 0 6px 1px rgba(240, 168, 196, .5);
  animation: starFall linear infinite, starTwinkle ease-in-out infinite;
}
@keyframes starFall {
  0% { transform: translateY(-6vh) translateX(0) rotate(0deg); }
  100% { transform: translateY(108vh) translateX(var(--drift, 20px)) rotate(var(--spin, 320deg)); }
}
@keyframes starTwinkle {
  0%, 100% { opacity: .55; }
  50% { opacity: .95; }
}

/* ============ 1. INTRO — LUXURY ENVELOPE OPENING ============ */
.intro-envelope {
  position: fixed; inset: 0; z-index: 1000;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #fff5f8 50%, #fde6f0 100%);
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
  padding: 24px 16px;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), filter 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s ease;
  pointer-events: auto;
}
.intro-envelope.is-hidden {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(10px);
  visibility: hidden;
  pointer-events: none;
}

.intro-envelope__container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  width: 100%; max-width: 440px; height: auto; max-height: 90vh;
  position: relative; z-index: 2;
}

/* Header Text (You are invited to / Happy Birthday) */
.envelope-header {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2px;
}
.envelope-header__eyebrow {
  font-family: var(--font-head);
  font-size: clamp(0.72rem, 2.5vw, 0.85rem);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #d44c85;
  font-weight: 600;
  margin-bottom: 10px;
}
.envelope-header__title {
  font-family: var(--font-script2);
  font-size: clamp(2.8rem, 9vw, 3.8rem);
  font-weight: 400;
  color: #8c2356;
  line-height: 1.1;
  filter: drop-shadow(0 2px 8px rgba(224, 114, 158, 0.25));
}

/* Envelope Main Box */
.envelope-box {
  position: relative;
  width: min(88vw, 340px);
  height: 215px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.envelope-box:hover {
  transform: translateY(-3px) scale(1.015);
  filter: drop-shadow(0 12px 25px rgba(212, 114, 158, 0.28));
}

/* SVG Decorative Borders */
.envelope-svg-border {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

/* Envelope Inner Cavity Background */
.envelope-bg {
  position: absolute; inset: 0;
  border-radius: 12px;
  background: linear-gradient(165deg, #fff0f5 0%, #fbdce8 100%);
  border: 1.5px solid rgba(224, 114, 158, 0.4);
  box-shadow: 0 14px 35px rgba(194, 66, 124, 0.18);
  overflow: hidden;
  z-index: 1;
}

/* The Letter / Card Inside (BEHIND envelope-front pocket!) */
.envelope-card {
  position: absolute;
  top: 10px; left: 14px; right: 14px; bottom: 10px;
  background: #ffffff;
  border-radius: 8px;
  border: 1.5px solid rgba(212, 145, 175, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  z-index: 2; /* Starts behind front pocket (z-index: 4) */
  transform-origin: center center;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.85s ease, z-index 0.01s;
}
.envelope-card__icon {
  color: var(--navy);
  margin-bottom: 4px;
}
.envelope-card__tag {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  color: #d44c85;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.envelope-card__name {
  font-family: var(--font-script2);
  font-size: 2.3rem;
  color: #8c2356;
  line-height: 1.1;
  font-weight: 400;
}
.envelope-card__line {
  width: 45px; height: 1px;
  background: linear-gradient(90deg, transparent, #e0729e, transparent);
  margin: 6px 0;
}
.envelope-card__date {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #7a5568;
  letter-spacing: 1px;
}

/* Flap (Nắp phong thư) */
.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, #f7c3d7 0%, #f1a9c4 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 5;
  filter: drop-shadow(0 3px 6px rgba(194, 66, 124, 0.2));
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.01s linear 0.35s;
}

/* Envelope Front Pocket (Lower part) */
.envelope-front {
  position: absolute;
  inset: 0;
  z-index: 4; /* Pocket covers the card while it is inside! */
  pointer-events: none;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(145deg, #fbd0e1 0%, #f4b4cb 100%);
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
  border-bottom: 1.5px solid rgba(224, 114, 158, 0.4);
}

/* Envelope Guest Text */
.envelope-guest {
  position: absolute;
  right: 22px; bottom: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  color: #8c2356;
  z-index: 6;
  pointer-events: none;
}
.envelope-guest span {
  font-family: var(--font-script2);
  font-style: normal;
  font-size: 1.35em;
  font-weight: 600;
  color: #d44c85;
  padding-left: 4px;
}

/* Prompt Below Envelope */
.envelope-prompt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.88rem, 2.5vw, 0.98rem);
  color: #b83b75;
  text-align: center;
  margin-top: 4px;
  animation: promptPulse 2s ease-in-out infinite;
}
@keyframes promptPulse {
  0%, 100% { opacity: 0.65; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* STAGE 1: OPEN FLAP */
.intro-envelope.is-opening .envelope-prompt {
  opacity: 0;
  animation: none;
  transition: opacity 0.3s ease;
}
.intro-envelope.is-opening .envelope-flap {
  transform: rotateX(180deg);
  z-index: 0;
}

/* STAGE 2: CARD SLIDES UP (Keeps z-index: 2 behind front pocket z-index: 4, so it physically slides OUT from inside the pocket!) */
.intro-envelope.is-sliding-up .envelope-card {
  transform: translateY(-120%) scale(0.96);
  z-index: 2;
  box-shadow: 0 14px 30px rgba(194, 66, 124, 0.25);
}

/* STAGE 3: CARD FALLS TO CENTER RESTING IN FULL VIEW (z-index pops to 100 in front of envelope) */
.intro-envelope.is-card-center .envelope-card {
  transform: translateY(-12px) scale(0.98);
  z-index: 100;
  box-shadow: 0 16px 36px rgba(194, 66, 124, 0.3);
}

@media (max-width: 480px) {
  .intro-envelope.is-card-center .envelope-card {
    transform: translateY(-6px) scale(0.95);
  }
}
/* ============ MUSIC TOGGLE (Luxury Sound Wave Pulse) ============ */
.music-toggle {
  position: fixed;
  bottom: clamp(16px, 4vw, 24px);
  right: clamp(16px, 4vw, 24px);
  z-index: 990;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.2px solid rgba(194, 66, 124, 0.25);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(194, 66, 124, 0.18);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.music-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(194, 66, 124, 0.28);
}

.music-toggle:active {
  transform: scale(0.95);
}

.music-toggle__icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease);
}

/* Khi đang phát nhạc: Nút đổi tông hồng navy đậm + icon xoay mượt + vòng sóng âm box-shadow không bị tràn màn hình */
.music-toggle.is-playing {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  animation: musicPulseGlow 2.2s ease-in-out infinite;
}

.music-toggle.is-playing .music-toggle__icon {
  animation: musicIconSpin 4.5s linear infinite;
}

@keyframes musicIconSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes musicPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(194, 66, 124, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(194, 66, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 66, 124, 0); }
}

/* ============ SHARED ============ */
.section-eyebrow { font-size: 11px; letter-spacing: .32em; color: var(--blue); text-align: center; }
.section-title { font-size: clamp(34px, 8vw, 52px); text-align: center; color: var(--navy); margin: 6px 0 22px; }
.hr-line { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 18px auto; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.2px solid var(--gold); color: var(--navy); font-size: 12px; letter-spacing: .12em;
  padding: 11px 22px; border-radius: 30px; margin-top: 20px;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-fill {
  width: 100%; padding: 14px; border: none; border-radius: 30px; cursor: pointer;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: var(--white);
  font-size: 13px; letter-spacing: .1em; font-weight: 600;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(194,66,124,.28); }
.btn-fill:disabled { opacity: .6; cursor: not-allowed; }

section { position: relative; padding: 60px 20px; max-width: 720px; margin: 0 auto; }

/* ============ 2. HERO (Phong cách thiết kế Ảnh 1) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  padding: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero__img-wrap { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(60, 15, 35, 0.08) 0%, rgba(60, 15, 35, 0.22) 55%, rgba(45, 10, 25, 0.72) 100%);
}
.hero__sparks { position: absolute; inset: 0; pointer-events: none; }

/* Sparkles trang trí góc trên theo Ảnh 1 */
.hero__sparkle {
  position: absolute;
  z-index: 2;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(20px, 5vw, 28px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  animation: sparkleTwinkle 2.8s ease-in-out infinite alternate;
}
.hero__sparkle--tl { top: 25%; left: 8%; }
.hero__sparkle--tr { top: 12%; right: 10%; }
@keyframes sparkleTwinkle {
  0% { opacity: 0.35; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.hero__bottom {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 20px 48px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(10.5px, 2.8vw, 13px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  margin-bottom: 4px;
}

.hero__name {
  font-family: var(--font-script2);
  font-size: clamp(48px, 14vw, 84px);
  color: #ffffff;
  line-height: 1.05;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 180px;
  margin: 2px 0 10px;
}
.hero__divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 215, 173, 0.65), transparent);
}
.hero__divider-diamond {
  font-size: 8px;
  color: var(--gold-light);
  opacity: 0.9;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 4vw, 20px);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero__date-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
  width: 100%;
}
.hero__date-line {
  width: 36px;
  height: 1px;
  background: rgba(231, 215, 173, 0.65);
}
.hero__date-text {
  font-family: var(--font-sans);
  font-size: clamp(13px, 3.5vw, 15px);
  letter-spacing: 0.38em;
  color: var(--gold-light);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero__scroll-arrow {
  color: rgba(255, 255, 255, 0.8);
  animation: bounceDown 2s ease-in-out infinite;
  cursor: pointer;
  margin-top: 4px;
}
@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* ============ 3. INVITE — theo phong cách ảnh mẫu 1 ============ */
.invite {
  max-width: 640px;
}
.invite__card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 44px 28px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(194, 66, 124, .1);
}
.invite__card::before {
  content: ''; position: absolute; inset: 10px;
  border: 1px solid var(--gold-light);
  pointer-events: none;
}
.invite__swirl-wrap {
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}
.invite__swirl {
  color: var(--blue-soft);
  opacity: .55;
  display: block;
}
.invite__cap-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 6px;
  z-index: 3;
}
.invite__cap {
  color: var(--gold);
  display: block;
}
.invite__label { font-size: 12px; letter-spacing: .32em; color: var(--navy); margin-top: 16px; font-weight: 600; }

.invite__guest-wrap { display: inline-block; position: relative; margin-top: 6px; margin-bottom: 12px; }
.invite__to-name { font-size: clamp(28px, 7.5vw, 42px); color: var(--gold); }
.invite__guest-underline { width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin-top: -4px; }

.invite__sub { font-size: 12px; letter-spacing: .12em; color: var(--ink-soft); line-height: 1.6; margin-top: 8px; }

/* Box Ngày Giờ Địa Điểm theo Phong cách Ảnh 1 */
.invite-box {
  display: flex;
  align-items: center;
  border: none;
  margin: 30px 0;
  padding: 24px 10px;
  text-align: left;
}
.invite-box__date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  flex-shrink: 0;
}
.invite-box__num {
  /* Dùng Be Vietnam Pro — font sans-serif hỗ trợ tiếng Việt, số đều nét, không lên xuống */
  font-family: var(--font-sans);
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.invite-box__divider-v {
  width: 1.5px;
  background: var(--blue);
  align-self: stretch;
  margin: 0 18px;
  opacity: 0.5;
}
.invite-box__info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.invite-box__time-group { margin-bottom: 14px; }
.invite-box__time {
  /* Be Vietnam Pro: font sans hỗ trợ tiếng Việt, không lỗi nét đậm nhạt */
  font-family: var(--font-sans);
  font-size: clamp(16px, 4.2vw, 21px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.invite-box__lunar {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.invite-box__divider-h {
  height: 1px;
  background: rgba(194, 66, 124, 0.2);
  margin: 10px 0 14px;
}
.invite-box__venue-group { }
.invite-box__venue {
  font-family: var(--font-sans);
  font-size: clamp(15px, 4vw, 19px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.invite-box__hall {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-top: 4px;
}
.invite-box__address {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.5;
  font-style: italic;
}
.invite-box__map-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(185, 151, 77, 0.08);
  border: 1px solid rgba(185, 151, 77, 0.45);
  padding: 5px 14px;
  border-radius: 20px;
  margin-top: 10px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.invite-box__map-btn:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.invite__closing {
  font-family: var(--font-script2);
  font-size: clamp(20px, 5vw, 26px);
  color: var(--navy);
  margin-top: 24px;
  line-height: 1.55;
}

/* ============ 4. STANDING PHOTO PARALLAX + COUNTDOWN ============ */
.standing-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  min-height: 420px;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}
@media (min-width: 641px) {
  .standing-section {
    min-height: 460px;
    max-height: 520px;
  }
}

/* Ảnh đứng yên 100% full màn hình (Fixed viewport pinning) */
.standing-section__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  pointer-events: none;
  will-change: transform;
}

.standing-section__overlay {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 32px 20px;
  min-height: 420px;
  background: linear-gradient(180deg, rgba(55, 12, 30, 0.52) 0%, rgba(55, 12, 30, 0.78) 100%);
}
@media (min-width: 641px) {
  .standing-section__overlay {
    min-height: 460px;
  }
}

.standing-photo__quote-decor {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-light);
  margin-bottom: 16px;
  opacity: 0.9;
}
.standing-photo__line {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.standing-photo__diamond {
  font-size: 10px;
  color: var(--gold-light);
}

/* Câu Quote được phóng to rõ nét trên mobile */
.standing-photo__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(21px, 5.6vw, 30px);
  color: var(--white);
  max-width: 580px;
  line-height: 1.58;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.countdown-luxury {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(10px, 3.5vw, 24px);
  margin-bottom: 16px;
}
.countdown-luxury__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown-luxury__num {
  font-family: var(--font-sans);
  font-size: clamp(24px, 6vw, 38px);
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.countdown-luxury__label {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-top: 6px;
  font-weight: 600;
}
.countdown-luxury__sep {
  font-family: var(--font-serif);
  font-size: clamp(18px, 4.5vw, 28px);
  color: var(--gold-light);
  margin-top: 1px;
  opacity: 0.85;
}

.standing-photo__sub {
  font-size: clamp(11.5px, 2.8vw, 13px);
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-top: 4px;
}

/* ============ 5. CALENDAR & TIMELINE (Theo phong cách thanh lịch, thoáng sáng như ảnh mẫu) ============ */
.calendar-timeline-section {
  padding-top: 36px;
  padding-bottom: 30px;
}

/* --- CALENDAR --- */
.calendar-wrap {
  margin-bottom: 48px;
  text-align: center;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
}
.calendar__header {
  text-align: center;
  margin-bottom: 24px;
}
.calendar__month-script {
  font-family: var(--font-script2);
  font-size: clamp(40px, 9.5vw, 54px);
  color: var(--navy);
  line-height: 1.05;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(194, 66, 124, 0.12);
}
.calendar__header-line {
  width: 44px;
  height: 1.5px;
  background: rgba(185, 151, 77, 0.65);
  margin: 6px auto 0;
  border-radius: 2px;
}
.calendar__body {
  position: relative;
  background: transparent;
  padding: 0;
}
.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 16px;
  text-align: center;
  opacity: 0.9;
}
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 12px;
  column-gap: 4px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--ink);
  text-align: center;
}
.calendar__grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  font-weight: 500;
  font-size: 14.5px;
  color: #4a2d3b;
}
.calendar__grid .is-empty {
  height: 36px;
}
.calendar__grid .is-target {
  position: relative;
  font-weight: 700;
  color: var(--navy);
}
.calendar__grid .heart-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: 42px;
  height: 38px;
  color: var(--navy);
  pointer-events: none;
  animation: heartPulseSoft 2.4s ease-in-out infinite;
}
@keyframes heartPulseSoft {
  0%, 100% {
    transform: translate(-50%, -46%) scale(1);
    filter: drop-shadow(0 2px 5px rgba(194, 66, 124, 0.3));
  }
  50% {
    transform: translate(-50%, -46%) scale(1.14);
    filter: drop-shadow(0 4px 10px rgba(194, 66, 124, 0.6));
  }
}
.calendar__grid .num-text {
  position: relative;
  z-index: 1;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}

/* --- TIMELINE --- */
.timeline-wrap {
  margin-top: 72px;
  margin-bottom: 0;
  text-align: center;
  width: 100%;
}
.timeline-title-wrap {
  text-align: center;
  margin-bottom: 36px;
}
.timeline-heading {
  font-family: var(--font-script2);
  font-size: clamp(38px, 9vw, 52px);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 4px;
  font-weight: 400;
}
.timeline-heading-line {
  width: 46px;
  height: 1.5px;
  background: rgba(185, 151, 77, 0.65);
  margin: 8px auto 0;
  border-radius: 2px;
}

.timeline-center {
  position: relative;
  max-width: 480px;
  margin: 28px auto 0;
  padding: 16px 0;
}
.timeline-center__line {
  position: absolute;
  left: 50%;
  top: -24px;
  bottom: -24px;
  width: 1.5px;
  background: linear-gradient(180deg, transparent 0%, rgba(185, 151, 77, 0.75) 15%, rgba(185, 151, 77, 0.75) 85%, transparent 100%);
  transform: translateX(-50%);
  z-index: 1;
}
.timeline-center__line.reveal {
  transform: translateX(-50%) translateY(14px);
}
.timeline-center__line.reveal.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.timeline-center__item {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 78px;
  position: relative;
  min-height: 64px;
}
.timeline-center__item:last-child {
  margin-bottom: 0;
}
.timeline-center__side {
  width: 50%;
  box-sizing: border-box;
}
.timeline-center__side--left {
  text-align: right;
  padding-right: 44px;
  padding-left: 6px;
}
.timeline-center__side--right {
  text-align: left;
  padding-left: 44px;
  padding-right: 6px;
}

.timeline-center__node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.8px solid rgba(185, 151, 77, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: var(--navy);
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(255, 245, 248, 0.95), 0 4px 16px rgba(194, 66, 124, 0.18);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.timeline-center__node.reveal,
.timeline-center__node.reveal-zoom,
.timeline-center__node.reveal-flip {
  transform: translateX(-50%) scale(0.85) !important;
}
.timeline-center__node.reveal.is-visible,
.timeline-center__node.reveal-zoom.is-visible,
.timeline-center__node.reveal-flip.is-visible {
  opacity: 1;
  transform: translateX(-50%) scale(1) !important;
}
.timeline-center__item:hover .timeline-center__node.is-visible {
  transform: translateX(-50%) scale(1.08) !important;
  box-shadow: 0 0 0 7px rgba(255, 245, 248, 1), 0 6px 20px rgba(194, 66, 124, 0.25);
}
.timeline-center__node svg {
  width: 22px;
  height: 22px;
  stroke: var(--navy);
  stroke-width: 1.8;
  opacity: 0.95;
}
.timeline-center__time {
  font-family: var(--font-serif);
  font-size: clamp(21px, 5.2vw, 27px);
  font-weight: 600;
  color: #b89146;
  letter-spacing: 0.02em;
  display: inline-block;
}
.timeline-center__title {
  font-family: var(--font-serif);
  font-size: clamp(17px, 4.4vw, 21px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
  line-height: 1.25;
}
.timeline-center__desc {
  font-size: clamp(12px, 3vw, 13px);
  color: var(--ink-soft);
  line-height: 1.4;
  font-family: var(--font-sans);
}

/* Dresscode Gợi ý */
.dresscode {
  text-align: center;
  margin-top: 52px;
}
.dresscode__text {
  font-family: var(--font-serif);
  font-size: clamp(16px, 4.2vw, 19px);
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.03em;
  line-height: 1.6;
  margin-top: 14px;
  padding: 10px 24px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(194, 66, 124, 0.3);
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(194, 66, 124, 0.08);
  backdrop-filter: blur(4px);
}
.dresscode__swatches {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  padding: 6px 0;
}
.dresscode__swatch {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: -4px 6px 16px rgba(194, 66, 124, 0.18);
  margin-left: -14px;
  transition: transform 0.3s var(--ease), z-index 0.3s;
  position: relative;
}
.dresscode__swatch:first-child { margin-left: 0; }
.dresscode__swatch:hover { transform: translateY(-6px) scale(1.1); z-index: 10; }

/* ============ 6. LETTER — Luxury Frame ============ */
.letter { position: relative; overflow: visible; }
.letter__swirl-wrap {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}
.letter__swirl {
  color: var(--blue-soft);
  opacity: .5;
  display: block;
}

/* Letter card với đường viền nét vẽ luxury */
.letter__card {
  position: relative;
  background: var(--white);
  border-radius: 2px;
  padding: 52px 36px 44px;
  box-shadow: 0 20px 60px rgba(194,66,124,.12), 0 2px 8px rgba(194,66,124,.06);
  border: 1px solid rgba(194,66,124,0.08);
}
/* Đường viền trong có hiệu ứng nhiều lớp */
.letter__card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold-light);
  pointer-events: none;
  border-radius: 1px;
}
.letter__card::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(185, 151, 77, 0.25);
  pointer-events: none;
  border-radius: 1px;
}
/* SVG nét vẽ góc trang trí */
.letter__corner {
  position: absolute;
  color: var(--gold);
  opacity: 0.55;
  width: 28px; height: 28px;
}
.letter__corner--tl { top: 20px; left: 20px; }
.letter__corner--tr { top: 20px; right: 20px; transform: scaleX(-1); }
.letter__corner--bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.letter__corner--br { bottom: 20px; right: 20px; transform: scale(-1); }

/* Nét vẽ trang trí đầu thư */
.letter__header-decor {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 24px; color: var(--gold-light); opacity: 0.8;
}
.letter__header-line { flex: 1; max-width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light)); }
.letter__header-line:last-child { background: linear-gradient(90deg, var(--gold-light), transparent); }
.letter__header-icon { font-size: 14px; color: var(--gold); }

.letter__paragraph {
  font-family: var(--font-letter);
  font-size: 15.5px;
  line-height: 1.88;
  text-align: justify;
  text-align-last: left;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: "lnum" 1;
}
.letter__sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 28px;
  padding-top: 18px;
  padding-right: 16px;
  border-top: 1px solid var(--line);
}
.letter__closing { font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); }
.letter__author { font-size: 34px; color: var(--navy); margin-top: 2px; }
/* ============ 7. BỘ ĐÔI ẢNH KỶ NIỆM (Phong cách Luxury đè trùm khung mẫu) ============ */
.dual-photos-section {
  padding: 30px 0 0;
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
}
.dual-photos {
  position: relative;
  width: 100%;
  padding: 24px 16px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Khung viền vàng phía sau với góc bo tròn */
.dual-photos__decor-frame {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 20px;
  right: 20px;
  border: 1.2px solid rgba(231, 215, 173, 0.85);
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

/* 2 Góc L vàng ở ngoài khung viền */
.dual-photos__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(185, 151, 77, 0.9);
  border-style: solid;
}
.dual-photos__corner--tl {
  top: -7px; left: -7px;
  border-width: 1.8px 0 0 1.8px;
}
.dual-photos__corner--br {
  bottom: -7px; right: -7px;
  border-width: 0 1.8px 1.8px 0;
}

/* Đốm mờ trang trí xung quanh */
.dual-photos__bokeh {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(3px);
}
.dual-photos__bokeh--1 {
  top: 4px; right: 12%;
  width: 14px; height: 14px;
  background: var(--blue-soft);
  opacity: 0.6;
}
.dual-photos__bokeh--2 {
  bottom: 10px; right: 2%;
  width: 16px; height: 16px;
  background: var(--navy);
  opacity: 0.3;
}

/* Bố cục 2 ảnh đè tràn ra ngoài khung viền */
.dual-photos__container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.dual-photos__card {
  position: relative;
  background: var(--white);
  padding: 4px;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.4s var(--ease), z-index 0.3s;
  cursor: zoom-in;
}
.dual-photos__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

/* Card bên trái: nghiêng âm (-5deg), đè tràn vượt khung viền bên trái */
.dual-photos__card--left {
  width: 52%;
  aspect-ratio: 3 / 4;
  transform: rotate(-5deg) translateY(-4px);
  z-index: 1;
}

/* Card bên phải: nghiêng dương (5deg), đè tràn vượt khung viền bên phải & đè lên card trái */
.dual-photos__card--right {
  width: 52%;
  aspect-ratio: 3 / 4;
  margin-left: -14%;
  transform: rotate(5deg) translateY(8px);
  z-index: 2;
}

.dual-photos__card:hover {
  z-index: 10;
  transform: scale(1.04) rotate(0deg);
  box-shadow: none;
}

/* ============ 7. ALBUM ẢNH KỶ NIỆM (6 ảnh dọc, 2 ảnh/dòng: photo4 đến photo9) ============ */
.album-section {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 38px 8px 16px;
  text-align: center;
  box-sizing: border-box;
}
.album-wrap {
  width: 100%;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 20px;
  width: 100%;
}
@media (min-width: 641px) {
  .album-section {
    padding: 44px 14px 22px;
  }
  .album-grid {
    gap: 8px;
  }
}
.album-item {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.album-item.reveal-left,
.album-item.reveal-right,
.album-item.reveal {
  transition: opacity 3.6s cubic-bezier(0.16, 1, 0.3, 1), transform 3.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.album-item:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(194, 66, 124, 0.18);
}
.album-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.album-item:hover img {
  transform: scale(1.05);
}

/* ============ 8. ĐƯỜNG ĐẾN BỮA TIỆC (Không nền, hài hoà liền mượt) ============ */
.location-section {
  padding: 30px 16px 50px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.location-map-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(194, 66, 124, 0.25);
  box-shadow: 0 10px 30px rgba(194, 66, 124, 0.08), inset 0 0 0 3px rgba(255, 255, 255, 0.6);
  margin: 18px 0 24px;
}
.location-map-iframe {
  display: block;
  width: 100%;
  height: 280px;
}

.location-actions {
  display: flex;
  justify-content: center;
}
.btn-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 13px 26px;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(194, 66, 124, 0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-location:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(194, 66, 124, 0.32);
}

/* ============ 8. RSVP ============ */
.rsvp { text-align: center; }
.rsvp__cap { color: var(--gold); margin-bottom: 10px; }
.rsvp__form { text-align: left; margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 11px; letter-spacing: .12em; color: var(--blue); margin-bottom: 6px; }
.field input, .field textarea, .select-field {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); font-family: var(--font-sans); font-size: 14px; color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field textarea:focus, .select-field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-pale); }
.rsvp__status { text-align: center; font-size: 13px; color: var(--navy); min-height: 18px; margin-top: 4px; }

/* ============ 9. GUESTBOOK (Dạng cuộn dọc theo ảnh mẫu) ============ */
section.guestbook {
  text-align: center;
  padding: 40px 16px 50px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.guestbook__eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #1a5666;
  text-transform: uppercase;
  margin-bottom: 2px;
  opacity: 0.85;
}

.guestbook__card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  border: 1.5px solid rgba(194, 66, 124, 0.16);
  padding: 18px 12px 18px 16px;
  margin-top: 22px;
  box-shadow: 0 10px 30px rgba(194, 66, 124, 0.08), 0 2px 10px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.guestbook__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 6px 4px 0;
  overscroll-behavior-y: contain;
  scroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 77, 86, 0.35) transparent;
}

.guestbook__list::-webkit-scrollbar {
  width: 5px;
}
.guestbook__list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
}
.guestbook__list::-webkit-scrollbar-thumb {
  background: rgba(0, 77, 86, 0.35);
  border-radius: 10px;
}
.guestbook__list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 77, 86, 0.55);
}

.guestbook__entry {
  background: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 77, 86, 0.12);
  word-break: break-word;
  box-sizing: border-box;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.guestbook__entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(194, 66, 124, 0.1);
}

.guestbook__entry-name {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #1a5666;
  font-size: 15.5px;
  letter-spacing: 0.01em;
}

.guestbook__entry-msg {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.55;
  font-family: var(--font-sans);
}

.guestbook__entry-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.gb-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gb-badge--yes {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.15);
}
.gb-badge--no {
  background: #ffebee;
  color: #c62828;
  border: 1px solid rgba(198, 40, 40, 0.15);
}

.guestbook__entry-time {
  font-size: 11px;
  color: #8899a6;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

.guestbook__empty {
  font-size: 14px;
  color: var(--ink-soft);
  padding: 32px 16px;
  font-style: italic;
  font-family: var(--font-serif);
}

.footer-wrap {
  position: relative;
  background-image: url('../assets/images/footer.jpg');
  background-size: cover;
  background-position: center 20%;
  border-top: 1px solid rgba(185, 151, 77, 0.25);
  overflow: hidden;
  min-height: 520px;
}
@media (min-width: 641px) {
  .footer-wrap {
    min-height: 580px;
    background-position: center 25%;
  }
}

.footer-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 8, 18, 0.02) 0%, rgba(35, 8, 20, 0.3) 45%, rgba(25, 5, 14, 0.92) 100%);
  z-index: 1;
}

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  min-height: 520px;
  box-sizing: border-box;
  padding: 270px 20px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
}
@media (min-width: 641px) {
  .footer {
    min-height: 580px;
    padding: 320px 24px 34px;
  }
}

/* Staggered tên: Nguyễn Phạm lệch trái, Sao Mai lệch phải */
.footer__names-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  margin-bottom: 8px;
}
.footer__name-line {
  font-family: var(--font-script2);
  font-size: clamp(38px, 7.8vw, 56px);
  color: var(--gold-light);
  letter-spacing: 0.02em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
  line-height: 1.05;
}
.footer__name-line--left {
  text-align: left;
  padding-left: 6%;
}
.footer__name-line--right {
  text-align: right;
  padding-right: 6%;
  margin-top: -6px;
}

/* 2 đường gạch ngang nhẹ ở 2 bên ngày */
.footer__date-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 12px;
}
.footer__date-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 215, 173, 0.65), transparent);
}
.footer__date {
  font-family: var(--font-serif);
  font-size: clamp(13px, 3.4vw, 16px);
  color: var(--gold-light);
  letter-spacing: 0.22em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
}

/* Text bên dưới nhỏ lại một chút */
.footer__note {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(13.5px, 3.4vw, 15.5px);
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
  max-width: 400px;
  line-height: 1.55;
  text-align: center;
  margin-top: 2px;
}

/* Thẻ Designed riêng biệt màu trắng */
.designed-bar {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-top: 1px solid rgba(194, 66, 124, 0.12);
  padding: 7px 16px;
  text-align: center;
}
.footer__designed {
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.9;
  letter-spacing: 0.04em;
  margin: 0;
}
.footer__designed a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.3s ease;
}
.footer__designed a:hover {
  opacity: 0.75;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 8, 18, 0.92);
  backdrop-filter: blur(8px);
}
.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 76vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}
.lightbox__meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 6px;
  box-sizing: border-box;
}
.lightbox__name {
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: clamp(16px, 4.2vw, 20px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.lightbox__counter {
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 12px;
  border-radius: 14px;
}
.lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s;
  z-index: 15;
}
.lightbox__close:hover {
  opacity: 1;
}

/* Nút điều hướng ảnh Lên / Xuống (Trước / Sau) */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
}
.lightbox__nav svg {
  width: 22px;
  height: 22px;
}
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.08);
}
.lightbox__nav:active {
  transform: translateY(-50%) scale(0.95);
}
.lightbox__nav--prev {
  left: -54px;
}
.lightbox__nav--next {
  right: -54px;
}
@media (max-width: 640px) {
  .lightbox__nav {
    width: 36px;
    height: 36px;
    background: rgba(30, 8, 18, 0.55);
  }
  .lightbox__nav svg {
    width: 18px;
    height: 18px;
  }
  .lightbox__nav--prev {
    left: 6px;
  }
  .lightbox__nav--next {
    right: 6px;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  section.invite {
    padding-left: 10px;
    padding-right: 10px;
  }
  .invite__card {
    padding: 34px 12px 28px;
  }
  .invite-box {
    padding: 16px 6px;
  }
  .invite-box__date-col {
    padding: 0 10px;
  }
  .invite-box__divider-v {
    margin: 0 8px;
  }
  /* ===== Letter mobile: tăng margin-padding viền thư ===== */
  .letter__card {
    padding: 44px 24px 34px;
  }

  /* ===== Timeline mobile: kiểu dáng thanh lịch thoáng đãng ===== */
  .timeline-wrap {
    margin-top: 60px;
    margin-bottom: 0;
  }
  .timeline-title-wrap {
    margin-bottom: 28px;
  }
  .timeline-center {
    max-width: 100%;
    margin-top: 24px;
    margin-bottom: 0;
    padding: 12px 0;
  }
  .timeline-center__line {
    top: -20px;
    bottom: -20px;
  }
  .timeline-center__item {
    margin-bottom: 58px;
    min-height: 56px;
  }
  .timeline-center__item:last-child {
    margin-bottom: 0;
  }
  .timeline-center__side--left {
    padding-right: 36px;
    padding-left: 2px;
  }
  .timeline-center__side--right {
    padding-left: 36px;
    padding-right: 2px;
  }
  .timeline-center__node {
    width: 44px;
    height: 44px;
    border-width: 1.6px;
    box-shadow: 0 0 0 5px rgba(255, 245, 248, 0.95), 0 3px 12px rgba(194, 66, 124, 0.18);
  }
  .timeline-center__node svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
  }
  .timeline-center__time {
    font-size: 19px;
    font-weight: 600;
    color: #b89146;
  }
  .timeline-center__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
  }
  .timeline-center__desc {
    font-size: 11.5px;
    line-height: 1.35;
  }
  .dresscode {
    margin-top: 48px;
  }
  .dresscode__swatches {
    margin-top: 12px;
    padding: 4px 0;
  }

  /* Guestbook mobile entries */
  .guestbook__entry {
    padding: 13px 14px;
  }

  /* Album mobile: portrait 3:4, landscape 16:9 */
  .parallax-album__frame {
    padding: 24px 12px 48px;
    gap: 10px;
  }
  .parallax-album__row { gap: 8px; }
  .parallax-album__item--landscape { aspect-ratio: 16 / 9; }
  .parallax-album__item--portrait { aspect-ratio: 3 / 4; }
}

@media (min-width: 760px) {
  section { padding: 90px 20px; }
  .hero { min-height: 100vh; }
}

/* ============================================================
   BACKGROUND DECORATIVE OVERLAYS (HỌA TIẾT NỀN TRANG TRÍ)
   - Tối ưu Mobile-First, không tạo thanh cuộn ngang
   - mix-blend-mode: multiply tiệp nền giấy kem
   - Hiển thị sắc nét (opacity 0.8 - 0.9)
   - Nằm chìm dưới nội dung (z-index 0 / 1), pointer-events: none
   - Responsive Desktop scale & offset
   ============================================================ */
.bg-decor-wrap {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.bg-decor {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.68;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

/* Đảm bảo toàn bộ thẻ card, form, tiêu đề nổi bật rõ ràng phía trên họa tiết nền */
.invite__card,
.calendar__title,
.calendar__card,
.timeline-wrap,
.timeline-center,
.dresscode,
.letter__card,
.dual-photos,
.location-map-wrap,
.location-actions,
.rsvp__form,
.guestbook__carousel-wrap,
.section-title,
.section-eyebrow,
.invite__swirl,
.letter__swirl,
.rsvp__cap {
  position: relative;
  z-index: 2;
}

/* --- Section 0: Intro (bg1 góc trên trái, bg4 góc dưới phải) --- */
.bg-decor--intro-tl {
  top: -12px;
  left: -16px;
  width: clamp(120px, 34vw, 190px);
  transform: rotate(-10deg);
  opacity: 0.72;
}

.bg-decor--intro-br {
  bottom: -12px;
  right: -16px;
  width: clamp(125px, 36vw, 200px);
  transform: rotate(10deg);
  opacity: 0.72;
}

/* --- Section 1: Thân Mời (Invite) --- */
.bg-decor--invite-tl {
  top: -10px;
  left: -18px;
  width: clamp(105px, 32vw, 160px);
  transform: rotate(-14deg);
  opacity: 0.70;
}

/* bg6 nằm thấp xuống dưới dọc biên phải, hiển thị 50% và 50% bị cắt ngoài màn hình */
.bg-decor--invite-br {
  top: auto;
  bottom: -60px;
  right: 0px;
  width: clamp(105px, 30vw, 155px);
  transform: translateX(50%); /* 50% chiều ngang hiển thị, 50% bị cắt ra ngoài biên phải */
  opacity: 0.72;
}

/* --- Section 2: Lịch & Timeline (Calendar & Timeline) --- */
.bg-decor--cal-tl {
  top: 15px;
  left: -22px;
  width: clamp(105px, 30vw, 165px);
  transform: rotate(-12deg);
  opacity: 0.68;
}

/* bg5 ở timeline đưa xuống nằm vuông góc ở trên parallax */
.bg-decor--above-parallax-right {
  bottom: 0px;
  right: -6px;
  width: clamp(110px, 32vw, 165px);
  transform: none; /* Vuông góc, không xoay */
  opacity: 0.70;
}

/* --- Section 3: Đôi Lời Gửi Bạn (Letter) --- */
/* bg1 nằm ở bên trái dưới parallax */
.bg-decor--below-parallax-left {
  top: 0px;
  left: -10px;
  width: clamp(110px, 32vw, 165px);
  transform: none; /* Thẳng, không xoay */
  opacity: 0.70;
}

/* Nơ hồng/vàng trang trí góc dưới trái khung thư — Đặt thẳng không nghiêng */
.letter__bow-decor {
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: clamp(65px, 16vw, 90px);
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 5px 12px rgba(194, 66, 124, 0.25));
  transform: none; /* Đặt thẳng bình thường */
  transition: transform 0.4s var(--ease);
}

/* --- Section 4: Bộ Đôi Ảnh Kỷ Niệm (Photos) --- */
.bg-decor--photos-tl {
  top: -10px;
  left: -22px;
  width: clamp(110px, 32vw, 165px);
  transform: rotate(-12deg);
  opacity: 0.68;
}

/* --- Section 5: Giữa RSVP và Sổ Lưu Bút (bg2 đặt bên biên phải, nâng cao lên phía trên) --- */
.bg-decor--between-rsvp-gb {
  top: -72px;
  right: -16px;
  left: auto;
  width: clamp(140px, 38vw, 210px);
  transform: none;
  opacity: 0.72;
}

/* ============ RESPONSIVE DESKTOP — Mở rộng và phóng to nhẹ hai bên lề ============ */
@media (min-width: 768px) {
  .bg-decor {
    opacity: 0.74;
  }
  .bg-decor--invite-tl {
    top: -24px;
    left: -48px;
    transform: scale(1.22) rotate(-14deg);
  }
  .bg-decor--invite-br {
    top: auto;
    bottom: -75px;
    right: 0px;
    transform: translateX(45%) scale(1.15);
  }
  .bg-decor--cal-tl {
    top: 20px;
    left: -48px;
    transform: scale(1.2) rotate(-12deg);
  }
  .bg-decor--above-parallax-right {
    bottom: 0px;
    right: -15px;
    transform: scale(1.2);
  }
  .bg-decor--below-parallax-left {
    top: 0px;
    left: -25px;
    transform: scale(1.2);
  }
  .letter__bow-decor {
    bottom: -20px;
    left: -20px;
    width: 100px;
  }
  .bg-decor--photos-tl {
    top: -15px;
    left: -48px;
    transform: scale(1.22) rotate(-12deg);
  }
  .bg-decor--between-rsvp-gb {
    top: -95px;
    right: -30px;
    left: auto;
    transform: scale(1.22);
  }
}

