/* ==========================================================================
   THIỆP CƯỚI ONLINE - HỒNG NGỌC & THÁI SƠN
   Phong cách: Editorial Olive Green & Vintage Botanical (Mobile-First)
   ========================================================================== */

:root {
  --olive-primary: #324b2a;
  --olive-dark: #25381f;
  --olive-text: #2c3e26;
  --olive-muted: #5c6b57;
  --olive-border: #687762;
  --cream-bg: #fcfbf9;
  --white: #ffffff;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Alex Brush', 'Great Vibes', cursive;
  --font-body: 'Cormorant Infant', 'Cormorant Garamond', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: #e9e7e2;
}

body {
  font-family: var(--font-serif);
  color: var(--olive-text);
  background-color: #e9e7e2;
  background-image: radial-gradient(rgba(50, 75, 42, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   MOBILE CONTAINER (Full-screen on Mobile, Centered Card on Desktop)
   ========================================================================== */
.wedding-wrapper {
  width: 100%;
  max-width: 430px;
  background-color: var(--cream-bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 20px 60px rgba(25, 38, 20, 0.18);
}

@media (max-width: 480px) {
  body {
    background: var(--cream-bg);
  }
  .wedding-wrapper {
    max-width: 100%;
    box-shadow: none;
  }
}

/* ==========================================================================
   TOP APP BAR & FLOATING MUSIC BUTTON
   ========================================================================== */
.top-nav-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 46px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(50, 75, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.top-nav-btn {
  background: none;
  border: none;
  color: #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.top-nav-btn:hover {
  opacity: 1;
}

.top-nav-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f241d;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Floating Play/Pause Music Button (Top-Right of Content) */
.music-toggle-btn {
  position: fixed;
  top: 58px;
  right: max(14px, calc(50vw - 215px + 14px));
  z-index: 95;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(35, 52, 29, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, background 0.3s ease;
}

@media (max-width: 480px) {
  .music-toggle-btn {
    right: 14px;
  }
}

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

.music-toggle-btn.playing {
  background: rgba(50, 75, 42, 0.72);
  animation: musicPulseRing 2.2s infinite;
}

.music-toggle-btn.playing .music-icon-inner {
  animation: slowSpin 6s linear infinite;
}

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

@keyframes musicPulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55), 0 4px 14px rgba(0, 0, 0, 0.22);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0), 0 4px 14px rgba(0, 0, 0, 0.22);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 4px 14px rgba(0, 0, 0, 0.22);
  }
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.reveal-zoom {
  transform: scale(0.94) translateY(18px);
}

.reveal.reveal-left {
  transform: translateX(-28px) rotate(-8deg);
}

.reveal.reveal-right {
  transform: translateX(28px) rotate(8deg);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal.reveal-left.visible {
  transform: translateX(0) rotate(-4.5deg);
}

.reveal.reveal-right.visible {
  transform: translateX(0) rotate(4.5deg);
}

.delay-100 { transition-delay: 0.12s; }
.delay-200 { transition-delay: 0.24s; }
.delay-300 { transition-delay: 0.36s; }
.delay-400 { transition-delay: 0.48s; }

/* ==========================================================================
   SECTION 1: HERO COVER & SAVE THE DATE
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--cream-bg);
}

.hero-image-container {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
  background-color: #1f2e1b;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.03);
  animation: heroKenBurns 14s ease-out forwards;
}

@keyframes heroKenBurns {
  0% { transform: scale(1.08); }
  100% { transform: scale(1.0); }
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0) 45%,
    rgba(12, 22, 10, 0.58) 100%
  );
  pointer-events: none;
}

.hero-names-overlay {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  padding: 0 20px;
  color: #ffffff;
  text-align: center;
  z-index: 2;
  user-select: none;
}

.hero-name-top {
  font-family: var(--font-serif);
  font-size: 74px;
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  margin-left: -18px;
}

.hero-name-bottom-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.hero-amp {
  font-family: var(--font-script);
  font-size: 56px;
  font-weight: 400;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-6px) rotate(-8deg);
}

.hero-name-bottom {
  font-family: var(--font-serif);
  font-size: 74px;
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Save The Date Intro Block below Hero Photo */
.hero-intro-block {
  position: relative;
  padding: 36px 24px 34px;
  text-align: center;
  overflow: hidden;
  background-color: var(--cream-bg);
}

.botanical-watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.28;
  z-index: 0;
}

.botanical-hero-left {
  width: 210px;
  bottom: -24px;
  left: -34px;
  transform: rotate(95deg);
}

.hero-slogan {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--olive-text);
  text-transform: uppercase;
}

.hero-save-the-date {
  position: relative;
  z-index: 1;
  font-family: var(--font-script);
  font-size: 38px;
  color: var(--olive-muted);
  margin-top: 14px;
  line-height: 1.1;
}

/* ==========================================================================
   SECTION 2: FRAMED PORTRAIT & OLIVE GREEN CALENDAR
   ========================================================================== */
.calendar-photo-wrapper {
  position: relative;
  padding: 12px 46px 38px;
  text-align: center;
  overflow: hidden;
}

.botanical-calendar-left {
  width: 220px;
  top: 10px;
  left: -58px;
  transform: rotate(15deg);
  opacity: 0.32;
}

.calendar-portrait-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(38, 56, 30, 0.14);
  background: #e5e4df;
}

.calendar-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.6s ease;
}

