/* font importing */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

/* reseting css rules */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    outline: none;
    font-family: "Roboto", sans-serif;
}

:root {
    --blue: #2F54A3;
    --gray: #ededed;
    --hoover: #FF6B00;
    --black: #000;
    --blue_hoover: #1e3c82;
    --cars_desc: #333;
    --blue_dark: #0056b3;
    --blue_claro: #4A72C4;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
}

header {
    width: 100%;
    background-color: var(--blue_claro);
    padding: 40px 0;
}

.content {
    max-width: 1250px;
    min-width: 300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

nav {
    width: 100%;
    height: 125px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 36px;
    font-weight: bold;
    color: var(--gray);
}

nav ul {
    display: flex;
    flex-direction: row;
}

nav ul li {
    list-style: none;
    padding: 10px;
    cursor: pointer;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray);
    margin: 0 16px;
    text-decoration: none;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: var(--hoover);
}

/* ✅ HEADER BLOCK atualizado */
.content .header-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: var(--blue);
    border-radius: 8px;
    box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.5);
    padding: 30px;
    gap: 20px;
    height: auto;
    min-height: 350px;
}

.header-block .text {
    flex: 1 1 300px;
    color: white;
    padding-right: 10px;
}

.header-block .text h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.header-block .text p {
    font-size: 16px;
    line-height: 1.6;
}

.header-block img {
    flex: 1 1 300px;
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Product Catalog */
section .catalog {
    width: 100vw;
    padding: 100px;
}

section .filter-card {
    width: 1230px;
    height: 150px;
    background: var(--gray);
    border-radius: 8px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input {
    width: 950px;
    height: 60px;
    border: none;
    border-radius: 4px 0px 0px 4px;
    text-indent: 10px;
}

.search-button {
    width: 150px;
    height: 60px;
    border-radius: 0px 4px 4px 0px;
    border: none;
    background: var(--blue);
    color: white;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: var(--blue_hoover);
}

.title-wrapper-catalog {
    margin-top: 200px;
    padding-bottom: 20px;
}

.title-wrapper-catalog p {
    font-size: 20px;
    font-weight: 500;
    color: var(--blue);
    margin-bottom: 4px;
}

.title-wrapper-catalog h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--black);
}

section .card-wrapper {
    max-width: 1500px;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    padding-top: 50px;
}

section .card-item {
    height: 400px;
    background: var(--gray);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.card-content {
    height: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}

.card-item img {
    width: 100%;
    height: 50%;
    object-fit: cover;
}

.card-item h3 {
    font-family: 'Montserrat', sans-serif;
}

.card-item h4 {
    width: 90%;
}

.card-item p {
    width: 90%;
    color: var(--cars_desc);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    line-height: 1.4;
    height: 60px;
    overflow: hidden;
}

.card-item a {
    width: 90%;
    display: flex;
    justify-content: center;
}

.card-item a button {
    width: 90%;
    padding: 15px 0px;
    border: none;
    background: var(--blue);
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-style: 1.1em;
    cursor: pointer;
    transition: 0.3s ease;
    height: 50px;
    text-align: center;
    margin-bottom: 10px;
}

.card-item a button:active {
    transform: scale(0.98);
}

.card-item a button:hover {
    background: var(--blue_hoover);
}

.car-details {
    color: #00000070;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 15px;
    margin-bottom: 1px;
}

.car-details span::after {
    content: " •";
    margin-right: 5px;
}

.car-details span:last-child::after {
    content: "";
}

.card-content h3.price {
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
}

.card-content h3.price:hover {
    color: var(--blue_hoover);
    cursor: default;
}

/* About */
.title-wrapper-about h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--black);
}

.about {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 10px;
}

.about-content {
    max-width: 1250px;
    min-width: 300px;
    height: 600px;
    background: #ededed3b;
    margin: 0 auto;
    border-radius: 8px;
    z-index: 10;
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
}

.about-content img {
    width: 100%;
}

.left {
    position: relative;
    width: 40%;
    min-width: 300px;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.left::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.right {
    width: 65%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 4%;
    margin-left: 13px;
}

.right h3 {
    text-align: right;
    width: 90%;
    margin-bottom: 20px;
}

.right p {
    max-width: 90%;
    font-size: 1.05em;
    line-height: 1.8;
    text-align: justify;
    color: var(--cars_desc);
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Footer */
footer {
    width: 100%;
    background: var(--blue);
    color: white;
}

footer .main {
    width: 100%;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 20px;
}

.footer-links > div {
    flex: 1;
    margin: 10px;
    min-width: 200px;
}

.footer-contact {
    min-width: 200px;
}

.footer-links h4 {
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.2em;
}

.footer-links h6 {
    margin-bottom: 8px;
    font-size: 1em;
}

.main .footer-social img {
    width: 32px;
    height: 32px;
}

footer .last {
    width: 100%;
    height: 50px;
    background: var(--blue_dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    text-align: center;
}

footer .last h6 {
    margin: 0 15px;
}

/* ✅ RESPONSIVO */
@media (max-width: 576px) {
    nav {
        flex-direction: column;
        align-items: center;
        height: auto;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .header-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .header-block .text {
        padding: 0;
    }

    .about {
        margin-top: 100px;
    }

    .about-content {
        flex-direction: column;
        height: auto;
    }

    .left {
        display: none;
    }

    .right {
        width: 90%;
    }

    .right p {
        width: 100%;
        margin: 0px;
        text-align: left;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 10%;
    }

    section .card-wrapper {
        grid-template-columns: 1fr;
    }

    .search-input {
        width: 70%;
    }

    .search-button {
        width: 30%;
    }
}
