/* ==========================================================================
   VĂN VƯƠNG & HUYỀN TRANG WEDDING WEBSITE - KOREAN ROMANTIC & BOTANICAL
   ========================================================================== */

:root {
  --bg-ivory: #FAF8F5;
  --bg-warm: #F3EFE6;
  --bg-card: #FFFFFF;
  --sage: #5E7153;
  --sage-dark: #43533B;
  --sage-light: #E8EFE5;
  --rose: #D88C9A;
  --rose-dark: #B96B7A;
  --rose-light: #F9EBEE;
  --gold: #C5A059;
  --gold-light: #E6D5B8;
  --text-dark: #2C302E;
  --text-muted: #636B66;
  --border-soft: rgba(197, 160, 89, 0.28);
  --shadow-soft: 0 12px 35px rgba(44, 48, 46, 0.06);
  --shadow-hover: 0 18px 45px rgba(44, 48, 46, 0.12);
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html.is-autoscrolling {
  scroll-behavior: auto;
}

body {
  background-color: var(--bg-ivory);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.locked {
  overflow: hidden;
}

/* Canvas Petals */
#petal-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 45;
}

/* ==========================================================================
   SPLASH ENVELOPE OVERLAY (SECTION 0)
   ========================================================================== */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: radial-gradient(circle at center, rgba(35, 42, 36, 0.65), rgba(20, 24, 21, 0.88));
  backdrop-filter: blur(10px);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s;
}

.envelope-overlay.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-bg-photo {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/envelope-bg.webp');
  background-size: cover;
  background-position: center 28%;
  opacity: 0.55;
  transform: scale(1.04);
}

.invitation-card-modal {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: linear-gradient(165deg, rgba(255, 253, 249, 0.96) 0%, rgba(247, 242, 231, 0.94) 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(197, 160, 89, 0.5);
  overflow: hidden;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.invitation-card-watermark {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/large/419A4295.webp?v=2');
  background-size: cover;
  background-position: center 35%;
  opacity: 0.11;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.invitation-card-modal > *:not(.invitation-card-watermark) {
  position: relative;
  z-index: 1;
}

.envelope-overlay.opened .invitation-card-modal {
  transform: translateY(-40px) scale(0.94);
}

.invitation-card-modal::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 14px;
  pointer-events: none;
}

/* Monogram Crest */
.monogram-crest {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: radial-gradient(circle, #FFFDF9 0%, #F4EDE0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.2);
}

.monogram-crest::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(197, 160, 89, 0.6);
}

.monogram-letters {
  font-family: var(--font-script);
  font-size: 2.35rem;
  color: var(--sage-dark);
  letter-spacing: -1px;
  line-height: 1;
}

.monogram-letters span {
  color: var(--gold);
  font-size: 1.5rem;
  margin: 0 2px;
}

.envelope-subtitle {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.envelope-couple {
  font-family: var(--font-script);
  font-size: clamp(2.45rem, 6.5vw, 3rem);
  color: var(--text-dark);
  line-height: 1.12;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-line {
  display: block;
  white-space: nowrap;
}

.couple-amp {
  display: block;
  font-size: 1.55rem;
  color: var(--gold);
  line-height: 1;
  margin: 0.12rem 0;
}

.nowrap {
  white-space: nowrap;
}

.envelope-date-pill {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: var(--sage-light);
  color: var(--sage-dark);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
}

.envelope-guest-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.6rem;
}

.envelope-guest-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.envelope-guest-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--sage-dark);
  border-bottom: 1px dotted var(--gold);
  padding-bottom: 0.25rem;
  display: inline-block;
  min-width: 70%;
}

.envelope-event-hint {
  font-size: 0.82rem;
  color: var(--rose-dark);
  margin-top: 0.45rem;
  font-weight: 500;
}

/* Wax Seal Open Button */
.btn-open-envelope {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.9rem 2.1rem;
  border-radius: 99px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(94, 113, 83, 0.38);
  transition: all 0.3s ease;
  animation: pulse-gentle 2.4s infinite;
}

.btn-open-envelope:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(94, 113, 83, 0.5);
  background: linear-gradient(135deg, #6B805F 0%, var(--sage-dark) 100%);
}

@keyframes pulse-gentle {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94, 113, 83, 0.45), 0 10px 25px rgba(94, 113, 83, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(94, 113, 83, 0), 0 10px 25px rgba(94, 113, 83, 0.35); }
}