.calendar-portrait-frame:hover img {
  transform: scale(1.03);
}

.calendar-green-section {
  background-color: var(--olive-primary);
  color: var(--white);
  padding: 36px 22px 42px;
  text-align: center;
}

.calendar-month-script {
  font-family: var(--font-script);
  font-size: 48px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 18px;
  line-height: 1;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  padding-bottom: 12px;
  margin-bottom: 6px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 14px;
  align-items: center;
  justify-items: center;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 500;
}

.calendar-day-cell {
  position: relative;
  width: 38px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
}

.calendar-day-cell.wedding-highlight {
  font-weight: 700;
  color: #ffffff;
  z-index: 1;
}

.heart-ring-svg {
  position: absolute;
  width: 44px;
  height: 42px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  pointer-events: none;
  animation: heartBeat 2.2s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: translate(-50%, -48%) scale(1); }
  50% { transform: translate(-50%, -48%) scale(1.12); }
}

/* ==========================================================================
   SECTION 3: INVITATION, POLAROIDS & PARENTS INFO
   ========================================================================== */
.invitation-section {
  position: relative;
  padding: 44px 20px 36px;
  text-align: center;
  background-color: var(--cream-bg);
  overflow: hidden;
}

.invitation-subtitle {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.65;
  color: var(--olive-text);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.invitation-couple-names {
  position: relative;
  padding: 6px 0 14px;
  margin-bottom: 24px;
}

.invitation-name-line {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--olive-text);
  text-transform: uppercase;
  line-height: 1.25;
  position: relative;
  z-index: 2;
}

.invitation-bg-amp {
  font-family: var(--font-script);
  font-size: 86px;
  color: rgba(50, 75, 42, 0.24);
  line-height: 0.55;
  margin: -4px 0;
  position: relative;
  z-index: 1;
  user-select: none;
}

/* Two Tilted Polaroid Cards */
.polaroid-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 6px 34px;
  position: relative;
}

.polaroid-card {
  width: 47%;
  background: #ffffff;
  padding: 8px 8px 28px;
  box-shadow: 0 10px 28px rgba(32, 45, 27, 0.14),
              0 2px 6px rgba(32, 45, 27, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.polaroid-card.groom-card {
  margin-top: 22px;
  transform: rotate(-4.5deg);
}

.polaroid-card.bride-card {
  margin-top: 0;
  transform: rotate(4.5deg);
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.04) !important;
  z-index: 5;
  box-shadow: 0 16px 36px rgba(32, 45, 27, 0.22);
}

.polaroid-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 3.6;
  overflow: hidden;
  background: #eae8e3;
}

