@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto:wght@400;700&display=swap');

:root {
    --background: #222222;
    --cor-destaque: #ff914d;
    --cor-secundaria: #0D6EFC;
    --cor-azul-claro: #4e8cff;
    --cor-card-servico: #2393BB;
    --cor-cinza: #344253;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", "Poppins", Arial, sans-serif;
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header {
    background-color: var(--cor-secundaria);
    position: fixed;
    z-index: 100;
    width: 100%;
    top: 0;
    transition: background-color 0.3s, box-shadow 0.8s, opacity 0.8s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    width: 130px;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    width: 100%;
}

.header-nav__logo {
    display: flex;
    align-items: center;
    gap: 1em;
    color: #fff;
}

.barrinha {
    background-color: #fff;
    width: 3px;
    height: 40px;
}

.header-botao {
    background-color: var(--cor-destaque);
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 0 10px 1px var(--cor-destaque);
    transition: .25s;
}

.header-botao:hover {
    background-color: #fff;
    color: var(--cor-secundaria);
    box-shadow: 0 0 10px 1px #fff;
}

/* MAIN */
main {
    margin: 4.5em 0 0 0;
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
}

.container-geral {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============ BENTO GRID SYSTEM ============= */
.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 180px);
    gap: 3em;
    width: 100%;
    max-width: 820px;
    margin: 0 auto 48px auto;
}

/* ÁREAS - Aqui está o segredo Bento */
.bento-area1 {
    grid-column: 1 / span 2;
    /* ocupa colunas 1 e 2 */
    grid-row: 1 / span 2;
    /* ocupa linhas 1 e 2 */
}

.bento-area2 {
    grid-column: 3 / 4;
    /* coluna 3 */
    grid-row: 1 / 3;
    /* linhas 1, 2 e 3 */
}

.bento-area3 {
    grid-column: 1 / 3;
    /* colunas 1 e 2 */
    grid-row: 3 / 4;
    /* linha 3 */
}

.bento-area4 {
    grid-column: 3 / 4;
    /* coluna 3 */
    grid-row: 3 / 4;
    /* linha 3 */
}

/* ESTILO DE LINKS */
.div-a {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: transform .18s cubic-bezier(.22, .61, .36, 1), box-shadow .18s;
    box-shadow: 0 4px 24px #0003;
}

.div-a:hover {
    transform: scale(1.025) translateY(-3px);
    box-shadow: 0 7px 30px var(--cor-azul-claro);
    z-index: 2;
}

.div-a__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
    transition: filter .25s;
}

.div-a:hover .div-a__img {
    filter: brightness(1.07) contrast(1.08) saturate(1.12);
}

/* FOOTER */
footer {
    width: 100%;
    background: var(--cor-secundaria);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-top: auto;
}

footer p {
    margin: 0;
}

/* ============= RESPONSIVO =========== */
@media (max-width: 900px) {
    .container {
        grid-template-rows: repeat(3, 140px);
        max-width: 95vw;
        gap: 2em;
    }
}

/* TIPOGRAFIA AJUSTE HEADER EM TELAS PEQUENAS */
@media (max-width: 480px) {
    section {
        min-height: 70vh;
    }

    .header-logo {
        width: 80px;
    }

    .header-nav__logo {
        gap: 0.5em;
    }

    .barrinha {
        height: 30px;
        width: 2px;
    }

    .header-nav__logo h1 {
        font-size: 1.1em;
    }

    .container-geral{
        margin-top: 6em;
    }

    .container {
        grid-template-rows: repeat(3, 100px);
        max-width: 95vw;
        gap: 2em;
    }
}