/* mywheels.au - style.css - Clean, fast, mobile-first */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

.header {
    background: #000;
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.header nav a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-weight: bold;
    font-size: 1.1rem;
}

.header nav a:hover {
    color: #ff6600;
}

.hero {
    background: url('hero.jpg') center/cover no-repeat; /* you can change this later */
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-content {
    background: rgba(0,0,0,0.5);
    padding: 40px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.btn-big {
    display: inline-block;
    background: #ff6600;
    color: white;
    padding: 15px 40px;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.btn-big:hover {
    background: #e55a00;
}

.search-bar {
    background: white;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-bar form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-bar input, .search-bar button {
    padding: 12px;
    font-size: 1rem;
}

.search-bar button {
    background: #ff6600;
    color: white;
    border: none;
    cursor: pointer;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
}

.car-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-info {
    padding: 15px;
}

.car-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #ff6600;
}

footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

/* Mobile */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    .header nav {
        margin-top: 15px;
    }
    .header nav a {
        margin: 0 15px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .search-bar form {
        flex-direction: column;
    }
}
