/* ==========================================================================
   PALETA DE CORES E VARIÁVEIS
   ========================================================================== */
:root {
    --primary: #8da399;
    --accent: #d4a373;
    --bg: #f8f9fa; 
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* ==========================================================================
   RESET E CONFIGURAÇÕES GERAIS
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    background: var(--bg);
    color: #444;
    overflow-x: hidden;
}

.container { 
    width: 90%; 
    max-width: 1100px; 
    margin: auto; 
}

/* ==========================================================================
   HERO (TOPO)
   ========================================================================== */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url("images/daviefernanda03.jpeg");
    background-size: cover;
    background-position: center 35%;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    
    /* ALTERAÇÕES AQUI */
    align-items: flex-end; /* Alinha o conteúdo na parte de baixo */
    padding-bottom: 80px;  /* Ajuste esse valor (ex: 100px, 120px) para subir ou descer mais */
    
    clip-path: ellipse(150% 100% at 50% 0%);
    margin-bottom: -50px;
    z-index: 1;
    position: relative;
}

.hero-overlay {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Para o nome Davi & Fernanda */
.hero-overlay h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 5.5rem;
    color: #fff;
    /* Sombra cinza escura bem esfumada para dar contraste */
    text-shadow: 5px 5px 19px rgba(0, 0, 0, 0.6); 
    margin: 0;
}

