/* =========================
   CONFIGURAÇÕES GERAIS
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    background: #faf7f2;
    color: #4a4038;
    line-height: 1.6;
}


/* =========================
   CABEÇALHO
========================= */

.cabecalho {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 40px 20px;

    background:
        linear-gradient(
            rgba(250, 247, 242, 0.88),
            rgba(250, 247, 242, 0.88)
        );

    border-bottom: 1px solid #e5ddd4;
}

.pequeno {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #9a8068;
    margin-bottom: 15px;
}

.cabecalho h1 {
    font-size: clamp(48px, 8vw, 85px);
    font-weight: normal;
    color: #675448;
    margin-bottom: 20px;
}

.frase {
    max-width: 600px;
    font-size: 19px;
    color: #75685e;
    margin-bottom: 20px;
}

.coracao {
    font-size: 35px;
    color: #b48b7b;
    margin-bottom: 25px;
}


/* =========================
   BOTÕES
========================= */

button {
    border: none;
    border-radius: 30px;

    padding: 13px 25px;
    margin: 7px;

    font-family: Arial, sans-serif;
    font-size: 15px;

    background: #9a8068;
    color: white;

    cursor: pointer;

    transition: 0.3s;
}

button:hover {
    background: #786250;
    transform: translateY(-2px);
}


/* =========================
   LISTA DE PRESENTES
========================= */

#lista {
    max-width: 1200px;
    margin: auto;
    padding: 80px 25px;
}

#lista > h2 {
    text-align: center;
    font-size: 38px;
    font-weight: normal;
    color: #675448;
    margin-bottom: 15px;
}

.descricao {
    max-width: 650px;
    margin: 0 auto 55px;
    text-align: center;
    color: #75685e;
}


/* =========================
   CATEGORIAS
========================= */

.categoria {
    margin-bottom: 65px;
}

.categoria h3 {
    font-size: 28px;
    font-weight: normal;
    color: #675448;

    border-bottom: 1px solid #dfd4ca;

    padding-bottom: 12px;
    margin-bottom: 25px;
}


/* =========================
   CARDS
========================= */

.lista-presentes {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;
}

.presente {
    background: white;

    border: 1px solid #e9e0d8;
    border-radius: 15px;

    padding: 25px;

    text-align: center;

    box-shadow:
        0 5px 20px rgba(70, 55, 45, 0.06);

    transition: 0.3s;
}

.presente:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 30px rgba(70, 55, 45, 0.10);
}

.presente h4 {
    font-size: 19px;
    font-weight: normal;
    color: #675448;
    margin-bottom: 10px;
}

.presente p {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #5c9a72;
    margin-bottom: 15px;
}


/* =========================
   PIX
========================= */

#pix {
    text-align: center;

    padding: 80px 25px;

    background: #f1ebe4;

    border-top: 1px solid #e2d8ce;
}

#pix h2 {
    font-size: 35px;
    font-weight: normal;
    color: #675448;

    margin-bottom: 20px;
}

#pix p {
    margin-bottom: 15px;
}

#chavePix {
    display: inline-block;

    padding: 12px 20px;

    background: white;

    border: 1px solid #ddd0c5;
    border-radius: 8px;

    font-family: Arial, sans-serif;
}


/* =========================
   RODAPÉ
========================= */

footer {
    text-align: center;

    padding: 30px 20px;

    background: #675448;

    color: white;

    font-size: 15px;
}

 /* =========================
   CAMPO DE NOME
========================= */

#campoNome {
    width: 100%;
    max-width: 380px;

    padding: 15px 18px;

    border: 1px solid #ddd0c5;
    border-radius: 12px;

    background: white;

    font-family: Arial, sans-serif;
    font-size: 16px;

    color: #4a4038;

    outline: none;

    margin-bottom: 15px;

    transition: 0.3s;
}

#campoNome:focus {
    border-color: #9a8068;

    box-shadow:
        0 0 0 3px rgba(154, 128, 104, 0.12);
}

#campoNome::placeholder {
    color: #aaa09a;
}

#cancelarNome {
    background: transparent;
    color: #9a8068;

    border: 1px solid #d8ccc2;
}

#cancelarNome:hover {
    background: #f1ebe4;

    color: #675448;

    transform: none;
}

/* =========================
   BOTÕES DE CANCELAMENTO
========================= */

