/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007BFF;
    --secondary-color: #0056b3;
    --accent-color: #ffc107;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --white: #fff;
    --font-family: 'Helvetica Neue', Arial, sans-serif;
    --container-width: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

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

/* --- Header & Navigation --- */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-nav {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-nav:hover {
    background-color: #e0a800;
    color: var(--text-color);
}

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* --- Hero Section (Homepage) --- */
.hero {
    background: linear-gradient(rgba(0, 123, 255, 0.8), rgba(0, 86, 179, 0.8)), url('https://via.placeholder.com/1920x1080.png?text=Modern+Road') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}

/* --- Services Section --- */
.services {
    padding: 80px 0;
    background-color: var(--light-gray);
    text-align: center;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-icon img {
    margin: 0 auto 20px auto;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- Reviews Section --- */
.reviews {
    padding: 80px 0;
    text-align: center;
}

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

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 0 8px 8px 0;
    text-align: left;
}

.review-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.review-card h4 {
    font-weight: bold;
    color: var(--secondary-color);
}


/* --- Generic Page Styles (About, Privacy, etc.) --- */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
}

.content-section {
    padding: 60px 0;
}

.content-section .container {
    max-width: 800px;
}

.content-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.content-section p {
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 2rem;
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
}

/* --- Affiliate Page --- */
.affiliate-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero.jpeg?text=Open+Highway') no-repeat center center/cover;
    padding: 100px 0;
    color: var(--white);
    text-align: center;
}

.affiliate-content .headline {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.affiliate-content h1 {
    font-size: 3.2rem;
    margin: 0.5rem 0 1rem 0;
}

.affiliate-content .description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.cta-button-large {
    background-color: #28a745;
    color: var(--white);
    padding: 20px 50px;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-button-large:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.affiliate-content .disclaimer {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Footer --- */
footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info, .footer-links {
    flex: 1;
    min-width: 250px;
}

.footer-info h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

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

.footer-links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-disclaimer {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #aaa;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

footer a {
    color: #eee;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .services-grid, .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px;
        left: 0;
        background-color: var(--white);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

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

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h1, .affiliate-content h1 {
        font-size: 2.5rem;
    }
    
    .services-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}}