/* ==========================================
   IMPORTAÇÃO DAS FONTES PERSONALIZADAS
============================================= */
@font-face { font-family: 'Aniyah'; src: url('fonts/aniyah.ttf') format('truetype'); font-display: block; }
@font-face { font-family: 'Slight'; src: url('fonts/slight.otf') format('opentype'); font-display: block; }
@font-face { font-family: 'Breathing'; src: url('fonts/breathing.ttf') format('truetype'); font-display: block; }

:root {
  --fundo:        #FFFFFF; 
  --tinta:        #1A3E59; 
  --azul-claro:   #74B4D4; 
  --ouro:         #C2A578;
  --texto:        #4A5A68;
  --linha:        rgba(116, 180, 212, 0.5); 

  --font-aniyah:    "Aniyah", cursive;
  --font-slight:    "Slight", cursive;
  --font-breathing: "Breathing", cursive;
  --font-montserrat: "Montserrat", sans-serif;

  box-sizing: border-box;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: var(--font-montserrat); font-weight: 400; line-height: 1.6;
  overflow-x: hidden; position: relative; width: 100%;
}

/* TELA DE CARREGAMENTO (PRELOADER LUXO) */
#preloader {
  position: fixed; inset: 0; background: var(--fundo); z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  transition: opacity 1.2s ease-in-out, visibility 1.2s;
}

/* O Efeito de Respiração Suave (Agora Responsivo e Blindado) */
.selo-respirando {
  font-family: var(--font-slight);
  /* Escala reduzida: mínimo de 2.2rem, adaptável, máximo de 4.5rem. Os traços cabem perfeitamente. */
  font-size: clamp(2.2rem, 10vw, 4.5rem); 
  color: var(--tinta);
  white-space: nowrap; 
  opacity: 0; /* COMEÇA INVISÍVEL: Impede o navegador de mostrar a fonte feia no 4G lento */
}

/* O JS vai injetar esta classe quando a fonte estiver 100% pronta */
.fonte-pronta .selo-respirando {
  animation: respirar 2.5s infinite ease-in-out;
}

@keyframes respirar {
  0%   { opacity: 0; transform: scale(0.95); }
  50%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(0.95); }
}

.carregado #preloader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================
   AMBIENTAÇÃO E MOLDURA
============================================= */
.marca-dagua-container { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: -1; pointer-events: none; }
.marca-dagua-container img { width: 90vmin; max-width: 800px; opacity: 0.08; object-fit: contain; }

.moldura-pagina { position: absolute; top: 5rem; bottom: 1.5rem; left: 2rem; right: 2rem; border: 1px solid var(--linha); border-radius: 20px; pointer-events: none; z-index: 50; }

.fundo-pilares {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background-color: var(--fundo); padding: 0 1.5rem; display: flex; justify-content: center; align-items: center;
  pointer-events: auto; cursor: pointer; transition: 0.3s;
}
.fundo-pilares:hover .pilares { opacity: 1; transform: scale(1.05); }

/* CORREÇÃO DO FUNDO BRANCO DOS PILARES (TOPO) */
.fundo-pilares .pilares { 
  height: 120px; width: auto; object-fit: contain; opacity: 0.9; transition: 0.3s; 
  mix-blend-mode: multiply; 
}

/* ==========================================
   SECÇÕES E CAPA
============================================= */
main { position: relative; z-index: 2; }
.secao { padding: 5rem 2rem; display: flex; justify-content: center; align-items: center; width: 100%; }
.capa { padding-top: 11rem; min-height: 100vh; position: relative; }
.conteudo { width: 100%; max-width: 56rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: clamp(1.5rem, 4vw, 2.5rem); padding: 0 1rem; }

.nomes { 
  font-family: var(--font-slight); /* <-- A mágica da troca de fonte está aqui */
  font-weight: normal; 
  color: var(--tinta); 
  font-size: clamp(3rem, 7vw, 6rem); /* Ajustado para a Slight ficar imponente */
  line-height: 1; 
  margin: 0; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 1.5rem;}
.nomes span { white-space: nowrap; padding: 0 0.6em; }