.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two-Column Parents Info (NHÀ GÁI | NHÀ TRAI) */
.families-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: stretch;
  margin-top: 8px;
  padding: 6px 4px;
}

.family-divider {
  background-color: var(--olive-text);
  opacity: 0.65;
  width: 1px;
}

.family-col {
  padding: 2px 10px;
  text-align: center;
}

.family-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--olive-text);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.family-parent {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--olive-text);
}

.family-location {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--olive-muted);
  margin-top: 2px;
}

/* ==========================================================================
   SECTION 4: WEDDING CEREMONY DATE, LUNAR DATE & VENUE MAP
   ========================================================================== */
.ceremony-section {
  padding: 26px 22px 42px;
  text-align: center;
  background-color: var(--cream-bg);
}

.olive-branch-divider {
  width: 118px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.ceremony-time-header {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--olive-text);
  text-transform: uppercase;
}

.ceremony-weekday {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--olive-text);
  margin-top: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* THÁNG 11 | 28 | NĂM 2026 */
.ceremony-date-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 310px;
  margin: 0 auto;
}

.date-side-col {
  flex: 1;
  border-top: 1px solid rgba(44, 62, 38, 0.55);
  border-bottom: 1px solid rgba(44, 62, 38, 0.55);
  padding: 7px 4px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--olive-text);
  text-transform: uppercase;
}

.date-center-day {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 600;
  line-height: 0.9;
  color: var(--olive-primary);
  padding: 0 2px;
}

.ceremony-lunar-date {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  color: var(--olive-muted);
  margin-top: 14px;
}

.wedding-rings-img {
  width: 78px;
  height: auto;
  margin: 26px auto 22px;
  display: block;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--olive-text);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.venue-address {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--olive-muted);
  max-width: 310px;
  margin: 0 auto 20px;
}

.directions-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--olive-primary);
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.directions-link-btn:hover,
.directions-link-btn:active {
  background: rgba(50, 75, 42, 0.08);
  border-color: rgba(50, 75, 42, 0.25);
  transform: translateY(-1px);
}

.pin-icon {
  width: 18px;
  height: 18px;
  fill: var(--olive-primary);
}

/* ==========================================================================
   SECTION 5: TIMELINE
   ========================================================================== */
.timeline-section {
  background-color: var(--cream-bg);
}

.timeline-banner-wrap {
  position: relative;
  width: 100%;
  height: 330px;
  overflow: hidden;
}

.timeline-banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.timeline-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(15, 24, 12, 0.55) 100%
  );
}

.timeline-script-title {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: 54px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
  line-height: 1;
}

.timeline-list {
  padding: 36px 24px 42px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 52px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.timeline-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-icon-box img {
  max-width: 56px;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.timeline-time {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--olive-text);
  text-align: center;
}

.timeline-content {
  padding-left: 4px;
}

.timeline-event-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--olive-text);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline-event-desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--olive-muted);
}

/* ==========================================================================
   SECTION 6: OUR MEMORIES GALLERY (Olive Green Background)
   ========================================================================== */
.memories-section {
  background-color: var(--olive-primary);
  color: var(--white);
  padding: 38px 18px 44px;
}

.memories-header-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}

.memories-script-title {
  font-family: var(--font-script);
  font-size: 46px;
  font-weight: 400;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1;
}

.memories-header-line {
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.65);
  transform: translateY(-6px);
}

.memories-description {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
  text-align: left;
}

/* Exact Editorial Grid from Video */
.memories-gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Row 1: Full-width horizontal image */
.gallery-row-wide {
  width: 100%;
  aspect-ratio: 16 / 10.8;
}

/* Row 2: Left tall portrait + Right 2 stacked portraits */
.gallery-row-asymmetric {
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  gap: 10px;
  height: 340px;
}

.gallery-col-stacked {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 100%;
}

/* Row 3: Two equal vertical portraits */
.gallery-row-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 245px;
}

