/* -------------------- GLOBAL -------------------- */
body {
    margin: 0;
    font-family: "Times New Roman", serif;
    background-color: #f8f5f2;
    color: #333;
}


section {
    max-width: 800px;
    margin: -30px auto;
    padding: 20px;
    text-align: center;
}

section h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: #C9A33A;
    margin-bottom: 50px;
    font-weight: normal;
    padding: 8px 20px;
    border-radius: 12px;
    text-shadow:
      /* stroke branco mais forte */
        -2px -2px 0 #ffffff,
         2px -2px 0 #ffffff,
        -2px  2px 0 #ffffff,
         2px  2px 0 #ffffff,

        /* brilho externo */
        0 0 12px rgba(255, 255, 255, 0.9),
        0 0 22px rgba(255, 255, 255, 0.8),

        /* sombra para contraste */
        0 4px 12px rgba(0, 0, 0, 0.55);

        
}

/* -------------------- HEADER / CARROSSEL -------------------- */
header {
    position: relative;
    text-align: center;
    color: white;
    overflow: visible;
    height: 60vh;   /* ← mobile vai continuar com isso */
    padding-bottom: 40px;
}

@media (max-width: 768px) {
    header {
        padding-bottom: 80px;
    }
}



/* INTRODUÇÃO COM SETINHA*/

.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  animation: fadeOut 1s ease forwards;
  animation-delay: 4s; /* depois some */
  z-index: 9999;
}

.intro-overlay h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  text-align: center;
}

.intro-overlay p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
  max-width: 280px;
}

.arrow-down {
  margin: 0 auto;
  text-align: center;
}


/* Animação da seta */
.arrow-down {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* Fade para sumir depois */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}















/* ----- CARROSSEL CORRIGIDO ----- */
.carousel {
    position: relative;
    width: 100%;
    height: 80vh; /* ajuste ideal desktop, pode trocar */
    overflow: hidden;
    border: 5px solid white;  /* sua moldura */
    box-sizing: border-box;   /* garante que a borda conta no tamanho */
    padding: 2px;
    border-radius: 12px;
}


/* moldura completa */
.carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 8px double rgba(223, 174, 76, 0.7);
    border-radius: 0px;
    pointer-events: none;
    z-index: 9998;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0; /* ← isso impede de ficarem apertadas lado a lado */
}

/* mobile */
@media (max-width: 768px) {
    .carousel {
        height: 450px; /* fica mais bonito no celular */
    }
}


/* data por cima / abaixo do carrossel */
.date-overlay {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    color: #C9A33A;
    margin-bottom: 100px;
    font-weight: normal;
    padding: 8px 20px;
    border-radius: 12px;
    text-shadow:
      /* stroke branco mais forte */
        -2px -2px 0 #ffffff,
         2px -2px 0 #ffffff,
        -2px  2px 0 #ffffff,
         2px  2px 0 #ffffff,

        /* brilho externo */
        0 0 12px rgba(255, 255, 255, 0.9),
        0 0 22px rgba(255, 255, 255, 0.8),

        /* sombra para contraste */
        0 4px 12px rgba(0, 0, 0, 0.55);

        
}

.bloco-data {
    text-align: center;
    margin-top: 70px;
    margin-bottom: 50px;
}

.texto-data {
    font-size: 1.2rem;
    color: white;
    margin: 0;
    margin-bottom: 10px;
}

.countdown-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* texto alinhado à esquerda igual tooltip música */
    gap: 6px;
}

.countdown-tooltip, .countdown-box {
    background-color: #d4a373;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    animation: fadeIn 0.5s ease;
    position: relative;
    z-index: 9999 !important;
    max-width: 210px;
}

/* contagem numerica */
.countdown-box {
    background-color: #ffffff; 
    color: #000;
}

.intro-text p {
    text-align: justify;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.4;
   
}




/* -------------------- LOCAL DO EVENTO -------------------- */
.local {
    background: transparent;
    color: #000000;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 
        0 0 0 2px white,
        0 0 0 5px #d4a373;
}


.copiar-endereco {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
    color: #d4a373;
}

.copiar-endereco:hover {
    color: #b58960;
}

.horarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.horarios div {
    
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 6px #d4a373;
    text-align: center;
}

.horarios strong {
    display: block;
    font-size: 1.1rem;
    color: #d4a373;
    margin-bottom: 5px;
}

.horarios span {
    font-size: 1rem;
    color: #333;
}



/* ===== Cores das Testemunhas ===== */

.cores-testemunhas {
    text-align: center;
    padding: 50px 20px;
}

.cores-testemunhas h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: #C9A33A;
    margin-bottom: 15px;
}

.cores-testemunhas p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Container lado a lado */
.container-testemunhas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Cada bloco (madrinhas / padrinhos) */
.grupo {
    text-align: center;
    width: 260px;
}

