/* ========================================
   Used Car Dealership Website - Main Stylesheet
   Pure CSS - Responsive Design
   ======================================== */

/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    color: #e74c3c;
}

.logo p {
    font-size: 0.9rem;
    color: #bbb;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav ul li a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

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

/* ===== MAIN CONTENT CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HERO BANNER (Home Page) ===== */
.hero {
    background-image: url('images/used_car_dealership__a3d217fa.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
    border-radius: 4px;
}

.btn:hover {
    background-color: #c0392b;
}

.btn-secondary {
    background-color: #3498db;
}

.btn-secondary:hover {
    background-color: #2980b9;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-whatsapp:hover {
    background-color: #1da851;
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 20px;
    background-color: #fff;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.section-gray {
    background-color: #f9f9f9;
}

/* ===== FEATURED CARS GRID (Home Page) ===== */
.featured-cars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ===== CAR CARD STYLES ===== */
.car-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

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

.car-info {
    padding: 20px;
}

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

.car-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #666;
}

.car-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.car-price {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
    margin: 15px 0;
}

/* ===== INVENTORY PAGE GRID ===== */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* ===== CAR DETAILS PAGE ===== */
.car-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.car-image-large img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.car-specs h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.specs-table th,
.specs-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.specs-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    width: 40%;
}

.specs-table td {
    color: #666;
}

/* ===== FORMS ===== */
.form-container {
    max-width: 700px;
    margin: 30px auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e74c3c;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content h3 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #1a1a1a;
}

.about-content p {
    margin-bottom: 15px;
    color: #666;
}

/* ===== CONTACT PAGE ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.contact-info p {
    margin-bottom: 15px;
    color: #666;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
    max-width: 900px;
    margin: 30px auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.legal-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #333;
}

.legal-content p {
    margin-bottom: 15px;
    color: #666;
}

.legal-content ul {
    margin-left: 30px;
    margin-bottom: 15px;
    color: #666;
}

.legal-content ul li {
    margin-bottom: 8px;
}

/* ===== FOOTER ===== */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #e74c3c;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbb;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-section p {
    color: #bbb;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #bbb;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        gap: 1rem;
        justify-content: center;
    }

    .car-detail-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .header-container {
        justify-content: center;
        text-align: center;
    }

    nav {
        width: 100%;
        margin-top: 15px;
    }

    nav ul {
        justify-content: center;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .hero {
        height: 400px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .section {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .featured-cars,
    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .form-container,
    .legal-content {
        padding: 20px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
