/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
#links {
    background-color: #1e3d59;
    padding: 12px;
    text-align: center;
}

#links a {
    color: #f9f9f9;
    text-decoration: none;
    margin: 0 18px;
    font-weight: bold;
    font-size: 17px;
    transition: all 0.3s ease;
}

#links a:hover {
    color: #ff6e40;
    text-decoration: underline;
}

/* Heading */
#heading {
    text-align: center;
    margin: 25px 0;
}

#heading h1 {
    font-size: 40px;
    color: #ff6e40;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* Content wrapper */
#content {
    width: 90%;
    margin: auto;
}

/* About Us and Featured Cars floating left and right */
#info {
    overflow: hidden; /* contain floats */
    margin-bottom: 45px;
}

#com-info {
    float: left;
    width: 48%;
}

#com-info h2 {
    color: #1e3d59;
    font-size: 28px;
    margin-bottom: 15px;
}

#com-info p {
    color: #555;
    font-size: 16px;
    margin-bottom: 12px;
}

#featured {
    float: right;
    width: 48%;
}

#featured h2 {
    color: #1e3d59;
    font-size: 28px;
    margin-bottom: 15px;
}

#featured ul {
    list-style-type: none;
}

#featured ul li {
    margin-bottom: 10px;
}

#featured ul li a {
    color: #ff6e40;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

#featured ul li a:hover {
    text-decoration: underline;
    color: #1e3d59;
}

/* Cars section: Toyota left, Mercedes right */
#cars-section {
    overflow: hidden;
    margin-bottom: 50px;
}

#toyota {
    float: left;
    width: 48%;
}

#mercedes {
    float: right;
    width: 48%;
}

#toyota h2, #mercedes h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #1e3d59;
}

/* Small images for homepage car links */
.details {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.details:hover {
    transform: translateX(5px);
}

.details img {
    width: 60px;
    height: 40px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.details h3 {
    font-size: 16px;
    color: #ff6e40;
}

/* Quick links / social media */
#quick-links {
    text-align: center;
    margin-top: 50px;
}

#quick-links h2 {
    color: #1e3d59;
    margin-bottom: 15px;
}

#quick-links img {
    width: 45px;
    height: 45px;
    margin: 0 12px;
    transition: transform 0.3s ease;
}

#quick-links img:hover {
    transform: scale(1.2);
}

/* Footer */
#bottom {
    text-align: center;
    padding: 22px;
    background-color: #1e3d59;
    color: white;
    margin-top: 50px;
}

/* Subpages and Gallery images */
.car-gallery img, .vehicle img {
    width: 300px;  /* keeps all images same size */
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Vehicle boxes in gallery */
.vehicle {
    margin-bottom: 45px;
}

.vehicle h2 {
    margin-bottom: 12px;
    color: #ff6e40;
}

.vehicle p {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

/* Contact Form */
form input[type="text"], form input[type="email"], form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

form input[type="submit"] {
    background-color: #ff6e40;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background-color: #1e3d59;
}

/* Responsive */
@media screen and (max-width: 900px) {
    #com-info, #featured, #toyota, #mercedes {
        float: none;
        width: 100%;
        margin-bottom: 25px;
    }

    .details img {
        width: 50px;
        height: 30px;
    }

    .car-gallery img, .vehicle img {
        width: 100%;
        height: auto;
    }
}
