@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@400;500;600&family=Jost:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Titan+One&display=swap');

:root {
  /* Nova Paleta Elegante (Vinho, Bordô e Creme) */
  --cor-primaria: #A12C5A;
  /* Rosa escuro (magenta fechado) */
  --cor-secundaria: #F2A7B5;
  /* Rosa claro delicado */
  --cor-fundo: #F3E0DC;
  /* Creme rosado */
  --cor-texto: #3A0D1F;
  /* Vinho profundo */
  --cor-botao: #ffffff;
  --cor-botao-esquema: #6E1C2F;
  /* Bordô intenso */

  /* Gradientes escuros luxuosos para o envelope */
  --bg-envelope: linear-gradient(135deg, #3A0D1F 0%, #6E1C2F 100%);
  --envelope-cor: #6E1C2F;
  --envelope-sela: #8C6B2A;
  /* Dourado envelhecido */

  /* Tipografia */
  --fonte-cursiva: 'Great Vibes', cursive;
  --fonte-titulo: 'Cinzel Decorative', serif;
  --fonte-corpo: 'Jost', sans-serif;

  /* Animação entre as páginas */
  --anim-duration: 0.8s;
}

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

body {
  font-family: var(--fonte-corpo);
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* -----------------------------
   ENVELOPE (index.html)
----------------------------- */
/* Transição de abertura: Animacao Papel (Cartão Abrindo) */
.envelope-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-envelope);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  perspective: 1200px;
  /* Adicionado para efeito 3D */
}

/* Flor de adorno bg para parecer o canvas */
.envelope-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/envelope/envelope.png');
  /* Se houver, se não, cai no gradiente */
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.envelope-wrapper {
  position: relative;
  z-index: 10;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.envelope-wrapper:hover {
  transform: scale(1.02);
}

.monograma {
  height: 8rem;
  margin: 0 auto 20px auto;
  object-fit: contain;
}

.toque-para-abrir {
  font-family: var(--fonte-titulo);
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: pulse 2s infinite;
  padding-top: 50px;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }

  100% {
    opacity: 0.8;
  }
}

/* Transição de abertura: envelope sai à esquerda */
.exit-animation {
  animation: slideOutLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes slideOutLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(-100vw);
    opacity: 0;
  }
}

/* -----------------------------
   CONVITE (convite.html)
----------------------------- */
.convite-container {
  max-width: 500px;
  /* Layout mobile first */
  margin: 0 auto;
  background-color: var(--cor-fundo);
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  /* Animação para o convite entrar à direita */
  animation: slideInRight var(--anim-duration) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
  0% {
    transform: translateX(100vw);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.convite-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/canvas-texture.jpg');
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.fundo-dinamico {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  position: relative;
  z-index: 1;
}

.secao {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  text-align: center;
}

/* Hero Section */
.hero-section {
  padding: 0;
  position: relative;
}

.hero-img {
  width: 100%;
  display: block;
}

/* Monograma e Contador */
.contador-section {
  padding-top: 20px;
}

.contador-section .monograma {
  /* width: 50px;
  height: 50px; */
  margin-bottom: 20px;
}

.falta-apenas {
  font-family: var(--fonte-corpo);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cor-texto);
  margin-bottom: 10px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--cor-primaria);
  font-family: var(--fonte-titulo);
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.count-num {
  font-size: 3rem;
  line-height: 1;
}

.count-label {
  font-family: var(--fonte-corpo);
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 5px;
}

.separator {
  font-size: 2rem;
  margin-top: -2px;
}

/* Título (Idade / Nome) */
.titulo-section {
  padding-top: 10px;
}

.idade {
  font-family: var(--fonte-titulo);
  color: var(--cor-primaria);
  font-size: 2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.nome {
  font-family: var(--fonte-cursiva);
  color: var(--cor-primaria);
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.02);
}

/* Ajuste de Posição Vertical do Bloco Inteiro (Data/Local) */
#bloco-info {
  /* Altere esse valor (ex: -20px, -60px) para subir/descer o bloco sem afetar o fundo ou os botões de baixo! */
  transform: translateY(-60px);
}

