/*
Theme Name: Quintal
Theme URI:
Author:
Author URI:
Description: Tema WordPress imersivo com vídeo de fundo em tela cheia.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: quintal
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
    color: #fff;
}

/*
|--------------------------------------------------------------------------
| Logotipo central
|--------------------------------------------------------------------------
*/

.quintal-logo {
    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    z-index: 3;

    width: auto;
    max-width: 80vw;

    pointer-events: none;
}

.quintal-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 40vh;

    object-fit: contain;
}

/* Container principal */
.quintal-site {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* Vídeo */
.quintal-video {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    object-fit: cover;

    z-index: 0;

    pointer-events: none;
}

/* Camada sobre o vídeo */
.quintal-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0);

    z-index: 1;

    pointer-events: none;
}

/* Conteúdo */
.quintal-content {
    position: relative;

    z-index: 2;

    width: 100%;
    min-height: 100vh;

    color: #fff;
}

/* Evita margens inesperadas */
.quintal-content > *:first-child {
    margin-top: 0;
}

.quintal-content > *:last-child {
    margin-bottom: 0;
}

/* Mensagem quando não existe vídeo */
.quintal-no-video {
    min-height: 100vh;

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

    padding: 40px;

    text-align: center;

    background: #000;
}

/* Acessibilidade / dispositivos com movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .quintal-video {
        display: none;
    }

    .quintal-site {
        background: #000;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .quintal-video {
        width: 100%;
        height: 100%;
    }

    .quintal-content {
        min-height: 100svh;
    }
}