#confirmarCancelamento {
    background: #b86b6b;
    color: white;
}

#confirmarCancelamento:hover {
    background: #9f5555;
    transform: translateY(-2px);
}

#voltarCancelamento {
    background: transparent;
    color: #9a8068;

    border: 1px solid #d8ccc2;
}

#voltarCancelamento:hover {
    background: #f1ebe4;

    color: #675448;

    transform: none;
}

/* =========================
   MODAL DE CONFIRMAÇÃO
========================= */

.modal {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(70, 55, 45, 0.55);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    z-index: 9999;
}

.modal.ativo {
    display: flex;
    pointer-events: auto;
}

.modal:not(.ativo) {
    pointer-events: none;
}
.modal-conteudo {
    width: 100%;
    max-width: 500px;

    background: #fffaf6;

    border-radius: 22px;

    padding: 40px 30px;

    text-align: center;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.20);

    animation: aparecerModal 0.3s ease;
}

.modal-coracao {
    font-size: 55px;

    margin-bottom: 10px;
}

.modal-conteudo h2 {
    font-size: 30px;

    font-weight: normal;

    color: #675448;

    margin-bottom: 18px;
}

.modal-conteudo p {
    font-family: Arial, sans-serif;

    font-size: 17px;

    color: #75685e;

    line-height: 1.6;

    margin-bottom: 25px;
}

.modal-conteudo button {
    min-width: 180px;
}


/* ANIMAÇÃO DO MODAL */

@keyframes aparecerModal {

    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* =========================
   CELULAR
========================= */

@media (max-width: 600px) {

    body {
        overflow-x: hidden;
    }

    .cabecalho {
        min-height: 90vh;
        padding: 35px 20px;
    }

    .pequeno {
        font-size: 12px;
        letter-spacing: 3px;
    }

    .cabecalho h1 {
        font-size: 44px;
        line-height: 1.1;
        margin-bottom: 18px;
    }

    .frase {
        font-size: 16px;
        line-height: 1.5;
        max-width: 340px;
    }

    .coracao {
        font-size: 32px;
        margin-bottom: 18px;
    }

    button {
        width: 100%;
        max-width: 320px;

        padding: 14px 18px;

        font-size: 15px;
    }


    /* =========================
       LISTA
    ========================= */

    #lista {
        padding: 55px 15px;
    }

    #lista > h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .descricao {
        font-size: 15px;
        margin-bottom: 40px;
    }


    /* =========================
       CATEGORIAS
    ========================= */

    .categoria {
        margin-bottom: 45px;
    }

    .categoria h3 {
        font-size: 24px;

        padding-bottom: 10px;

        margin-bottom: 18px;
    }


    /* =========================
       PRESENTES
    ========================= */

    .lista-presentes {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .presente {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .presente h4 {
        font-size: 18px;
    }

    .presente p {
        font-size: 14px;
    }

    .presente button {
        width: 100%;
        max-width: none;

        margin: 5px 0 0;
    }


    /* =========================
       PIX
    ========================= */

    #pix {
        padding: 55px 20px;
    }

    #pix h2 {
        font-size: 29px;
    }

    #pix p {
        font-size: 15px;
    }

    #chavePix {
        max-width: 100%;

        word-break: break-all;

        font-size: 14px;
    }


    /* =========================
       MODAL NO CELULAR
    ========================= */

    .modal {
        padding: 15px;
    }

    .modal-conteudo {
        width: 100%;
        max-width: 100%;

        padding: 32px 22px;

        border-radius: 18px;
    }

    .modal-coracao {
        font-size: 48px;
    }

    .modal-conteudo h2 {
        font-size: 25px;
    }

    .modal-conteudo p {
        font-size: 16px;
    }

    .modal-conteudo button {
        width: 100%;
        max-width: 250px;
    }


    /* =========================
       RODAPÉ
    ========================= */

    footer {
        padding: 25px 15px;

        font-size: 14px;
    }

}

/* ==========================================
   AVISO PIX
========================================== */

#avisoPix {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);

    background: rgba(74, 64, 56, 0.96);
    color: #fff;

    padding: 12px 20px;
    border-radius: 25px;

    font-size: 14px;
    letter-spacing: 0.3px;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease, transform 0.3s ease;

    z-index: 9999;
}

#avisoPix.mostrar {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}