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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #bfbfbf;
    color: #222;
    line-height: 1.6;
}

header {

    background: linear-gradient(90deg, #8db1d5c8, #1d2d3d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
}

.logo img {
    max-width: 200px;
}

.header-text {
    text-align: center;
}

.header-text p {
    font-size: 1rem;
    margin-left: 20px;
}

.header-text a {
    color: #f39c12;
    text-decoration: none;
}

.header-text a:hover {
    text-decoration: underline;
}

nav {
    background: #010c17;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 10PX;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav ul li a {
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f39c12;
}

.hero {
    background: url('images/pexels-tdcat-70912.jpg') no-repeat center center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    text-align: center;
}

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

.cta-button {
    background: #f39c12;
    color: #fff;
    padding: 15px 25px;
    border: none;
    font-size: 1.1rem;
    border-radius: 4px;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #e67e22;
}

.features, .tradein {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
}

.features h2, .tradein h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}


.contact {
    background-color: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 60px auto;
    border-radius: 8px;
}

.contact h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #444;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 600px;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    height: 120px;
}

.contact-form button {
    align-self: center;
    padding: 12px 25px;
    font-size: 1rem;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #e67e22;
}

footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

.footer-content {
    text-align: center;
}

.terms {
    margin-top: 10px;
    font-size: 0.9em;
}

.terms a {
    color: #fff;
    text-decoration: underline;
}
.terms a:hover {
    text-decoration: none;
}

/* === Inventory Page === */
.inventory-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.inventory-page h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.inventory-page p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #444;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 10px;
}

.car-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

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

.car-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.car-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #333;
}

.car-card p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
}

/* === Page Layouts (Finance, Trade, About) === */
.finance-page,
.trade-page,
.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

.finance-page h1,
.trade-page h1,
.about-page h1 {
    font-size: 2.3rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.finance-page p,
.trade-page p,
.about-page p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 25px;
    line-height: 1.6;
}

.finance-page ul,
.trade-page ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.finance-page ul li,
.trade-page ul li {
    font-size: 1rem;
    padding: 8px 0;
    color: #555;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
    }

    .hero {
        height: 300px;
    }

    .hero-overlay {
        padding: 20px;
    }

    .features, .tradein, .finance-info, .contact {
        padding: 20px 10px;
    }
}