.subtitulo { margin: 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--texto); }
.versiculo { margin: 1.5rem 0; max-width: 45rem; padding: 1.5rem 0; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.versiculo p { margin: 0 0 0.8rem; font-size: 0.85rem; letter-spacing: 0.1em; line-height: 1.8; color: var(--azul-claro); font-style: italic; }
.versiculo cite { font-style: normal; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.15em; color: var(--tinta); }

.seta-scroll { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); width: 2rem; height: 2rem; color: var(--azul-claro); opacity: 0.6; }

/* ==========================================
   CONTAGEM (EX-SAVE THE DATE)
============================================= */
.save-the-date-section { padding-top: 2rem; padding-bottom: 6rem; }
.std-card {
  display: flex; width: 100%; max-width: 950px; background-color: #ccf1fc; 
  border-radius: 12px; overflow: hidden; box-shadow: 0 15px 40px rgba(26, 62, 89, 0.08); border: 1px solid var(--linha);
  text-decoration: none; transition: all 0.3s ease; position: relative; cursor: pointer;
}
.std-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(26, 62, 89, 0.15); }

.std-foto { flex: 1.05; min-height: 500px; }
.std-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.8s ease; }
.std-card:hover .std-foto img { transform: scale(1.03); }

/* ESPAÇAMENTO CORRIGIDO DA CONTAGEM */
.std-info { 
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4.5rem 2rem; text-align: center; 
}

.std-data-destaque { display: flex; flex-direction: column; align-items: center; width: 100%; margin-bottom: 2.5rem; }
.std-dia { font-family: var(--font-aniyah); font-size: clamp(6.5rem, 11vw, 9.5rem); line-height: 0.6; color: var(--tinta); font-weight: normal; }
.std-mes { font-family: var(--font-aniyah); font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 0.8; color: var(--tinta); font-weight: normal; margin-top: -0.2rem; white-space: nowrap; z-index: 2; margin-left: 2rem; }

/* O Título "O GRANDE DIA SE APROXIMA" com respiro correto */
.std-titulo { font-family: var(--font-montserrat); font-size: clamp(0.6rem, 1.8vw, 0.8rem); font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--tinta); margin-bottom: 1.5rem; opacity: 0.8; }

.std-contagem { display: flex; gap: clamp(1rem, 2vw, 2rem); margin-bottom: 1.5rem; }
.std-contagem .bloco { display: flex; flex-direction: column; align-items: center; }
.std-contagem b { color: var(--tinta); font-size: clamp(1.8rem, 3vw, 2.2rem); font-family: var(--font-montserrat); font-weight: 500; }
.std-contagem i { color: var(--texto); font-family: var(--font-montserrat); font-weight: 500; font-size: 0.65rem; }

.dica-clique { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tinta); opacity: 0.7; font-weight: 600; }

/* ==========================================
   BANNER FOTO (PROPORÇÃO SEGURA)
============================================= */
.banner-foto {
  position: relative; width: calc(100% - 4rem); margin: 0 auto;
  height: 55vh; min-height: 400px; background-color: var(--tinta); 
  display: flex; align-items: flex-end; justify-content: center; 
  padding-bottom: clamp(2rem, 5vw, 3rem); overflow: hidden;
}
.banner-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; z-index: 0; }
.banner-foto .overlay-azul { position: absolute; inset: 0; background: var(--azul-claro); mix-blend-mode: multiply; opacity: 0.85; z-index: 1; }

