/* ===================================
   Wedding Invitation — V2 Refactored
   Garden Botanical / Sage Green Theme
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Great+Vibes&family=Montserrat:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg-cream: #F5F0E8;
  --bg-warm: #EDE7DC;
  --bg-blush: #F0E0D6;
  --bg-dark-green: #2D3B2D;
  --bg-medium-green: #687b68;
  --text-brown: #4A3728;
  --text-dark: #2C1E12;
  --text-light: #7A6B5D;
  --accent-sage: #7B8F6B;
  --accent-sage-light: #9AAD8A;
  --accent-sage-dark: #5E7050;
  --accent-rose: #C9A89A;
  --accent-rose-light: #DBBFB3;
  --white: #FFFFFF;
  --white-overlay: rgba(255, 255, 255, 0.88);
  --shadow-soft: rgba(74, 55, 40, 0.08);

  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;

  --mobile-max: 430px;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  background: var(--bg-cream);
  color: var(--text-brown);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  transition: background-color 1.2s ease;
}

body.no-scroll {
  overflow: hidden;
}

/* ---------- Mobile Container ---------- */
.mobile-wrapper {
  width: 100%;
  max-width: var(--mobile-max);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.3);
}

section {
  background: transparent;
}

/* ---------- Fixed Global Assets ---------- */
.fixed-floral {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  width: 160px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

.floral-tl { top: -10px; left: calc(50% - (var(--mobile-max)/2) - 10px); }
.floral-tr { top: -10px; right: calc(50% - (var(--mobile-max)/2) - 10px); }
.floral-bl { bottom: -10px; left: calc(50% - (var(--mobile-max)/2) - 10px); }
.floral-br { bottom: -10px; right: calc(50% - (var(--mobile-max)/2) - 10px); transform: scaleX(-1); }

body.no-scroll .fixed-floral { opacity: 0; }

@media (max-width: 430px) {
  .floral-tl { left: -10px; }
  .floral-tr { right: -10px; }
  .floral-bl { left: -10px; }
  .floral-br { right: -10px; }
}

.section-corner-floral {
  position: absolute;
  width: 140px;
  height: auto;
  pointer-events: none;
  z-index: 2;
  opacity: 0.8;
}

.scf-tl { top: -10px; left: -10px; }
.scf-tr { top: -10px; right: -10px; transform: scaleX(-1); }
.scf-bl { bottom: -10px; left: -10px; }
.scf-br { bottom: -10px; right: -10px; transform: scaleX(-1); }

.floral-decor {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  width: 180px;
  height: auto;
  opacity: 0.95;
}

.floral-divider {
  display: block;
  margin: 1.2rem auto;
  width: 220px;
  max-width: 80%;
  height: auto;
}

.butterfly {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  animation: floatButterfly 6s ease-in-out infinite alternate;
}

.butterfly-sm { width: 35px; }
.butterfly-md { width: 45px; }

@keyframes floatButterfly {
  0%   { transform: translate(0, 0) rotate(-5deg); }
  50%  { transform: translate(-10px, -15px) rotate(5deg); }
  100% { transform: translate(10px, -5px) rotate(-8deg); }
}

/* ---------- Falling Leaves Canvas ---------- */
#leaves-canvas {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--mobile-max);
  height: 100%;
  pointer-events: none;
  z-index: 99;
  opacity: 0;
  transition: opacity 1s ease;
}

#leaves-canvas.active { opacity: 1; }

/* =====================
   SECTION 1: ENVELOPE
   ===================== */
.envelope-section {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--mobile-max);
  height: 100vh;
  height: 100dvh;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: var(--bg-cream);
  overflow: hidden;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.envelope-section.opened {
  transform: translateX(-50%) translateY(-100%);
  pointer-events: none;
}

.gate-bg {
  position: absolute;
  bottom: -5vh;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: auto;
  object-fit: cover;
  object-position: bottom;
  z-index: 1;
  opacity: 0.95;
}

