/* ============================================================================
   Landing Page de Casamento — Victória & Carlos Eduardo
   Transcrição fiel do projeto React/Tailwind original para HTML + CSS + JS puro
   ============================================================================ */

/* ---- Fontes (Google Fonts) ---- */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ---- Paleta / tokens do tema original (theme.css) ---- */
:root {
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
  --font-script: 'Great Vibes', cursive;

  --green: #3D5741;
  --gold: #C9A84C;
  --dark-green: #2C3E28;
  --cream: #FAFAF3;

  --border-soft: rgba(61, 87, 65, 0.15);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100vw;
  background-color: var(--cream);
  color: var(--dark-green);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

/* Paper Background */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('img/paper.webp');
  background-repeat: repeat;
  opacity: 0.6; /* Paper mais translúcido */
  pointer-events: none;
  z-index: 0;
}

/* Castle Background - Fiel ao Original */
body::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('img/castle.png');
  background-repeat: repeat-y;
  background-position: center top;
  /* Largura igual ao container central (max 42rem/672px) para não vazar nas bordas da tela */
  background-size: clamp(300px, 90vw, 672px) auto;
  opacity: 0.18; /* Translúcido, opacidade original era entre 10% e 25% */
  mix-blend-mode: multiply;
  /* Transição suave esmaecendo apenas o topo e o final absoluto do desenho no site */
  -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%);
  pointer-events: none;
  z-index: 0; /* Fica abaixo dos cards que são z-index: 2 ou 10 */
}

body > * { position: relative; z-index: 2; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.5; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, textarea { font-family: inherit; }

.container { max-width: 42rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================================
   COVER (tela de abertura)
   ============================================================================ */
#cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a2b1c;
  transition: opacity 1.2s ease-in-out;
  user-select: none;
}
#cover.opened { opacity: 0; pointer-events: none; }

.cover-card {
  position: relative;
  margin: 0 1rem;
  background-color: #f9f5ef;
  max-width: 380px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55);
  padding: 36px 0;
  opacity: 0;
  transform: translateY(24px);
  animation: cover-card-in 0.9s ease-out 0.15s forwards;
}
@keyframes cover-card-in { to { opacity: 1; transform: translateY(0); } }

.cover-floral { position: absolute; width: 110px; height: 110px; pointer-events: none; }
.cover-floral.tl { top: -2px; left: -2px; }
.cover-floral.br { bottom: -2px; right: -2px; transform: rotate(180deg); }

