/* ==========================================================================
   Jonathas & Jade — Convite de Casamento
   Mobile-first: base 390px, breakpoint 768px+
   ========================================================================== */

/* ==========================================================================
   1. VARIÁVEIS GLOBAIS (CSS Custom Properties)
   ========================================================================== */

:root {
  --cor-fundo: #FAF6F1;
  --cor-fundo-alt: #F5EFE8;
  --cor-rosa: #F2C4CE;
  --cor-azul: #C4D9F2;
  --cor-amarelo: #F2EAC4;
  --cor-verde: #C4F2D4;
  --cor-texto: #3B2314;
  --cor-texto-suave: #7A5C4A;
  --cor-destaque: #D4A5A5;
  --cor-destaque-hover: #C48E8E;
  --font-principal: 'Ballet', cursive;
  --font-titulos: 'Cookie', cursive;
  --font-corpo: 'Lugrasimo', serif;

  /* Proporção 9:16 — cobre 100dvh sem ultrapassar 100dvw */
  --largura-916: min(100dvw, calc(100dvh * 9 / 16));
  --altura-916:  min(100dvh, calc(100dvw * 16 / 9));
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: #000;   /* preto para áreas de letterbox fora do container 9:16 */
  color: var(--cor-texto);
  font-family: var(--font-corpo);
  font-weight: 700;         /* Lugrasimo sempre bold */
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.overflow-bloqueado {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font-corpo);
}

/* ==========================================================================
   3. KEYFRAMES / ANIMAÇÕES
   ========================================================================== */

@keyframes pulso {
  0%   { opacity: 1; }
  50%  { opacity: 0.4; }
  100% { opacity: 1; }
}

@keyframes bounce-vertical {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==========================================================================
   4. FASE ENVELOPE (tela inicial)
   ========================================================================== */

#fase-envelope {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width:  var(--largura-916);
  height: var(--altura-916);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--cor-fundo);
  transition: opacity 0.8s ease;
  pointer-events: auto;
  overflow: hidden;
}

#fase-envelope.fade-out {
  opacity: 0;
  pointer-events: none;
}

.envelope-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* cobre o container como o vídeo faz */
  cursor: pointer;
  user-select: none;
}

.toque-abrir {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.toque-icone {
  font-size: 2.5rem;
  color: var(--cor-destaque);
  animation: pulso 1.5s ease-in-out infinite;
}

.toque-texto {
  font-family: var(--font-corpo);
  font-size: 0.95rem;
  color: var(--cor-texto-suave);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   5. VÍDEOS (principal e loop)
   ========================================================================== */

/* Vídeo principal: fixo, proporção 9:16, centralizado */
#video-principal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width:  var(--largura-916);
  height: var(--altura-916);
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 900;
  background: #000;
}

#video-principal.ativo {
  opacity: 1;
}

/* Vídeo loop: dentro do .hero, scroll normal */
#video-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 0;
}

#video-loop.ativo {
  opacity: 1;
}

/* ==========================================================================
   6. CONTEÚDO PRINCIPAL
   ========================================================================== */

main#site-conteudo {
  position: relative;
}

/* ==========================================================================
   7. HERO
   ========================================================================== */

section.hero {
  position: relative;
  width: 100%;
  /* Começa com proporção 9:16; expande para 100dvh após o vídeo */
  height: var(--altura-916);
  transition: height 0.9s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

section.hero.expandido {
  height: 100dvh;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.30);
  z-index: 1;
}

