/* Basic Reset */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base body styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333333;
    padding: 0 2rem;
}

/* Header styles */
header {
    background: #e8f5e9;
    color: white;
    padding: 1rem 0;
}

/* Logo styles */
.logo img {
    height: 80px; /* Default height for desktop */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Ensures the logo is block level */
}

/* Navigation styles */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* Navigation list */
.navigation {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%; /* Full width for mobile */
}

/* Navigation links */
.navigation li {
    padding: 8px 12px;
}

.navigation a, .dropbtn {
    text-decoration: none;
    color: #333333 !important; /* Ensure navigation links are visible */
    padding: 14px 16px;
    display: block;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-content {
    display: none; /* Initially hidden */
    position: static;
    background-color: #f9f9f9;
    width: 100%;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth transition */
}

.dropdown-content.show {
    display: block; /* Make visible */
    opacity: 1; /* Fully visible */
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    text-align: left;
    color: #333333 !important; /* Ensure dropdown links are visible */
}

/* Hero section styles */
.hero {
    padding: 2rem 0;
    background-color: #93bc95;
    text-align: center;
    color: white; /* Ensure hero text is visible */
}

/* Service box styles */
.service {
    background-color: #f5f5f5;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.service-boxes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    gap: 20px;
}

/* Text Container */
.text-container {
    flex: 1 1 60%;
}

/* Image Container */
.image-container {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.image-container img {
    width: 100%;
    height: auto;
}

/* Footer styles */
footer {
    background: #333333;
    color: #d3d3d3; /* Changed from white to light gray for contrast */
    text-align: center;
    padding: 1rem 0;
}

/* Desktop styles using media query */
@media (min-width: 769px) {
    .navigation {
        flex-direction: row;
        width: auto;
    }

    .logo, .navigation {
        flex: 1;
    }

    .dropdown-content {
        position: absolute;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    }

    .dropdown:hover .dropdown-content {
        display: block;
        opacity: 1;
    }

    .dropbtn {
        width: 100%;
        text-align: left;
    }

    .service-boxes {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .service {
        width: calc(33.333% - 2rem);
        margin: 1rem;
    }
}

/* Mobile-specific adjustments for logo size */
@media (max-width: 768px) {
    .logo img {
        height: 50px; /* Adjusted height for mobile */
    }

    .content-wrapper {
        flex-direction: column;
    }
}

/* Add .show class for JavaScript toggle on mobile */
.dropdown-content.show {
    display: block;
    opacity: 1;
}

/* General link styles */
a {
    color: #333333 !important; /* Makes the link color the same as the surrounding text */
    text-decoration: none !important; /* Removes the underline */
}

a:visited {
    color: #333333 !important; /* Keeps the visited link color the same as the surrounding text */
}

a:hover, a:focus {
    color: #333333 !important; /* Keeps the hovered/focused link color the same as the surrounding text */
    text-decoration: none !important; /* Ensures no underline on hover/focus */
}

a:active {
    color: #333333 !important; /* Keeps the active link color the same as the surrounding text */
    text-decoration: none !important; /* Ensures no underline on active */
}
