/* ==========================================================================
   YourCallMemo — Wedding Online Invitation Stylesheet
   ─────────────────────────────────────────────────────────────
   Crafted by yourcallmemo. (ycm) © 2026
   https://yourcallmemo.my
   Template ID: ycm-ecard-bridgerton-v1
   Unauthorised redistribution of this stylesheet is prohibited.
   ─────────────────────────────────────────────────────────────
   Theme Palette (As Specified in Image Reference):
   - Butter Cream:  #F3E5A8
   - Sage Green:    #A8B39A
   - Champagne Gold:#C9A56A
   - Warm Mocha:    #8B6A4E
   ========================================================================== */

:root {
  /* ycm design tokens — yourcallmemo template system */
  --ycm-butter-cream: #F3E5A8;
  --ycm-sage-green: #A8B39A;
  --ycm-champagne-gold: #C9A56A;
  --ycm-warm-mocha: #8B6A4E;
  --ycm-dark-mocha: #5e432f;
  --ycm-light-cream: #fdfbf7;
  --ycm-soft-beige: #f8f4eb;

  /* Aliases for backward compatibility */
  --butter-cream: var(--ycm-butter-cream);
  --sage-green: var(--ycm-sage-green);
  --champagne-gold: var(--ycm-champagne-gold);
  --warm-mocha: var(--ycm-warm-mocha);
  --dark-mocha: var(--ycm-dark-mocha);
  --light-cream: var(--ycm-light-cream);
  --soft-beige: var(--ycm-soft-beige);
  
  --font-serif: 'Cormorant Garamond', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  
  --shadow-soft: 0 10px 30px rgba(139, 106, 78, 0.08);
  --shadow-gold: 0 8px 25px rgba(201, 165, 106, 0.25);

  /* ycm template marker — do not remove */
  --ycm-template: 'ycm-ecard-bridgerton-v1';
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  font-family: var(--font-sans);
  background-color: var(--light-cream);
  color: var(--warm-mocha);
  overflow-x: hidden;
  line-height: 1.6;
}

body {
  width: 100%;
  /* Do NOT set height:100% — it caps the scroll container and breaks scroll past first viewport */
  font-family: var(--font-sans);
  background-color: var(--light-cream);
  color: var(--warm-mocha);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ycm — Fullscreen Background Wallpaper Pattern */
.ycm-bg-pattern,
.bg-wedding-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('image/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0.95;
}

/* ycm build signature — yourcallmemo.my */
[data-ycm-build] {
  --ycm-verified: 1;
}

/* Helper Utilities */
.bg-light-soft {
  background-color: rgba(248, 244, 235, 0.7);
}

.max-width-500 {
  max-width: 500px;
}

/* ==========================================================================
   1. LANDING COVER STAGE (STAGE 1 - BEFORE FLIP VIEW)
   ycm — yourcallmemo ecard system
   ========================================================================== */

/* ycm-cover-stage */
.ycm-landing-cover,
.landing-cover-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-image: url('image/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease-in-out;
  overflow-y: auto;
}

/* Cover Exit State */
.landing-cover-wrapper.cover-opened {
  transform: translateY(-100%) scale(0.98);
  opacity: 0;
  pointer-events: none;
}

/* Central Card Column Container */
.cover-card-col {
  position: relative;
  min-height: 100vh;
  padding: 35px 25px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  background: rgba(253, 251, 247, 0.25);
  overflow: hidden;
}

/* Side Filigree Dual Lines — ONLY for col-xl (≥ 1200px) on Before Flip View */
@media (min-width: 1200px) {
  .cover-card-col {
    overflow: visible;
  }

  .cover-card-col::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -3px;
    width: 5px;
    border-left: 1px solid rgba(201, 165, 106, 0.55);
    border-right: 1px solid rgba(201, 165, 106, 0.55);
    background: transparent;
    pointer-events: none;
    z-index: 20;
  }

  .cover-card-col::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -3px;
    width: 5px;
    border-left: 1px solid rgba(201, 165, 106, 0.55);
    border-right: 1px solid rgba(201, 165, 106, 0.55);
    background: transparent;
    pointer-events: none;
    z-index: 20;
  }
}

/* Corner Florals (PNG Assets) */
.corner-floral {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 4px 10px rgba(139, 106, 78, 0.15));
}

