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

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #333;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Removed default margin: 20px auto; for more specific control */
}

/* Header */
#main-header {
    background-image: url('../images/mission-image.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* For parallax effect */
    color: #fff;
    padding: 40px 0; /* Adjusted padding */
    text-align: center;
    position: relative; /* For overlay */
}

#main-header::before { /* Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55); /* Slightly adjusted Dark overlay */
}

.header-content {
    position: relative; /* To sit on top of the overlay */
    z-index: 1;
    max-width: 90%; /* Wider for new layout */
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the rows/elements */
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

#header-logo {
    max-width: 70px; /* Smaller logo */
    height: auto;
    /* margin-right: auto; Implicitly handled by space-between on parent */
}

.company-name-main {
    font-size: 20px; /* Smaller company name */
    color: #fff;
    text-align: right;
    /* margin-left: auto; Implicitly handled by space-between on parent */
    font-weight: bold;
}

.tagline-main {
    font-size: 28px; /* Larger tagline */
    color: #eee;
    text-align: center;
    margin: 10px 0 15px 0; /* Adjusted margins */
    font-weight: bold;
}

#main-header nav {
    text-align: center;
    margin-bottom: 15px; /* Space below nav */
}

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

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

#main-header nav ul li a {
    color: #fff;
    font-weight: bold;
    font-size: 17px; /* Slightly adjusted */
}

.subtitle-main {
    font-size: 18px; /* Subtitle size */
    color: #fff;
    text-align: center;
    margin-top: 5px; /* Space above subtitle */
    font-weight: normal;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.content-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

#services .service {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#services .service img {
    width: 200px; /* Increased width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 0; /* Remove border-radius for square/rectangular shape */
    margin: 0 auto 25px auto; /* Adjusted bottom margin */
}

#services .service h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

#services .service p {
    font-size: 15px;
    flex-grow: 1;
}

/* Contact Section */
#contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#contact p {
    margin-bottom: 10px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 8px 16px; /* Reduced padding */
    border-radius: 5px;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    font-size: 0.9em; /* Slightly smaller font */
}

.cta-button:hover {
    background: #0056b3;
    text-decoration: none;
    color: #fff;
}

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

footer p {
    margin: 0;
}

/* Responsive Design */
@media(max-width: 768px) {
    .container {
        width: 90%;
        padding: 0 15px;
    }

    #main-header {
        padding: 30px 0; /* Adjust header padding for mobile */
    }

    .header-content {
        max-width: 95%;
    }

    .header-top-row {
        flex-direction: column; /* Stack logo and company name */
        align-items: center;
        margin-bottom: 10px;
    }

    #header-logo {
        max-width: 60px; /* Even smaller logo */
        margin-bottom: 8px;
    }

    .company-name-main {
        font-size: 18px; /* Adjust font size */
        text-align: center; /* Center when stacked */
    }

    .tagline-main {
        font-size: 22px; /* Adjust font size */
        margin: 8px 0 12px 0;
    }

    #main-header nav ul li {
        display: block; /* Stack nav items */
        margin: 8px 0;
    }
     #main-header nav ul li a {
        font-size: 16px;
    }

    .subtitle-main {
        font-size: 15px; /* Adjust font size */
    }

    #services .service img { /* Responsive adjustments for service images */
        width: 150px; /* Smaller size on mobile */
        margin-bottom: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Stack services in a single column */
    }

    #services .service {
        margin-bottom: 20px;
    }

    .content-section h2 {
        font-size: 24px;
    }
}

/* Ensure old .logo class (if any specific styles were applied to it) is reset or removed if not needed */
.logo {
    /* If .logo div is still used as a wrapper for only the image, these might be relevant */
    /* display: flex; align-items: center; */
    /* Otherwise, if it was for text, it's no longer relevant in the header */
}
