/* Global Styles and Typography */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #F4F4F4;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Header Styles */
header {
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1% 1% 1% 1%; 
    max-width: 100%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#logo {
    max-width: 200px;
    display: block;
}

.call-now-btn {
    background-color: #043d22;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.call-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 25px rgba(255, 255, 255, 0.15);
}

.call-now-btn i {
    margin-right: 7px; /* Adds spacing between the icon and text */
    vertical-align: middle; /* Vertically centers the icon with the text */
}

/* Hero Section */
#hero {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)), url('images/hero_section_ver2.webp');
    background-size: cover;
    background-position: center;
    height: 600px;
    box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.1);
}

#hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#hero-content h1 {
    color: #fff;
    font-size: 3em;
    margin-bottom: 30px;
}

#services-container {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.service-item {
    background-color: #043d22;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s; /* Adjusted to target specific properties */
    width: 150px; /* Adjust this value based on your preference */
    height: 150px; /* Adjust this value based on your preference */
    text-align: center; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
    transform: translateY(-2px) scale(1.03) !important; /* Move the item slightly upwards and scale it up */
    box-shadow: 0px 6px 25px rgba(255, 255, 255, 0.153); /* Enhance the shadow for a lifted look */
}

.service-item i {
    font-size: 2em;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    width: 80px; /* Keeping it square */
    height: 80px;
    transition: color 0.3s; /* Smooth transition for color changes */
}

.service-item p {
    font-size: 0.8em;
    color: #fff;
    margin: 0;
    transition: color 0.3s; /* Smooth transition for color changes */
}



/* About Section */
#about {
    margin-left: 15%;
    margin-right: 15%;
    padding: 40px 0;
    position: relative; /* This makes the section a reference for the absolutely positioned image */
}

.about-me-image {
    float: right;  /* Float the image to the right */
    margin-left: 20px;  /* Add some space between the image and the text */
    margin-top: -150px;  /* This will push the image upwards. Adjust this value to achieve the desired overlap */
    z-index: 2;
}

.about-me-image img {
    width: 300px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Clear the float after the image and text */
.clear-float {
    clear: both;
}

/* Contact Section */
#contact {
    background: linear-gradient(to bottom, #043d22, #000);
    color: #fff;
    padding: 40px 20px;
    
    justify-content: center;
}

#contact form {
    margin-left: 15%;
    margin-right: 15%;
    max-width: 70%; /* Adjust this value based on the desired width */
    width: 100%;
}

#contact label, #contact input, #contact textarea, #contact button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    box-sizing: border-box;
}

#contact h2 {
    margin-left: 15%;
    margin-right: 15%;
}

.contact-intro {
    margin-top: 20px;  /* Adjust this value as needed */
    margin-bottom: 20px;  /* Adjust this value as needed */
    margin-left: 15%;
    margin-right: 15%;
}


#message {
    height: 150px;
}

#contact button {
    background-color: #043d22;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#contact button:hover {
    background-color: #043d22;
}

#contact label.gdpr-checkbox {
    display: grid;
    grid-template-columns: 18px 1fr;
    column-gap: 10px;
    align-items: start;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 10px;
    font-size: 0.9em;
    line-height: 1.4;
    color: #fff;
    padding: 0;
    width: auto;
}

#contact label.gdpr-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
    padding: 0;
}





/* Footer Styles */
footer {
    display: flex;
    justify-content: space-between;
    padding-left: 15%;
    padding-right: 15%;
    background-color: #000;
    align-items: flex-start;
    padding: 30px 0;
}

.footer-column {
    flex: 1;
    padding: 20px;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 10px;
}

.footer-link, .footer-column p {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-column:last-child {
    align-self: flex-start; /* This will align the column to the top */
}

@media (min-width: 768px) {
    .footer-column-4 {
        padding-top: 15px; /* This style adjust last column with links for desktop only */
    }
}


.map-container {
    position: relative;
    width: 100%;
    height: 450px; /* Adjust height as needed */
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6); /* This is a black overlay with 60% opacity. Adjust as needed. */
    pointer-events: none; /* Ensures the map underneath is still interactive */
}








/* Responsiveness */
@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        z-index: 1000; /* This ensures the header stays above other content */
        background-color: rgba(0, 0, 0, 0.95); /* Optional: Adds a slight background to ensure content readability when scrolling */
        flex-direction: row; /* Change to row */
        align-items: center; /* To vertically center the logo and button */
        justify-content: space-between; /* To spread the logo and button apart */
        padding: 10px 15px; /* Added some side padding */
    }

    #hero-content h1 {
        text-align: center;
        font-size: 1.5rem; /* Adjust based on preference */
    }

    #logo {
        width: 150px; /* Adjust this based on your preference */
        margin-bottom: 0; /* Remove the bottom margin */
    }

    .call-now-btn {
        font-size: 0.8rem; /* Adjust based on your preference */
        padding: 5px 10px; /* Adjust based on your preference */
    }

    .about-me-image img {
        width: 80%; /* Adjust the image width */
        max-width: 250px; /* Set a maximum width */
        margin: 0 auto; /* Center the image when it's display block */
    }

    #services-container {
        flex-direction: row; /* Change to row */
        flex-wrap: wrap; /* Allow items to wrap to the next line */
        justify-content: space-around; /* Distribute items evenly with space around them */
        align-items: flex-start;
        display: flex;
    }

    .service-item {
        flex: 0 1 calc(25% - 10px); 
        max-width: calc(25% - 10px); 
        margin-bottom: 10px;
        width: 100px;
        height: 100px;
        padding: 5px;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers the child elements horizontally */
        justify-content: center; /* Centers the child elements vertically, though this might not be necessary if you want the elements top-aligned */
    }

    .service-item i {
        font-size: 1.5em; /* Adjust based on your preference for mobile size */

    }

    .service-item p {
        font-size: 0.6rem; /* Adjust based on your preference for mobile size */
        height: 60px; /* Set a fixed height that accommodates the longest text */
        display: flex;
        justify-content: center; /* Horizontally centers the text */
    }

    #about {
        margin-left: 5%;
        margin-right: 5%;
    }

    #contact h2 {
        margin-left: 5%;
        margin-right: 5%;
    }

    .contact-intro {
        margin-left: 5%;
        margin-right: 5%;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-column {
        margin-bottom: 20px;
        margin-left: 5%
    }

    #contact label.gdpr-checkbox input[type="checkbox"] {
        margin-top: 3px;
    }

    

    

    
}

/* For very small screens */
@media (max-width: 400px) {

    #logo {
        width: 100px; /* Adjust this based on your preference */
        margin-bottom: 0; /* Remove the bottom margin */
    }

    .call-now-btn {
        font-size: 0.5rem; /* Adjust based on your preference */
        padding: 5px 10px; /* Adjust based on your preference */
    }

    .about-me-image {
        display: none; /* Hide the image */
    }

    #hero-content h1 {
        font-size: 1rem; /* Adjusted font size */
    }

    .service-item {
        width: 90px;
        height: 90px;
        flex: 0 0 auto; /* This will make each item not grow or shrink and stay at its original width */
    }

    .service-item i {
        font-size: 1.2em; /* Adjusted icon size */
        margin-bottom: 5px;
    }

    .service-item p {
        font-size: 0.4em; /* Adjusted font size for service descriptions */
    }

    #services-container {
        flex-wrap: nowrap; /* Prevents wrapping of items */
        overflow-x: auto; /* Adds horizontal scrolling in case the content overflows */
    }

    .gdpr-checkbox {
        font-size: 0.5em;
    }

}