.corner-top-left { top: 0; left: 0; width: 220px; max-width: 45%; }
.corner-top-right { top: 0; right: 0; width: 220px; max-width: 45%; }
.corner-bottom-left { bottom: 0; left: 0; width: 220px; max-width: 45%; }
.corner-bottom-right { bottom: 0; right: 0; width: 220px; max-width: 45%; }

/* Arched Header Text ("YOU ARE CORDIALLY INVITED") */
.cover-header-arch {
  width: 100%;
  max-width: 380px;
  margin-top: 5px;
  margin-bottom: -20px;
  position: relative;
  z-index: 10;
}

.cover-header-arch svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.cover-header-arch text {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 600;
  fill: var(--warm-mocha);
  letter-spacing: 5px;
}

/* Monogram Badge Section with middle.png */
.cover-monogram-section {
  position: relative;
  width: 100%;
  height: auto;
  margin: -20px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  overflow: visible;
}

.wreath-bg-img {
  width: 90%;
  max-width: 480px;
  min-width: 200px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(139, 106, 78, 0.18));
  position: relative;
  z-index: 2;
  display: block;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .wreath-bg-img {
    max-width: 380px;
  }
}

/* Names Section */
.cover-names-section {
  position: relative;
  z-index: 10;
  margin: 5px 0;
}

.cover-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--champagne-gold);
  font-weight: 600;
  margin-bottom: 5px;
}

.cover-couple-name {
  font-family: var(--font-script);
  font-size: 4rem;
  color: var(--warm-mocha);
  line-height: 1.1;
  text-shadow: 1px 2px 4px rgba(255, 255, 255, 0.9);
  margin: 6px 0;
}

.gold-divider-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px auto;
  width: 65%;
}

.gold-divider-line::before,
.gold-divider-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--champagne-gold), transparent);
}

.gold-divider-diamond {
  width: 8px;
  height: 8px;
  background-color: var(--champagne-gold);
  transform: rotate(45deg);
}

.cover-families-text {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 2px;
  color: var(--warm-mocha);
  text-transform: uppercase;
  max-width: 90%;
  margin: 0 auto;
  font-weight: 500;
}

.cover-heart-bullet {
  color: var(--sage-green);
  font-size: 0.95rem;
  margin: 6px 0;
}

/* OPEN Button */
.cover-button-section {
  position: relative;
  z-index: 10;
  margin-top: 10px;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-open-invitation {
  position: relative;
  background: linear-gradient(135deg, #c9a56a 0%, #8b6a4e 100%);
  color: var(--butter-cream);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 5px;
  padding: 12px 50px;
  border-radius: 50px;
  border: 2px solid var(--butter-cream);
  box-shadow: 0 8px 22px rgba(139, 106, 78, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  outline: none;
  overflow: hidden;
}

.btn-open-invitation:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(139, 106, 78, 0.45), 0 0 15px rgba(201, 165, 106, 0.6);
  border-color: #ffffff;
  color: #ffffff;
}

.cover-flip-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--warm-mocha);
  margin-top: 8px;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ycm brand footer watermark */
.ycm-brand-footer,
.cover-brand-footer {
  position: relative;
  z-index: 10;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(139, 106, 78, 0.5);
  text-transform: lowercase;
  margin-top: 6px;
  margin-bottom: 4px;
}

/* ==========================================================================
   2. FLOATING AUDIO CONTROL (FIXED BOTTOM-LEFT)
   ========================================================================== */

.audio-control-fixed {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 10005;
}

.audio-btn-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--warm-mocha), var(--dark-mocha));
  border: 2px solid var(--champagne-gold);
  box-shadow: 0 6px 18px rgba(139, 106, 78, 0.35);
  color: var(--butter-cream);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.audio-btn-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(201, 165, 106, 0.5);
  border-color: var(--butter-cream);
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.music-bar {
  width: 3px;
  background-color: var(--butter-cream);
  border-radius: 2px;
  height: 4px;
  transition: height 0.3s ease;
}

.audio-playing .music-bar:nth-child(1) { animation: barBounce 1s ease-in-out infinite alternate; }
.audio-playing .music-bar:nth-child(2) { animation: barBounce 1.2s ease-in-out infinite alternate 0.2s; }
.audio-playing .music-bar:nth-child(3) { animation: barBounce 0.9s ease-in-out infinite alternate 0.4s; }