.titulo-foto { position: relative; z-index: 2; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; margin: 0; width: 100%; font-size: clamp(3px, 1.4vw, 16px); }
.titulo-foto small { font-size: 1.2em; letter-spacing: 0.4em; font-weight: 500; text-transform: uppercase; margin-bottom: 0.6em; padding-left: 0.4em; }
.titulo-foto span { font-family: var(--font-slight); font-size: 8em; line-height: 0.8; color: #fff; white-space: nowrap; margin-bottom: -0.1em; padding: 0 0.8em; }



/* ==========================================
   A NOVA TIMELINE EDITORIAL E ÍCONES (FUNDO BRANCO CORRIGIDO)
============================================= */
.timeline-card {
  background: rgba(116, 180, 212, 0.05);
  border: 1px solid var(--linha); border-radius: 16px;
  padding: 3rem 2.5rem; display: flex; flex-direction: column; gap: 2.5rem;
  width: 100%; max-width: 600px; margin: 0 auto;
}

.timeline-item { display: flex; align-items: center; gap: 1.5rem; text-align: left; }

/* CORREÇÃO DO FUNDO BRANCO DOS ÍCONES VETORIZADOS */
.icone-timeline { height: 45px; width: 45px; object-fit: contain; flex-shrink: 0; opacity: 0.9; mix-blend-mode: multiply; }

.timeline-text { display: flex; flex-direction: column; }
.timeline-text strong { color: var(--tinta); font-size: clamp(0.9rem, 2.5vw, 1.1rem); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.timeline-text em { color: var(--texto); font-size: clamp(0.75rem, 2vw, 0.85rem); font-style: normal; margin-top: 0.3rem; }

.timeline-link { text-decoration: none; cursor: pointer; transition: 0.3s; padding: 1rem; margin: -1rem; border-radius: 12px; }
.timeline-link:hover { background: rgba(116, 180, 212, 0.1); transform: translateX(8px); }
.timeline-link em { color: var(--azul-claro); font-weight: 600; }

/* ==========================================
   PRESENTES E CONFIRMAÇÃO
============================================= */
.texto-intro-presentes { max-width: 500px; margin: 0 auto 3rem auto; font-size: clamp(0.9rem, 2.5vw, 1.05rem); color: var(--texto); line-height: 1.8; }

.grid-cards-acao { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; width: 100%; max-width: 750px; margin: 0 auto; }

.card-acao {
  background: var(--fundo); border: 1px solid var(--linha); border-radius: 16px; 
  padding: 3rem 1.5rem; display: flex; flex-direction: column; align-items: center; 
  text-decoration: none; transition: 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.card-acao.destaque { background: rgba(116, 180, 212, 0.05); }
.card-acao:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(26, 62, 89, 0.08); border-color: var(--tinta); }

/* CORREÇÃO DO FUNDO BRANCO NOS ÍCONES DE AÇÃO */
.card-acao-icone img { height: 60px; width: auto; margin-bottom: 1.5rem; transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); mix-blend-mode: multiply; }
.card-acao:hover .card-acao-icone img { transform: scale(1.15) rotate(3deg); }

.card-acao-texto h3 { font-family: var(--font-montserrat); color: var(--tinta); font-size: clamp(0.9rem, 2vw, 1.1rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 0.5rem 0; }
.card-acao-texto span { font-size: 0.75rem; color: var(--azul-claro); font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; transition: 0.3s; }
.card-acao:hover .card-acao-texto span { color: var(--tinta); padding-left: 5px; }

/* ==========================================
   DRESS CODE E RODAPÉ 
============================================= */
.icone-ilustracao { width: 120px; height: auto; object-fit: contain; margin-bottom: 1.5rem; mix-blend-mode: multiply; }

.script.principal { 
  font-family: var(--font-aniyah); 
  font-size: clamp(2.2rem, 6vw, 5.5rem); 
  line-height: 1; 
  white-space: nowrap; 
  text-align: center;
}

.etiqueta { margin: -1.5rem 0 2rem; font-size: clamp(0.7rem, 2vw, 0.9rem); font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--tinta); }
.texto { max-width: 36rem; font-size: clamp(0.8rem, 2.5vw, 0.95rem); line-height: 1.8; margin: 0 auto; color: var(--texto); }
.texto p { margin-bottom: 1rem; }

/* ESTILO PARA A IMAGEM NA SEÇÃO DRESS CODE */
.amostra-imagem {
  margin-top: 2rem;
  width: 100%;
  max-width: 750px; /* Limita o tamanho máximo para não ficar gigante no PC */
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 62, 89, 0.08);
  border: 1px solid var(--linha);
}

.amostra-imagem .imagem-referencia {
  width: 100%;
  height: auto;
  display: block;
  background-color: var(--fundo);
}

.amostra { display: flex; align-items: center; justify-content: center; gap: 0.8rem; font-size: clamp(0.6rem, 1.8vw, 0.75rem); letter-spacing: 0.1em; color: var(--texto); margin-top: 1rem; }
.amostra .cor { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--azul-claro); }

