/* Global Resets & Base Styles */
:root {
    --primary-color: #2c5e1a; /* Dark Green */
    --secondary-color: #4a90e2; /* Bright Blue */
    --accent-color: #f5a623; /* Orange/Yellow for CTAs */
    --light-gray: #f4f4f4;
    --medium-gray: #ddd;
    --dark-gray: #333;
    --text-color: #333;
    --white-color: #fff;
    --font-family-sans-serif: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    --font-family-headings: 'Georgia', Times, 'Times New Roman', serif;
    --box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    --border-radius: 5px;
}

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

body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

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

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

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    font-family: var(--font-family-headings);
    margin-bottom: 0.8em;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    color: var(--dark-gray);
}

p {
    margin-bottom: 1em;
}

ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

/* Header */
header {
    background-color: var(--white-color);
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 50px; /* Adjust as needed */
    margin-right: 10px;
}
.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    font-family: var(--font-family-headings);
}


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

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: bold;
    padding: 0.5em 0.8em;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
}

.nav-links .cta-nav {
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 0.5em 1.2em;
}
.nav-links .cta-nav:hover {
    background-color: #e09010; /* Darker accent */
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section (Home Page) */
.hero {
    background: url('placeholder-hero-bg.jpg') no-repeat center center/cover;
    color: var(--white-color);
    text-align: center;
    padding: 80px 20px;
    position: relative;
}
.hero::before { /* Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.hero .container {
    position: relative; /* To make sure content is above overlay */
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button, .cta-button-secondary, .cta-button-large, .cta-button-small {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white-color);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}
.cta-button-large {
    padding: 18px 40px;
    font-size: 1.3rem;
}
.cta-button-small {
    padding: 10px 20px;
    font-size: 1rem;
}


.cta-button:hover, .cta-button-secondary:hover, .cta-button-large:hover, .cta-button-small:hover {
    background-color: #e09010; /* Darker accent */
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--white-color);
}

.cta-button-secondary {
    background-color: var(--secondary-color);
}
.cta-button-secondary:hover {
    background-color: #3a7bc8; /* Darker secondary */
}


/* Services Overview (Home Page) */
.services-overview {
    padding: 60px 0;
    text-align: center;
    background-color: var(--light-gray);
}
.services-overview .subheading {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

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

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

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

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--primary-color);
}
.service-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.learn-more {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: bold;
}
.learn-more:hover {
    background-color: #1e4212; /* Darker primary */
    text-decoration: none;
    color: var(--white-color);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 60px 0;
    text-align: center;
}
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}
.reason {
    padding: 20px;
}
.reason-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    /* Add filter for color if using SVGs: filter: invert(38%) sepia(13%) saturate(1793%) hue-rotate(69deg) brightness(93%) contrast(88%); */
    /* Placeholder color using border if not svg */
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    padding: 5px;
}
.reason h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* CTA Section (Home Page) */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 60px 20px;
    text-align: center;
}
.cta-section h2 {
    color: var(--white-color);
    margin-bottom: 15px;
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Page Hero (for About, Contact, etc.) */
.page-hero {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px 20px;
    text-align: center;
}
.page-hero h1 {
    color: var(--white-color);
    font-size: 2.5rem;
}

/* Content Section (for About, Privacy, Terms) */
.content-section {
    padding: 40px 0;
}
.content-section .container {
    max-width: 800px; /* For better readability of text */
}
.content-image {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.legal-text h2 { font-size: 1.6rem; margin-top: 1.5em; margin-bottom: 0.5em; }
.legal-text h3 { font-size: 1.3rem; margin-top: 1em; margin-bottom: 0.3em; }
.legal-text p, .legal-text li { font-size: 0.95rem; }

/* Services Detailed Page */
.services-detailed {
    padding: 40px 0;
}
.services-detailed .subheading {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}
.service-detail-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.service-detail-card img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
}
.service-detail-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.service-detail-content p {
    margin-bottom: 15px;
}
@media (min-width: 768px) {
    .service-detail-card {
        flex-direction: row;
    }
    .service-detail-card img {
        width: 40%;
        max-width: 350px;
    }
    .service-detail-content {
        width: 60%;
    }
}


/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr 1.5fr;
    }
}
.contact-info h2 {
    margin-bottom: 15px;
}
.contact-info p {
    margin-bottom: 10px;
}
.contact-form-container h2 {
    margin-bottom: 20px;
    text-align: center;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
}
.contact-form textarea {
    resize: vertical;
}
.contact-form button {
    width: 100%;
    padding: 15px;
}
.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}