@keyframes barBounce {
  0% { height: 3px; }
  100% { height: 16px; }
}

/* ==========================================================================
   3. STAGE 2: INVITATION PANEL (`#invitation-main`)
   ycm — yourcallmemo ecard engine | ycm-ecard-bridgerton-v1
   ========================================================================== */

#invitation-main {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  padding-bottom: 60px;
  background-image: url('image/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
}

#invitation-main.show-content {
  display: block;
  opacity: 1;
}

/* ycm-invitation-card */
.ycm-invitation-card,
.main-content-card {
  background: rgba(253, 251, 247, 0.25);
  border-radius: 24px;
  box-shadow: 0 15px 45px rgba(139, 106, 78, 0.12), 0 0 0 1px rgba(201, 165, 106, 0.4);
  /* CRITICAL: Do NOT set overflow:hidden here — it breaks position:sticky on the navbar */
  overflow: visible;
  position: relative;
}

/* Decorative Top Band — needs its own wrapper with overflow:hidden for radius clipping */
.card-top-band-wrapper {
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.card-top-decorative-band {
  height: 6px;
  background: linear-gradient(90deg, var(--butter-cream) 0%, var(--champagne-gold) 50%, var(--warm-mocha) 100%);
  width: 100%;
}

/* STICKY NAVBAR HEADER — fixed to viewport top when invitation is open */
.sticky-invitation-nav {
  position: fixed;
  top: -80px; /* hidden off-screen initially */
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(253, 251, 247, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 165, 106, 0.4);
  padding: 8px 60px 8px 16px; /* right padding makes space for the absolute X button */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  box-shadow: none;
}

/* Active state: slides in from top when invitation opens */
.sticky-invitation-nav.nav-visible {
  top: 0;
  box-shadow: 0 2px 20px rgba(139, 106, 78, 0.15);
}

.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  padding: 4px 0;
  max-width: 900px;
  justify-content: center;
}

.nav-links-wrap::-webkit-scrollbar { display: none; }

/* FIX: Ensure navbar links do NOT render as default browser blue underlined links */
.nav-link-item,
a.nav-link-item,
a.nav-link-item:visited {
  font-family: var(--font-heading) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
  color: var(--warm-mocha) !important;
  text-decoration: none !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(201, 165, 106, 0.15) !important;
  border: 1px solid rgba(201, 165, 106, 0.25) !important;
}

.nav-link-item:hover,
.nav-link-item.active,
a.nav-link-item:hover,
a.nav-link-item.active {
  background: var(--champagne-gold) !important;
  color: #ffffff !important;
  border-color: var(--champagne-gold) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(201, 165, 106, 0.3) !important;
}

/* X Close button — absolutely positioned to right edge of fixed navbar */
.btn-close-invitation-icon {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: 1.5px solid var(--champagne-gold) !important;
  color: var(--warm-mocha) !important;
  font-size: 1.3rem !important;
  line-height: 1 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  z-index: 1 !important;
}

.btn-close-invitation-icon:hover {
  background: var(--warm-mocha) !important;
  color: #ffffff !important;
  border-color: var(--warm-mocha) !important;
}

/* SCROLLABLE CONTENT WRAPPER — add top padding to compensate fixed navbar height */
.invitation-scroll-content {
  position: relative;
  padding-top: 0; /* updated to 60px by JS when nav becomes fixed */
}

.section-divider-hr {
  position: relative;
  margin: 0;
  border: 0;
  height: 28px; /* space for the ornament */
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* The gradient lines */
.section-divider-hr::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201, 165, 106, 0.25) 15%,
    rgba(201, 165, 106, 0.65) 40%,
    rgba(201, 165, 106, 0.65) 60%,
    rgba(201, 165, 106, 0.25) 85%,
    transparent 100%
  );
}

/* The centered diamond ornament */
.section-divider-hr::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  font-size: 11px;
  color: var(--champagne-gold);
  background: rgba(253, 251, 247, 0.92);
  padding: 0 10px;
  line-height: 1;
  letter-spacing: 6px;
  text-shadow:
    0 0 8px rgba(201, 165, 106, 0.6),
    0 0 16px rgba(201, 165, 106, 0.3);
}

