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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #003366; /* Deep Blue */
}

a {
    text-decoration: none;
    color: #005c99; /* Medium Blue */
    transition: color 0.3s ease;
}

a:hover {
    color: #00aaff; /* Bright Blue */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: #ffffff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 50px;
    width: auto;
}

.main-nav {
    display: none; /* Hidden on mobile */
}

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

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

.main-nav a {
    font-weight: 700;
    font-size: 16px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
    color: #003366;
    border-bottom: 2px solid #00aaff;
}

.hamburger-menu {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

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

/* --- Mobile Nav --- */
.mobile-nav {
    display: none;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    padding-bottom: 15px;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-nav li {
    padding: 15px 0;
}
.mobile-nav a {
    font-size: 18px;
    font-weight: 700;
}


/* --- Hero Section (Homepage & Affiliate) --- */
.hero {
    background: url('https://placehold.co/1500x700/003366/FFFFFF?text=Drive+Safe,+Save+Smart') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    background-color: #28a745; /* Green */
    color: #ffffff;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    border: none;
}

.cta-button:hover {
    background-color: #218838; /* Darker Green */
    transform: translateY(-2px);
    color: #fff;
}

/* --- Services Grid (Homepage) --- */
.services-section {
    padding: 60px 20px;
    text-align: center;
}

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

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

.service-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px 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 25px rgba(0,0,0,0.12);
}

.service-card img {
    height: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* --- Generic Page Content Styling --- */
.page-content {
    background-color: #ffffff;
    padding: 40px;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.page-content h1 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}
.page-content h2 {
    margin-top: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.page-content p, .page-content ul {
    margin-bottom: 15px;
}

/* --- Affiliate Page Specifics --- */
.affiliate-hero {
      background: url('https://placehold.co/1500x600/005c99/FFFFFF?text=Get+Your+Free+Quote') no-repeat center center/cover;
}
.affiliate-hero .cta-button {
    background-color: #ffc107; /* Bright Yellow */
    color: #333;
    font-size: 1.5rem;
    padding: 20px 50px;
}
.affiliate-hero .cta-button:hover {
    background-color: #e0a800;
    color: #333;
}

.reviews-section {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

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

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center; /* This was changed from 'left' */
}

.review-card {
    background-color: #f4f7f6;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #00aaff;
}

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

.review-card .reviewer {
    font-weight: 700;
    margin-top: 15px;
    display: block;
}

.stars {
    color: #ffc107;
    margin-bottom: 10px;
}

.disclaimer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* --- Contact Page --- */
.contact-details {
    margin-top: 30px;
}
.contact-details p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* --- Footer --- */
.site-footer {
    background-color: #003366;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

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

.footer-content h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: #ffffff;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Add this line to force centering */
}

/* --- Responsive Design --- */
@media (min-width: 769px) {
    .main-nav {
        display: block;
    }
    .hamburger-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .services-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }
}