.cover-heart {
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  width: 56px; height: 56px;
  border-radius: 999px;
  background-color: var(--dark-green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.cover-content { display: flex; flex-direction: column; align-items: center; padding: 16px 32px 0; text-align: center; }
.cover-content h1 { font-family: var(--font-script); color: var(--dark-green); font-size: clamp(2.6rem, 11vw, 3.2rem); line-height: 1.1; }
.cover-amp { font-family: var(--font-serif); color: var(--dark-green); font-size: 1.6rem; line-height: 1; margin-top: 2px; }

.cover-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; width: 100%; }
.cover-divider .line { flex: 1; height: 1px; background-color: rgba(44,62,40,0.18); }
.cover-divider .mark { color: var(--gold); font-size: 1.3rem; line-height: 1; }

.cover-date { font-family: var(--font-serif); color: var(--dark-green); font-size: 1rem; letter-spacing: 0.02em; }
.cover-invite { margin-top: 8px; text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; color: var(--green); }

.btn-open {
  margin-top: 28px;
  padding: 12px 48px;
  border-radius: 999px;
  background-color: var(--dark-green);
  color: #f9f5ef;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  transition: opacity 0.2s ease, transform 0.1s ease;
}
.btn-open:hover { opacity: 0.9; }
.btn-open:active { transform: scale(0.95); }

/* ============================================================================
   MAIN CONTENT wrapper (fade-in after cover opens)
   ============================================================================ */
#main-content { opacity: 0; transition: opacity 1s ease 0.7s; }
#main-content.visible { opacity: 1; }

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; background-color: #d6d3d1; }
.hero-bg .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(44,62,40,0.25) 0%, rgba(44,62,40,0.1) 40%, rgba(250,250,243,0.95) 85%, var(--cream) 100%);
}
.hero-content {
  position: relative; z-index: 10;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
  max-width: 42rem;
  margin: auto auto 0;
  padding-bottom: clamp(2rem, 8vh, 5rem);
}
.hero-content h1 { font-family: var(--font-script); color: var(--dark-green); font-size: clamp(3rem, 10vw, 5rem); line-height: 1.05; }
.hero-content .amp { font-size: 1.875rem; margin: 4px 0; color: var(--gold); font-family: var(--font-serif); }
.hero-divider { width: 64px; height: 1px; background-color: var(--gold); margin: 20px auto; }
.hero-content .sub1 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.25em; color: #4b5563; }
.hero-content .sub2 { font-size: 12px; color: #6b7280; margin-top: 4px; }

.scroll-down-btn {
  margin-top: 32px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(61,87,65,0.3);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-left: auto; margin-right: auto;
  animation: bounce 1.4s infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ============================================================================
   Floral / decorative SVG animations
   ============================================================================ */
@keyframes float-flower-a { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes float-flower-b { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1.5deg); } }
@keyframes float-flower-img { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floral-anim-a { animation: float-flower-a 5s ease-in-out infinite; }
.floral-anim-b { animation: float-flower-b 5s ease-in-out infinite; }
.floral-anim-img { animation: float-flower-img 4s ease-in-out infinite; }

/* ============================================================================
   WELCOME CARD
   ============================================================================ */
.welcome-wrap { padding-top: 4rem; padding-bottom: 0.5rem; }
.welcome-frame {
  position: relative;
  padding: 3px;
  border-radius: 16px;
  background: linear-gradient(135deg, #C9A84C80, #C9A84C20, #C9A84C80, #C9A84C20, #C9A84C80);
}
.welcome-card {
  position: relative;
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  overflow: hidden;
  background-color: #fff;
}
.welcome-card .glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, #C9A84C0D 0%, transparent 65%);
}
.corner-flourish { position: absolute; width: 40px; height: 40px; }
.corner-flourish.tl { top: 12px; left: 12px; }
.corner-flourish.tr { top: 12px; right: 12px; transform: scaleX(-1); }
.corner-flourish.bl { bottom: 12px; left: 12px; transform: scaleY(-1); }
.corner-flourish.br { bottom: 12px; right: 12px; transform: scale(-1,-1); }

.leaf-row { display: flex; align-items: center; justify-content: center; pointer-events: none; }
.leaf-row.top { margin-top: -4px; margin-bottom: 16px; }
.leaf-row.bottom { margin-top: 12px; margin-bottom: -4px; }
.leaf-sprig { width: 112px; height: 56px; opacity: 0.45; }
.leaf-sprig.flip { transform: scaleX(-1); }
.leaf-sprig.small { width: 96px; height: 48px; opacity: 0.35; }

.ornament-divider { display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.ornament-divider .line { flex: 1; height: 1px; background-color: var(--gold); opacity: 0.35; }
.ornament-divider .diamond { width: 8px; height: 8px; transform: rotate(45deg); background-color: var(--gold); opacity: 0.55; }
.ornament-divider.top { margin-bottom: 28px; }
.ornament-divider.bottom { margin-top: 28px; margin-bottom: 16px; }

.welcome-card .msg { font-family: var(--font-serif); color: var(--dark-green); font-style: italic; font-size: clamp(0.9rem, 3.5vw, 1.05rem); line-height: 1.9; padding: 0 8px; margin-bottom: 12px; }
.welcome-card .signature { font-family: var(--font-script); color: var(--green); font-size: clamp(1.6rem, 8vw, 2rem); line-height: 1.3; margin-top: 4px; }

/* ============================================================================
   CERIMÔNIA INFO (cartão verde)
   ============================================================================ */
.info-section { padding: 1.5rem 0; }
.info-card { position: relative; border-radius: 24px; background-color: var(--green); text-align: center; }
.info-card .content { position: relative; z-index: 10; padding: 30px 60px 40px 22px; }
@media (min-width: 640px) { .info-card .content { padding: 32px 80px 40px 28px; } }

.info-floral { position: absolute; right: -42px; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 1; }
@media (min-width: 640px) { .info-floral { right: -75px; } }
.info-floral img { width: clamp(140px,35vw,250px); height: auto; display: block; }

.info-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: 0.4em; font-weight: 600; color: var(--gold); margin-bottom: 24px; }

.families-row { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-bottom: 28px; }
.family { flex: 1; text-align: center; }
.family .role { font-size: 10px; color: rgba(250,250,243,0.5); margin-bottom: 4px; }
.family .names { font-family: var(--font-serif); font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--cream); }
.family .side { font-size: 10px; color: rgba(250,250,243,0.45); margin-top: 4px; }
.families-divider { width: 1px; margin: 0 12px; background-color: rgba(201,168,76,0.35); align-self: stretch; min-height: 60px; }

.announcement { font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; line-height: 1.6; color: rgba(250,250,243,0.65); margin-bottom: 24px; }

.betrothed-name { font-family: var(--font-script); color: var(--cream); font-size: clamp(1.9rem,7vw,2.8rem); line-height: 1.1; }
.betrothed-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.35em; color: var(--gold); margin-top: 4px; margin-bottom: 16px; }
.info-amp { font-family: var(--font-script); color: var(--gold); font-size: 2.8rem; line-height: 1; }
.venue-line { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; line-height: 1.6; color: rgba(250,250,243,0.65); margin-bottom: 12px; margin-top: 28px; }