/* ==========================================================================
   SECTION 7: RSVP FORM & MỪNG CƯỚI + COUNTDOWN
   ========================================================================== */
.rsvp-section {
  position: relative;
  padding: 40px 20px 34px;
  background-color: var(--cream-bg);
  overflow: hidden;
}

.botanical-rsvp-top {
  width: 220px;
  top: -15px;
  left: -35px;
  opacity: 0.22;
}

.botanical-rsvp-right {
  width: 230px;
  bottom: 120px;
  right: -55px;
  transform: scaleX(-1) rotate(25deg);
  opacity: 0.22;
}

.rsvp-intro-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  color: var(--olive-text);
  margin-bottom: 24px;
  padding: 0 6px;
}

.rsvp-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.rsvp-input,
.rsvp-textarea,
.rsvp-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--olive-text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--olive-border);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.rsvp-input {
  height: 44px;
  border-radius: 999px;
  padding: 0 18px;
}

.rsvp-textarea {
  min-height: 110px;
  border-radius: 18px;
  padding: 14px 18px;
  resize: vertical;
}

.rsvp-select-wrap {
  position: relative;
}

.rsvp-select {
  height: 44px;
  border-radius: 999px;
  padding: 0 38px 0 18px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 10px;
  color: var(--olive-text);
}

.rsvp-input::placeholder,
.rsvp-textarea::placeholder {
  color: var(--olive-muted);
  opacity: 0.85;
}

.rsvp-input:focus,
.rsvp-textarea:focus,
.rsvp-select:focus {
  background: #ffffff;
  border-color: var(--olive-primary);
  box-shadow: 0 0 0 3px rgba(50, 75, 42, 0.12);
}

.btn-pill-outline {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--olive-border);
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--olive-text);
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.25s ease;
}

.btn-pill-outline:hover,
.btn-pill-outline:active {
  background: #ffffff;
  border-color: var(--olive-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(50, 75, 42, 0.12);
}

.btn-pill-solid {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  background: var(--olive-primary);
  border: 1px solid var(--olive-primary);
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-pill-solid:hover,
.btn-pill-solid:active {
  background: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(50, 75, 42, 0.26);
}

/* Recent Guestbook Wishes List */
.wishes-feed-wrapper {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  border-top: 1px dashed rgba(50, 75, 42, 0.22);
  padding-top: 18px;
}

.wishes-feed-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive-muted);
  text-align: center;
  margin-bottom: 12px;
}

.wishes-feed-list {
  max-height: 190px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.wish-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(50, 75, 42, 0.14);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--font-body);
}

.wish-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.wish-author {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--olive-primary);
}

.wish-meta {
  font-size: 11.5px;
  color: var(--olive-muted);
}

.wish-message {
  font-size: 14px;
  color: var(--olive-text);
  line-height: 1.45;
}

/* ==========================================================================
   SECTION 8: COUNTDOWN TIMER
   ========================================================================== */
.countdown-block {
  position: relative;
  z-index: 1;
  padding: 38px 10px 10px;
  text-align: center;
}

.countdown-script-title {
  font-family: var(--font-script);
  font-size: 52px;
  font-weight: 400;
  color: var(--olive-text);
  margin-bottom: 10px;
  line-height: 1;
}

.countdown-digits-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--olive-text);
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive-muted);
  margin-top: 2px;
}

.countdown-colon {
  font-size: 32px;
  color: var(--olive-muted);
  transform: translateY(-4px);
}

/* ==========================================================================
   SECTION 9: THANK YOU FOOTER BANNER
   ========================================================================== */
.thankyou-footer-section {
  background-color: var(--cream-bg);
}

.thankyou-photo-banner {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.thankyou-photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thankyou-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 15, 0.46);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px 18px;
  text-align: center;
  color: #ffffff;
}

.thankyou-quote {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.thankyou-script-sign {
  font-family: var(--font-script);
  font-size: 44px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  line-height: 1;
}

.footer-credit-bar {
  padding: 20px 16px 26px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--olive-muted);
  text-transform: uppercase;
  background: #ffffff;
}