.subtitulo-cores {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #7a5432;
}

/* Linha vertical */
.linha-vertical {
    width: 3px;
    height: 550px;
    background-color: #d4a373;
    opacity: 0.6;
    border-radius: 10px;
}

/* Círculos */
.paleta-cores {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.cor {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 3px solid #d4a373;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.cor:hover {
    transform: scale(1.12);
}

.texto-grupo {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #5a4633;
    margin-top: 15px;
    line-height: 1.5;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
}


/* Responsivo: empilha no mobile */
@media (max-width: 700px) {

    .container-testemunhas {
        flex-direction: column;
        gap: 30px;
    }

    /* some com a barra vertical */
    .linha-vertical {
        display: none;
    }

    /* cria uma barra horizontal */
    .container-testemunhas::after {
        content: "";
        width: 80%;
        height: 3px;
        background-color: #d4a373;
        border-radius: 10px;
        margin: 10px auto;
        opacity: 0.7;
    }

}



/* Lista de roupas*/

.lista-traje {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: #5a4633;
    margin-top: 15px;
    line-height: 1.5;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
}


/* POP UP DOS MODELOS */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-conteudo {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
}

.popup-conteudo img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.popup-fechar {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #5a4633;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}




/* -------------------- LISTA DE PRESENTES -------------------- */
.presentes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.presente {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding-bottom: 15px;
    text-align: center;  /* Adiciona alinhamento centralizado */
}

.presente img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.presente h3 {
    margin: 15px 0 5px;
}

.preco {
    display: block; /* Faz o preço ser exibido em um bloco */
    font-size: 1.1rem;
    font-weight: bold;
    color: #d4a373;  /* Cor que combina com o estilo */
    margin-bottom: 10px;
}

.presente p {
    font-size: 0.9rem;
    padding: 0 10px;
    color: #666;
}

.botao-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.presente button, .presente a {
    padding: 8px 15px;
    border: none;
    background-color: #d4a373;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.presente button:hover, .presente a:hover {
    background-color: #b58960;
}



/* -------------------- FORM CONFIRMAÇÃO -------------------- */
section h2 {
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 2.6rem;
    margin-bottom: 20px;
}

/* Container do formulário */
form {
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    text-align: center; /* <<< AQUI CENTRALIZA TUDO */
}

/* Labels centralizados */
form label {
    display: block;
    text-align: center;  /* <<< centraliza o texto dos labels */
    margin-top: 15px;
    font-weight: bold;
    color: #7a5432;
}

/* Inputs centralizados dentro do card */
form input,
form textarea {
    width: 90%;                    /* <<< não encosta na borda */
    max-width: 380px;
    margin: 8px auto 0 auto;       /* <<< centraliza horizontalmente */
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #d4a373;
    font-size: 1rem;
    display: block;
    text-align: center;            /* <<< texto dentro do input */
}

/* Botão bonito */
form button {
    margin-top: 20px;
    background-color: #d4a373;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: 0.2s ease;
}

form button:hover {
    background-color: #b58960;
}


/* -------------------- FOOTER -------------------- */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* -------------------- MÚSICA / TOOLTIP -------------------- */
.btn-musica {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d4a373;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 9999 !important;
}

.tooltip-musica {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #d4a373;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 9999 !important;
    text-align: center;
    max-width: 200px;
    animation: fadeIn 0.5s ease;
}

.tooltip-seta {
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #d4a373;
    z-index: 9999 !important;
}

/* -------------------- ANIMAÇÃO -------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------- RESPONSIVIDADE -------------------- */
@media (max-width: 768px) {
    .carousel {
        height: auto;
    }
    .date-overlay {
        bottom: 100px;
    }
}

h2 {
    color: #C9A33A;
}

form label {
    color: #C9A33A;
}

/* ===== Contador flutuante (inferior direita) ===== */

/* ==================== TOOLTIP CONTAGEM (igual ao da música) ==================== */
/* Balão do texto da contagem */
.tooltip-contagem {
    position: fixed;
    bottom: 90px;
    left: 20px;
    background-color: #d4a373;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 9999 !important;
    max-width: 200px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.tooltip-seta-contagem {
    position: absolute;
    bottom: -6px;
    left: 25px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #d4a373;
}

/* Contagem do lado de fora */
.countdown-flutuante {
    position: fixed;
    bottom: 37px;
    left: 22px;
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff; /* branco */
    background-color: #d4a373; /* mesmo do balão */
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 10002;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: none;
    

}

/* Começam escondidos – JS controla quando aparecem */
.tooltip-contagem{
    display: none;
}






/* caixa branca com borda dourada que contém os números */
.countdown-timer {
    background-color: #ffffff;      /* branco */
    color: #000000;                 /* números em preto */
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid #C9A33A;     /* borda dourada */
    font-size: 1.05rem;
    font-family: "Times New Roman", serif; /* números em Times (texto base) */
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    min-width: 120px;
    text-align: center;
}

/* ajuste responsivo: reduzir tamanho em telas pequenas */
@media (max-width: 420px) {
    .countdown-tooltip { font-size: 0.85rem; padding: 5px 8px; }
    .countdown-timer { font-size: 0.95rem; padding: 8px 10px; min-width: 100px; }
}


/* ===== DESKTOP (arruma o carrossel só no PC) ===== */
@media (min-width: 769px) {

    header {
        height: auto;          /* deixa o header crescer junto */
            /* impede de cortar a imagem */
        padding-bottom: 40px;
    }

    .carousel {
        height: 85vh;          /* Aumenta espaço da foto no desktop */
    }
}

@media (min-width: 1024px) {
  .carousel {
    height: 1300px; /* aumente até ficar perfeito — pode testar 500, 550, 600... */
  }
}


/* ======= carrossel no celular */

@media (max-width: 768px) {
  .carousel {
    height: 700px; /* aumente ou diminua até ficar perfeito */
  }

  .carousel img {
    object-fit: cover;       /* garante que preencha tudo */
    object-position: center; /* centra a parte importante */
  }
}

/* ===== MODAL PIX ===== */
.pix-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pix-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  position: relative;
}

.pix-box img {
  width: 220px;
  margin: 15px auto;
}

.pix-box textarea {
  width: 100%;
  height: 80px;
}

.pix-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}


/* ===== OVERLAY ESCURO ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

/* ===== CAIXA DO MODAL ===== */
.modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 420px;

    padding: 24px;
    border-radius: 14px;

    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    position: relative;

    animation: modalIn 0.25s ease;
}