.foto-final-container { padding-bottom: 8rem; }
.moldura-foto-rodape { width: 100%; max-width: 450px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.08); aspect-ratio: 4/5; }
.moldura-foto-rodape img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }

/* ==========================================
   BARRA DE AÇÃO FLUTUANTE EM PÍLULA
============================================= */
.barra-flutuante {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); 
  width: calc(100% - 4rem); max-width: 400px;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: none; justify-content: center; align-items: center;
  padding: 0.6rem; border-radius: 999px; z-index: 999; 
  box-shadow: 0 10px 30px rgba(26, 62, 89, 0.15);
  border: 1px solid rgba(116, 180, 212, 0.3);
}
.barra-conteudo { display: flex; width: 100%; gap: 0.5rem; }
.btn-flutuante {
  font-family: var(--font-montserrat); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--tinta); background: transparent; text-decoration: none;
  padding: 0.8rem 1rem; border-radius: 999px; text-align: center; flex: 1; transition: 0.3s;
}
.btn-flutuante.ouro { background: var(--tinta); color: #fff; }
.btn-flutuante:active { transform: scale(0.95); }

/* ANIMAÇÕES */
.animar-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animar-scroll.visivel { opacity: 1; transform: translateY(0); }
.animar-flutuar { animation: flutuar 2.5s infinite ease-in-out; }
@keyframes flutuar { 0% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } 100% { transform: translate(-50%, 0); } }

/* ==========================================
   A MÁGICA DA RESPONSIVIDADE (MOBILE UX)
============================================= */
@media (max-width: 900px) {
  .moldura-pagina { top: 4.5rem; bottom: 1rem; left: 1rem; right: 1rem; }
  .fundo-pilares .pilares { height: 80px; }
  
  .secao { padding: 3.5rem 1rem; }
  .capa { padding-top: 9rem; }
  
  .nomes { font-size: clamp(1rem, 5.5vw, 1.6rem); gap: 0.8rem; }
  .nomes .conector { font-size: 0.8rem; }

  /* Ajuste seguro para a palavra Casamento não vazar de todo */
  .banner-foto { width: calc(100% - 2rem); height: 45vh; min-height: 350px; padding-bottom: 1.5rem; }
  .titulo-foto { font-size: clamp(2px, 1.5vw, 10px); }

  .quebra-desktop { display: none; }

  .std-card { flex-direction: column; }
  .std-foto { min-height: 400px; }
  .std-info { padding: 3rem 1.5rem; }
  
  /* DEVOLVENDO A HIERARQUIA MARCANTE AO 19 DE DEZEMBRO NO MOBILE */
  .std-data-destaque { margin-bottom: 2rem; }
  .std-dia { font-size: clamp(6.5rem, 20vw, 8.5rem); line-height: 0.6; }
  .std-mes { font-size: clamp(1.8rem, 6vw, 2.5rem); margin-top: -0.2rem; margin-left: 1rem; }
  
  .std-titulo { font-size: 0.65rem; padding-top: 0; margin-bottom: 1rem; }
  .std-contagem b { font-size: clamp(1.5rem, 5vw, 1.8rem); }
  
  /* Timeline Mobile */
  .timeline-card { padding: 2rem 1.5rem; gap: 2rem; }
  .timeline-item { gap: 1rem; }
  .icone-timeline { height: 35px; width: 35px; }
  .timeline-link { margin: -0.5rem; padding: 0.5rem; }

  /* Cartões Presentes/RSVP Mobile - Layout Horizontal Clean */
  .grid-cards-acao { grid-template-columns: 1fr; gap: 1rem; }
  .card-acao { padding: 1.5rem 1.2rem; flex-direction: row; text-align: left; gap: 1.2rem; justify-content: space-between; }
  .card-acao-icone img { margin-bottom: 0; height: 45px; }
  .card-acao-texto h3 { font-size: 0.85rem; margin-bottom: 0.2rem; }

  .foto-final-container { padding-bottom: 7rem; }

  .barra-flutuante { display: flex; width: calc(100% - 2rem); }
}