/* --- Variables & Reset --- */
:root {
    --primary: #0052cc; /* Trust Blue */
    --primary-dark: #003d99;
    --accent: #00b894; /* Savings Green */
    --accent-hover: #00a383;
    --dark: #2d3436;
    --light: #f5f6fa;
    --white: #ffffff;
    --text-grey: #636e72;
    --border: #dfe6e9;
    --radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a { text-decoration: none; color: var(--primary); transition: 0.3s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* --- Header --- */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.nav-links { display: flex; gap: 25px; }
.nav-links a {
    color: var(--dark);
    font-weight: 600;
}
.nav-links a.active, .nav-links a:hover { color: var(--primary); }

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--light) 0%, #dbeafe 100%);
    padding: 80px 0;
    text-align: center;
}

.hero h1 { font-size: 2.8rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.25rem; color: var(--text-grey); margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.btn:hover { background: var(--primary-dark); color: var(--white); }

.btn-large {
    font-size: 1.2rem;
    padding: 15px 40px;
}

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

.btn-green {
    background: var(--accent);
}
.btn-green:hover { background: var(--accent-hover); }

/* --- Grid Layouts --- */
.features, .reviews, .content-block { padding: 60px 0; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .icon { font-size: 2.5rem; margin-bottom: 15px; }

/* --- Affiliate Page --- */
.affiliate-hero {
    background: url('https://via.placeholder.com/1600x600.png?text=Safe+Driving+Road') center/cover no-repeat;
    padding: 100px 0;
    position: relative;
}
.affiliate-hero::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.6);
}
.hero-box {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.95);
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
}
.hero-box h1 { font-size: 2rem; color: var(--dark); }
.hero-box h2 { font-size: 1rem; text-transform: uppercase; color: var(--text-grey); letter-spacing: 1px; }

.reviews { background: var(--light); }
.review-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stars { color: #f1c40f; margin-bottom: 10px; }
.review-card cite { display: block; margin-top: 15px; font-weight: bold; font-style: normal; color: var(--primary); }

/* --- CTA Strip --- */
.cta-strip {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}
.cta-strip h2 { margin-bottom: 10px; }
.cta-strip p { margin-bottom: 25px; opacity: 0.9; }

/* --- Inner Pages --- */
.page-header { background: var(--light); padding: 40px 0; text-align: center; }
.legal-text h3 { margin-top: 25px; margin-bottom: 10px; }
.legal-text p { margin-bottom: 15px; }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-form {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
}
.contact-form label { display: block; margin: 10px 0 5px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 4px; }
.contact-form button { margin-top: 20px; width: 100%; }

/* --- Footer --- */
footer {
    background: #222;
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: auto;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
footer h4 { color: var(--white); margin-bottom: 15px; }
footer a { color: #bbb; }
footer a:hover { color: var(--white); }
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.85rem;
}
.disclaimer { margin-bottom: 10px; font-style: italic; color: #888; }

/* --- Mobile --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        gap: 0;
    }
    .nav-links.active { display: flex; }
    .nav-links li { text-align: center; }
    .nav-links a { display: block; padding: 15px; border-bottom: 1px solid var(--light); }
    .hamburger { display: block; }
    .hero h1 { font-size: 2rem; }
    .contact-layout { grid-template-columns: 1fr; }
}