/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&display=swap');

/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007BFF; /* Vibrant Blue */
    --secondary-color: #2c3e50; /* Dark Slate Blue */
    --accent-color: #f1c40f; /* Vivid Yellow */
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white-color: #fff;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-top: -1rem;
    margin-bottom: 3rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* --- Header & Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--white-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: -webkit-fill-available;
}

.logo img {
    height: 45px;
    vertical-align: middle;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    padding: 0 1rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--secondary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    color: var(--white-color);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: var(--secondary-color);
    margin-bottom: 4px;
    border-radius: 5px;
}

/* --- Hero Section (Homepage) --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.jpeg?text=Modern+Car+on+Road') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 100px 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

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

/* --- Services Section --- */
.services {
    padding: 4rem 2rem;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-item {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.service-item h3 {
    margin-bottom: 0.5rem;
}

/* --- User Reviews Section --- */
.user-reviews {
    padding: 4rem 2rem;
}

.review-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.review {
    background: var(--light-bg);
    padding: 1.5rem;
    border-left: 5px solid var(--primary-color);
    border-radius: var(--border-radius);
    max-width: 320px;
    font-style: italic;
    color: #555;
}

.review span {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
    font-style: normal;
}

/* --- Content Pages (About, Privacy, etc.) --- */
.content-page {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-page h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.content-page h3 {
    margin-top: 2rem;
}

.contact-info {
    text-align: center;
    margin: 2rem 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* --- Affiliate Page --- */
.affiliate-hero {
    position: relative;
    text-align: center;
    color: var(--white-color);
    padding: 120px 20px;
    background-size: cover;
    background-position: center;
}

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

.affiliate-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.affiliate-hero-content .headline {
    font-size: 3.5rem;
    color: var(--white-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.affiliate-hero-content .description {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.affiliate-cta {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    padding: 20px 40px;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: var(--border-radius);
    display: inline-block;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.affiliate-cta:hover {
    background-color: #ffde59;
    transform: scale(1.05);
}

.affiliate-disclaimer-hero {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.affiliate-reviews {
    background-color: var(--white-color);
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: #ecf0f1;
    text-align: center;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.footer-links li {
    display: inline-block;
    margin: 0 15px;
}

.footer-links a {
    color: #ecf0f1;
    font-weight: 500;
}

.affiliate-disclaimer {
    font-size: 0.8rem;
    color: #bdc3c7;
    margin: 1.5rem auto;
    max-width: 700px;
    line-height: 1.4;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 65px; /* Adjust based on navbar height */
        left: 0;
        background-color: var(--white-color);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 1.2rem 0;
        width: 100%;
        border-top: 1px solid #f0f0f0;
    }
    
    .nav-links .cta-button {
        border-radius: 0;
    }

    .hamburger {
        display: flex;
    }

    h2 { font-size: 2rem; }
    
    .hero-content h1, .affiliate-hero-content .headline {
        font-size: 2.2rem;
    }
    
    .affiliate-hero-content .description {
        font-size: 1.2rem;
    }

    .affiliate-cta {
        font-size: 1.3rem;
        padding: 15px 30px;
    }
}