/* --- Root Variables & Base Styles --- */
:root {
    --primary-color: #0066cc; /* Trustworthy blue */
    --secondary-color: #ff9900; /* Bright CTA orange */
    --bg-color: #ffffff;
    --text-color: #333;
    --text-light: #555;
    --border-color: #e0e0e0;
    --header-height: 70px;
    --font-family: -apple-system, BlinkMacSystemFont, "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.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    padding-top: var(--header-height); /* Offset for fixed header */
}

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

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

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    margin-bottom: 0.75rem;
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

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

/* --- Utility Classes --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #004a99; /* Darker blue */
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #e68a00; /* Darker orange */
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.grid {
    display: grid;
    gap: 20px;
}

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

/* --- Header & Navigation --- */
header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    position: fixed; /* Fixed header */
    top: 0;
    left: 0; 
    right: 0; 
    z-index: 1000;
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 300;
    color: #000;
    text-decoration: none;
}

.logo strong {
    font-weight: 700;
    color: var(--primary-color);
}

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

.main-nav ul li a {
    font-weight: 500;
    color: var(--text-color);
}

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

.btn-nav {
    padding: 8px 16px;
    background-color: var(--primary-color);
}

.btn-nav:hover {
    background-color: #004a99;
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: transform 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

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

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

/* --- Hero Section (Home) --- */
.hero {
    background-color: #f4f8ff; /* Light blue tint */
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--text-color);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* --- Services Section (Home) --- */
.services-section {
    padding: 60px 0;
    text-align: center;
}

.service-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    padding: 10px;
}

/* --- Why Choose Us Section (Home) --- */
.why-choose-us {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.feature {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid var(--primary-color);
}

.feature h3 {
    color: var(--primary-color);
}

/* --- Affiliate Hero Section --- */
.affiliate-hero {
    padding: 100px 0;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
}

.affiliate-hero h1, .affiliate-hero h2 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.affiliate-hero h2 { font-size: 1.2rem; font-weight: 400; text-transform: uppercase; }
.affiliate-hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.affiliate-hero .subtitle { font-size: 1.2rem; color: #fff; max-width: 600px; margin: 0 auto 30px; }
.affiliate-hero .btn-cta { font-size: 1.5rem; padding: 20px 40px; }
.affiliate-hero .disclaimer-box {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- User Reviews Section --- */
.user-reviews {
    padding: 60px 0;
    background-color: #f4f8ff;
}
.user-reviews h2 { text-align: center; }
.review-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.review-card .stars {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.review-card p {
    font-style: italic;
    color: var(--text-light);
}
.review-card cite {
    display: block;
    text-align: right;
    font-weight: bold;
    color: var(--text-color);
    font-style: normal;
    margin-top: 15px;
}

/* --- Quote Form Placeholder --- */
.quote-form-placeholder {
    padding: 60px 0;
    text-align: center;
}
.form-placeholder-box {
    border: 2px dashed var(--border-color);
    padding: 50px;
    border-radius: 8px;
    margin-top: 20px;
    background-color: #f9f9f9;
    font-size: 1.5rem;
    font-weight: bold;
    color: #aaa;
}


/* --- Generic Page Content --- */
.page-content {
    padding: 60px 0;
}
.page-content h1 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.page-content h2 {
    color: var(--primary-color);
    margin-top: 30px;
}
.page-content ul {
    margin-left: 20px;
    margin-bottom: 1rem;
}
.page-content address {
    font-style: normal;
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 5px solid var(--border-color);
    margin-top: 10px;
}

/* --- Footer --- */
footer {
    background-color: #333;
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.footer-col p {
    color: #ccc;
    line-height: 1.7;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ccc;
}

.footer-col ul li a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* --- Responsive Design --- */

/* Tablets */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Navigation */
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .main-nav ul {
        position: fixed;
        top: var(--header-height); /* Start below fixed header */
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 300px;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 30px; 
        gap: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .main-nav.active ul {
        transform: translateX(0);
    }
    
    .main-nav ul li a {
        font-size: 1.2rem;
    }

    .main-nav.active .hamburger {
        background-color: transparent;
    }
    
    .main-nav.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .main-nav.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .hero { padding: 50px 0; }
    .hero h1 { font-size: 2.2rem; }

    .affiliate-hero { padding: 60px 0; }
    .affiliate-hero h1 { font-size: 2.5rem; }
    .affiliate-hero .btn-cta { font-size: 1.2rem; padding: 15px 30px; }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}