.envelope-glass {
  position: relative;
  z-index: 5;
  width: 100%;
  margin-top: 15vh;
  padding: 1rem 1.5rem;
  text-align: center;
}

.envelope-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-sage-dark);
  margin-bottom: 0.5rem;
}

.envelope-couple-names {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--text-brown);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.envelope-date {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.envelope-invitee-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-sage);
  margin-top: 2rem;
  margin-bottom: 0.3rem;
}

.envelope-invitee-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 36px;
  border: none;
  border-radius: 50px;
  background: var(--accent-sage);
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(123, 143, 107, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.btn-primary:hover {
  background: var(--accent-sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 143, 107, 0.45);
}

.btn-outline {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--accent-sage);
  border-radius: 50px;
  background: transparent;
  color: var(--accent-sage-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--accent-sage);
  color: var(--white);
}

/* ---------- Envelope Entrance Animation ---------- */
.envelope-glass > * {
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}

.envelope-glass > *:nth-child(1) { animation-delay: 0.2s; }
.envelope-glass > *:nth-child(2) { animation-delay: 0.4s; }
.envelope-glass > *:nth-child(3) { animation-delay: 0.5s; }
.envelope-glass > *:nth-child(4) { animation-delay: 0.6s; }
.envelope-glass > *:nth-child(5) { animation-delay: 0.7s; }
.envelope-glass > *:nth-child(6) { animation-delay: 0.8s; }
.envelope-glass > *:nth-child(7) { animation-delay: 0.9s; }

/* =====================
   SECTION 2: COUNTDOWN
   ===================== */
.countdown-section {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  text-align: center;
  scroll-snap-align: start;
  overflow: hidden;
}

/* Ar-Rum Watermark Behind Countdown */
.arrum-watermark {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-width: 380px;
  text-align: center;
  opacity: var(--arrum-opacity, 0.12);
  font-family: var(--font-serif);
  font-size: clamp(0.55rem, 1.2vh, 0.85rem);
  font-style: italic;
  line-height: 1.7;
  color: var(--text-brown);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.arrum-attr {
  font-family: var(--font-sans);
  font-size: clamp(0.45rem, 0.9vh, 0.65rem);
  font-style: normal;
  letter-spacing: 2px;
  margin-top: 0.8rem;
}

.countdown-target-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-sage-dark);
  margin-bottom: 0.3rem;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-sage-dark);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--text-brown);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.countdown-timer {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 1.5rem 0;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 18px 12px;
  min-width: 72px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(123, 143, 107, 0.2);
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1;
}

.countdown-unit {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-sage-dark);
  margin-top: 8px;
}

.countdown-passed-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-brown);
  margin: 1.5rem 0;
}

.countdown-date-info {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--text-brown);
  margin-top: 0.5rem;
  line-height: 1.8;
}

.calendar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 1.2rem;
}

.btn-calendar {
  font-size: 0.55rem;
  padding: 10px 20px;
  letter-spacing: 1.5px;
}

/* =====================
   SECTION 3: BRIDE DETAILS
   ===================== */
.bride-section {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  text-align: center;
  position: relative;
  scroll-snap-align: start;
}

.bride-cards-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 2rem;
  width: 100%;
  max-width: 400px;
}