.time-row { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 16px; }
.time-row p { font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(250,250,243,0.6); }
.time-row .sep { width: 1px; height: 16px; background-color: rgba(201,168,76,0.4); }

.date-block { display: flex; align-items: center; justify-content: center; gap: 16px; }
.date-block .day { font-family: var(--font-serif); color: var(--cream); font-size: 3.8rem; line-height: 1; font-weight: 400; }
.date-block .sep { width: 1px; height: 48px; background-color: rgba(201,168,76,0.45); }
.date-block .month-year { text-align: left; }
.date-block .month-year p { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); }

/* ============================================================================
   GALERIA / NOSSA HISTÓRIA
   ============================================================================ */
.leaf-strip { display: flex; align-items: center; justify-content: center; margin: -1rem 0; opacity: 0.4; }
.leaf-strip .leaf-sprig { width: 160px; height: 80px; opacity: 1; }

.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { font-family: var(--font-script); color: var(--dark-green); font-size: 2.25rem; margin-bottom: 12px; }
@media (min-width: 640px) { .section-title h2 { font-size: 2.5rem; } }
.section-title .rule { width: 64px; height: 1px; background-color: var(--gold); margin: 0 auto; }
.section-sub { text-align: center; font-size: 13px; color: #6b7280; margin-top: -1.5rem; margin-bottom: 2rem; }

.gallery-grid { display: flex; flex-direction: column; gap: 8px; }
.gallery-row-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gallery-row-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-tile { border-radius: 16px; overflow: hidden; background-color: #e7e5e4; position: relative; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.g-tile:hover img { transform: scale(1.05); }
.g-tile.tall { grid-row: 1 / 3; aspect-ratio: 3/4; }
.g-tile.wide { aspect-ratio: 4/3; }

.g-more-btn {
  position: absolute; inset: 0; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 16px;
  background-color: rgba(44,62,40,0.6);
  backdrop-filter: blur(3px);
  color: #fff;
}
.g-more-btn .num { font-size: clamp(1.6rem,7vw,2.4rem); font-family: var(--font-serif); font-weight: 600; }
.g-more-btn .label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }

/* Gallery carousel modal */
.gallery-modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; flex-direction: column;
  background-color: rgba(18,28,20,0.97);
  backdrop-filter: blur(10px);
}
.gallery-modal .g-header { display: flex; align-items: center; justify-content: space-between; padding: 32px 20px 16px; flex-shrink: 0; }
.gallery-modal .g-header .title { font-family: var(--font-script); color: var(--cream); font-size: 2rem; line-height: 1; }
.icon-round-btn { width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background-color: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.gallery-modal .g-counter { text-align: center; color: rgba(255,255,255,0.4); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; flex-shrink: 0; margin-bottom: 8px; }

.g-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; flex: 1; align-items: center; padding: 16px 10vw; gap: 16px; scrollbar-width: none; }
.g-carousel::-webkit-scrollbar { display: none; }
.g-slide { scroll-snap-align: center; flex-shrink: 0; width: 80vw; cursor: pointer; border-radius: 16px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.5); background-color: #292524; opacity: 0.45; transform: scale(0.88); transition: opacity 0.3s ease, transform 0.3s ease; }
.g-slide.active { opacity: 1; transform: scale(1); }
.g-slide img { width: 100%; object-fit: cover; aspect-ratio: 3/4; }

.g-dots { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 24px 0; flex-shrink: 0; }
.g-dot { width: 8px; height: 8px; border-radius: 999px; background-color: rgba(255,255,255,0.3); transition: width 0.3s ease, background-color 0.3s ease; }
.g-dot.active { width: 22px; background-color: var(--gold); }

