@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Merriweather:wght@400;700&display=swap');

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
}

/* Header styles */
header {
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* General body styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* To enable the footer to stay at the bottom*/
}



header #logo {
    border: none !important;
}

#logo {
    font-family: 'Merriweather', sans-serif;
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #2a2a2a;
    text-align: center;
    text-decoration: none;
    border: none;
    display: inline;
}

#logo .fa-house {
    font-size: 1em; /* Adjust icon size */
    margin-left: 5px; /* Add some space between text and icon */
}

nav {
    margin-top: 10px;
}

#menu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#menu li {
    list-style-type: none;
    margin: 5px 0;
}

#menu a {
    text-decoration: none;
    color: inherit;
    font-size: 1em;
    letter-spacing: 2px;
}

#menu a:hover{
    border-bottom: 2px solid #3a3a3a;
}

/* Media Queries */

/* Adjust at 500px */
@media (min-width: 500px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav {
        margin-top: 0;
    }

    #menu {
        flex-direction: row;
    }

    #menu li {
        margin: 0 10px;
    }
}

/* Adjust at 700px */
@media (min-width: 700px) {
    header {
        padding: 20px 40px;
    }

    #logo {
        font-size: 2em;
    }

    #menu a {
        font-size: 1.2em;
    }
}

/* Adjust at 900px */
@media (min-width: 900px) {
    header {
        padding: 20px 60px;
    }

    #logo {
        font-size: 2.5em;
    }

    #menu a {
        font-size: 1.5em;
    }
}

/* Worker image and cover text section */
#worker-outer {
    height: 600px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

#worker-image {
    height: 100%;
    width: 100%;
    background: url('../images/worker.webp') no-repeat center center;
    background-size: cover;
    animation: worker-zoom 5s forwards;
}

@keyframes worker-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

/* cover text */
#cover-text {
    font-size: 130%;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    width: 300px; /* Increased width for better spacing */
    padding: 20px; /* Increased padding for better readability */
    background-color: #3a3a3a;
    border-radius: 10px;
    position: absolute;
    bottom: 30px;
    right: 50px;
    color: #fff;
    text-align: center; /* Center align text */
}

#cover-text h2 {
    margin-bottom: 10px;
}

#cover-text h3 {
    margin-top: 0;
}

/* Responsive adjustments for worker image and cover text section */
@media screen and (max-width: 768px) {
    #worker-outer {
        height: 400px;
    }

    #cover-text {
        width: 240px; /* Adjusted width for smaller screens */
        font-size: 110%;
        padding: 16px; /* Adjusted padding for smaller screens */
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 480px) {
    #worker-outer {
        height: 300px;
    }

    #cover-text {
        width: 180px; /* Adjusted width for even smaller screens */
        font-size: 100%;
        padding: 12px; /* Adjusted padding for smaller screens */
        bottom: 10px;
        right: 10px;
    }
}

/* Work Ethos Section */
#work-ethos {
    padding: 50px 0;
    background-color: #f5f5f5;
    text-align: left;
}

#work-ethos p {
    text-align: left; /* Ensure paragraphs are left-aligned */
    line-height: 1.6;
    color: #555;
}

#left-about, #right-about {
    box-sizing: border-box;
    display: inline-block;
    vertical-align: top;
    width: 50%;
    padding: 0 20px;
}

.left-about-heading h3,
.right-about-heading h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.left-about-heading hr,
.right-about-heading hr {
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

.left-about-heading p,
.right-about-heading p {
    text-align: left;
    line-height: 1.6;
    color: #666;
}

#square-image-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    border: 1px solid #ccc;
}

.left-image {
    width: 100%;
    height: 100%;
    background: url('../images/services-image.webp') no-repeat center center;
    background-size: cover;
}
/* paragraphs heading */
.section-subheading {
    margin-top: 20px;  /* Adjusts space above the subheading */
    margin-bottom: 10px;
 }
/* Responsive adjustments for work ethos section */
@media screen and (max-width: 768px) {
    #left-about, #right-about {
        width: 100%;
        padding: 0 10px;
    }

    .left-about-heading, .right-about-heading {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    #square-image-container {
        width: 200px;
        height: 200px;
    }
}

/* Contact info section */
#contact-info {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    background-color: #f5f5f5;
}

.contact-box {
    width: 40%;
    text-align: center;
    padding: 20px;
}

.contact-box h3 {
    margin-bottom: 20px;
    font-size: 120%;
}

.contact-box p {
    margin: 10px 0;
}

.bold {
    font-weight: bolder;
}

.inputBox {
    margin-bottom: 20px;
}
label {
    visibility: hidden;
}
/* Responsive adjustments for contact info section */
@media screen and (max-width: 768px) {
    #contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-box {
        width: 80%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    .contact-box {
        width: 90%;
    }
}

/* Work ethos section */
#work-ethos {
    padding: 50px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.about-section {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.left-about, .right-about {
    flex: 1;
    padding: 0 20px;
}

.left-about-heading,
.right-about-heading {
    margin-bottom: 30px;
    padding: 0 20px; /* Added padding to headings for spacing */
}

.left-about-heading h2,
.right-about-heading h2 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 10px;
}