/* ==========================================================================
   TOP STICKY NAVIGATION & FLOATING ACTION BUTTONS (SECTION 1)
   ========================================================================== */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  transition: all 0.35s ease;
}

.navbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-script);
  font-size: 1.75rem;
  color: var(--sage-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-brand span {
  color: var(--rose-dark);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--sage);
}

.nav-cta {
  background: var(--sage);
  color: #fff !important;
  padding: 0.42rem 1rem;
  border-radius: 99px;
  font-size: 0.82rem !important;
}

.nav-cta:hover {
  background: var(--sage-dark);
}

/* Floating Audio & Quick Gift Buttons */
.floating-controls {
  position: fixed;
  bottom: 1.35rem;
  left: 1.35rem;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-audio {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(255, 255, 255, 0.92);
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  transition: all 0.3s ease;
}

.btn-audio.playing svg {
  animation: spin-disc 6s linear infinite;
  color: var(--rose-dark);
}

@keyframes spin-disc {
  100% { transform: rotate(360deg); }
}

.floating-right {
  position: fixed;
  bottom: 1.35rem;
  right: 1.35rem;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-float-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.05rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease;
}

.btn-float-action:hover {
  transform: translateY(-2px);
}

.btn-float-gift {
  background: linear-gradient(135deg, var(--rose-dark), #9F5261);
  color: #fff;
}

.btn-float-rsvp {
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: #fff;
}

/* ==========================================================================
   HERO BANNER (SECTION 2) - USING 419A4670.webp WITH TOP NEGATIVE SPACE
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ECEAE6 0%, var(--bg-ivory) 100%);
  overflow: hidden;
}

.hero-card-wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-visual-frame {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(44, 48, 46, 0.16);
  border: 6px solid #FFFFFF;
  background: #EAEAEA;
}

.hero-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Overlay text placed specifically in the top 34% negative space of 419A4670.webp */
.hero-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36%;
  padding: 1.8rem 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.25) 75%, transparent 100%);
}

.hero-kicker {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage-dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-names {
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  color: var(--text-dark);
  line-height: 1.12;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.9);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.45rem;
}

.name-unit {
  white-space: nowrap;
  display: inline-block;
}

.hero-names .amp {
  color: var(--rose-dark);
  font-size: 0.75em;
  line-height: 1;
}

.hero-date-line {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--sage-dark);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.25rem 1.15rem;
  border-radius: 99px;
  border: 1px solid rgba(197, 160, 89, 0.4);
}

.hero-bottom-caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 1.5rem);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 0.55rem 1.25rem;
  border-radius: 20px;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  color: var(--text-dark);
  font-weight: 500;
  white-space: normal;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.35);
}

/* ==========================================================================
   COMMON SECTION LAYOUT & HEADERS
   ========================================================================== */
.section-block {
  padding: 5rem 1.25rem;
  position: relative;
}

.section-block.alt-bg {
  background-color: var(--bg-warm);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.25rem;
}

.section-tag {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  text-wrap: balance;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.6rem auto 1rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  text-wrap: balance;
}

/* ==========================================================================
   COUPLE & PARENTS PROFILE CARDS (SECTION 3)
   ========================================================================== */
.couple-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  align-items: stretch;
}

.person-card {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.person-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.person-photo-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-bottom: 1.4rem;
  background: var(--bg-warm);
}

.person-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.person-card:hover .person-photo-wrap img {
  transform: scale(1.04);
}

.person-role-badge {
  display: inline-block;
  align-self: center;
  padding: 0.25rem 1rem;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.role-groom {
  background: var(--sage-light);
  color: var(--sage-dark);
}

.role-bride {
  background: var(--rose-light);
  color: var(--rose-dark);
}

.person-name {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.person-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.parents-box {
  background: var(--bg-ivory);
  border: 1px dashed rgba(197, 160, 89, 0.5);
  border-radius: 14px;
  padding: 1rem;
}

.parents-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.parents-names {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
}

/* ==========================================================================
   TRADITIONAL PAPER INVITATION & NOVEMBER 2026 CALENDAR (SECTION 4)
   ========================================================================== */
.paper-invite-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: stretch;
}

.paper-card {
  position: relative;
  background: linear-gradient(160deg, #FFFDF9 0%, #F8F3E8 100%);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(197, 160, 89, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.paper-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: 14px;
  pointer-events: none;
}

.paper-families-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}

.paper-family-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage-dark);
  margin-bottom: 0.3rem;
}

.paper-family-col p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.45;
}