/* UNIFORM SECTION HEADERS */
.uniform-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--champagne-gold);
  text-transform: uppercase;
  font-weight: 600;
  display: block;
}

.section-main-title {
  font-family: var(--font-script);
  font-size: 3.4rem;
  color: var(--warm-mocha);
  margin-top: 2px;
  line-height: 1.2;
}

.section-icon-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.section-icon-divider span {
  width: 45px;
  height: 1px;
  background: var(--champagne-gold);
  opacity: 0.6;
}

.section-icon-divider i {
  font-size: 0.85rem;
  color: var(--sage-green);
}

/* HERO SECTION */
.hero-header-section {
  padding: 50px 20px 35px;
  background: linear-gradient(180deg, rgba(243, 229, 168, 0.3) 0%, rgba(253, 251, 247, 0) 100%);
}

.hero-names {
  font-family: var(--font-script);
  font-size: 3.8rem;
  color: var(--warm-mocha);
  margin: 5px 0;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--champagne-gold);
  font-weight: 600;
}

.countdown-box {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.countdown-item {
  background: #ffffff;
  border: 1px solid rgba(201, 165, 106, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 70px;
  box-shadow: var(--shadow-soft);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--warm-mocha);
}

.countdown-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sage-green);
  font-weight: 600;
}

/* SECTION 1: EVENT DETAIL (#event) */
.couple-presentation-row {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.person-frame-wrapper {
  width: 130px;
  height: 175px;
  position: relative;
  margin: 0 auto;
}

.person-capsule-frame {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  border: 3px solid var(--champagne-gold);
  padding: 4px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

.person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

/* FIX: Floral Twigs positioned outside overflow:hidden frame */
.floral-twig-svg {
  position: absolute;
  top: -10px;
  width: 45px;
  height: 70px;
  z-index: 10;
  pointer-events: none;
}

.twig-left { left: -16px; }
.twig-right { right: -16px; }

.person-name {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: var(--warm-mocha);
  margin-bottom: 2px;
}

.person-role-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--champagne-gold);
  text-transform: uppercase;
  font-weight: 600;
}

.couple-ampersand-divider {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ampersand-symbol {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--champagne-gold);
  line-height: 1;
}

@media (max-width: 576px) {
  .couple-presentation-row {
    max-width: 100%;
  }
  .person-frame-wrapper {
    width: 110px;
    height: 148px;
  }
  .person-name {
    font-size: 1.85rem;
  }
  .ampersand-symbol {
    font-size: 2.6rem;
  }
}

/* REDESIGNED FAMILY INFO BLOCK */
.family-info-block {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf6 50%, #f7f1e7 100%);
  border: 1px solid rgba(201, 165, 106, 0.4);
  border-radius: 24px;
  position: relative;
  box-shadow: 0 10px 30px rgba(139, 106, 78, 0.08), inset 0 0 0 4px rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.family-ornament-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.family-ornament-line {
  height: 1px;
  flex: 1;
  max-width: 80px;
  background: linear-gradient(90deg, transparent, var(--champagne-gold), transparent);
}

.family-intro-script {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--champagne-gold);
  line-height: 1.2;
}

.parents-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(201, 165, 106, 0.35);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(139, 106, 78, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.parents-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 165, 106, 0.18);
  border-color: var(--champagne-gold);
}

.parents-badge-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: var(--champagne-gold);
  text-transform: uppercase;
  font-weight: 700;
}

.parents-names {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--warm-mocha);
  line-height: 1.6;
  margin: 0;
}

.parents-names strong {
  font-weight: 600;
  color: var(--dark-mocha);
}

.parents-names span {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--champagne-gold);
}

.event-badge-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf5 100%);
  border: 1px solid rgba(201, 165, 106, 0.4);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.event-badge-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.event-badge-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--warm-mocha);
  margin-bottom: 8px;
}

.event-badge-venue {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-mocha);
  margin-bottom: 6px;
}