.lightbox { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem; background-color: rgba(0,0,0,0.97); }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); object-fit: contain; }
.lightbox .close-btn { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 999px; background-color: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #fff; }

.hidden { display: none !important; }

/* ============================================================================
   EVENT CALENDAR (info do evento + calendário)
   ============================================================================ */
.event-dark-card { border-radius: 24px; overflow: hidden; position: relative; background-color: var(--green); }
.event-dark-card .leaf-deco { position: absolute; pointer-events: none; }
.event-dark-card .leaf-deco.left { left: 0; bottom: 0; transform: rotate(-15deg) translate(-28%, 25%); }
.event-dark-card .leaf-deco.right { right: 0; top: 0; transform: rotate(165deg) translate(-28%, 25%); }
.event-dark-card .leaf-deco .leaf-sprig { width: 208px; height: 112px; }
.event-dark-card .content { position: relative; z-index: 10; padding: 40px 20px 32px; text-align: center; }
@media (min-width: 640px) { .event-dark-card .content { padding: 40px 32px 32px; } }

.event-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: 0.35em; color: var(--gold); opacity: 0.85; margin-bottom: 4px; }
.event-sub { font-size: 13px; text-transform: uppercase; letter-spacing: 0.15em; color: #fff; opacity: 0.75; margin-bottom: 28px; }

.day-time-row { display: flex; align-items: center; justify-content: center; gap: 32px; margin-bottom: 28px; }
.day-time-row .label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.15em; color: #fff; opacity: 0.5; margin-bottom: 4px; }
.day-time-row .value { font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; font-weight: 500; }
.day-time-row .value.gold { color: var(--gold); font-weight: 600; }
.day-time-row .sep { height: 40px; width: 1px; background-color: #fff; opacity: 0.2; }

.big-date-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 32px; }
@media (min-width: 640px) { .big-date-row { gap: 24px; } }
.big-date-row .day { font-weight: 300; line-height: 1; font-size: clamp(3.5rem,14vw,5.5rem); font-family: var(--font-serif); color: var(--gold); text-shadow: 0 2px 20px rgba(201,168,76,0.3); }
.big-date-row .sep { height: 96px; width: 1px; background-color: #fff; opacity: 0.2; }
.big-date-row .my { text-align: left; }
.big-date-row .my p { font-size: 14px; text-transform: uppercase; letter-spacing: 0.15em; color: #fff; font-weight: 300; line-height: 1.3; }
@media (min-width: 640px) { .big-date-row .my p { font-size: 20px; } }
.big-date-row .my p.year { opacity: 0.6; }

.ceremony-row { border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 16px 0; margin-bottom: 28px; text-align: center; }
.ceremony-row .label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.15em; color: #fff; opacity: 0.5; margin-bottom: 2px; }
.ceremony-row .value { font-size: 18px; font-weight: 600; color: var(--gold); font-family: var(--font-serif); }

.countdown-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.25em; color: #fff; opacity: 0.4; margin-bottom: 16px; }
.countdown-row { display: flex; justify-content: center; gap: 12px; }
@media (min-width: 640px) { .countdown-row { gap: 16px; } }
.countdown-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.countdown-unit .box { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 300; font-family: var(--font-serif); color: var(--gold); background-color: rgba(255,255,255,0.08); border: 1px solid rgba(201,168,76,0.25); }
@media (min-width: 640px) { .countdown-unit .box { width: 64px; height: 64px; font-size: 1.875rem; } }
.countdown-unit .u-label { font-size: 9px; text-transform: uppercase; letter-spacing: 0.15em; color: #fff; opacity: 0.4; }

.calendar-card { border-radius: 24px; margin-top: 12px; overflow: hidden; border: 1px solid var(--border-soft); background-color: var(--cream); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.calendar-card .inner { padding: 28px 24px 24px; }
.calendar-month { text-align: center; font-family: var(--font-script); color: var(--dark-green); font-size: 1.875rem; margin-bottom: 4px; }
.calendar-rule { height: 1px; margin: 0 16px 20px; background-color: var(--border-soft); }

.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 4px; }
.cal-weekdays div { text-align: center; font-size: 11px; font-weight: 600; padding: 6px 0; color: rgba(44,62,40,0.45); }
.cal-weekdays div.weekend { color: var(--green); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-cell { display: flex; align-items: center; justify-content: center; padding: 2px 0; }
.cal-day { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 13px; border-radius: 999px; color: rgba(44,62,40,0.6); }
.cal-day.weekend { color: var(--green); }
.cal-day.wedding { position: relative; background-color: var(--green); color: #fff; font-family: var(--font-serif); font-weight: 700; }
.cal-day.wedding svg { position: absolute; bottom: -4px; }

.cal-legend { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 20px; font-size: 11px; }
.cal-legend .dot { width: 12px; height: 12px; border-radius: 999px; background-color: var(--green); }
.cal-divider { height: 1px; margin: 0 8px 20px; background-color: rgba(61,87,65,0.12); }

.address-row { display: flex; gap: 12px; margin-bottom: 16px; }
.address-row svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.address-row .venue-name { font-weight: 600; font-size: 13px; margin-bottom: 2px; font-family: var(--font-serif); color: var(--dark-green); }
.address-row .venue-addr { font-size: 12px; line-height: 1.6; color: rgba(44,62,40,0.6); }

.btn-outline-green, .btn-solid-green {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px 0; border-radius: 12px; font-size: 12px; font-weight: 600;
  transition: opacity 0.2s ease;
}
.btn-outline-green { color: var(--green); border: 1px solid var(--green); margin-bottom: 8px; }
.btn-solid-green { background-color: var(--green); color: #fff; }
.btn-outline-green:hover, .btn-solid-green:hover { opacity: 0.8; }

/* ============================================================================
   PROGRAMAÇÃO DO DIA
   ============================================================================ */
.schedule-card { border-radius: 24px; position: relative; background-color: var(--green); }
.schedule-card .content { position: relative; z-index: 10; padding: 32px 24px 40px 20px; }
@media (min-width: 640px) { .schedule-card .content { padding: 32px 96px 40px 28px; } }
.schedule-title { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cream); font-family: var(--font-serif); margin-bottom: 32px; }

.timeline { position: relative; }
.timeline .v-line { position: absolute; left: calc(50% - 0.5px); top: 12px; bottom: 12px; width: 1px; background-color: rgba(250,250,243,0.25); }
.timeline-list { display: flex; flex-direction: column; }
.timeline-item { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; }
.timeline-item .icon-col { display: flex; justify-content: flex-end; padding-right: 16px; }
.timeline-item .dot { position: relative; z-index: 10; width: 16px; height: 16px; border-radius: 999px; flex-shrink: 0; background-color: rgba(250,250,243,0.55); border: 2px solid rgba(250,250,243,0.8); }
.timeline-item .time-col { padding-left: 12px; }
@media (min-width: 640px) { .timeline-item .time-col { padding-left: 16px; } }
.timeline-item .time { font-family: var(--font-serif); color: var(--cream); font-size: clamp(1.1rem,4vw,1.5rem); line-height: 1.1; font-weight: 400; }
.timeline-item .label { font-size: 11px; margin-top: 2px; color: rgba(250,250,243,0.65); }

.schedule-floral { position: absolute; right: -42px; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 1; }
@media (min-width: 640px) { .schedule-floral { right: -75px; } }
.schedule-floral img { width: clamp(140px,35vw,250px); height: auto; display: block; }

/* ============================================================================
   LIVRO DE MENSAGENS
   ============================================================================ */
.guestbook-floral-left { position: absolute; left: -60px; bottom: -70px; pointer-events: none; z-index: 1; }
@media (min-width: 640px) { .guestbook-floral-left { left: -110px; bottom: -110px; } }
.guestbook-floral-left img { width: clamp(160px, 35vw, 260px); height: auto; display: block; }
.guestbook-form { border-radius: 16px; padding: 24px; border: 1px solid var(--border-soft); margin-bottom: 32px; background-color: #fff; }
.guestbook-form input, .guestbook-form textarea {
  width: 100%; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 12px;
  outline: none; border: 1px solid rgba(61,87,65,0.18); color: var(--dark-green); resize: none;
}
.guestbook-form textarea { margin-bottom: 16px; }
.btn-send {
  width: 100%; padding: 12px 0; border-radius: 12px; font-weight: 500; letter-spacing: 0.1em; font-size: 14px;
  background-color: var(--dark-green); color: var(--cream); transition: opacity 0.2s ease;
}
.btn-send:hover { opacity: 0.9; }

.wishes-empty { text-align: center; padding: 40px 0; color: #9ca3af; font-size: 14px; font-family: var(--font-serif); font-style: italic; }
.wishes-list { display: flex; flex-direction: column; gap: 16px; }
.wish-item { border-radius: 16px; padding: 20px; border: 1px solid var(--border-soft); background-color: rgba(61,87,65,0.04); animation: wish-in 0.35s ease; }
@keyframes wish-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.wish-item .w-name { font-weight: 500; font-size: 14px; margin-bottom: 4px; color: var(--green); }
.wish-item .w-msg { font-size: 13px; line-height: 1.6; color: var(--dark-green); font-family: var(--font-serif); font-style: italic; }

/* ============================================================================
   LISTA DE PRESENTES
   ============================================================================ */
.gifts-section {
  padding: 4rem 0;
  /* Retorna ao fundo levemente esverdeado/transparente para o castelo e papel da página passarem por baixo */
  background-color: rgba(61,87,65,0.05);
}
.gifts-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .gifts-grid { grid-template-columns: 1fr 1fr; } }

.gift-card { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: 1px solid var(--border-soft); background-color: #fff; }
.gift-card .g-img { aspect-ratio: 4/3; overflow: hidden; background-color: #f5f5f4; }
.gift-card .g-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gift-card:hover .g-img img { transform: scale(1.06); }
.gift-card .g-bottom { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gift-card .g-bottom .title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gift-card .g-bottom .emoji { font-size: 18px; flex-shrink: 0; }
.gift-card .g-bottom .title { font-weight: 600; font-size: 13px; font-family: var(--font-serif); color: var(--dark-green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-card .g-bottom .value { font-size: 12px; font-weight: 700; color: var(--gold); flex-shrink: 0; }

.gift-card .g-overlay {
  position: absolute; inset: 0; pointer-events: none; display: flex; align-items: flex-end; padding: 12px;
  background: linear-gradient(to top, rgba(44,62,40,0.75) 0%, rgba(44,62,40,0.2) 60%, transparent 100%);
  opacity: 0; transition: opacity 0.2s ease;
}
.gift-card:hover .g-overlay { opacity: 1; }
.gift-card .g-overlay .box { width: 100%; border-radius: 12px; padding: 12px; background-color: rgba(250,250,243,0.96); }
.gift-card .g-overlay .desc { font-size: 12px; color: #4b5563; line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gift-card .g-overlay .cta { font-size: 11px; font-weight: 600; color: var(--green); }

.gifts-hint { text-align: center; font-size: 11px; color: #9ca3af; margin-top: 20px; }

/* Gift modal */
.gift-modal-backdrop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background-color: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
@media (min-width: 640px) { .gift-modal-backdrop { align-items: center; } }
.gift-modal {
  background-color: #fff; width: 100%; max-width: 24rem; border-radius: 24px 24px 0 0; overflow: hidden;
  max-height: 92vh; overflow-y: auto; transform: translateY(80px); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease;
}
@media (min-width: 640px) { .gift-modal { border-radius: 24px; } }
.gift-modal-backdrop.show .gift-modal { transform: translateY(0); opacity: 1; }

.gift-modal .g-header { position: relative; aspect-ratio: 16/9; }
.gift-modal .g-header img { width: 100%; height: 100%; object-fit: cover; }
.gift-modal .g-header .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(44,62,40,0.7) 0%, transparent 55%); }
.gift-modal .g-header .close-btn { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background-color: rgba(0,0,0,0.35); color: #fff; }
.gift-modal .g-header .title-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; }
.gift-modal .g-header .title-overlay .t { color: #fff; font-weight: 700; font-size: 20px; line-height: 1.2; font-family: var(--font-serif); }
.gift-modal .g-header .title-overlay .v { font-weight: 700; font-size: 14px; margin-top: 2px; color: var(--gold); }

.gift-modal .body { padding: 20px; }
.gift-modal .body .desc { font-size: 13px; color: #4b5563; line-height: 1.6; margin-bottom: 20px; }
.gift-modal .pix-block { border-radius: 16px; padding: 20px; background-color: rgba(61,87,65,0.05); border: 1px solid rgba(61,87,65,0.13); }
.gift-modal .pix-block .pix-title { text-align: center; font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; font-weight: 700; color: var(--green); margin-bottom: 16px; }
.gift-modal .qr-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.gift-modal .qr-box { padding: 12px; background-color: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); border: 1px solid rgba(61,87,65,0.12); }
.gift-modal .qr-box img { width: 176px; height: 176px; border-radius: 8px; }
.gift-modal .qr-hint { font-size: 10px; text-align: center; color: #9ca3af; margin-bottom: 8px; }
.gift-modal .pix-copy-row { display: flex; align-items: center; gap: 8px; background-color: #fff; border-radius: 12px; padding: 10px 12px; border: 1px solid rgba(61,87,65,0.2); }
.gift-modal .pix-copy-row .key { font-size: 11px; font-family: monospace; color: #4b5563; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-modal .btn-copy-pix { flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; color: #fff; background-color: var(--gold); transition: background-color 0.2s ease; }
.gift-modal .btn-copy-pix.copied { background-color: var(--green); }
.gift-modal .btn-close-modal { margin-top: 16px; width: 100%; padding: 12px 0; border-radius: 12px; font-size: 13px; font-weight: 500; text-align: center; color: var(--green); border: 1px solid rgba(61,87,65,0.19); }

/* ============================================================================
   RSVP flutuante + Modal
   ============================================================================ */
.rsvp-fab, .music-fab {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.rsvp-fab {
  position: fixed; bottom: 28px; right: 24px; z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0; transform: scale(0.7); transition: opacity 0.25s ease, transform 0.25s ease;
  width: 56px; /* força alinhamento exato */
}
.rsvp-fab.visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.rsvp-fab:not(.visible) { pointer-events: none; }
.rsvp-fab:hover { transform: scale(1.1); }
.rsvp-fab:active { transform: scale(0.93); }
.rsvp-fab .circle { width: 56px; height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background-color: var(--green); box-shadow: 0 6px 28px rgba(61,87,65,0.53); }
.rsvp-fab .tooltip { font-size: 10px; font-weight: 600; letter-spacing: 0.03em; color: #fff; padding: 2px 10px; border-radius: 999px; background-color: var(--dark-green); opacity: 0; transition: opacity 0.2s ease; white-space: nowrap; }
.rsvp-fab:hover .tooltip { opacity: 1; }

.music-fab {
  position: fixed; bottom: 130px; right: 24px; z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  width: 56px; /* força alinhamento exato */
}
.music-fab:hover { transform: scale(1.1); }
.music-fab:active { transform: scale(0.93); }
.music-fab .circle {
  width: 56px; height: 56px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background-color: #5c1619;
  box-shadow: 0 6px 28px rgba(92, 22, 25, 0.53);
  position: relative;
  overflow: hidden;
}
.music-fab .circle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 60%);
  border-radius: 999px;
  pointer-events: none;
}
.music-fab.playing .circle {
  animation: pulse-music 2s infinite;
}
@keyframes pulse-music {
  0% { box-shadow: 0 0 0 0 rgba(92, 22, 25, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(92, 22, 25, 0); }
  100% { box-shadow: 0 0 0 0 rgba(92, 22, 25, 0); }
}

.rsvp-modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; padding: 1rem; background-color: rgba(0,0,0,0.6); }
@media (min-width: 640px) { .rsvp-modal-backdrop { align-items: center; padding: 1.5rem; } }
.rsvp-modal { position: relative; width: 100%; max-width: 28rem; border-radius: 16px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,0.4); background-color: var(--cream); transform: translateY(50px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.rsvp-modal-backdrop.show .rsvp-modal { transform: translateY(0); opacity: 1; }

.rsvp-modal .r-header { padding: 24px 24px 16px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid rgba(61,87,65,0.1); }
.rsvp-modal .r-header .kicker { font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 2px; }
.rsvp-modal .r-header h2 { font-size: 24px; line-height: 1.2; font-family: var(--font-script); color: var(--dark-green); }
.rsvp-modal .r-close { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--dark-green); margin-top: 2px; transition: background-color 0.2s ease; }
.rsvp-modal .r-close:hover { background-color: rgba(0,0,0,0.05); }

.rsvp-modal .r-body { overflow-y: auto; padding: 20px 24px; max-height: 72vh; }
.r-field { margin-bottom: 20px; }
.r-field label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dark-green); }
.r-field input[type="text"], .r-field input[type="tel"] {
  width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(61,87,65,0.2); font-size: 14px; background-color: #fff; outline: none;
}
.r-field input:focus { box-shadow: 0 0 0 2px rgba(61,87,65,0.2); }

.radio-card, .check-card {
  display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(61,87,65,0.18); background-color: #fff; margin-bottom: 8px; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.check-card { align-items: flex-start; }
.radio-card.selected, .check-card.selected { border-color: var(--green); background-color: rgba(61,87,65,0.07); }
.radio-card input, .check-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-dot { width: 16px; height: 16px; border-radius: 999px; border: 2px solid rgba(61,87,65,0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.radio-card.selected .radio-dot { border-color: var(--green); }
.radio-dot .fill { width: 8px; height: 8px; border-radius: 999px; background-color: var(--green); display: none; }
.radio-card.selected .radio-dot .fill { display: block; }
.check-box { width: 16px; height: 16px; border-radius: 6px; border: 2px solid rgba(61,87,65,0.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; background-color: #fff; }
.check-card.selected .check-box { border-color: var(--green); background-color: var(--green); }
.check-card .label-col { flex: 1; }
.check-card .label-text, .radio-card .label-text { font-size: 13px; color: var(--dark-green); }
.check-outro-input { margin-top: 8px; width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(61,87,65,0.2); font-size: 13px; background-color: #fff; outline: none; }

.guests-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.guest-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(61,87,65,0.2); font-size: 13px; font-weight: 600; color: var(--dark-green); background-color: #fff; transition: all 0.15s ease; }
.guest-btn.selected { border-color: var(--green); background-color: var(--green); color: #fff; }

.btn-confirm { width: 100%; padding: 14px 0; border-radius: 12px; color: #fff; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; background-color: var(--green); transition: opacity 0.2s ease; }
.btn-confirm:hover { opacity: 0.9; }
.r-footnote { font-size: 11px; text-align: center; color: #9ca3af; padding-bottom: 4px; margin-top: 8px; }

.r-thankyou { text-align: center; padding: 32px 0; }
.r-thankyou .icon-circle { width: 64px; height: 64px; border-radius: 999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; background-color: var(--green); }
.r-thankyou h3 { font-size: 20px; margin-bottom: 8px; color: var(--dark-green); font-family: var(--font-serif); }
.r-thankyou p { font-size: 13px; line-height: 1.6; color: #6b7280; }
.r-thankyou .edit-link { margin-top: 20px; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; color: var(--gold); }

.hidden-field { display: none; }

/* ============================================================================
   FOOTER
   ============================================================================ */
footer { background-color: var(--dark-green); }
.footer-top { padding: 32px 1rem; text-align: center; }
@media (min-width: 640px) { .footer-top { padding: 32px 1.5rem; } }
.footer-top .leaf-row { opacity: 0.15; margin-bottom: -4px; }
.footer-top .leaf-sprig { width: 112px; height: 48px; }
.footer-top .names { font-family: var(--font-script); color: var(--gold); font-size: clamp(1.8rem,8vw,2.4rem); }
.footer-top .date { color: rgba(255,255,255,0.4); font-size: 11px; letter-spacing: 0.15em; margin-top: 4px; }
.footer-top .rule { width: 40px; height: 1px; margin: 16px auto; background-color: var(--gold); opacity: 0.4; }
.footer-top .verse { color: rgba(255,255,255,0.3); font-size: 10px; font-style: italic; max-width: 20rem; margin: 0 auto; line-height: 1.6; font-family: var(--font-serif); }

.footer-instagram { padding: 0 1rem 32px; max-width: 42rem; margin: 0 auto; }
@media (min-width: 640px) { .footer-instagram { padding: 0 1.5rem 32px; } }
.ig-card { border-radius: 16px; overflow: hidden; background-color: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.ig-card .ig-head { text-align: center; padding: 24px 16px 16px; }
.ig-card .ig-head .kicker { font-size: 9px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 4px; }
.ig-card .ig-head .sub { color: rgba(255,255,255,0.5); font-size: 11px; font-style: italic; font-family: var(--font-serif); }
.ig-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,0.08); }
.ig-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 12px; transition: background-color 0.2s ease; }
.ig-item:first-child { border-right: 1px solid rgba(255,255,255,0.08); }
.ig-item:hover { background-color: rgba(255,255,255,0.05); }
.ig-item .ig-icon { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.ig-item:hover .ig-icon { color: #fff; }
.ig-item .ig-handle { color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 500; }
.ig-item:hover .ig-handle { color: #fff; }
.ig-item .ig-name { color: rgba(255,255,255,0.35); font-size: 10px; margin-top: 2px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 24px; }
.footer-bottom .row { max-width: 42rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .brand-banner img { height: 40px; object-fit: contain; border-radius: 8px; }
.footer-bottom .brand-banner:hover { opacity: 0.9; }
.social-icons { display: flex; align-items: center; gap: 16px; }
.social-icons a { color: rgba(255,255,255,0.4); transition: color 0.2s ease; }
.social-icons a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom .rights { text-align: center; font-size: 10px; margin-top: 12px; color: rgba(255,255,255,0.25); }
.footer-bottom .rights a { text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom .rights a:hover { color: rgba(255,255,255,0.5); }

/* Icons (lucide-like, inline SVG uses currentColor) */
.icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