.paper-invite-heading {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.paper-guest-line {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.paper-guest-highlight {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rose-dark);
  border-bottom: 1px dotted var(--gold);
  padding: 0 0.5rem;
}

.paper-couple-names {
  font-family: var(--font-script);
  font-size: clamp(2.35rem, 4.8vw, 3.1rem);
  color: var(--sage-dark);
  line-height: 1.12;
  margin: 0.55rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Classic Vietnamese Wedding Card Date Stamp (from wedding.docx) */
.classic-date-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 0.75rem auto 0.5rem;
}

.stamp-side {
  border-top: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  padding: 0.3rem 0.85rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark);
  min-width: 110px;
}

.stamp-center-day {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--rose-dark);
  line-height: 1;
}

.lunar-date-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.paper-venue-box {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(197, 160, 89, 0.25);
  margin-bottom: 1rem;
}

.paper-venue-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  font-weight: 700;
}

.paper-venue-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0.2rem 0;
}

.paper-venue-address {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Event Switcher Pills inside Paper Card */
.paper-event-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.paper-tab-btn {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--text-dark);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.paper-tab-btn.active {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

/* November 2026 Calendar Card */
.calendar-card {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calendar-top-photo {
  border-radius: 14px;
  overflow: hidden;
  height: 275px;
  margin-bottom: 1.25rem;
  position: relative;
  background: #F2EFE9;
}

.calendar-top-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.calendar-month-header {
  text-align: center;
  margin-bottom: 1rem;
}

.calendar-month-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dark);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  text-align: center;
  font-size: 0.86rem;
}

.cal-weekday {
  font-weight: 700;
  color: var(--sage);
  font-size: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25);
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.cal-day.empty {
  pointer-events: none;
}

.cal-day.wedding-day {
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(216, 140, 154, 0.45);
  transition: transform 0.25s;
}

.cal-day.wedding-day:hover {
  transform: scale(1.12);
}

.cal-day.day-21 {
  background: var(--rose-dark);
}

.cal-day.day-22 {
  background: var(--sage);
}

.cal-day.day-28 {
  background: var(--gold);
}

.cal-day.active-focus {
  animation: heart-beat 1.5s infinite;
  outline: 3px solid rgba(216, 140, 154, 0.35);
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

.calendar-legend {
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(197, 160, 89, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================================================
   COUNTDOWN BANNER (SECTION 5) - USING 419A5036.webp
   ========================================================================== */
.countdown-banner {
  position: relative;
  padding: 5.5rem 1.25rem;
  background-image: url('../assets/images/large/419A5036.webp');
  background-size: cover;
  background-position: center 35%;
  background-attachment: fixed;
  color: #fff;
  text-align: center;
}

.countdown-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 35, 29, 0.62) 0%, rgba(28, 35, 29, 0.76) 100%);
}

.countdown-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.countdown-subtitle {
  font-family: var(--font-serif);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.88rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.countdown-title {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.countdown-target-label {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.countdown-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.cd-box {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 1.25rem 0.5rem;
}

.cd-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  display: block;
}

.cd-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-top: 0.4rem;
  display: block;
}

/* ==========================================================================
   3 WEDDING EVENTS & MAPS (SECTION 6)
   ========================================================================== */
.event-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.event-filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: 99px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.event-filter-btn.active,
.event-filter-btn:hover {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.event-card {
  background: var(--bg-card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
}

.event-card.highlighted-event {
  border: 2px solid var(--sage);
  box-shadow: 0 18px 45px rgba(94, 113, 83, 0.2);
  transform: translateY(-4px);
}

.event-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
}

.event-card:hover .event-card-img img {
  transform: scale(1.05);
}

.event-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.badge-nhagai { background: var(--rose-dark); }
.badge-nhatrai { background: var(--sage-dark); }
.badge-baohy { background: #9C7A3C; }

.event-card-body {
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.event-sub {
  font-size: 0.84rem;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 1rem;
}

.event-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.event-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.event-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.event-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.btn-event-map,
.btn-event-cal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
}

.btn-event-map {
  background: var(--sage);
  color: #fff;
  border: 1px solid var(--sage);
}

.btn-event-map:hover {
  background: var(--sage-dark);
}

.btn-event-cal {
  background: var(--bg-ivory);
  color: var(--text-dark);
  border: 1px solid var(--border-soft);
}

.btn-event-cal:hover {
  background: var(--gold-light);
}

/* ==========================================================================
   EDITORIAL LOVE MOMENTS (SECTION 7)
   ========================================================================== */
.moments-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.moment-item {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  text-align: center;
}

.moment-item.center-featured {
  transform: translateY(-12px);
  border-color: var(--gold);
}

.moment-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.85rem;
}

.moment-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-dark);
}

/* ==========================================================================
   PHOTO GALLERY - 32 PHOTOS + CONCEPT TABS + LIGHTBOX (SECTION 8)
   ========================================================================== */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.gallery-tab-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 99px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.gallery-tab-btn.active {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--bg-warm);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(25, 30, 26, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-caption {
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.35;
}

.gallery-more-wrap {
  text-align: center;
  margin-top: 2.25rem;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 99px;
  border: 1.5px solid var(--sage);
  background: transparent;
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-outline-gold:hover {
  background: var(--sage);
  color: #fff;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(16, 19, 17, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption-bar {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  text-align: center;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   RSVP & GUESTBOOK WISHES (SECTION 9)
   ========================================================================== */
.rsvp-wishes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.rsvp-card,
.wishes-card {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.4);
  background: var(--bg-ivory);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-dark);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--sage);
  background: #fff;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.hp-trap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.privacy-note {
  font-size: 0.78rem;
  color: var(--sage-dark);
  background: var(--sage-light);
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  margin: -0.35rem 0 1rem;
  line-height: 1.4;
}

.btn-submit-rsvp {
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.25s;
}

.btn-submit-rsvp:hover {
  opacity: 0.92;
}

.wishes-list {
  max-height: 430px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-right: 0.35rem;
}

.wish-item {
  background: var(--bg-ivory);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--gold);
}

