/* ========================================
   CORRIDAS TOP
   Folha de estilos principal
   ======================================== */


/* ---------- CONFIGURAÇÕES GERAIS ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    background-color: #ffffff;
    color: #222222;

    line-height: 1.6;
}


/* ---------- CONTAINER ---------- */

.container {
    width: 90%;
    max-width: 1100px;

    margin: 0 auto;
}


/* ---------- CABEÇALHO ---------- */

header {
    background-color: #111111;
    color: #ffffff;

    border-bottom: 4px solid #333333;
}

header .container {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 20px 0;
}


/* ---------- LOGO ---------- */

header img {
    display: block;

    width: 320px;
    max-width: 100%;
    height: auto;
}


/* ---------- MENU ---------- */

nav ul {
    display: flex;

    flex-wrap: wrap;

    gap: 20px;

    margin: 0;
    padding: 0;

    list-style: none;
}

nav a {
    color: #ffffff;

    font-weight: bold;

    text-decoration: none;
}

nav a:hover,
nav a:focus {
    text-decoration: underline;
}


/* ---------- CONTEÚDO PRINCIPAL ---------- */

main {
    display: block;
}


/* ---------- SEÇÕES ---------- */

section {
    padding: 70px 0;

    border-bottom: 1px solid #dddddd;
}

section:nth-child(even) {
    background-color: #f5f5f5;
}


/* ---------- PRIMEIRA SEÇÃO ---------- */

.hero {
    padding: 90px 0;

    background-color: #eeeeee;
}

.hero h1 {
    margin-top: 0;

    font-size: 2.8rem;
}

.hero h2 {
    max-width: 800px;

    font-size: 1.6rem;
}


/* ---------- TÍTULOS ---------- */

h1,
h2 {
    line-height: 1.25;
}

section h2 {
    margin-top: 0;

    font-size: 2rem;
}


/* ---------- PARÁGRAFOS ---------- */

p {
    max-width: 850px;

    margin-top: 0;
    margin-bottom: 20px;
}


/* ---------- FOCO DO TECLADO ---------- */

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #000000;
    outline-offset: 3px;
}


/* ---------- RODAPÉ ---------- */

footer {
    padding: 40px 0;

    background-color: #111111;
    color: #ffffff;

    text-align: center;
}

footer p {
    margin-left: auto;
    margin-right: auto;
}


/* ---------- RESPONSIVIDADE ---------- */

@media (max-width: 768px) {

    header .container {
        flex-direction: column;

        align-items: flex-start;
    }

    header img {
        width: 200px;
        max-width: 100%;
    }

    nav ul {
        flex-direction: column;

        gap: 10px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.35rem;
    }

    section {
        padding: 50px 0;
    }

}


/* ---------- REDUÇÃO DE MOVIMENTO ---------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

}