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

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #121212;
    color: #eee;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9)),
                url("Fundo_Colorido.jpg") no-repeat center center;
    background-size: cover;
    z-index: -1;
}

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
}

.whatsapp-float img {
    width: 100%;
    height: auto;
    border-radius: 100%;
    box-shadow: 0 0px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float img:hover {
    transform: scale(1.1);
}

/* HEADER */
header {
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    height: 40px;
    margin-right: 12px;
}

.logo-policia {
    margin-left: 30px;
}

.titulo-logo {
    font-size: 1.2em;
    font-weight: bold;
    color: #f0f0f0;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
}

.titulo-logo:hover {
    color: #fff;
}

/* NAV GERAL */
nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-top: 0;
    max-height: none;
    overflow: visible;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: 0.3s;
}

nav a:hover {
    background-color: #333;
    color: #fff;
}

/* BOTÕES */
.btn-login {
    border: 1px solid #555;
    padding: 6px 15px;
    background: none;
    color: #ccc;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 20px;
}

.btn-login:hover {
    background-color: #333;
    color: #fff;
}

.botao-formulario {
    background-color: #BF3F13;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.botao-formulario:hover {
    background-color: #96320F;
}

/* CONTEÚDO */
#conteudo {
    padding: 30px;
    background-color: transparent;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 900px;
    width: 90%;
    flex: 1 0 auto;
}

/* FOOTER */
footer {
    background-color: rgba(0,0,0,0.7);
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

footer a {
    color: #BF3F13;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

footer a:hover {
    text-decoration: underline;
}

.icon {
    height: 16px;
    vertical-align: middle;
}

/* MENU HAMBURGUER */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    margin-left: auto;
    z-index: 3;
    transition: transform 0.3s ease;
}

.menu-toggle:focus {
    outline: none;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 26px;
    }

    #conteudo {
        padding: 20px 15px;
        min-height: auto;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        gap: 5px;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-out;
    }

    nav.ativo {
        display: flex;
        max-height: 500px;
        transition: max-height 0.5s ease-in;
    }

    nav a,
    .botao-formulario,
    .btn-login {
        margin: 5px 15px;
        width: calc(100% - 30px);
        text-align: left;
        font-size: 15px;
        padding: 8px 12px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-left {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }

    footer {
        display: none;
    }

    .titulo-logo {
        display: none;
    }

    .logo {
        display: none;
    }

    .logo-policia {
        margin-left: 15px;
    }

    .botao-formulario {
        padding: 8px 12px;
        font-size: 14px;
    }

    .btn-login {
        font-size: 14px;
        padding: 6px 10px;
    }

    .icon {
        height: 14px;
    }
}
