html {
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #333;
}

header {
    background-color: #2e5f3e;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.titleLogo {
    display: flex;
    align-items: center; /* Vertically center logo and title */
    gap: 2rem; /* Add small spacing between logo and title */
}

.logo {
    max-width: 100px;
    height: auto; /* Ensure logo scales properly */
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.hero {
    background-color: #e0f2e9;
    text-align: center;
    padding: 0;
}

.hero-content {
    position: relative;
    width: 100%;
}

.hero img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: left;
    max-width: 500px;
}

.hero h2 {
    margin: 0.5rem 0;
    font-size: 2rem;
}

.hero p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.hero button {
    background-color: #2e5f3e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 1rem;
}

section {
    padding: 2rem 1rem;
    margin: 0 auto;
}

#services {
    gap: 2rem;
    text-align: center;
}

.all-services {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.service {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.exterior-treatments {
    /* background-color: #CEE7D6; */
    padding: 2rem;
    padding-left: 6rem;
    padding-right: 6rem;
    display: flex;
    gap: 2rem;
}

.exterior-treatments img {
    width: 30%;
}

#interior-treatments {
    background-color: #CEE7D6;
    padding: 4rem;
    padding-left: 6rem;
    padding-right: 6rem;
}


.interior-exterior-treatments {
    background-color: #bfd4c6;
    /* color: aliceblue; */
}

#about img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem 0;
}

/* #contact {
    text-align: center;
}

form {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
} */

/* Contact Form */


.contact-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* width: 100%; */
    max-width: 500px;
    margin: auto;
}
.contact-container h2 {
    text-align: center;
    color: #333;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}
input, select, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
textarea {
    resize: vertical;
    min-height: 100px;
}
button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
button:hover {
    background-color: #218838;
}
.error {
    color: red;
    font-size: 12px;
    display: none;
}
.success-message {
    color: green;
    text-align: center;
    display: none;
    margin-top: 10px;
}

button[type="submit"] {
    background-color: #2e5f3e;
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
}

footer {
    text-align: center;
    background-color: #2e5f3e;
    color: white;
    padding: 1rem;
    margin-top: 2rem;
}

@media only screen and (max-width: 600px) {
    nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    nav ul {
        /* flex-direction: column; */
        gap: 1.5rem;
    }

    .all-services {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-text {
        width: 80%;
        left: 5%;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero img {
        max-height: 200px;
    }
    .family-picture {
        width: 30%;
    }
    .about-page {
        display: flex;
        flex-direction: column;
    }

    .exterior-treatments {
        display: flex;
        flex-direction: column;
        padding: 0;
        justify-content: center;
    }
    .exterior-treatments img {
        width: 70%;
        margin: auto;
    }
}


/* about page */
.family-picture {
    width: 100%;
}

.about-page {
    display: flex;
    gap: 1rem;
}