/* ==========================================================================
   Global Styles & Typography [1-3]
   ========================================================================== */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f8f8; /* Light background [1, 2] */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headings [1, 3] */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #555555;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 2.5em; text-align: center; position: relative; padding-bottom: 10px; }
h4 { font-size: 1.4em; }

p { margin-bottom: 1em; }

/* Links and Buttons [3, 4] */
a {
    color: #4CAF50; /* Brand Green [3] */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: #388E3C; }

.btn {
    display: inline-block;
    background-color: #388E3C;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #2E7D32;
    color: #fff;
    transform: translateY(-2px);
}

.btn-primary { background-color: #4CAF50; }

/* ==========================================================================
   Header & Navigation [4-6]
   ========================================================================== */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #2D545E; /* Dark Teal [5, 6] */
    font-size: 1.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li { margin-left: 30px; }

.main-nav a {
    color: #555;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

/* Green underline hover effect [6, 7] */
.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #4CAF50;
    transition: width 0.3s ease-in-out;
}

.main-nav ul li a:hover::after { width: 100%; }

/* ==========================================================================
   Home Page Sections [7-12]
   ========================================================================== */
section { padding: 80px 0; text-align: center; }
section:nth-of-type(even) { background-color: #ecf0f1; }

/* Green accent line for section titles [5, 8] */
section h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #4CAF50;
}

/* Hero Section [7, 8] */
.hero {
    background: url('hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 100px 0;
    min-height: 450px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero h2 { font-size: 3em; color: #fff; margin-bottom: 20px; }
.hero p { font-size: 1.2em; max-width: 700px; margin: 0 auto 30px; color: #f0f0f0; }

/* Service Grid [9, 10] */
.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    flex: 0 1 calc(25% - 30px);
    min-width: 250px;
}

.service-item h4 { color: #4CAF50; margin-top: 0; }

/* How It Works [10-12] */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.how-step {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.how-step:hover { transform: translateY(-5px); border-color: #4CAF50; }

.step-circle {
    display: block;
    width: 60px; height: 60px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 50%;
    line-height: 60px;
    font-weight: 700;
    font-size: 1.5em;
    margin: 0 auto 20px;
}

/* About Section [12, 13] */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.about-image {
    width: 100%; max-width: 280px; height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-text { flex-grow: 1; max-width: 600px; }

/* Testimonials [13] */
.testimonials blockquote {
    background-color: #fff;
    border-left: 5px solid #4CAF50;
    padding: 20px;
    margin: 20px auto;
    max-width: 700px;
    font-style: italic;
    color: #555;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Contact Form [13-15] */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
}

.contact-info h4, .contact-form-container h4 { color: #4CAF50; margin-bottom: 20px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px;
    font-family: 'Open Sans', sans-serif; box-sizing: border-box;
}

/* ==========================================================================
   Policy Page Specific Styles [16, 17]
   ========================================================================== */
.policy-page {
    padding: 80px 0;
    background-color: #fff;
}

.policy-content {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.policy-content h4 {
    color: #4CAF50; /* Green heading for policy items [16] */
    margin-top: 30px;
}

.last-updated { text-align: center; font-style: italic; color: #888; }

address {
    font-style: normal;
    background: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #4CAF50; /* Green accent for address [17] */
    margin-top: 20px;
}

/* ==========================================================================
   Footer & Responsive Design [15, 17, 18]
   ========================================================================== */
.main-footer {
    background-color: #555555;
    color: #fff;
    padding: 30px 0;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-nav a { color: #fff; opacity: 0.8; text-decoration: none; }
.footer-nav a:hover { opacity: 1; }

@media (max-width: 768px) {
    .main-header .container { flex-direction: column; }
    .main-nav ul { margin-top: 15px; justify-content: center; }
    .about-content { flex-direction: column; text-align: center; }
    .about-image { max-width: 80%; order: -1; }
}