.bride-card {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bride-photo-container {
  width: 140px;
  height: 165px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bride-photo-frame-new {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  object-fit: cover;
}

.bride-photo-img {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 110px;
  height: 135px;
  object-fit: cover;
  z-index: 1;
  border-radius: 60px;
}

.bride-name-script {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--text-brown);
  margin-bottom: 0.4rem;
}

.bride-full-name {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bride-parents {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.5;
  min-height: 5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.bride-ampersand {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--accent-sage);
  align-self: center;
  display: block;
}

.sprig-decor {
  width: 40px;
  margin: 10px auto;
  display: block;
  opacity: 0.8;
}

/* =====================
   SECTION 4: WEDDING DETAILS (Parallax) — Side by Side
   ===================== */
.wedding-detail-section {
  position: relative;
  text-align: left;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  scroll-snap-align: start;
}

.wedding-section-header {
  position: relative;
  z-index: 5;
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 0.5rem;
  margin: 0 0.75rem;
}

.wedding-section-header .section-label {
  font-size: 0.55rem;
  letter-spacing: 3px;
  margin-bottom: 0.2rem;
}

.wedding-section-header .section-title {
  font-size: 2rem;
  margin-bottom: 0;
}

.parallax-scenery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.parallax-bg-layer {
  position: absolute;
  bottom: 10%;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 60vh;
  object-fit: cover;
  object-position: bottom center;
  z-index: 1;
  transform-origin: bottom center;
}

.parallax-fg-layer {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: auto;
  max-height: 35vh;
  object-fit: cover;
  object-position: top center;
  z-index: 3;
}

/* Side-by-side Akad & Resepsi */
.wedding-details-row {
  display: flex;
  gap: 6px;
  width: 100%;
  padding: 0.5rem 0.75rem 0.75rem;
  position: relative;
  z-index: 5;
  margin: 0 auto;
  box-sizing: border-box;
}

.wedding-detail-content {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.5rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wedding-details-row .section-label {
  font-size: 0.5rem;
  letter-spacing: 3px;
  margin-bottom: 0.2rem;
}

.wedding-details-row .section-title {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  margin-top: 1.5rem;
}

.wedding-book {
  margin-top: 0.5rem;
}

.book-page {
  text-align: center;
  min-height: 4.5rem;
}

.book-page-date {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  color: var(--text-light);
  line-height: 1.5;
  text-align: center;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(74, 55, 40, 0.1);
}

.book-page-type {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--text-brown);
  margin-bottom: 0.3rem;
}

.wedding-details-row .book-page-venue {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
  text-align: center;
}

.wedding-details-row .book-page-detail {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  color: var(--text-light);
  line-height: 1.5;
  text-align: center;
}

.wedding-details-row .location-btn-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0.6rem;
  align-items: center;
}

.wedding-details-row .btn-outline {
  padding: 5px 10px;
  font-size: 0.48rem;
  letter-spacing: 0.8px;
  width: 100%;
  text-align: center;
  justify-content: center;
  background: rgb(245, 241, 229);
  border-color: var(--accent-sage);
}

.wedding-details-row .btn-outline:hover {
  background: var(--accent-sage);
  color: var(--white);
}

/* Ceremony Done State */
.ceremony-passed {
  opacity: 0.45;
  filter: grayscale(30%);
  transition: opacity 0.3s ease;
}

.ceremony-done-badge {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-sage-dark);
  background: rgba(123, 143, 107, 0.18);
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 0.6rem;
  display: inline-block;
  text-shadow: none;
}

/* =====================
   SECTION 5: RSVP & WISHES
   ===================== */
.rsvp-section {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
}

.rsvp-container {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  height: 75vh;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.rsvp-form input[type="text"],
.rsvp-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(123, 143, 107, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.rsvp-form input[type="text"]:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: var(--accent-sage);
  background: #ffffff;
}

.rsvp-form textarea {
  resize: none;
  height: 70px;
}

.rsvp-radio-group {
  display: flex;
  gap: 15px;
  margin-bottom: 5px;
}

.rsvp-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-dark);
  cursor: pointer;
}

.rsvp-radio-label input {
  accent-color: var(--accent-sage);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.rsvp-success {
  display: none;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent-sage-dark);
  padding: 1.2rem;
  background: rgba(123, 143, 107, 0.1);
  border-radius: 8px;
  margin-top: 1rem;
  animation: fadeInUp 0.5s ease;
  border: 1px solid rgba(123, 143, 107, 0.3);
}

.rsvp-success.show { display: block; }

.rsvp-divider {
  width: 60%;
  height: 1px;
  background: rgba(123, 143, 107, 0.2);
  margin: 1.5rem auto;
  margin-bottom: 0.5rem;
}

