/**** Global Styles ****/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

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

h1, h2, h3 {
    color: #1b3a28; /* Deep Green */
}

a {
    color: #1b3a28;
    text-decoration: none;
}

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

/**** Header & Navigation ****/
header.main-header {
    background-image: linear-gradient(rgba(27, 58, 40, 0.7), rgba(27, 58, 40, 0.7)), url('images/header_background_texture.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header.main-header .logo {
    width: 100px;
    margin-bottom: 15px;
}

header.main-header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: white;
}

header.main-header p.subtitle {
    font-size: 1.2em;
    color: #e0e0e0;
}

nav.main-nav {
    background: #333;
    color: white;
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav.main-nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

nav.main-nav ul li {
    display: inline;
    margin: 0 15px;
}

nav.main-nav ul li a {
    color: white;
    font-weight: bold;
    font-size: 1.1em;
}

nav.main-nav ul li a:hover {
    color: #4CAF50; /* Lighter Green for hover */
}

/**** Sections ****/
section {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.about-us-team {
    display: flex !important; /* Ensure flex is applied */
    flex-direction: column !important; /* Force vertical stacking */
    align-items: center !important; /* Center items */
    gap: 30px !important;
}

.team-member {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%; /* Make each team member take full width */
    max-width: 700px; /* Optional: constrain max width for very wide screens */
    margin-bottom: 20px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #1b3a28;
}

.team-member h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.team-member p {
    font-size: 0.95em;
    text-align: left;
}

/**** Contact Section & Form ****/
#contact p, #quote p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 20px;
}

form.quote-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

form.quote-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form.quote-form input[type="text"],
form.quote-form input[type="tel"],
form.quote-form input[type="email"],
form.quote-form textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form.quote-form textarea {
    min-height: 120px;
    resize: vertical;
}

form.quote-form button[type="submit"] {
    background: #4CAF50;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

form.quote-form button[type="submit"]:hover {
    background: #1b3a28;
}

/**** Footer ****/
footer.main-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

/**** Responsive Adjustments ****/
@media (max-width: 768px) {
    header.main-header h1 {
        font-size: 2.2em;
    }
    nav.main-nav ul li {
        margin: 0 10px;
    }
    nav.main-nav ul li a {
        font-size: 1em;
    }
    .team-member {
        flex-basis: calc(50% - 40px);
    }
}

@media (max-width: 480px) {
    header.main-header h1 {
        font-size: 1.8em;
    }
    header.main-header p.subtitle {
        font-size: 1em;
    }
    nav.main-nav ul li {
        display: block;
        margin: 10px 0;
    }
    .team-member {
        flex-basis: 100%;
    }
    form.quote-form {
        padding: 15px;
    }
}




/**** Featured Services Section Updates ****/
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Increased gap between service items */
}

.service-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.service-item-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%; /* Make icons circular if they are square */
    padding: 5px; /* Add some padding if icons are too close to edge */
    background: #eef7ed; /* Light green background for icon */
}

.service-item-text {
    flex-grow: 1;
}

.service-item-text h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #1b3a28;
}

.service-item-text p {
    margin-bottom: 0;
    font-size: 0.95em;
    color: #555;
}

.service-item-image {
    width: 150px; /* Adjusted size for better balance */
    height: 100px;
    object-fit: cover; /* Ensures image covers the area, might crop */
    border-radius: 6px;
    flex-shrink: 0;
}

/* Hide the old large image showcase if it exists */
.services-image-showcase {
    display: none !important; 
}

/* Ensure services-content takes full width */
.services-content {
    width: 100%;
}

/* Adjust hero intro if image was removed and text needs more space */
.hero-intro-container {
    display: flex;
    align-items: center;
}
.hero-text {
    flex-grow: 1; /* Allow text to expand if image is removed */
    /* If hero-image div is empty, this will take full width or its defined flex basis */
}
.hero-image {
    /* If this div is empty, it won't take space unless it has explicit dimensions or flex-basis */
    flex-basis: 0; /* Ensure it doesn't take space if empty */
    min-width: 0;
}

/* Responsive adjustments for the new service item layout */
@media (max-width: 768px) {
    .service-item {
        flex-direction: column; /* Stack items vertically on smaller screens */
        align-items: flex-start; /* Align items to the start */
    }
    .service-item-image {
        width: 100%; /* Make image full width in stacked layout */
        height: auto; /* Adjust height accordingly */
        margin-top: 15px;
    }
}