.left-about-heading p,
.right-about-heading p {
    text-align: justify;
    line-height: 1.6;
}

/* Responsive adjustments for work ethos section */
@media screen and (max-width: 768px) {
    .about-section {
        flex-direction: column;
        align-items: center;
    }

    .left-about, .right-about {
        padding: 0;
    }

    .left-about-heading,
    .right-about-heading {
        margin-bottom: 20px;
    }

    .left-about-heading h2,
    .right-about-heading h2 {
        font-size: 1.8em;
    }

    .left-about-heading p,
    .right-about-heading p {
        padding: 0 10px;
    }
}

@media screen and (max-width: 480px) {
    .left-about, .right-about {
        padding: 0 10px;
    }

    .left-about-heading h2,
    .right-about-heading h2 {
        font-size: 1.5em;
    }

    .left-about-heading p,
    .right-about-heading p {
        line-height: 1.5;
    }
}

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

#social-medias {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

#social-medias li {
    display: inline-block;
    margin: 0 10px;
}

#social-medias a {
    color: #fff;
    font-size: 1.5em;
    text-decoration: none;
}


/* Responsive adjustments for footer */
@media screen and (max-width: 768px) {
    #social-medias {
        margin-bottom: 10px;
    }

    #social-medias li {
        margin: 0 5px;
    }

    #social-medias a {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 480px) {
    #social-medias a {
        font-size: 1em;
    }
}

/* Services section */
#services {
    padding: 50px 0;
    text-align: center;
}

.service-section {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.service-column {
    flex: 1;
    padding: 0 15px; /* Adjusted padding for smaller screens */
}

.service-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: left;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #2a2a2a; /* Heading color remains unchanged */
}

.service-item p {
    font-size: 1em; /* Adjusted font size for better readability */
    line-height: 1.6;
    color: #333; /* Darkened text color for better contrast */
}

.service-frequencies {
    margin-top: 10px;
    color: #333; /* Ensure availability text matches paragraph text */
}

.service-frequencies li {
    margin-bottom: 5px;
    font-size: 0.9em;
}

/* Responsive adjustments for services section */
@media screen and (max-width: 768px) {
    .service-section {
        flex-direction: column;
        align-items: center;
    }

    .service-column {
        padding: 0;
    }

    .service-item {
        width: 100%;
        max-width: 400px;
        padding: 15px; /* Adjusted padding for smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .service-item {
        padding: 10px; /* Further adjusted padding for smaller screens */
    }

    .service-item h3 {
        font-size: 1.3em;
    }

    .service-item p {
        font-size: 0.95em; /* Slightly reduced font size for better readability */
    }

    .service-frequencies li {
        font-size: 0.85em;
    }
}

/* Contact Form Styling */
.contact {
    padding: 50px 0;
    text-align: center;
    background-image: url('../images/city-center.webp'); 
    background-size: cover;
    background-position: center;
    color: #333; /* Adjusted text color for readability */
}

.contact .content {
    margin-bottom: 40px;
    color: #fff; /* Text color for headings and paragraphs */
}

.contact h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.5em;
    color: #fff; /* Heading color */
}

.contact p {
    font-size: 1.2em;
    color: #fff; /* Paragraph text color */
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contactInfo {
    width: 45%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    color: #fff; /* Text color for contact info */
}

.contactInfo .box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contactInfo .icon {
    font-size: 1.5em;
    margin-right: 10px;
}

.contactInfo .text {
    flex: 1;
}

.contactInfo h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #fff; /* Adjusted text color */
}

.contactInfo p {
    font-size: 1em;
    color: #ccc; /* Adjusted text color */
    margin-bottom: 0;
}

.contactForm {
    width: 45%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px; /* Adjusted margin to lift the form up */
    color: #fff; /* Text color for form */
}

.contactForm h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #fff; /* Heading color */
}

.inputBox {
    position: relative;
    margin-bottom: 20px;
}

.inputBox input,
.inputBox textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    color: #333; /* Text color inside the input fields */
    background-color: #fff; /* White background for inputs */
    transition: border-color 0.3s ease;
}

.inputBox input:focus,
.inputBox textarea:focus {
    outline: none;
    border-color: #555;
    background-color: #fff; /* Ensure background color remains white on focus */
    color: #333; /* Ensure text color remains readable on focus */
}

.inputBox label {
    font-size: 0.9em;
    color: #888;
    position: absolute;
    top: 12px;
    left: 12px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.inputBox textarea {
    height: 150px;
}

.inputBox input[type="submit"] {
    background-color: #3a3a3a;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1em;
    padding: 10px 20px;
    border-radius: 4px;
}

.inputBox input[type="submit"]:hover {
    background-color: #555;
}

.highlighted {
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background */
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    color: #fff; /* Text color */
    margin-bottom: 10px;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .contactInfo,
    .contactForm {
        width: 90%; /* Adjust width for smaller screens */
        margin-bottom: 20px;
    }

    .contactInfo .box,
    .contactForm .inputBox {
        margin-bottom: 10px; /* Reduce margin between items */
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 90%; /* Adjust width for smaller screens */
    }
}

@media screen and (max-width: 480px) {
    .inputBox input[type="submit"] {
        font-size: 0.9em;
        padding: 8px 16px;
    }
}