.wish-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.wish-author {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--sage-dark);
}

.wish-badge {
  font-size: 0.72rem;
  background: var(--sage-light);
  color: var(--sage-dark);
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  font-weight: 600;
}

.wish-text {
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* ==========================================================================
   WEDDING GIFT BOX / QR BANKING (HIDDEN BEHIND TOGGLE BUTTON)
   ========================================================================== */
.gift-trigger-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}

.btn-open-gift-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, var(--rose-dark) 0%, #9E5060 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.95rem 2.2rem;
  border-radius: 99px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(185, 107, 122, 0.35);
  transition: all 0.3s ease;
}

.btn-open-gift-qr:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(185, 107, 122, 0.48);
}

.gift-qr-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.gift-qr-drawer.open {
  max-height: 1200px;
  opacity: 1;
  margin-top: 1.5rem;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.bank-card {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.qr-frame {
  width: 200px;
  height: 200px;
  margin: 1rem auto;
  padding: 0.75rem;
  background: #fff;
  border: 1.5px dashed var(--gold);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-info-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.bank-acc-num {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  margin: 0.3rem 0;
}

.btn-copy-stk {
  margin-top: 0.65rem;
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  border: 1px solid var(--gold);
  background: var(--bg-ivory);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-stk:hover {
  background: var(--gold);
  color: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.wedding-footer {
  background: #232924;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 4rem 1.25rem 5.5rem;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.5rem;
}

.footer-names .amp {
  color: var(--gold);
  font-size: 0.72em;
}

.footer-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--sage-dark);
  color: #fff;
  padding: 0.65rem 1.35rem;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1500;
}

.toast-msg.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 960px) {
  .paper-invite-grid,
  .events-grid,
  .rsvp-wishes-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .couple-grid,
  .moments-collage,
  .gift-grid,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .hero-names,
  .footer-names {
    flex-direction: column;
    gap: 0.05rem;
  }

  .hero-top-overlay {
    height: 32%;
    padding: 0.65rem 0.75rem 0.2rem;
  }

  .hero-kicker {
    font-size: 0.72rem;
    margin-bottom: 0.1rem;
  }

  .hero-names {
    font-size: clamp(1.95rem, 6.2vw, 2.35rem);
    line-height: 1.04;
  }

  .hero-date-line {
    margin-top: 0.28rem;
    font-size: 0.85rem;
    padding: 0.18rem 0.9rem;
  }

  .hero-bottom-caption {
    bottom: 0.75rem;
    width: calc(100% - 1.25rem);
    max-width: 340px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    border-radius: 14px;
  }

  .moment-item.center-featured {
    transform: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .section-block {
    padding: 3.5rem 1rem;
  }

  .invitation-card-modal {
    padding: 2rem 1.25rem;
  }

  .classic-date-stamp {
    gap: 0.6rem;
  }

  .stamp-side {
    min-width: 88px;
    font-size: 0.8rem;
    padding: 0.25rem 0.45rem;
  }
}