.event-badge-time {
  font-size: 0.88rem;
  color: var(--warm-mocha);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Ceremony Dress Code */
.event-badge-dresscode {
  background: rgba(201, 165, 106, 0.07);
  border: 1px dashed rgba(201, 165, 106, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  text-align: center;
}

.dresscode-title {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--warm-mocha);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dresscode-title i {
  color: var(--champagne-gold);
  font-size: 0.85rem;
}

.dresscode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.dresscode-col {
  background: #ffffff;
  border: 1px solid rgba(201, 165, 106, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(139, 106, 78, 0.04);
}

.dresscode-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--warm-mocha);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dresscode-label i {
  color: var(--champagne-gold);
  font-size: 0.78rem;
}

.dresscode-val {
  font-size: 0.82rem;
  color: var(--dark-mocha);
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .dresscode-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.btn-see-map {
  background: transparent;
  border: 1.5px solid var(--champagne-gold);
  color: var(--warm-mocha);
  padding: 8px 22px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-see-map:hover {
  background: var(--champagne-gold);
  color: #ffffff;
}

/* SECTION 2: RSVP (#rsvp) */
.custom-radio-box {
  padding-left: 0 !important;
  margin-bottom: 0;
}

.custom-radio-box input[type="radio"] {
  display: none !important;
}

.custom-radio-box label {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 165, 106, 0.4);
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  background: #ffffff;
  color: var(--warm-mocha);
  transition: all 0.25s ease;
  text-align: center;
  user-select: none;
}

.custom-radio-box label .status-icon {
  color: #a0a0a0;
  transition: color 0.25s ease;
}

.custom-radio-box label:hover {
  border-color: var(--champagne-gold);
  background-color: rgba(248, 244, 235, 0.5);
}

.custom-radio-box input:checked + label {
  background-color: var(--soft-beige);
  border-color: var(--champagne-gold);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(201, 165, 106, 0.18);
}

.custom-radio-box input#status-attend:checked + label .status-icon {
  color: #28a745;
}

.custom-radio-box input#status-decline:checked + label .status-icon {
  color: #dc3545;
}

.btn-theme-fill {
  background: var(--warm-mocha);
  color: var(--butter-cream);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-theme-fill:hover {
  background: var(--dark-mocha);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}

/* SECTION 3: GALLERY (#gallery) */
.gallery-item-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}

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

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(50, 22, 82, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #ffffff;
}

.gallery-item-card:hover .gallery-img,
.gallery-item-card:focus .gallery-img {
  transform: scale(1.08);
}

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

.search-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.overlay-caption {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* SECTION 4: GIFT (#gift) */
.qr-image-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--champagne-gold);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.qr-code-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-tap-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  background: rgba(50, 22, 82, 0.75);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 6px;
  font-weight: 500;
  letter-spacing: 1px;
}

.btn-gold-outline {
  border: 1px solid var(--champagne-gold);
  color: var(--warm-mocha);
  background: transparent;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* SECTION 5: WISHES (#wishes) */
.btn-leave-wish {
  background: linear-gradient(135deg, var(--champagne-gold), var(--warm-mocha));
  color: var(--butter-cream);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  border: none;
  border-radius: 30px;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-leave-wish:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(201, 165, 106, 0.4);
  color: #ffffff;
}

.wishes-feed-container {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.wish-card-item {
  background: #ffffff;
  border: 1px solid rgba(201, 165, 106, 0.3);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}

.wish-author-name {
  font-weight: 600;
  color: var(--warm-mocha);
  font-size: 0.95rem;
}

.wish-timestamp {
  font-size: 0.75rem;
  color: #888888;
}

.wish-quote-text {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--dark-mocha);
  line-height: 1.5;
}

/* COUPLE REPLY IN WISHES FEED */
.wish-reply-block {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(201, 165, 106, 0.08);
  border-left: 3px solid var(--champagne-gold);
  border-radius: 10px;
}

.wish-reply-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 0;
}

.wish-reply-ring {
  font-size: 0.95rem;
}

.wish-reply-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: var(--champagne-gold);
  text-transform: uppercase;
}

.wish-reply-text {
  font-family: var(--font-serif);
  font-size: 0.98rem; /* EXACT SAME SIZE AS .wish-quote-text */
  color: var(--dark-mocha);
  line-height: 1.5;
  margin: 0;
}

/* SECTION 6: CONTACT (#contact) */
.contact-avatar-icon {
  font-size: 2.8rem;
}

.btn-contact-phone {
  display: inline-block;
  background: var(--soft-beige);
  color: var(--warm-mocha) !important;
  border: 1px solid var(--champagne-gold);
  padding: 10px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-contact-phone:hover {
  background: var(--warm-mocha);
  color: var(--butter-cream) !important;
}

/* CLOSE INVITATION FOOTER */
.close-invitation-footer {
  background-color: transparent;
  padding: 3rem 1.5rem 6.5rem;
  position: relative;
}

.close-footer-inner {
  max-width: 380px;
  margin: 0 auto;
  padding: 20px 18px 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 165, 106, 0.35);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(139, 106, 78, 0.08);
}

.btn-close-invitation-footer {
  background: #ffffff;
  border: 1.5px solid var(--warm-mocha);
  color: var(--warm-mocha);
  font-family: var(--font-heading);
  font-size: clamp(0.78rem, 3.2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 1.8px;
  border-radius: 30px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(139, 106, 78, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-close-invitation-footer:hover {
  background: var(--warm-mocha);
  color: var(--butter-cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 106, 78, 0.2);
}

.invitation-names-footer {
  font-family: var(--font-heading);
  font-size: clamp(0.84rem, 3.5vw, 0.96rem);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--warm-mocha);
  line-height: 1.5;
  margin-top: 4px;
}

/* ycm brand footer — yourcallmemo */
.ycm-main-brand-footer,
.main-brand-footer {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: rgba(139, 106, 78, 0.55);
  text-transform: uppercase;
  line-height: 1.5;
}

.footer-powered-text {
  font-size: 0.65rem;
  opacity: 0.85;
}

/* SCROLL-TO-TOP BUTTON */
.btn-scroll-top-floating {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--warm-mocha);
  color: var(--butter-cream);
  border: 1.5px solid var(--champagne-gold);
  box-shadow: 0 4px 15px rgba(50, 22, 82, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99;
  transition: all 0.3s ease;
}

.btn-scroll-top-floating:hover {
  transform: translateY(-3px);
  background: var(--dark-mocha);
  color: #ffffff;
}

@media (max-width: 576px) {
  .close-invitation-footer {
    padding: 2.5rem 1rem 5.5rem;
  }
  
  .close-footer-inner {
    padding: 16px 14px 14px;
    border-radius: 20px;
  }

  .btn-scroll-top-floating {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   4. CUSTOM MODALS SPECIFICATION
   ycm-modal-system — yourcallmemo
   ========================================================================== */

/* ycm-modal-backdrop */
.ycm-modal-backdrop,
.custom-modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(44, 37, 51, 0.75);
  backdrop-filter: blur(6px);
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-modal-backdrop:not(.d-none) {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal-card {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.custom-modal-backdrop:not(.d-none) .custom-modal-card {
  transform: translateY(0);
}

.btn-close-custom-modal {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #888888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-close-custom-modal:hover {
  color: var(--warm-mocha);
}

/* Gallery Lightbox Modal specifics */
#galleryModal {
  background: rgba(15, 10, 22, 0.92);
}

.lightbox-close-btn {
  position: absolute;
  top: 25px; right: 25px;
  color: #ffffff;
  font-size: 2.5rem;
  z-index: 20010;
}

.lightbox-container {
  max-width: 900px;
  width: 100%;
  padding: 0 60px;
}

.lightbox-active-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transition: opacity 0.25s ease;
}

.lightbox-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20005;
}

.lightbox-arrow-btn:hover {
  background: var(--champagne-gold);
  border-color: var(--champagne-gold);
  color: #ffffff;
}

.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

.lightbox-caption-text {
  color: var(--butter-cream);
  font-family: var(--font-heading);
  letter-spacing: 2px;
  font-size: 1.1rem;
}

/* Responsive Adjustments — ycm ecard system */
@media (max-width: 576px) {
  .cover-couple-name { font-size: 3.2rem; }
  .hero-names { font-size: 3rem; }
  .section-main-title { font-size: 2.8rem; }
  .lightbox-container { padding: 0 10px; }
  .lightbox-arrow-btn { width: 38px; height: 38px; font-size: 1rem; }
  .nav-link-item, a.nav-link-item { font-size: 0.74rem !important; padding: 5px 10px !important; }
}

/* ==========================================================================
   yourcallmemo (ycm) — End of Template Stylesheet
   Template: ycm-ecard-bridgerton-v1
   © 2026 yourcallmemo. All rights reserved.
   https://yourcallmemo.my
   ========================================================================== */