.wishes-board {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
  margin-top: 3rem;
}

.wishes-title {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--accent-sage-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.message-wall {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px;
  padding-bottom: 2rem;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 143, 107, 0.3) transparent;

  /* --- NEW: Mask Gradient for Top/Bottom Fading --- */
  -webkit-mask-image: linear-gradient(
    to bottom, 
    transparent 0%, 
    black 5%, 
    black 95%, 
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom, 
    transparent 0%, 
    black 5%, 
    black 95%, 
    transparent 100%
  );
}

.message-wall::-webkit-scrollbar { 
  width: 4px; 
}

.message-wall::-webkit-scrollbar-thumb {
  background-color: rgba(123, 143, 107, 0.3);
  border-radius: 4px;
}

.wish-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(123, 143, 107, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  text-align: left;
  margin-bottom: 8px;
}

.wish-text {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.5;
  font-style: italic;
}

.wish-sender {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-sage-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wish-sender span {
  font-weight: 400;
  color: var(--text-light);
  border: 1px solid rgba(123, 143, 107, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.55rem;
}

/* =====================
   SECTION 6: GIFT
   ===================== */
.gift-section {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  color: var(--white);
  scroll-snap-align: start;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 40, 30, 0.4) 100%);
}

.gift-content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gift-bridge-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 75vh;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
}

.gift-section .section-label { color: var(--accent-sage-light); }
.gift-section .section-title { color: var(--bg-cream); margin-bottom: 0; }

.gift-section .text-light {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  padding: 0 1rem;
}

.gift-box-img {
  width: 110px;
  margin: 1rem auto 1.5rem;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.gift-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.4s ease;
  opacity: 0;
  width: 100%;
  max-width: 340px;
}

.gift-details.revealed {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
}

.gift-account-card {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: none;
}

.gift-bank-name {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-sage-light);
  margin-bottom: 4px;
}

.gift-account-number {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.gift-account-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.gift-copy-btn {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid var(--accent-sage-light);
  background: transparent;
  color: var(--white);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 4px;
}

.gift-copy-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* =====================
   SECTION 7: FOOTER
   ===================== */
.footer-section {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--bg-warm);
  text-align: center;
  position: relative;
  scroll-snap-align: start;
}

.footer-quote-mark {
  font-family: var(--font-script);
  font-size: 4rem;
  color: var(--accent-sage);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: -0.5rem;
}

.footer-quote {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-brown);
  max-width: 320px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
}

.footer-attribution {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-sage-dark);
  margin-bottom: 3rem;
}

.footer-couple-names {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--text-brown);
  margin-bottom: 0.5rem;
}

.footer-date-small {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* =====================
   ANIMATIONS & UTILITIES
   ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.delay-1 { transition-delay: 0.15s; }
.scroll-reveal.delay-2 { transition-delay: 0.3s; }
.scroll-reveal.delay-3 { transition-delay: 0.45s; }

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 12px 24px;
  border-radius: 50px;
  z-index: 600;
  opacity: 0;
  transition: all 0.4s;
  pointer-events: none;
  white-space: nowrap;
}

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

.music-btn {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(123, 143, 107, 0.7);
  backdrop-filter: blur(5px);
  border: none;
  cursor: pointer;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.music-btn svg { width: 18px; fill: white; }

.music-btn.visible {
  opacity: 1;
  pointer-events: auto;
}


.music-btn.playing .music-icon-muted { display: none; }
.music-btn:not(.playing) .music-icon-playing { display: none; }

/* Section 4: frosted glass wrappers only on small devices */
@media (max-width: 400px) {
  .wedding-section-header {
    background: rgba(245, 241, 229, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px 12px 0 0;
  }

  .wedding-details-row {
    background: rgba(245, 241, 229, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 0 0 12px 12px;
  }

  .wedding-detail-content {
    background: rgba(232, 218, 217, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
  }
}
