/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set up the body */
body {
    font-family: Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
    padding-top: 60px; /* Adjust based on the actual header height */
}

html {
    scroll-behavior: smooth;
}

/* Top Menu */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #333333; /* Dark gray */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 60px; /* Ensure header has a consistent height */
}

/* Logo Image Styling */
.logo img {
    height: 40px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

/* Universal Styling for Images */
img {
    border-radius: 15px; /* Rounded corners for all images */
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure images fit within their containers */
}

/* Menu Styling for Desktop */
.menu {
    list-style: none;
    display: flex;
    gap: 20px; /* Space between menu items */
}

/* Specific Image Resizing for the Irrigation Page */
.rounded-image-left, .rounded-image-right {
    width: 50%; /* Adjust this to the desired width, e.g., 50% of the container */
    max-width: 400px; /* Set a maximum width (adjust as needed) */
}

.menu li {
    display: inline;
}

.menu a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px;
}

.menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Ensure the dropdown is positioned relative to the parent */
.dropdown {
    position: relative;
}

/* Dropdown Menu Styling */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333;
    min-width: 200px; /* Set a fixed width for the dropdown */
    list-style-type: none;
    margin: 0;
    padding: 0;
    z-index: 1;
    top: 100%; /* Position the dropdown directly below the Services item */
    left: 0; /* Align the dropdown with the parent Services menu item */
    flex-direction: column; /* Stack items vertically */
}

.dropdown-content li {
    width: 100%; /* Ensure each list item takes the full width */
}

.dropdown-content li a {
    padding: 12px;
    text-align: left;
    display: block; /* Make the links fill the width of the dropdown */
    color: white; /* White text */
    text-decoration: none; /* Remove underline */
}

.dropdown-content li a:hover {
    background-color: #555; /* Darker background on hover */
}

/* Show the dropdown when hovering over the parent */
.dropdown:hover .dropdown-content {
    display: block;
}


/* Contact Info in Header */
.contact-info p {
    color: white;
    margin: 0;
}

/* Full-Page Section */
.full-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-in-out;
    opacity: 1;
    flex-direction: column;
}

.contact-section {
    height: auto; /* Allow height to adjust based on content */
    padding: 40px 0; /* Add some padding for spacing */
    text-align: center; /* Optional: Center the text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.full-page.scrolled {
    opacity: 0;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('images/waterfall2.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-text-container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 30px;
    border-radius: 15px;
    display: inline-block;
}

.hero h1, .hero p {
    margin: 0;
}

.hero h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
}

/* Services Section */
.services {
    background-color: #f0f0f0;
    padding: 40px 20px;
    text-align: center;
}

/* Section Title */
.services-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* Service Item */
.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* General Footer Styling */
footer {
    background-color: #4a4a4a;
    color: white;
    text-align: center;
    padding: 10px 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    height: 100%;
    background-color: #4a4a4a;
    padding-top: 60px;
    z-index: 1000;
}

.mobile-menu ul {
    list-style-type: none;
    padding: 0;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    display: block;
    padding: 10px 20px;
}

/* Contact Logo Resizing */
.contact-logo-container img {
    max-width: 250px; /* Set a maximum width for the logo */
    height: auto; /* Maintain the aspect ratio */
    object-fit: contain; /* Ensure it scales properly */
    display: block;
    margin: 0 auto; /* Center the image if needed */
}

/* Center, Bold, and Increase Font Size for Contact Info */
.contact-phone, .contact-email {
    font-weight: bold; /* Make the text bold */
    text-align: center; /* Center the text */
    font-size: 1.2em; /* Slightly increase the font size (adjust as needed) */
    margin: 10px 0; /* Optional: Add some vertical spacing */
}

/* Light Gray Background for the Irrigation Page */
body.irrigation-page {
    background-color: #f5f5f5; /* Light gray background */
    padding: 20px;
    padding-top: 80px; /* Adjust this as needed to clear the top menu */
}

/* Styling for text and image sections with alternate layout */
.irrigation-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    align-items: center; /* Vertically align the content */
    gap: 20px; /* Space between columns */
    margin-bottom: 40px; /* Space between sections */
}

