/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BODY & FUNDO
========================= */
body {
    height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
}

/* =========================
   VÍDEO DE FUNDO
========================= */
.caixa-video {
    position: fixed;
    inset: 0;
    z-index: -1;
}

video {
    min-width: 100%;
    min-height: 100%;
    position: fixed;
    top: 0;
}

.mascara {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        109deg,
        rgba(10, 12, 16, 0.99) 15%,
        rgba(10, 12, 16, 0.7) 50%,
        rgba(10, 12, 16, 0.99) 85%
    );
}

/* =========================
   HEADER
========================= */
.header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 30px;
}

.header img {
    height: 60px;
}

.header a {
    color: white;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s ease;
}

.header a:hover {
    color: red;
    transform: scale(1.05);
}

/* =========================
   CONTEÚDO PRINCIPAL
========================= */
.caixa-mae {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 100px;
    height: 100vh;
}

.caixa-principal {
    width: 40%;
}

.logo-mario {
    height: 200px;
    margin-left: 50px;
}

p {
    color: white;
    font-size: 20px;
    margin-top: 10px;
}

button {
    color: white;
    background-color: red;
    border-radius: 6px;
    border: none;
    width: 200px;
    height: 50px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 30px;
    transition: 0.3s ease;
}

button:hover {
    background-color: #c40000;
    transform: translateY(-2px);
}

.imagem-mario-e-luigi {
    height: 500px;
}

/* =========================
   WHATSAPP
========================= */
.link-whatsapp img {
    height: 60px;
    position: fixed;
    right: 20px;
    bottom: 20px;
}

/* =========================
   MODAL PREMIUM
========================= */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -60%) scale(0.95);
    opacity: 0;
    pointer-events: none;

    background: white;
    padding: 24px;
    border-radius: 12px;

    width: 90%;
    max-width: 400px;

    z-index: 1001;

    transition:
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.ativo {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* =========================
   BOTÃO FECHAR (X)
========================= */
.fechar-modal {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 32px;
    height: 32px;

    background: transparent;
    border: none;
    border-radius: 50%;

    font-size: 18px;
    font-weight: bold;
    color: #333;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.3s ease, transform 0.2s ease;
}

.fechar-modal:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* =========================
   OVERLAY
========================= */
.overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);

    opacity: 0;
    pointer-events: none;

    z-index: 1000;

    transition: opacity 0.3s ease;
}

.overlay.ativo {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   FORMULÁRIO
========================= */
.formulario-fale-conosco {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.formulario-fale-conosco input,
.formulario-fale-conosco textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
}

.formulario-fale-conosco input:focus,
.formulario-fale-conosco textarea:focus {
    border-color: red;
}

.formulario-fale-conosco textarea {
    resize: none;
    height: 100px;
}

.formulario-fale-conosco button {
    width: 100%;
    height: 45px;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 1000px) {
    p {
        display: none;
    }

    .caixa-mae {
        flex-direction: column;
        padding: 20px;
    }

    .caixa-principal {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .imagem-mario-e-luigi {
        width: 80vw;
        height: auto;
    }

    .header img {
        display: none;
    }
}

@media (max-width: 480px) {
    .modal {
        width: 95%;
        padding: 20px;
    }
}