/* --- Root Variables & Base Styles --- */
:root {
    --primary-color: #059669; /* Emerald Green - Speed & Savings */
    --primary-dark: #047857;
    --secondary-color: #1e293b; /* Dark Slate - Trust & Modernity */
    --accent-color: #fbbf24; /* Warm Yellow for stars/highlights */
    --bg-color: #f8fafc; /* Very light slate gray */
    --text-color: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --header-height: 80px; /* Slightly taller header */
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-pill: 50px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    padding-top: var(--header-height);
}

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

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

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4 {
    margin-bottom: 0.75rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--secondary-color);
}

h1 { font-size: 3rem; letter-spacing: -0.025em; }
h2 { font-size: 2.25rem; letter-spacing: -0.025em; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.container {
    max-width: 1200px; /* Wider container */
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Utility Classes --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--radius-pill); /* Pill Buttons */
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

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

.grid {
    display: grid;
    gap: 32px; /* Bigger gap */
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* --- Header & Navigation (Dark Theme) --- */
header {
    background-color: var(--secondary-color); /* Dark Header */
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav ul li a {
    font-weight: 500;
    color: #cbd5e1; /* Light grey text */
    font-size: 0.95rem;
}

.main-nav ul li a:hover {
    color: var(--white);
    text-decoration: none;
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 24px !important;
}

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

/* Hamburger Menu (Light color for dark header) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    position: relative;
    transition: all 0.3s;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero .subtitle { 
    color: #cbd5e1; 
    font-size: 1.25rem; 
    max-width: 700px; 
    margin: 0 auto 40px; 
}

/* --- Services Section --- */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: #ecfdf5; /* Light green bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--primary-color);
}

/* --- How It Works (New Section) --- */
.how-it-works {
    padding: 80px 0;
    background-color: var(--white);
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 16px;
}

/* --- Affiliate Hero (Split Layout) --- */
.affiliate-hero {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.affiliate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.affiliate-content h2 { color: var(--primary-color); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.affiliate-content h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.affiliate-content .subtitle { font-size: 1.125rem; }

.affiliate-image-box {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg); /* Stylish tilt */
}

.disclaimer-box {
    background-color: #f1f5f9;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
    border-left: 4px solid var(--primary-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

/* --- Reviews --- */
.user-reviews {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--white);
}

.user-reviews h2 { color: var(--white); text-align: center; margin-bottom: 50px; }

.review-card {
    background-color: #2c3849; /* Lighter slate */
    padding: 32px;
    border-radius: var(--radius-lg);
}

.review-card .stars { color: var(--accent-color); margin-bottom: 16px; font-size: 1.25rem; }
.review-card p { color: #e2e8f0; font-size: 1.1rem; }
.review-card cite { display: block; margin-top: 20px; font-weight: 600; color: var(--primary-color); font-style: normal; }

/* --- Form Placeholder --- */
.quote-form-placeholder { padding: 80px 0; text-align: center; }
.form-placeholder-box {
    background: var(--white);
    border: 2px dashed var(--primary-color);
    padding: 60px;
    border-radius: var(--radius-lg);
    margin-top: 20px;
    color: var(--text-light);
    font-weight: bold;
}

/* --- Page Content --- */
.page-content { padding: 80px 0; max-width: 800px; margin: 0 auto; }
.page-content h1 { margin-bottom: 40px; text-align: center; }

/* --- Footer --- */
footer {
    background-color: #0f172a; /* Very dark slate */
    color: #94a3b8;
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.footer-col h4 { color: var(--white); margin-bottom: 24px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94a3b8; }
.footer-col ul li a:hover { color: var(--primary-color); }
.footer-bottom { 
    border-top: 1px solid #1e293b; 
    margin-top: 40px; 
    padding-top: 24px; 
    text-align: center; 
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .affiliate-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .affiliate-image-box { transform: rotate(0); margin: 0 auto; max-width: 500px; }
    .disclaimer-box { text-align: left; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    
    h1 { font-size: 2.5rem; }
    
    .nav-toggle { display: block; }
    
    .main-nav ul {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .main-nav.active ul { transform: translateX(0); }
    .main-nav ul li a { color: var(--white); font-size: 1.1rem; }
    
    .main-nav.active .hamburger { background: transparent; }
    .main-nav.active .hamburger::before { transform: rotate(45deg); top: 0; }
    .main-nav.active .hamburger::after { transform: rotate(-45deg); bottom: 0; }
}