.irrigation-section .text-container {
    padding: 20px;
    background-color: white; /* White background for the text section */
    border-radius: 10px; /* Slightly rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.irrigation-section .image-container {
    text-align: center;
}

.irrigation-section img {
    max-width: 70%; /* Reduce image width */
    height: auto;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Alternate layout for second section */
.irrigation-section.alternate {
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    grid-template-areas: "image text"; /* Image on the left, text on the right */
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .irrigation-section {
        grid-template-columns: 1fr; /* Stack text and image vertically */
    }

    .irrigation-section img {
        max-width: 100%; /* Images take full width on smaller screens */
    }
}

/* Add padding at the top to prevent the top image from being cut off */
.irrigation-page {
    padding-top: 80px; /* Adjust this as needed to clear the top menu */
}

/* Divider line between sections */
.divider {
    border-top: 1px solid #333333; /* Thin line using top menu color */
    margin: 40px 0; /* Add some space above and below the line */
}

/* Alternative option for a blue divider */
.divider-blue {
    border-top: 1px solid #2b6cb0; /* A complementary blue color */
    margin: 40px 0;
}

/* Layout for text and images, applied to all sections */
.section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns for text and image */
    align-items: center; /* Vertically align the content */
    gap: 20px; /* Space between text and image */
    margin-bottom: 40px; /* Space between sections */
    padding-top: 80px; /* Adjust this as needed to clear the top menu */
}

.section .text-container {
    padding: 20px;
    background-color: white;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.section .image-container {
    text-align: center; /* Center the image */
}

.section img {
    max-width: 70%; /* Image size adjustment */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Alternate layout for sections (text on the right, image on the left) */
.section.alternate {
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    grid-template-areas: "image text"; /* Image on the left, text on the right */
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .section {
        grid-template-columns: 1fr; /* Stack text and image vertically */
    }

    .section img {
        max-width: 100%; /* Ensure images take full width on smaller screens */
    }
}

/* Ensure the entire service div is clickable */
.service-link {
    display: block; /* Makes the anchor behave as a block element */
    text-decoration: none; /* Removes underline from the text */
    color: inherit; /* Inherits the text color */
}

.service-link:hover .service {
    transform: translateY(-5px); /* Keep the hover effect */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}

/* Remove default link styling for all links */
.service-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit the text color from parent */
}

.service-link:visited {
    color: inherit; /* Ensure the color does not change for visited links */
}

.service-link:hover,
.service-link:active {
    color: inherit; /* Prevent color change on hover or active state */
    text-decoration: none; /* No underline on hover or active state */
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive columns */
    gap: 20px; /* Space between grid items */
    margin-top: 40px;
}

/* Service Item Styling */
.service {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%; /* Ensure all service boxes take up the full available height */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: space-between; /* Ensures space between elements */
    padding: 0; /* Remove any unnecessary padding */
    overflow: hidden; /* Ensure content doesn't overflow */
}

/* Image Styling */
.service img {
    width: 100%; /* Full width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px 10px 0 0; /* Rounded top corners only */
}

/* Service Text Styling */
.service-text {
    padding: 20px;
    text-align: center; /* Center-align the text */
    flex-grow: 1; /* Allow text to grow and take remaining space if needed */
}

.service-text h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold; /* Ensure bold text for headings */
    margin-top: 0; /* Ensure no gap between image and heading */
}

.service-text p {
    font-size: 1em;
    color: #666;
    margin-bottom: 0;
}

/* Hover Effects */
.service:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr; /* One column layout for smaller screens */
    }
}
.dropdown-content {
    z-index: 9999; /* Very high z-index to stay on top */
}


/* Hero Text Container Styling */
.hero-text-container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    display: inline-block;
}

/* CTA Container for side-by-side layout */
.cta-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* CTA Button Styling */
.cta-button {
    padding: 15px 25px;
    color: white;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    flex: 1;
}

/* Call Button Styling */
.cta-call {
    background-color: #28a745;
}

.cta-call:hover {
    background-color: #218838;
}

/* Email Button Styling */
.cta-email {
    background-color: #007bff;
}

.cta-email:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        gap: 10px;
    }
}



header {
    overflow: visible; /* Ensure the header allows overflow */
}


