/* style.css */
:root {
    /* Logo Palette extracted from image */
    --primary-blue: #0056b3; /* Darker blue */
    --accent-cyan: #00c6ff;  /* Lighter gradient cyan */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f7f9;     /* Very soft blue-grey for background */
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* --- Navigation --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Force a specific height if you want it strict */
}

.logo img {
    height: 105px; /* Adjust based on your SVG actual size */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.cta-button {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
}

/* --- Hero Section --- */
/* --- Hero Section --- */
.hero {
    /* 1. The linear-gradient creates the dark blue overlay (rgba values).
       2. The url() is the actual image. 
       -> YOU CAN REPLACE THE URL LATER with your own image path like url('assets/my-lot.jpg') 
    */
    background: linear-gradient(rgba(0, 20, 50, 0.85), rgba(0, 86, 179, 0.75)), url('assets/herobg.jpg');
    
    background-size: cover;      /* Ensures the image covers the whole area without stretching weirdly */
    background-position: center; /* Keeps the center of the image in view */
    
    /* Optional: Makes the image stay still while you scroll (Parallax effect) - Delete line if you don't like it */
    background-attachment: fixed; 

    padding: 140px 20px; /* Made it taller for a more dramatic look */
    text-align: center;
    /* Removed border-bottom as it doesn't look good with an image */
}

.hero h1 {
    font-size: 3rem; /* Slightly bigger title */
    margin-bottom: 20px;
    /* Changed color to solid white to pop against the dark background */
    color: var(--white);
    background: none; 
    -webkit-text-fill-color: initial;
}

.hero p {
    font-size: 1.3rem;
    color: var(--white); /* Force white text */
    opacity: 0.9;        /* Slightly softer look */
    max-width: 700px;
    margin: 0 auto 30px;
}

/* --- Content Sections --- */
.container {
    max-width: 1400px;
    width: 90%;
    margin: 40px auto;
    padding: 0 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* --- Forms (Contact) --- */
form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

button[type="submit"] {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

footer a { color: var(--accent-cyan); text-decoration: none; }
footer p { margin-bottom: 10px; color: #aaa; }

/* --- Mobile --- */
@media (max-width: 768px) {
    nav { flex-direction: column; gap: 15px; }
    .nav-links { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2rem; }
}
/* =========================================
   MOBILE OPTIMIZATIONS (New & Improved)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Compact Header Layout */
    nav {
        flex-direction: column;
        padding: 10px 15px; /* Much tighter padding */
        gap: 10px;          /* Reduce gap between elements */
    }

    /* 2. Bigger, Centered Logo */
    .logo img {
        height: 80px;      /* Increased from 50px so you can actually read it */
        width: auto;
        margin: 0 auto;    /* Centers the logo */
        display: block;
    }

    /* 3. Links Side-by-Side (The most important fix) */
    .nav-links {
        flex-direction: row;      /* Forces them onto one line */
        justify-content: center;  /* Centers them */
        gap: 20px;                /* Space between "Home" and "About" */
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-links li {
        width: auto; /* Let them be their natural size */
    }

    .nav-links a {
        font-size: 1rem;
        padding: 5px;
    }

    /* 4. Full Width Button */
    .cta-button {
        width: 100%;        /* stretch across the screen */
        text-align: center; /* center the text inside */
        margin-top: 5px;
        padding: 12px;      /* Make it easier to tap */
    }

    /* 5. Fix Hero Text Overlay */
    .hero {
        padding: 80px 20px 60px; /* Adjust padding to fit the new header */
        background-position: center top; /* Focus on the car image */
    }

    .hero h1 {
        font-size: 2.2rem; /* Readable but not massive */
        margin-top: 10px;
    }
}/* =========================================
   MOBILE OPTIMIZATIONS (New & Improved)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Compact Header Layout */
    nav {
        flex-direction: column;
        padding: 10px 15px; /* Much tighter padding */
        gap: 10px;          /* Reduce gap between elements */
    }

    /* 2. Bigger, Centered Logo */
    .logo img {
        height: 80px;      /* Increased from 50px so you can actually read it */
        width: auto;
        margin: 0 auto;    /* Centers the logo */
        display: block;
    }

    /* 3. Links Side-by-Side (The most important fix) */
    .nav-links {
        flex-direction: row;      /* Forces them onto one line */
        justify-content: center;  /* Centers them */
        gap: 20px;                /* Space between "Home" and "About" */
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-links li {
        width: auto; /* Let them be their natural size */
    }

    .nav-links a {
        font-size: 1rem;
        padding: 5px;
    }

    /* 4. Full Width Button */
    .cta-button {
        width: 100%;        /* stretch across the screen */
        text-align: center; /* center the text inside */
        margin-top: 5px;
        padding: 12px;      /* Make it easier to tap */
    }

    /* 5. Fix Hero Text Overlay */
    .hero {
        padding: 80px 20px 60px; /* Adjust padding to fit the new header */
        background-position: center top; /* Focus on the car image */
    }

    .hero h1 {
        font-size: 2.2rem; /* Readable but not massive */
        margin-top: 10px;
    }
}