/* ==========================================================================
   MODALS: 1) "BEST DAY EVER - THANK YOU!" & 2) "MỪNG CƯỚI (VIETQR)" & 3) LIGHTBOX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 28, 17, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  background: #ffffff;
  padding: 24px 20px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  transform: scale(0.92) translateY(14px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #222;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal 1: Best Day Ever (Exact match to frame_024.jpg) */
.botanical-modal-watermark {
  position: absolute;
  top: -18px;
  left: -26px;
  width: 210px;
  opacity: 0.22;
  pointer-events: none;
}

.modal-best-day-header {
  position: relative;
  z-index: 2;
  text-align: right;
  padding-right: 18px;
  margin-top: 8px;
}

.best-day-lines {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.45;
  color: var(--olive-text);
  text-transform: uppercase;
}

.best-day-underline {
  width: 58px;
  height: 1.5px;
  background: var(--olive-text);
  margin: 8px 0 6px auto;
}

.modal-thankyou-script {
  font-family: var(--font-script);
  font-size: 42px;
  color: var(--olive-text);
  text-align: right;
  line-height: 1;
  margin-bottom: 10px;
  padding-right: 6px;
}

.modal-photo-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 16px;
}

.modal-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thankyou-message {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--olive-text);
  text-align: center;
  padding: 0 6px;
  margin-bottom: 14px;
}

.modal-date-stamp {
  position: relative;
  z-index: 2;
  text-align: right;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--olive-muted);
}

/* Modal 2: Hộp Mừng Cưới (VietQR) */
.gift-modal-title {
  font-family: var(--font-script);
  font-size: 42px;
  color: var(--olive-primary);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 4px;
}

.gift-modal-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--olive-muted);
  text-align: center;
  margin-bottom: 18px;
}

.gift-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.gift-tab-btn {
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid var(--olive-border);
  background: #ffffff;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--olive-text);
  cursor: pointer;
  transition: all 0.2s;
}

.gift-tab-btn.active {
  background: var(--olive-primary);
  border-color: var(--olive-primary);
  color: #ffffff;
}

.gift-qr-box {
  background: var(--cream-bg);
  border: 1px solid rgba(50, 75, 42, 0.16);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.gift-qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.gift-bank-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--olive-primary);
  text-transform: uppercase;
}

.gift-holder-name {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--olive-text);
  margin: 3px 0;
}

.gift-acc-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px dashed var(--olive-border);
  border-radius: 999px;
  padding: 5px 14px;
  margin-top: 8px;
}

.gift-acc-number {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--olive-text);
}