/* Data e Local */
.data-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cor-primaria);
  font-family: var(--fonte-titulo);
  margin-bottom: 15px;
  gap: 10px;
}

.mes,
.horario {
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  letter-spacing: 1px;
  padding: 8px 5px;
  border-bottom: 1.5px solid var(--cor-primaria);
  border-top: 1.5px solid var(--cor-primaria);
  line-height: 1;
  text-transform: uppercase;
  flex: 1;
  text-align: center;
  font-weight: bolder;
  white-space: nowrap;
}

.dia-bloco {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dia-semana {
  font-size: clamp(1.2rem, 3vw, 1.1rem);
  letter-spacing: 1px;
  margin-bottom: 2px;
  font-family: var(--fonte-titulo);
  text-transform: uppercase;
  font-weight: 400;
}

.dia {
  font-size: clamp(3.5rem, 12vw, 4.8rem);
  line-height: 0.8;
  font-family: var(--fonte-titulo);
  font-weight: 400;
}

.ano {
  font-size: clamp(1.2rem, 3vw, 1.1rem);
  letter-spacing: 1px;
  margin-top: 5px;
  font-family: var(--fonte-titulo);
  font-weight: 400;
}

.local {
  font-family: var(--fonte-corpo);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cor-texto);
  margin-top: 15px;
}

/* Galeria */
.galeria-section {
  padding: 0;
  position: relative;
  margin-top: -25px;
  margin-bottom: -25px;
  z-index: 10;
}

.clique-visualizar {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 15;
  pointer-events: none;
  color: #fff;
  font-size: 0.70rem;
  letter-spacing: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.clique-visualizar svg {
  /* Assuming lucide SVG injects */
  color: #fff !important;
  stroke: #fff !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* Force icons that were replaced directly in the text to white if any inline style still persists */
.clique-visualizar i {
  color: #fff !important;
}

.galeria-wrapper {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  margin-bottom: 0;
  touch-action: pan-y;
  background-color: #000;
  /* Evita flash branco ao entrar tela cheia */
}

.galeria-slider-container {
  width: 100%;
  overflow: hidden;
}

.galeria-slider {
  display: flex;
  transition: transform 0.4s ease-out;
  width: 100%;
}

.galeria-item {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  object-fit: cover;
}

/* OVERLAY MODERNO NA IMAGEM */
.galeria-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  padding: 20px 15px 15px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 10;
}

.galeria-indicadores {
  display: flex;
  gap: 4px;
  width: 100%;
}

.indicador-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 1px;
}

.indicador-bar.active {
  background: rgba(255, 255, 255, 1);
}

/* Botão Fechar Fullscreen */
.btn-fechar-fs {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
}