/* ===== ANIMAÇÃO ===== */
@keyframes modalIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== BOTÃO FECHAR (X) ===== */
.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;

    font-size: 22px;
    font-weight: bold;
    cursor: pointer;

    color: #999;
}

.modal-close:hover {
    color: #000;
}

/* ===== TÍTULO ===== */
.modal-box h2 {
    margin-top: 0;
    text-align: center;
    font-size: 22px;
}

/* ===== INPUTS ===== */


/* ===== BALÃO CONFIRMAÇÃO PRESENÇA ===== */
.confirmacao-balao {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    background-color: #d4a373;
    color: #333;
    padding: 22px 28px;
    border-radius: 14px;
    font-size: 1.15rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 99999;
    text-align: center;
    max-width: 320px;
    animation: aparecerConfirmacao 0.4s ease;
}

@keyframes aparecerConfirmacao {
    from {
        opacity: 0;
        transform: translate(-50%, 60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 50%);
    }
}


/* ===== CARD PIX LIVRE ===== */


.presente-livre {
    grid-column: span 2; /* 👈 ocupa DUAS colunas */
    text-align: center;
    padding: 30px;
}


/* Input de valor */
.presente-livre .valor-livre {
    width: 100%;
    max-width: 180px;
    padding: 10px 12px;
    margin: 12px 0;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    text-align: center;
    outline: none;
}

/* Foco bonito */
.presente-livre .valor-livre:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.15);
}

/* Botão alinhado */
.presente-livre button {
    margin-top: 6px;
}




/* Correção de visão mobile */

/* ================= MOBILE AJUSTES GERAIS ================= */
@media (max-width: 768px) {

    /* títulos grandes */
    section h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    /* data do casamento */
    .date-overlay {
        font-size: 2.6rem;
        margin-bottom: 40px;
    }

    /* textos de introdução */
    .intro-text p {
        text-align: center;
        padding: 0 16px;
        font-size: 1rem;
    }
}





@media (max-width: 768px) {

    section {
        margin: 0 auto;
        padding: 20px 16px;
    }

}

@media (max-width: 768px) {

    .horarios {
        grid-template-columns: 1fr;
        gap: 12px;
    }

}

@media (max-width: 768px) {

    .container-testemunhas {
        flex-direction: column;
        gap: 30px;
    }

    .paleta-cores {
        justify-content: center;
        flex-wrap: wrap;
    }

}

@media (max-width: 768px) {

    .presentes {
        grid-template-columns: 1fr;
    }

    .presente-livre {
        grid-column: span 1;
    }

}

@media (max-width: 768px) {

    .intro-text {
        margin-top: 40px;
    }

}

@media (max-width: 768px) {

    .intro-text {
        margin-top: 150px; /* ↑ aumente ou diminua aqui */
    }

}


@media (max-width: 700px) {

    .linha-vertical {
        display: block;
        width: 120px;
        height: 3px;
        margin: 15px auto;
        background-color: #d4a373;
        border-radius: 10px;
        opacity: 0.6;
    }

}