.copy-acc-btn {
  border: none;
  background: var(--olive-primary);
  color: #fff;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

/* Lightbox Modal */
.lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* Falling Petals Canvas */
#petals-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(37, 56, 31, 0.94);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

/* Mặc định ẩn menu điều hướng Desktop trên màn hình Mobile (< 960px) */
.desktop-nav-links {
  display: none;
}

/* ==========================================================================
   WEB / DESKTOP RESPONSIVE LAYOUT (@media min-width: 960px)
   Hoàn toàn độc lập, giữ nguyên 100% giao diện Mobile ở < 960px
   ========================================================================== */
@media (min-width: 960px) {
  body {
    padding: 28px 24px 48px;
  }

  .wedding-wrapper {
    max-width: 1140px;
    border-radius: 18px;
    overflow-x: clip;
    box-shadow: 0 28px 80px rgba(20, 32, 16, 0.22);
  }

  /* 1. Top Nav Bar trên Web */
  .top-nav-bar {
    height: 58px;
    padding: 0 36px;
    border-radius: 18px 18px 0 0;
  }

  .top-nav-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--olive-primary);
  }

  .desktop-nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
  }

  .desktop-nav-links a {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--olive-text);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .desktop-nav-links a:hover {
    color: var(--olive-primary);
    text-decoration: underline;
    text-underline-offset: 5px;
  }

  .music-toggle-btn {
    top: 98px;
    right: max(28px, calc(50vw - 570px + 22px));
    width: 44px;
    height: 44px;
  }

  /* 2. Hero Section: Split 2 cột (Trái: Ảnh cưới lớn | Phải: Save the date) */
  .hero-section {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 680px;
    align-items: stretch;
  }

  .hero-image-container {
    height: 100%;
    min-height: 680px;
  }

  .hero-names-overlay {
    bottom: 34px;
  }

  .hero-name-top,
  .hero-name-bottom {
    font-size: 88px;
  }

  .hero-amp {
    font-size: 66px;
  }

  .hero-intro-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 64px 52px;
    border-left: 1px solid rgba(50, 75, 42, 0.08);
  }

  .botanical-hero-left {
    width: 310px;
    bottom: -36px;
    left: -42px;
  }

  .hero-slogan {
    font-size: 28px;
    line-height: 1.55;
    letter-spacing: 0.08em;
  }

  .hero-save-the-date {
    font-size: 52px;
    margin-top: 22px;
  }

  /* 3. Calendar Section: 2 cột ngang (Trái: Ảnh khung đứng | Phải: Lịch Tháng 11) */
  .calendar-section {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
    border-top: 1px solid rgba(50, 75, 42, 0.08);
  }

  .calendar-photo-wrapper {
    padding: 56px 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f6f4ef;
  }

  .botanical-calendar-left {
    width: 280px;
    top: 18px;
    left: -48px;
  }

  .calendar-portrait-frame {
    max-width: 380px;
  }

  .calendar-green-section {
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .calendar-month-script {
    font-size: 60px;
    margin-bottom: 24px;
  }

  .calendar-weekdays {
    font-size: 12px;
    padding-bottom: 16px;
  }

  .calendar-days-grid {
    row-gap: 18px;
    font-size: 18px;
  }

  .calendar-day-cell {
    width: 44px;
    height: 42px;
  }

  .heart-ring-svg {
    width: 50px;
    height: 48px;
  }

  /* 4. Invitation, Polaroid & Hai Họ: 2 cột tạp chí */
  .invitation-section {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
      "sub polaroids"
      "names polaroids"
      "families polaroids";
    align-items: center;
    column-gap: 56px;
    padding: 84px 68px;
    border-top: 1px solid rgba(50, 75, 42, 0.08);
  }

  .invitation-subtitle {
    grid-area: sub;
    font-size: 17px;
    margin-bottom: 16px;
  }

  .invitation-couple-names {
    grid-area: names;
    margin-bottom: 28px;
  }

  .invitation-name-line {
    font-size: 46px;
  }

  .invitation-bg-amp {
    font-size: 104px;
  }

  .families-grid {
    grid-area: families;
    padding: 14px 0 0;
    border-top: 1px solid rgba(50, 75, 42, 0.12);
  }

  .family-title {
    font-size: 17px;
  }

  .family-parent {
    font-size: 16.5px;
  }

  .family-location {
    font-size: 15.5px;
  }

  .polaroid-pair {
    grid-area: polaroids;
    padding: 10px;
    gap: 22px;
  }

  .polaroid-card {
    width: 48%;
    padding: 12px 12px 36px;
  }

  /* 5. Ceremony Date & Venue: Khối trung tâm sang trọng */
  .ceremony-section {
    padding: 76px 80px;
    background: linear-gradient(180deg, #f8f6f1 0%, #fcfbf9 100%);
    border-top: 1px solid rgba(50, 75, 42, 0.08);
    border-bottom: 1px solid rgba(50, 75, 42, 0.08);
  }

  .olive-branch-divider {
    width: 150px;
    margin-bottom: 24px;
  }

  .ceremony-time-header {
    font-size: 19px;
  }

  .ceremony-weekday {
    font-size: 21px;
    margin-top: 24px;
  }

  .ceremony-date-banner {
    max-width: 420px;
    gap: 24px;
  }

  .date-side-col {
    font-size: 18px;
    padding: 9px 8px;
  }

  .date-center-day {
    font-size: 68px;
  }

  .ceremony-lunar-date {
    font-size: 17px;
  }

  .wedding-rings-img {
    width: 96px;
    margin: 30px auto 26px;
  }

  .venue-name {
    font-size: 24px;
  }

  .venue-address {
    font-size: 17px;
    max-width: 480px;
  }

  .directions-link-btn {
    font-size: 17px;
    padding: 11px 28px;
    border-color: rgba(50, 75, 42, 0.28);
  }

  /* 6. Timeline Section: 2 cột (Trái: Ảnh Banner | Phải: Các mốc giờ) */
  .timeline-section {
    display: grid;
    grid-template-columns: 0.96fr 1.04fr;
    align-items: stretch;
  }

  .timeline-banner-wrap {
    height: auto;
    min-height: 470px;
  }

  .timeline-script-title {
    font-size: 68px;
    bottom: 24px;
  }

  .timeline-list {
    padding: 64px 58px;
    justify-content: center;
    gap: 38px;
  }

  .timeline-item {
    grid-template-columns: 76px 64px 1fr;
    gap: 14px;
  }

  .timeline-icon-box img {
    max-width: 66px;
    max-height: 64px;
  }

  .timeline-time {
    font-size: 21px;
  }

  .timeline-event-title {
    font-size: 18px;
  }

  .timeline-event-desc {
    font-size: 16px;
  }

  /* 7. Our Memories Gallery: Bento Grid 2 cột lớn trên Web */
  .memories-section {
    padding: 76px 68px 84px;
  }

  .memories-script-title {
    font-size: 60px;
  }

  .memories-description {
    max-width: 720px;
    font-size: 16px;
    margin-bottom: 36px;
  }

  .memories-gallery-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.15fr;
    grid-template-rows: 290px 290px;
    gap: 18px;
  }

  .gallery-row-wide {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    aspect-ratio: auto;
  }

  .gallery-row-pair {
    grid-column: 1;
    grid-row: 2;
    height: 100%;
    gap: 18px;
  }

  .gallery-row-asymmetric {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 100%;
    gap: 18px;
  }

  /* 8. RSVP, Sổ Lưu Bút & Countdown: Chia 2 cột cân đối */
  .rsvp-section {
    display: grid;
    grid-template-columns: 1.04fr 0.96fr;
    grid-template-areas:
      "intro countdown"
      "form wishes";
    column-gap: 60px;
    row-gap: 20px;
    padding: 80px 68px;
    align-items: start;
  }

  .rsvp-intro-text {
    grid-area: intro;
    text-align: left;
    font-size: 17px;
    padding: 0;
    margin-bottom: 6px;
  }

  .rsvp-form {
    grid-area: form;
    gap: 15px;
  }

  .countdown-block {
    grid-area: countdown;
    padding: 0 0 22px;
    border-bottom: 1px dashed rgba(50, 75, 42, 0.24);
  }

  .countdown-script-title {
    font-size: 58px;
  }

  .countdown-digits-row {
    font-size: 46px;
    gap: 12px;
  }

  .wishes-feed-wrapper {
    grid-area: wishes;
    margin-top: 0;
    border-top: none;
    padding-top: 4px;
  }

  .wishes-feed-title {
    font-size: 15.5px;
    margin-bottom: 14px;
  }

  .wishes-feed-list {
    max-height: 295px;
  }

  /* 9. Thank You Banner & Footer */
  .thankyou-photo-banner {
    height: 390px;
  }

  .thankyou-overlay {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 36px;
  }

  .thankyou-quote {
    font-size: 17.5px;
  }

  .thankyou-script-sign {
    font-size: 58px;
  }

  /* Modals trên Desktop */
  .modal-card {
    max-width: 460px;
    padding: 30px 28px 32px;
    border-radius: 12px;
  }
}
