/* autoratesaver.info | style.css */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- CSS Variables (Theme) --- */
:root {
    --primary-color: #007BFF; /* A trustworthy blue */
    --secondary-color: #0D2447; /* A deep navy blue */
    --accent-color: #FF7F50; /* A vibrant coral/orange for CTAs */
    --light-color: #FFFFFF;
    --dark-color: #333333;
    --grey-color: #f4f4f4;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- Global & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
}

/* --- Utility Classes --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    color: var(--light-color);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--light-color);
    font-size: 1.2rem;
    padding: 15px 35px;
}

.btn-accent:hover {
    background-color: #e66a40;
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.text-center {
    text-align: center;
}

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

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

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

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}


/* --- Footer --- */
.site-footer {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

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

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

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

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

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #445;
    font-size: 0.9rem;
    color: #ccc;
}

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

/* --- Hero Section (Homepage & Affiliate) --- */
.hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(to right, rgba(0, 123, 255, 0.8), rgba(13, 36, 71, 0.8));
    color: var(--light-color);
}

.hero h1 {
    color: var(--light-color);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

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

/* --- Services Grid (Homepage) --- */
.services-section {
    padding: 4rem 0;
}

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

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

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

.service-card .icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    fill: var(--primary-color);
}

/* --- Content Pages (About, Privacy, etc.) --- */
.content-page {
    padding: 4rem 0;
}

.content-page h1 {
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.content-page ul {
    list-style-position: inside;
    margin-left: 1rem;
}

/* --- Contact Page --- */
.contact-form {
    background: var(--grey-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 2rem auto;
}
.contact-info {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- Affiliate Page Specifics --- */
.affiliate-hero {
    /* UPDATED: Removed background image URL for a plain gradient */
    background: linear-gradient(to right, rgba(0, 123, 255, 0.9), rgba(13, 36, 71, 0.95));
    padding: 6rem 0;
    color: var(--light-color);
    text-align: center;
}

.affiliate-hero h1 {
    color: var(--light-color);
    font-size: 3.2rem;
}

.affiliate-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 1rem auto 2.5rem auto;
}

.affiliate-disclaimer {
    background-color: #fff3cd;
    color: #856404;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.reviews-section {
    padding: 4rem 0;
    background-color: var(--grey-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.review-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
}

.review-header h4 {
    margin: 0;
}

.review-header span {
    color: #777;
    font-size: 0.9rem;
}

.review-card .stars {
    color: #f8c51c; /* Gold color for stars */
    margin-bottom: 1rem;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 2.8rem; }
    .affiliate-hero h1 { font-size: 2.5rem; }
    
    .container {
        padding: 0 1rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .main-nav.nav-active {
        transform: translateX(0);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }
    
    .main-nav a {
        color: var(--light-color);
        display: block;
        padding: 1.5rem 0;
        font-size: 1.2rem;
    }
    
    .main-nav a:hover {
        background-color: var(--primary-color);
    }

    .hamburger {
        display: flex;
        z-index: 1001; /* Ensure it's above the nav */
    }
    
    /* Hamburger animation to 'X' */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .hamburger.active .bar {
        background-color: var(--dark-color);
    }
    /* Change hamburger bars to white when nav is active for visibility */
    .nav-active .hamburger.active .bar {
        background-color: var(--light-color);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}