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

/* Header and Navbar */
header {
    position: relative;
    z-index: 1000; /* Lifts the entire header above other content */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo a {
    text-decoration: none;
}

.logo img {
    height: 40px;
    display: block;
}

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

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

.nav-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.cta-button {
    background-color: #ff4d4d;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

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

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: #333;
}

/* --- HERO SECTIONS --- */

/* Homepage Hero */
.hero {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

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

/* Generic Internal Page Hero Banner */
.hero-banner {
    position: relative;
    text-align: center;
    color: white;
    padding: 6rem 2rem;
    background-size: cover;
    background-position: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-banner h1 {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    margin: 0;
}

/* Specific Hero Banners */
.about-hero { background-image: url('images/hero.jpeg?text=About+AutoDealsToday'); }
.contact-hero { background-image: url('images/hero.jpeg?text=Get+In+Touch'); }
.privacy-hero { background-image: url('images/hero.jpeg?text=Privacy+Policy'); }
.terms-hero { background-image: url('images/hero.jpeg?text=Terms+of+Service'); }
.affiliate-hero { background-image: url('images/hero.jpeg?text=Get+Insured+Today'); }


/* --- PAGE CONTENT SECTIONS --- */

/* Homepage Services Section */
.services { padding: 3rem 2rem; text-align: center; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.service-item {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.service-item img { max-width: 100%; border-radius: 5px; margin-bottom: 1rem; }

/* Reviews Section */
.reviews { background-color: #f4f4f4; padding: 3rem 2rem; text-align: center; }
.review-container { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.review { background-color: #fff; padding: 1.5rem; border-radius: 8px; max-width: 300px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.review h4 { margin-top: 1rem; color: #007bff; }

/* Affiliate Page */
.affiliate-hero { color: #fff; text-align: center; padding: 5rem 2rem; }
.zip-form { margin-top: 2rem; }
.zip-form input { padding: 1rem; width: 250px; border: none; border-radius: 5px; }
.cta-button.large { padding: 1rem 2rem; font-size: 1.2rem; }

/* Internal Page Content Areas */
.about-content-area, .privacy-content-area, .terms-content-area { padding: 3rem 2rem; max-width: 800px; margin: 0 auto; }
.about-content-area { text-align: center; }
.privacy-content-area p, .privacy-content-area ul,
.terms-content-area p, .terms-content-area ul { text-align: left; margin-bottom: 1rem; }
.about-content-area h3, .privacy-content-area h3, .terms-content-area h3,
.contact-details h3, .contact-form-container h3 { font-size: 1.8rem; margin-bottom: 1rem; color: #0056b3; }
.contact-content-area { padding: 3rem 2rem; max-width: 1100px; margin: 0 auto; }
.contact-grid { display: flex; gap: 3rem; align-items: flex-start; }
.contact-details, .contact-form-container { flex: 1; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.8rem; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; }

/* Footer */
footer { background-color: #333; color: #fff; padding: 2rem; text-align: center; }
.footer-content a { color: #00aaff; text-decoration: none; }
.affiliate-disclaimer { font-size: 0.8rem; color: #ccc; margin-top: 1rem; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999; /* Ensures menu appears above hero banners */
    }
    .nav-links.active { display: flex; }
    .nav-links li { padding: 1rem 0; border-top: 1px solid #f4f4f4; }
    .hamburger { display: block; }
    .hero-content h1, .hero-banner h1 { font-size: 2.5rem; }
    .contact-grid { flex-direction: column; }
}