/* Fullscreen Configs */
.galeria-wrapper:fullscreen {
  border-radius: 0;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.galeria-wrapper:-webkit-full-screen {
  border-radius: 0;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.galeria-wrapper:fullscreen .galeria-slider-container,
.galeria-wrapper:-webkit-full-screen .galeria-slider-container {
  height: 100%;
  display: flex;
  align-items: center;
}

.galeria-wrapper:fullscreen .galeria-item,
.galeria-wrapper:-webkit-full-screen .galeria-item {
  height: 100vh;
  object-fit: contain;
}

.galeria-wrapper:fullscreen .btn-fechar-fs,
.galeria-wrapper:-webkit-full-screen .btn-fechar-fs {
  display: flex;
}

/* Botões RSVP e Mapas */
.botoes-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.btn-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}

.btn-circle:hover {
  transform: translateY(-6px);
}

.icon-circle {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  transition: all 0.4s ease;
}

.btn-mapa-icon {
  background-color: transparent;
  border: 1.5px solid var(--cor-primaria);
  color: var(--cor-primaria);
  box-shadow: 0 4px 15px rgba(161, 44, 90, 0.1);
}

.btn-circle:hover .btn-mapa-icon {
  background-color: var(--cor-primaria);
  color: var(--cor-fundo);
  box-shadow: 0 8px 25px rgba(161, 44, 90, 0.35);
  transform: scale(1.05);
}

.btn-rsvp-icon {
  background-color: var(--cor-primaria);
  border: 1.5px solid var(--cor-primaria);
  color: var(--cor-fundo);
  box-shadow: 0 4px 15px rgba(161, 44, 90, 0.25);
}

.btn-circle:hover .btn-rsvp-icon {
  background-color: var(--cor-texto);
  border-color: var(--cor-texto);
  box-shadow: 0 8px 25px rgba(58, 13, 31, 0.4);
  transform: scale(1.05);
}

.icon-circle svg {
  width: 32px;
  height: 32px;
  transition: all 0.4s ease;
}

.btn-label {
  font-family: var(--fonte-titulo);
  font-size: 1.2rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  color: var(--cor-primaria);
  font-weight: bolder;
  transition: color 0.4s ease;
}

.btn-circle:hover .btn-label {
  color: var(--cor-texto);
  font-weight: 600;
}

/* Avisos */
.avisos-section {
  padding-top: 40px;
}

.aviso-item {
  font-family: var(--fonte-corpo);
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--cor-texto);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.aviso-item.destaque {
  font-weight: 600;
}

/* Despedida */
.despedida-section {
  padding: 40px 20px;
}

.ate-logo {
  font-family: var(--fonte-cursiva);
  color: var(--cor-primaria);
  font-size: 4rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.02);
}

.encerramento-img {
  width: 100%;
  display: block;
}

/* =========================================
   VERSÃO DESKTOP & TABLETS 
   Como a essência do convite é vertical (Mobile First), 
   em telas maiores nós emulamos uma experiência muito luxuosa de "Mockup de Convite".
========================================= */
@media (min-width: 768px) {
  body {
    /* Fundo dinâmico da página inteira misturando tons de vinho e preto suave */
    background: linear-gradient(135deg, #0E0B0C 0%, #3A0D1F 50%, #6E1C2F 100%);
    background-attachment: fixed;
    padding: 60px 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  body::before {
    /* Blur usando a foto hero no fundo para dar textura rica e profundidade */
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    filter: blur(50px);
    z-index: -1;
  }

  .convite-container {
    max-width: 480px;
    margin: 0 auto;
    /* Cantos adoravelmente arredondados parecendo celular / cartão grosso */
    border-radius: 35px;
    background-color: var(--cor-fundo);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6),
      0 10px 40px rgba(0, 0, 0, 0.4),
      0 0 0 12px rgba(243, 224, 220, 0.15);
    /* Moldura de respiro dourada/creme */
    overflow: hidden;
    position: relative;
    /* Entrada animada vindo da direita */
    animation: slideInRightDesktop var(--anim-duration) cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  @keyframes slideInRightDesktop {
    from {
      opacity: 0;
      transform: translateX(100px) scale(0.95);
    }

    to {
      opacity: 1;
      transform: translateX(0) scale(1);
    }
  }

  /* Ajustes para a tela do Envelope de abertura */
  .envelope-container {
    width: 100%;
    max-width: 480px;
    height: 85vh;
    min-height: 750px;
    align-self: center;
    /* Centraliza no eixo vertical da tela desktop */
    margin: auto;
    border-radius: 35px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6),
      0 0 0 12px rgba(243, 224, 220, 0.15);
    animation: none;
    /* A animação já está lá por conta do scale interno, sem conflitar */
  }

  /* Corrige o fundo pra não quebrar a mágica visual ao sair com a animação */
  .envelope-wrapper {
    width: 100%;
  }

  /* Evita que tela cheia na galeria fique com a borda arredondada na TV/Monitor */
  .galeria-wrapper:fullscreen,
  .galeria-wrapper:-webkit-full-screen {
    border-radius: 0;
  }
}