/* Emblema "Save the date" ao fundo */
.hero-emblema {
  position: absolute;
  font-family: var(--font-principal);
  font-size: clamp(3rem, 16vw, 9rem);
  color: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  transform: rotate(-18deg);
  user-select: none;
  pointer-events: none;
  z-index: 1;
  letter-spacing: 0.02em;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

p.hero-sub {
  font-family: var(--font-titulos);
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
}

h1.hero-nomes {
  font-family: var(--font-principal);
  font-size: clamp(3.2rem, 13vw, 5.5rem);
  color: #fff;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-e {
  font-family: var(--font-titulos);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  display: block;
}

p.hero-data {
  font-family: var(--font-titulos);
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}

/* CTA inferior do hero */
.hero-cta {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero-btn-confirmar {
  background: none;
  border: none;
  font-family: var(--font-corpo);
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.hero-btn-confirmar:hover {
  color: #fff;
}

.hero-arrow {
  color: rgba(255, 255, 255, 0.55);
  font-size: 2rem;
  animation: bounce-vertical 1.6s ease-in-out infinite;
  display: block;
}

/* ==========================================================================
   8. SEÇÕES GERAIS
   ========================================================================== */

section.secao {
  padding: 4rem 1.25rem;
  background-color: var(--cor-fundo);
}

section.secao.secao-alt {
  background-color: var(--cor-fundo-alt);
}

.secao-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

h2.titulo-secao {
  font-family: var(--font-titulos);
  font-size: clamp(2rem, 7vw, 2.75rem);
  color: var(--cor-texto);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* Reveal on scroll */
.secao-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   9. BOTÕES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-corpo);
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primario {
  background-color: var(--cor-destaque);
  color: #fff;
}

.btn-primario:hover {
  background-color: var(--cor-destaque-hover);
}

.btn-secundario {
  background-color: transparent;
  border: 2px solid var(--cor-destaque);
  color: var(--cor-destaque);
}

.btn-secundario:hover {
  background-color: var(--cor-destaque);
  color: #fff;
}

.btn-grande {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-bloco {
  display: flex;
  width: 100%;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
}

.btn-whatsapp:hover {
  background-color: #1ebe5a;
}

.btn-fechar {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--cor-texto);
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.btn-fechar:hover {
  color: var(--cor-destaque-hover);
}

/* ==========================================================================
   10. COUNTDOWN
   ========================================================================== */

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  margin: 1.5rem 0;
}

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

.countdown-numero {
  font-family: var(--font-titulos);
  font-size: 2.75rem;
  color: var(--cor-destaque);
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cor-texto-suave);
  margin-top: 0.25rem;
}

/* ==========================================================================
   11. TIMELINE
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 1.5rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.65rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--cor-rosa);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
  padding-left: 0.75rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: var(--cor-destaque);
  border: 2px solid var(--cor-fundo);
  box-shadow: 0 0 0 2px var(--cor-destaque);
}

.timeline-hora {
  font-family: var(--font-titulos);
  font-size: 1.1rem;
  color: var(--cor-destaque);
  display: block;
  margin-bottom: 0.2rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--cor-texto-suave);
  line-height: 1.5;
}

/* ==========================================================================
   12. SWATCHES (paleta de cores / preferências)
   ========================================================================== */

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem 0;
}

.swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  cursor: default;
  transition: transform 0.2s ease;
}

.swatch:hover {
  transform: scale(1.15);
}

/* ==========================================================================
   13. LISTA DE ENXOVAL
   ========================================================================== */

#lista-enxoval {
  margin: 1.25rem 0;
}

.enxoval-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(59, 35, 20, 0.08);
  flex-wrap: wrap;
}

.enxoval-item:last-child {
  border-bottom: none;
}

.enxoval-nome {
  flex: 1;
  font-size: 0.95rem;
  color: var(--cor-texto);
  transition: color 0.2s ease;
}

