/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden; /* Clear floats */
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: #2c3e50; /* Dark Blue/Grey */
    margin-bottom: 0.75em;
}

p {
    margin-bottom: 1em;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: #3498db; /* Primary Blue */
}

a:hover {
    color: #2980b9; /* Darker Blue */
}

/* Header & Navigation */
header {
    background: #ffffff; /* White background */
    color: #333;
    padding: 1rem 0;
    border-bottom: 1px solid #e7e7e7;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

header ul {
    list-style: none;
    display: flex;
    margin: 0; /* Reset margin for ul in nav */
    padding: 0; /* Reset padding for ul in nav */
}

header ul li {
    margin-left: 20px;
}

header ul li a {
    color: #333;
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

header ul li a:hover, header ul li a.active {
    color: #3498db; /* Primary Blue for hover/active */
}


/* Hero Section (Homepage) */
#hero {
    /* Replace previous background color with image */
    background-image: url('../images/hero-background.jpg'); /* <<< YOUR HERO IMAGE HERE */
    background-size: cover; /* Cover the entire area */
    background-position: center center; /* Center the image */
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 6rem 0; /* Adjust padding if needed */
    text-align: center;
    position: relative; /* Needed for the overlay */
    z-index: 1; /* Ensure content is above pseudo-elements if any further nesting */
}

/* Overlay for Hero Section to improve text readability */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay with 50% opacity - adjust as needed */
    z-index: -1; /* Place overlay behind the content but above the background image if content had its own z-index */
}

/* Ensure hero content is above the overlay.
   If #hero h1 and #hero p are direct children, this might not be strictly needed
   if their z-index is auto and #hero::before is z-index: -1.
   But it's good for explicitness if there were other positioned elements.
*/
#hero .container { /* Assuming your h1 and p are inside .container */
    position: relative; /* Make sure content is above the ::before pseudo-element */
    z-index: 2;
}


#hero h1 {
    font-size: 2.8em;
    margin-bottom: 0.5em;
    color: #ffffff; /* Ensure text color is white for contrast */
}

#hero p {
    font-size: 1.2em;
    color: #ffffff; /* Ensure text color is white */
}


/* Page Title (for other pages) */
.page-title {
    background: #3498db; /* Primary Blue */
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

.page-title h1 {
    font-size: 2.5em;
    color: #ffffff;
}
.page-title p {
    font-size: 1.1em;
}


/* Main Content Area */
main {
    padding: 2rem 0;
}

main section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.intro-text {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    text-align: center;
}

/* Specific Sections */
#about-us h3, #services-list h3, #why-work-with-us h2, #contact-info h2, #contact-form-section h2 {
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.3em;
    display: inline-block;
    margin-bottom: 1em;
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.what-we-do-item, .service-item {
    background: #fdfdfd;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 5px;
}
.service-item h4 {
    margin-top: 1em;
    color: #555;
}

/* What We Do Slider Section - Existing styles for the wrapper and controls largely remain */

.what-we-do-slider-wrapper.image-only-slider {
    position: relative;
    width: 100%; /* Make the slider wrapper take the full available width */
    /* max-width: 900px; */ /* REMOVE or COMMENT OUT this line */
    /* margin: auto auto 2.5rem auto; */ /* CHANGE this line */
    margin-bottom: 2.5rem; /* Only bottom margin is needed if width is 100% */
    overflow: hidden;
    border-radius: 8px; /* Keeps the slider itself rounded */
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */ /* Optional: remove if the parent section's shadow is enough */
                                              /* Or keep if you want a distinct shadow for the slider component */
}

.what-we-do-slider {
    display: flex;
}

.slider-item {
    min-width: 100%;
    display: none; /* JS handles active state */
}

.slider-item.active {
    display: block;
}

.slider-image {
    display: block;
    width: 100%;
    height: 450px; /* Adjust height as desired for an image-only slider */
    object-fit: cover;
}

/* REMOVE or COMMENT OUT the entire .slider-caption CSS block:
.slider-caption { ... }
.slider-caption h4 { ... }
.slider-caption p { ... }
*/

/* Slider Controls (Arrows) - These styles remain largely the same */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7); /* Light background for visibility on various images */
    border: none;
    color: #2c3e50; /* Darker arrow color */
    font-size: 1.8rem; /* Slightly smaller if preferred */
    cursor: pointer;
    border-radius: 50%;
    width: 40px; /* Adjust size */
    height: 40px;
    line-height: 30px;
    text-align: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}