/* Affiliate Landing Page */
.affiliate-page { background-color: #ffffff; }

.affiliate-hero {
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    padding: 100px 20px;
    text-align: center;
    position: relative;
}
.affiliate-hero::before { /* Dark overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 0;
}
.affiliate-hero .container {
    position: relative;
    z-index: 1;
}
.affiliate-headline {
    font-size: 2.8rem; /* Larger */
    margin-bottom: 10px;
    color: var(--white-color);
    font-weight: bold;
}
.affiliate-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #f0f0f0; /* Lighter than white for slight contrast */
    font-weight: normal;
}
.affiliate-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.affiliate-disclaimer, .affiliate-disclaimer-hero, .affiliate-disclaimer-form {
    font-size: 0.8rem;
    color: #ccc; /* Light gray for disclaimer */
    margin-top: 15px;
}
.affiliate-disclaimer-hero {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.affiliate-disclaimer-form {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}
.affiliate-disclaimer-form a { color: var(--primary-color); text-decoration: underline;}

.quote-form-section {
    padding: 50px 0;
    background-color: var(--light-gray);
}
.quote-form-section h2 {
    text-align: center;
    margin-bottom: 30px;
}
.lead-form {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 700px;
    margin: 0 auto;
}
.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}
@media(min-width: 768px) {
    .form-row {
        flex-direction: row;
    }
    .form-row .form-group {
        flex: 1;
    }
}
.lead-form .form-group {
    margin-bottom: 20px;
}
.lead-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark-gray);
}
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
}
.lead-form select {
    appearance: none; /* For custom arrow later if desired */
    background-color: white; /* Ensure bg is white on all browsers */
}
.lead-form textarea {
    resize: vertical;
    min-height: 100px;
}
.checkbox-group {
    display: flex;
    align-items: flex-start; /* Align checkbox with start of label text */
}
.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px; /* Align with text */
    width: auto;
    flex-shrink: 0;
}
.checkbox-label {
    font-size: 0.85rem;
    color: #555;
    font-weight: normal !important; /* Override general label bolding */
}
.lead-form .submit-quote {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
}

.user-reviews {
    padding: 50px 0;
}
.user-reviews h2 {
    text-align: center;
    margin-bottom: 30px;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}
.review-card {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}
.review-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}
.review-author {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.review-stars {
    color: var(--accent-color);
    font-size: 1.2rem;
}


/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white-color);
    padding: 40px 0 20px;
    margin-top: auto; /* Pushes footer to bottom */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-info p, .footer-links a {
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.footer-info strong { color: var(--medium-gray); }
.footer-info a, .footer-links a {
    color: var(--medium-gray);
}
.footer-info a:hover, .footer-links a:hover {
    color: var(--white-color);
    text-decoration: underline;
}
.footer-links {
    display: flex;
    flex-direction: column;
}
@media(min-width: 576px) {
    .footer-links {
        flex-direction: row;
        gap: 20px;
    }
}

.affiliate-disclaimer-footer {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
    border-top: 1px solid #555;
    padding-top: 15px;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 20px;
}


/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }
    .affiliate-headline { font-size: 2.2rem; }
    .affiliate-title { font-size: 1.5rem; }


    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 78px; /* Adjust based on header height */
        left: 0;
        background-color: var(--white-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        border-top: 1px solid var(--medium-gray);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid var(--light-gray);
    }
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 15px;
        width: 100%;
        border-radius: 0;
    }
    .nav-links a:hover, .nav-links a.active {
        background-color: var(--primary-color);
        color: var(--white-color);
    }
    .nav-links .cta-nav {
        margin: 10px 20px; /* Add some margin */
        padding: 10px;
        text-align: center;
    }


    .hamburger {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links {
        margin-top: 20px;
        flex-direction: column;
        gap: 10px;
    }
}

/* Hamburger Menu Animation */
.hamburger.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Utility Class for hiding elements visually but keeping them accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}