/* Fundo e texto */
body {
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Estilo do cabeçalho */
header {
    background-color: #000;
    color: #fff;
    padding: 15px 20px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    max-width: 230px;
    height: auto;
}

/* Menu de navegação */
.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navbar ul li {
    margin-right: 20px;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.navbar ul li a:hover {
    color: #0074d9;
}

/* Botão Voltar ao Início */
.home-button {
    text-align: right;
}

.btn-home {
    background-color: #0074d9;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
}

.btn-home:hover {
    background-color: #0056a3;
}

/* Descrição */
.description {
    text-align: center;
    margin: 20px;
    font-size: 18px;
    color: white;
}

/* Bloco de imagens */
.image-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

.image-item {
    text-align: center;
    background-color: #222;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.image-item:hover {
    transform: scale(1.05);
}

.financing-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.image-item p {
    margin-top: 10px;
    color: #0074d9;
    font-size: 18px;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover .financing-image {
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
        padding-top: 10px;
    }

    .navbar ul li {
        margin: 10px 0;
    }

    .home-button {
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }

    .image-item p {
        font-size: 16px;
    }

    .financing-image {
        height: 150px;
    }

    .image-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Estilo geral do formulário */
form {
    max-width: 800px;
    margin: 20px auto;
    background-color: #111;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

form h2 {
    margin-top: 0;
    color: #0074d9;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #0074d9;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #0074d9;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
}

button[type="submit"] {
    background-color: #0074d9;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button[type="submit"]:hover {
    background-color: #0056a3;
}

@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    label,
    input,
    button {
        font-size: 14px;
    }
}

/* NOVA SEÇÃO: Carro Destaque */
.carro-destaque {
    padding: 40px 20px;
    background-color: #000;
}

.carro-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.carro-imagem img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 116, 217, 0.3);
}

.carro-texto {
    max-width: 500px;
    color: #fff;
}

.carro-texto h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #0074d9;
}

.carro-texto p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.6;
}

.btn-financiar {
    display: inline-block;
    padding: 10px 25px;
    background-color: #0074d9;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-financiar:hover {
    background-color: #0056a3;
}

@media (max-width: 768px) {
    .carro-container {
        flex-direction: column;
        text-align: center;
    }

    .carro-texto {
        padding: 0 10px;
    }
}

/* NOVO BLOCO DE VEÍCULOS EM DESTAQUE */
.veiculos-destaque {
    padding: 50px 20px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.bloco-destaque {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.bloco-destaque.invertido {
    flex-direction: row-reverse;
}

.bloco-destaque .imagem img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 116, 217, 0.3);
}

.bloco-destaque .texto {
    max-width: 500px;
    color: #fff;
}

.bloco-destaque .texto h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #0074d9;
}

.bloco-destaque .texto p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.6;
}

.btn-financiar {
    display: inline-block;
    padding: 10px 25px;
    background-color: #0074d9;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-financiar:hover {
    background-color: #0056a3;
}

/* Responsivo */
@media (max-width: 768px) {
    .bloco-destaque,
    .bloco-destaque.invertido {
        flex-direction: column;
        text-align: center;
    }

    .bloco-destaque .texto {
        padding: 0 10px;
    }

    .bloco-destaque .imagem img {
        max-width: 100%;
    }
}