.slider-control:hover {
    background-color: #fff; /* Solid white on hover */
}
.slider-control.prev { left: 15px; }
.slider-control.next { right: 15px; }


/* Slider Dots - Repositioned for image-only slider */
.slider-dots {
    text-align: center;
    padding: 10px 0;
    position: absolute;
    bottom: 15px; /* Position dots over the bottom of the image */
    width: 100%;
    z-index: 10; /* Ensure they are above the image */
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white dots */
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1); /* Optional subtle border for definition */
}

.dot.active, .dot:hover {
    background-color: #ffffff; /* Active/hovered dot is solid white */
}


/* NEW CSS for Service Descriptions Grid */
.what-we-do-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 1.5rem; /* Space between items */
    margin-top: 2.5rem; /* Space above the grid, below the slider */
    text-align: left; /* Default text alignment for items */
}

.service-description-item {
    background-color: #ffffff; /* Card background */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 1px solid #e7e7e7;
}

.service-description-item h4 {
    font-size: 1.3em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 0.75em;
}

.service-description-item p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0;
}

/* Gallery */
#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.05);
}
.gallery-note {
    margin-top: 1rem;
    font-style: italic;
    color: #555;
}


/* Contact Form */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.form-group textarea {
    resize: vertical;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9em;
    color: #777;
}

.cta-contact {
    margin-top: 1.5rem;
    font-size: 1.1em;
    font-weight: bold;
}

/* Footer */
footer {
    background: #2c3e50; /* Dark Blue/Grey */
    color: #ffffff;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        align-items: center;
    }
    header .logo {
        margin-bottom: 0.5rem;
    }
    header ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    header ul li {
        margin: 5px 0;
    }
    #hero h1 {
        font-size: 2.2em;
    }
    .page-title h1 {
        font-size: 2em;
    }
    .container {
        width: 95%;
    }
}

/* Contact Page - Address Styling */
#contact-info h2 { /* Styles for the "Get In Touch" heading */
    text-align: center;
    margin-bottom: 2.5rem; /* Increased space below this main heading */
    font-size: 2em; /* Existing h2 style, adjust if needed */
    /* If you previously had a border on #contact-info h2,
       you might want to remove or adjust it if it's centered.
       Example: border-bottom: none;
    */
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to a single column */
    gap: 2rem; /* Space between address cards */
    margin-bottom: 2.5rem; /* Space below the grid before the contact pitch */
}

/* Two-column layout for tablets and desktops */
@media (min-width: 768px) {
    .contact-details-grid {
        grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    }
}

.address-card {
    background-color: #fdfdfd; /* A very light background for the card */
    padding: 2rem; /* Generous padding inside the card */
    border-radius: 8px; /* Matches other rounded elements */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* A slightly softer shadow */
    border: 1px solid #e9e9e9; /* A light border */
    text-align: left; /* Ensure text is left-aligned within cards */
}

.address-card h3 {
    font-size: 1.6em; /* Prominent heading for the address type */
    color: #2c3e50; /* Existing primary heading color */
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 1rem; /* Space below the address card heading */
    padding-bottom: 0.4em; /* Space for the border */
    border-bottom: 2px solid #3498db; /* Accent border */
    display: inline-block; /* So border only spans the text width */
}

.address-block {
    font-style: normal; /* Override browser default italic for <address> */
    line-height: 1.8; /* Increased line height for readability */
    color: #444; /* Slightly darker text for good contrast */
}

.address-block strong {
    font-weight: 600; /* Bolder for company names */
    color: #2c3e50; /* Match heading color for emphasis */
    display: block; /* Puts it on its own line if needed, or style as inline */
    margin-bottom: 0.3em; /* Small space after the company name */
}

.address-block a {
    color: #3498db; /* Link color matching your theme */
    text-decoration: none; /* Remove underline by default */
}

.address-block a:hover {
    text-decoration: underline; /* Underline on hover for better affordance */
    color: #2980b9; /* Darker blue on hover */
}

/* Ensure the contact pitch paragraph is styled appropriately */
#contact-info .contact-pitch {
    margin-top: 2rem; /* Space above the pitch if it's after the grid */
    font-size: 1.1em;
    text-align: center; /* Or left, depending on your preference */
    color: #333;
}