.enxoval-item.ganho .enxoval-nome {
  text-decoration: line-through;
  color: var(--cor-texto-suave);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.badge-ganho {
  background-color: var(--cor-verde);
  color: #2d6a42;
}

.badge-pendente {
  background-color: var(--cor-amarelo);
  color: #7a6620;
}

/* ==========================================================================
   14. FORMAS DE PRESENTEAR / PIX / WHATSAPP
   ========================================================================== */

.formas-presentear {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-opcao {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--cor-texto);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(212, 165, 165, 0.3);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-opcao:hover {
  border-color: var(--cor-destaque);
  background-color: rgba(212, 165, 165, 0.06);
}

.radio-opcao input[type="radio"] {
  accent-color: var(--cor-destaque);
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.forma-whatsapp,
.forma-pix {
  display: none;
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background-color: var(--cor-fundo-alt);
  border: 1px solid rgba(59, 35, 20, 0.08);
}

.forma-whatsapp.visivel,
.forma-pix.visivel {
  display: block;
}

/* Modal PIX */
#modal-pix .modal-conteudo {
  text-align: center;
}

#qrcode-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.25rem auto;
}

#qrcode-container img,
#qrcode-container canvas {
  max-width: 200px;
  height: auto;
  border-radius: 0.5rem;
  border: 4px solid var(--cor-fundo-alt);
}

/* ==========================================================================
   15. FAQ (Perguntas Frequentes)
   ========================================================================== */

.faq-lista {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid rgba(59, 35, 20, 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--cor-fundo);
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 10px rgba(59, 35, 20, 0.07);
}

button.faq-pergunta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-corpo);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cor-texto);
  text-align: left;
  gap: 0.75rem;
  transition: color 0.2s ease;
}

button.faq-pergunta:hover {
  color: var(--cor-destaque);
}

.faq-icone {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--cor-destaque);
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item.aberto .faq-icone {
  transform: rotate(45deg);
}

.faq-resposta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  font-size: 0.9rem;
  color: var(--cor-texto-suave);
  line-height: 1.7;
}

.faq-resposta.aberto {
  max-height: 500px;
}

.faq-resposta-inner {
  padding: 0 1.25rem 1.25rem;
}

/* ==========================================================================
   16. CARROSSEL DE FOTOS
   ========================================================================== */

.carrossel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.carrossel {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE/Edge */
  border-radius: 1rem;
  gap: 0;
}

.carrossel::-webkit-scrollbar {
  display: none;                 /* Chrome/Safari */
}

.carrossel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 1rem;
}

.carrossel-slide img {
  width: 100%;
  height: clamp(220px, 55vw, 420px);
  object-fit: cover;
  border-radius: 1rem;
  display: block;
}

.carrossel-indicadores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.carrossel-bolinha {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--cor-destaque);
  opacity: 0.3;
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.carrossel-bolinha.ativa {
  opacity: 1;
  transform: scale(1.3);
}

/* ==========================================================================
   17. CTA FINAL
   ========================================================================== */

section.cta-final {
  text-align: center;
  padding: 5rem 1.25rem;
  background-color: var(--cor-rosa);
}

section.cta-final h2 {
  font-family: var(--font-titulos);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  color: var(--cor-texto);
  margin-bottom: 1rem;
}

section.cta-final p {
  color: var(--cor-texto-suave);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   18. FOOTER
   ========================================================================== */

footer.footer {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background-color: var(--cor-fundo-alt);
  font-size: 0.85rem;
  color: var(--cor-texto-suave);
  line-height: 1.8;
}

footer.footer a {
  color: var(--cor-destaque);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

footer.footer a:hover {
  color: var(--cor-destaque-hover);
}

/* ==========================================================================
   19. BOTÃO DO MENU FLUTUANTE
   ========================================================================== */

#btn-menu {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 800;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  background-color: rgba(250, 246, 241, 0.92);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(59, 35, 20, 0.12);
  transition: box-shadow 0.2s ease;
}

#btn-menu.visivel {
  display: flex;
}

#btn-menu .material-icons-round {
  font-size: 1.6rem;
  color: var(--cor-texto);
  display: block;
  line-height: 1;
  font-weight: 400; /* Material Icons não usa bold */
}

/* ==========================================================================
   20. DRAWER (menu lateral)
   ========================================================================== */

#drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 810;
  display: none;
}

#drawer-overlay.ativo {
  display: block;
}

#drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background-color: var(--cor-fundo);
  z-index: 820;
  padding: 2rem 1.5rem;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(59, 35, 20, 0.12);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#drawer.aberto {
  right: 0;
}