/* Para a data 12 - 04 - 2026 */
.hero-overlay p {
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 10px;

    /* CONTORNO: 0.5px (mais fino por ser letra menor) */
    -webkit-text-stroke: 1.0px rgba(40, 40, 40, 0.8);
    
    text-shadow: 7px 7px 9px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   CONTAGEM REGRESSIVA
   ========================================================================== */
.contagem-regressiva {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: #e4e4e4;
    width: 100%;
    min-height: 400px;
}

.contagem-regressiva h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4A6741;
    margin-bottom: 40px;
    display: block;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tempo {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    min-width: 90px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tempo span {
    display: block;
    font-size: 2.8rem;
    font-weight: bold;
    color: #4A6741;
    line-height: 1;
}

.tempo p {
    font-size: 0.8rem;
    margin-top: 5px;
    text-transform: uppercase;
    color: #888;
}

/* ==========================================================================
   SEÇÃO SOBRE NÓS
   ========================================================================== */
.secao-sobre {
    position: relative;
    z-index: 2;
    background: #fff;
    clip-path: ellipse(150% 100% at 50% 0%);
    padding: 120px 0 100px 0;
    margin-bottom: -50px;
}

.sobre { 
    display: flex; 
    gap: 60px; 
    align-items: center; 
}

.sobre img { 
    width: 400px; 
    height: 500px; 
    object-fit: cover; 
    border-radius: 50% 50% 0 0; 
    box-shadow: 20px 20px 0px var(--primary); 
}

.sobre .texto h2 { 
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 2.8rem; 
    color: var(--primary);
    margin-bottom: 25px;
}

.sobre .texto p { 
    font-size: 1.2rem; 
    line-height: 1.6; 
}

/* ==========================================================================
   SEÇÃO LOCALIZAÇÃO
   ========================================================================== */
.secao-inspiracoes {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url("images/sitio.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0 100px 0;
    clip-path: ellipse(150% 100% at 50% 0%);
    margin-bottom: -50px;
    position: relative;
    z-index: 1;
}

.titulo-sessao { 
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 2.8rem; 
    text-align: center;
    margin-bottom: 35px;
}

.titulo-localizacao { 
    color: #ffffff !important; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.mapa-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.mapa-container iframe {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: none;
}

.link-ambiente a {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 25px;
    transition: 0.3s;
}

/* =========================================================================
   CÍRCULO CORES DE PREFERÊNCIA
   ========================================================================= */
.cores-preferencia {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

.cor-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.circulo {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
}

.inox { background: linear-gradient(135deg, #bdc3c7, #2c3e50); }
.preto { background: #000; }
.verde { background: #8da399; }
.branco { 
    background: #fff; 
    border: 1px solid #999 !important; 
}

/* ==========================================================================
   LISTA DE PRESENTES
   ========================================================================== */
.secao-lista {
    background-color: var(--bg);
    padding: 20px 0 100px 0;
}

.presentes {
    background: var(--white); 
    padding: 60px 40px; 
    border-radius: 40px;
    box-shadow: var(--shadow);
}

.presentes h3 { 
    font-family: 'Great Vibes', cursive; 
    font-size: 4rem; 
    color: var(--primary); 
    text-align: center; 
}

.presentes h2 { 
    color: var(--accent); 
    text-transform: uppercase; 
    font-size: 1.1rem; 
    letter-spacing: 2px; 
    text-align: center; 
    margin-bottom: 20px; 
}

.titulo-categoria { 
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2rem !important; 
    color: var(--primary) !important;
    margin: 40px 0 20px 0;
    text-transform: capitalize !important;
    font-weight: 400 !important;
}

.container_colunas_cozinha { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: space-between; 
}

.coluna_cozinha { 
    flex: 1; 
    min-width: 200px; 
    background: #fdfdfd; 
    padding: 20px; 
    border-radius: 20px; 
    border: 1px solid #eee; 
    transition: 0.3s; 
}

.coluna_cozinha:hover { border-color: var(--primary); }

.item { 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    transition: 0.2s;
}

.item:hover { transform: translateX(5px); }

.item input[type="checkbox"] { 
    accent-color: var(--primary); 
    width: 18px; 
    height: 18px; 
    cursor: pointer; 
}

.item label { cursor: pointer; font-size: 1.1rem; }

.item input[type="checkbox"]:disabled + label { 
    text-decoration: line-through; 
    color: #bbb; 
}

/* ==========================================================================
   RSVP (FORMULÁRIO E BUSCA)
   ========================================================================== */
.secao-rsvp {
    position: relative;
    padding: 180px 0 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), 
                url("images/daviefernanda07.png"); 
    background-size: cover;
    
    /* ALTERAÇÃO AQUI: */
    background-position: center 20%; /* 20% faz a imagem "subir", focando no topo (rostos) */
    
    background-attachment: fixed;
    clip-path: ellipse(150% 100% at 50% 100%); 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
}

.rsvp-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 90%;
    backdrop-filter: blur(10px);
    text-align: center;
    margin: 0 auto 100px auto;
}

.busca-container {
    display: flex;
    gap: 10px;
    background: transparent !important; /* Limpeza total para evitar o bug branco */
    padding: 0;
    margin: 20px auto 0 auto;
    max-width: 500px;
    width: 100%;
}

#nome-busca {
    flex: 1;
    background: #f1f1f1;
    border: 1px solid #eee;
    padding: 15px 25px;
    font-size: 1rem;
    border-radius: 50px;
    outline: none !important;
    box-shadow: none !important; /* Remove sombra que causa o bug */
    color: #444;
}

#nome-busca:focus {
    background: #fff;
    border-color: var(--primary);
}

.busca-container button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

/* ==========================================================================
   SEÇÃO PIX / QR CODE
   ========================================================================== */
.secao-pix {
    padding: 100px 0 60px 0;
    background-color: var(--bg);
    position: relative;
    z-index: 2;
}

.pix-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 40px;
    box-shadow: var(--shadow);
}

.pix-texto { flex: 1.5; }
.pix-texto h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.pix-texto p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.chave-pix {
    display: inline-block;
    padding: 12px 25px;
    background: #f4f7f6;
    border: 1px dashed var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-weight: bold;
}

.pix-qrcode {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: 1px solid #eee;
    padding-left: 50px;
}

.pix-qrcode img {
    width: 220px;
    height: 220px;
    border-radius: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border: 1px solid #f0f0f0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    width: 100%;
    text-align: center;
    padding: 40px 20px; /* Aumentei o padding para ele não ficar colado no card */
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
    background: transparent; /* Garante que não haja fundo */
    border: none !important;    /* REMOVE A LINHA CINZA */
    position: relative;
    z-index: 2;
}

footer p {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5); /* Sombra para o nome não sumir na foto */
    letter-spacing: 1px;
}

/* ==========================================================================
   RESPONSIVIDADE GERAL (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    /* Hero */
    .hero { clip-path: none; height: 60vh; }
    .hero-overlay h1 { font-size: 3.5rem; }

    /* Sobre */
    .sobre { flex-direction: column; text-align: center; }
    .sobre img { width: 100%; height: 350px; border-radius: 20px; }

    /* Localização */
    .secao-inspiracoes { 
        background-attachment: fixed !important; 
        background-position: center center; 
        padding: 80px 0; 
        clip-path: none; 
    }

    /* Cores de Preferência */
    .cores-preferencia { gap: 10px 15px; padding: 0 10px; }
    .cores-preferencia > span { display: block; width: 100%; margin-bottom: 5px; }

    /* Busca RSVP */
    .busca-container {
        flex-direction: column;
        background: transparent !important;
    }
    
    #nome-busca {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px 15px;
    }

    #nome-busca::placeholder { font-size: 14px; }

    /* Seção RSVP Imagem */
    .secao-rsvp {
        background-attachment: fixed !important;
        background-size: auto 100% !important; 
        background-position: center center !important;
        clip-path: none !important; 
        padding: 80px 0 !important;
        min-height: 100vh !important; 
    }

    .rsvp-card { width: 85% !important; }

    /* Pix Mobile */
    .pix-wrapper { flex-direction: column; text-align: center; padding: 40px 25px; }
    .pix-qrcode { border-left: none; border-top: 1px solid #eee; padding: 40px 0 0 0; width: 100%; }

    /* Dentro de @media (max-width: 768px) no seu style.css */

    .titulo-confirmacao {
        /* Diminuímos o tamanho da letra para caber em uma linha só no celular */
        font-size: 1.8rem !important; 
        line-height: 1.2;
        word-wrap: break-word; /* Garante que se a palavra for gigante, ela quebre */
    }

    .rsvp-card {
        /* Ajustamos o respiro interno para o texto não encostar nas bordas */
        padding: 30px 15px !important; 
        width: 92% !important;
    }

    .instrucao-rsvp {
        /* Diminuímos um pouco a instrução também para manter a harmonia */
        font-size: 0.95rem !important;
        padding: 0 10px;
    }
}

.lista-escolha {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-nome-encontrado {
    background: #f8f9fa;
    border: 1px solid #8da399;
    color: #8da399;
    padding: 12px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-nome-encontrado:hover {
    background: #8da399;
    color: white;
}