/* --- General Body & Typography --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #2c3e50;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #2980b9;
}

/* --- Header & Navigation --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: #333;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

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

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

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

.cta-button {
    background-color: #e74c3c;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #c0392b;
    color: white;
}

/* --- Services Section --- */
.services {
    padding: 60px 5%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-item img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Reviews Section --- */
.reviews {
    background-color: #ecf0f1;
    padding: 60px 5%;
    text-align: center;
}

.reviews h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.review-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    flex-basis: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.review-card p {
    font-style: italic;
}

.review-card h4 {
    margin-top: 15px;
    color: #e74c3c;
}


/* --- Affiliate Page --- */
.affiliate-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/heroo.jpeg?text=Happy+Driver') no-repeat center center/cover;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.affiliate-hero-content h1 {
    font-size: 3.2rem;
    color: white;
    margin-bottom: 1rem;
}

.affiliate-hero-content .subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.quote-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quote-form input[type="text"] {
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 250px;
}

.cta-button-large {
    background-color: #2ecc71;
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button-large:hover {
    background-color: #27ae60;
}

.affiliate-reviews {
    background-color: #fff;
}

/* --- Generic Text Page (About, Privacy, etc.) --- */
.text-page {
    padding: 40px 5%;
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 60vh;
}

.text-page h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 10px;
}

.text-page h2 {
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.text-page p, .text-page ul, .text-page address {
    margin-bottom: 15px;
}

.text-page ul {
    padding-left: 20px;
}

.contact-info, .contact-address {
    margin-top: 30px;
}

/* --- Footer --- */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

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

.footer-section ul li a {
    color: #bdc3c7;
    margin-bottom: 10px;
    display: inline-block;
}
.footer-section ul li a:hover {
    color: #fff;
}

.footer-section p {
    color: #bdc3c7;
}

.disclaimer {
    font-size: 0.8rem;
    color: #95a5a6 !important;
    font-style: italic;
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #34495e;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 82px; /* Adjust based on header height */
        background-color: #fff;
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        padding: 1.5rem 0;
        border-bottom: 1px solid #f2f2f2;
    }

    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content h1, .affiliate-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-section {
        margin-bottom: 30px;
    }
}