.drawer-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.drawer-titulo {
  font-family: var(--font-titulos);
  font-size: 1.4rem;
  color: var(--cor-texto);
}

.drawer-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-lista a {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  color: var(--cor-texto);
  border-bottom: 1px solid rgba(59, 35, 20, 0.07);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.drawer-lista a:hover {
  color: var(--cor-destaque);
  padding-left: 0.85rem;
}

.drawer-lista button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.5rem;
  font-size: 1rem;
  font-family: var(--font-corpo);
  font-weight: 700;
  color: var(--cor-texto);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(59, 35, 20, 0.07);
  cursor: pointer;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.drawer-lista button:hover {
  color: var(--cor-destaque);
  padding-left: 0.85rem;
}

.drawer-fechar {
  display: block;
  margin-left: auto;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-titulos);
  font-size: 25px;
  line-height: 15px;
  cursor: pointer;
  color: var(--cor-texto-suave);
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.drawer-fechar:hover {
  color: var(--cor-destaque-hover);
}

.drawer-rodape {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.72rem;
  color: var(--cor-texto-suave);
  line-height: 1.6;
  text-align: center;
  opacity: 0.7;
}

/* Cabeçalho e título do drawer */
.drawer-titulo {
  font-family: var(--font-titulos);
  font-size: 1.3rem;
  color: var(--cor-texto);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cor-rosa);
  font-weight: 400;
}

/* ==========================================================================
   21. MODAIS (RSVP, Estadia, Info, PIX)
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 950;
}

.modal.ativo {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-conteudo {
  position: relative;
  background-color: var(--cor-fundo);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(59, 35, 20, 0.18);
  animation: fade-in 0.25s ease;
}

.modal-fechar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-titulos);
  font-size: 25px;
  line-height: 15px;
  cursor: pointer;
  color: var(--cor-texto-suave);
  padding: 0.25rem;
  transition: color 0.2s ease;
  z-index: 2;
}

.modal-fechar:hover {
  color: var(--cor-destaque-hover);
}

.modal-titulo {
  font-family: var(--font-titulos);
  font-size: 1.75rem;
  color: var(--cor-texto);
  margin-bottom: 1.25rem;
  padding-right: 2rem; /* espaço para o botão fechar */
}

/* ==========================================================================
   22. MEMBROS / TOGGLE DE PRESENÇA (RSVP)
   ========================================================================== */

.membros-lista {
  list-style: none;
  margin: 1rem 0;
}

.membro-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(59, 35, 20, 0.07);
  gap: 0.75rem;
}

.membro-item:last-child {
  border-bottom: none;
}

.membro-nome {
  font-size: 0.95rem;
  color: var(--cor-texto);
  flex: 1;
}

.toggle-presenca {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 1.5rem;
  border: 2px solid rgba(59, 35, 20, 0.15);
  background-color: var(--cor-fundo-alt);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-corpo);
  color: var(--cor-texto-suave);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.toggle-presenca .toggle-sim {
  display: none;
}

.toggle-presenca .toggle-nao {
  display: inline;
}

.toggle-presenca.vai {
  background-color: var(--cor-verde);
  border-color: #a8e6bc;
  color: #2d6a42;
}

.toggle-presenca.vai .toggle-nao {
  display: none;
}

.toggle-presenca.vai .toggle-sim {
  display: inline;
}

/* Tela de sucesso RSVP */
#rsvp-sucesso {
  text-align: center;
  padding: 1.5rem 0;
  display: none;
}

#rsvp-sucesso.visivel {
  display: block;
}

#rsvp-sucesso .icone-coracao {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  animation: pulso 2s ease-in-out infinite;
}

#rsvp-sucesso p {
  font-size: 1rem;
  color: var(--cor-texto-suave);
  line-height: 1.7;
}

/* Aviso de token / acesso */
.aviso-token {
  text-align: center;
  color: var(--cor-texto-suave);
  font-size: 0.9rem;
  padding: 1.5rem 0;
  line-height: 1.7;
}

/* ==========================================================================
   23. UTILITÁRIOS GERAIS
   ========================================================================== */

.pulso {
  animation: pulso 2s ease-in-out infinite;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* Separador decorativo */
.divisor {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cor-rosa), transparent);
  margin: 2rem auto;
  max-width: 300px;
}

/* ==========================================================================
   24. FORMULÁRIOS
   ========================================================================== */

.form-grupo {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-grupo label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cor-texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-grupo input,
.form-grupo textarea,
.form-grupo select {
  font-family: var(--font-corpo);
  font-size: 0.95rem;
  color: var(--cor-texto);
  background-color: var(--cor-fundo-alt);
  border: 1px solid rgba(59, 35, 20, 0.15);
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-grupo input:focus,
.form-grupo textarea:focus,
.form-grupo select:focus {
  border-color: var(--cor-destaque);
  box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.2);
}

.form-grupo textarea {
  resize: vertical;
  min-height: 90px;
}

/* ==========================================================================
   25. CENTRALIZAÇÃO DE BOTÕES STANDALONE NAS SEÇÕES
   ========================================================================== */

.secao-inner > a.btn,
.secao-inner > button.btn,
#forma-pix > button.btn,
#forma-whatsapp > a.btn {
  display: block;
  margin: 0.6rem auto;
  width: fit-content;
}

/* ==========================================================================
   26. FOOTER SENS
   ========================================================================== */

.footer-sens {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--cor-texto-suave);
  opacity: 0.7;
  line-height: 1.6;
}

/* ==========================================================================
   27. TRANSIÇÃO VÍDEO-PRINCIPAL → VÍDEO-LOOP
   ========================================================================== */

/* Hero fixo, mesma posição/proporção do video-principal, sem transição */
section.hero.sobrepondo {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--largura-916);
  height: var(--altura-916);
  z-index: 910;
  transition: none;
}

/* Hero animando de centrado-9:16 para viewport inteira */
section.hero.expandindo {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(0, 0);
  width: 100%;
  height: 100dvh;
  z-index: 910;
  transition: top 1.2s ease, left 1.2s ease, width 1.2s ease, height 1.2s ease, transform 1.2s ease;
}

/* ==========================================================================
   28. MEDIA QUERIES — 768px+
   ========================================================================== */

@media (min-width: 768px) {

  /* Hero */
  h1.hero-nomes {
    font-size: clamp(5rem, 8vw, 7rem);
  }

  p.hero-data {
    font-size: 2rem;
  }

  /* Seções */
  section.secao {
    padding: 6rem 2.5rem;
  }

  .secao-inner {
    padding: 0 1.5rem;
  }

  /* Timeline lado a lado (opcional) */
  .timeline-dupla {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
  }

  .timeline-dupla .timeline {
    padding-left: 2rem;
  }

  /* Countdown com mais espaçamento */
  .countdown {
    gap: 2rem;
  }

  .countdown-numero {
    font-size: 3.5rem;
  }

  /* Modais mais largas */
  .modal-conteudo {
    max-width: 620px;
    padding: 2.5rem;
  }

  /* Carrossel com slides menores (múltiplos visíveis) */
  .carrossel-slide img {
    height: clamp(300px, 40vw, 520px);
  }

  /* Drawer ligeiramente mais largo */
  #drawer {
    width: 320px;
    right: -320px;
  }

  /* Grid de botões no hero */
  .hero-content .btn-grupo {
    flex-direction: row;
  }

  /* FAQ lista com mais espaço */
  .faq-lista {
    gap: 0.75rem;
  }

  /* CTA final */
  section.cta-final {
    padding: 7rem 2.5rem;
  }

  /* Enxoval em grid */
  #lista-enxoval {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }

  #lista-enxoval .enxoval-item {
    border-bottom: 1px solid rgba(59, 35, 20, 0.08);
  }
}

/* ==========================================================================
   26. ACESSIBILIDADE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--cor-destaque);
  outline-offset: 3px;
  border-radius: 4px;
}
