/* ======== GLOBAL STYLES ======== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #fff; /* Default background for content sections */
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3 {
    margin-top: 0;
}

/* ======== HEADER ======== */
.main-header {
    background-color: #28A745; /* Your requested GREEN */
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 75px; /* Adjust as needed */
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar li {
    margin-left: 25px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding-bottom: 5px;
    transition: color 0.3s, border-color 0.3s;
}

.navbar a:hover {
    color: #F6D981; /* Use YELLOW for hover */
}

.navbar a.active {
    color: #F6D981; /* Use YELLOW for active link */
    border-bottom: 2px solid #F6D981;
}

/* ======== BUTTONS ======== */
.btn {
    text-decoration: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-primary {
    background-color: #F6D981; /* Use YELLOW for main "Quote" button */
    color: #2C2C2C; /* Dark text on yellow for readability */
}

.btn-primary:hover {
    background-color: #e9c86a; /* Slightly darker yellow on hover */
    transform: scale(1.05);
}

.btn-secondary {
    background-color: #28A745; /* Use header GREEN for other buttons */
    color: #fff;
}

.btn-secondary:hover {
    background-color: #218838; /* Darker green on hover */
    transform: scale(1.05);
}

/* ======== HERO SECTION ======== */
.hero {
    /* 1. Set the image, overlay, and a fallback color */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/index/index-image-hero-001.jpg');
    background-color: #FF0000; /* Fallback for if image fails to load */
    
    /* 2. Ensure the image covers the area and is centered */
    background-size: cover;
    background-position: center center;

    /* 3. Keep your existing layout */
    padding: 90px 0;
    text-align: center;

    /* 4. Set the text color to white for readability */
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff; /* Explicitly make heading white */
}

.hero p {
    font-size: 1.25rem;
    color: #f0f0f0; /* Make paragraph light grey/white */
    margin-bottom: 50px;
}

/* ======== CONTENT SECTIONS (Light/Dark Pattern) ======== */
.about-intro, .services, .cta {
    padding: 40px 0; /* <-- REVISION: REDUCED FROM 60px */
}

/* --- About Intro (White) --- */
.about-intro .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text, .about-image {
    flex: 1;
}

/* ADDED RULE FOR IMAGE RADIUS */
.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Services (Light Grey) --- */
.services {
    background-color: #f9f9f9; /* Standard light grey */
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.service-item img {
    height: 200px; /* For icons */
    margin-bottom: 15px;
    item-align: center;
}

.service-item h3 {
    color: #28A745; /* Use GREEN for service titles */
}

.service-item a {
    color: #28A745;
    text-decoration: none;
    font-weight: bold;
}

/* --- CTA (White) --- */
.cta {
    background-color: #fff; /* CHANGED: Was #f4f4f4 */
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ======== NEW FOOTER STYLES ======== */
.main-footer {
    background-color: #2C2C2C; /* Dark background */
    color: #ccc; /* Light grey text */
    padding-top: 30px; /* More padding at the top */
}

.footer-grid {
    display: grid;
    /* Create 4 columns on desktop, but fewer on smaller screens */
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    font-size: 0.9rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: #F6D981; /* Changed to accent color */
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col p {
    margin: 0 0 10px;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc; /* Light grey link color */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #F6D981; /* Your yellow accent on hover */
}

/* --- Footer Bottom Bar --- */
.footer-bottom-bar {
    background-color: #000; /* Even darker bar for copyright */
    text-align: center;
    padding: 15px 0;
    font-size: 0.85rem;
    color: #F6D981;
}

.footer-bottom-bar p {
    margin: 0;
}


/* --- Make Footer Responsive --- */
@media (max-width: 992px) {
    /* Stack to 2 columns on tablets */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Stack to 1 column on mobile */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center; /* Center-align columns on mobile */
    }

    /* Center the green accent line on mobile */
    .footer-col h4::after {
        left: 50%;
        margin-left: -20px; /* Half of the 40px width */
    }
}

/* ======== SERVICES PAGE STYLES ======== */
.page-header {
    /* 1. CHANGED: Lighten the overlay from 65% to 40% */
    background: linear-gradient(rgba(0, 0, 0, 5), rgba(0, 0, 0, 5)), url('images/services/services-img-001.jpg');
    background-color: #222; /* Dark fallback */

    /* 2. Position the image */
    background-size: cover;
    background-position: center center;
    
    /* 3. CHANGED: Increased vertical padding from 60px to 90px */
    padding: 90px 20px;
    text-align: center;
    /* 4. Set text color to white */
    color: #fff; 
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #fff; /* Make heading white */

    /* 5. ADDED: Text shadow for high contrast */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}
.page-header p {
    font-size: 1.2rem;
    color: #f0f0f0; /* Make paragraph light grey/white */
    margin: 0;

    /* 6. ADDED: Text shadow for high contrast */
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.services-content {
    padding: 60px 0;
    background-color: #f9f9f9; /* ADDED: Light grey */
}

.service-entry {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px; /* Space between service blocks */
}

.service-entry .service-image,
.service-entry .service-text {
    flex: 1; /* Each takes half the width */
}

.service-entry .service-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-entry .service-text h3 {
    font-size: 2rem;
    color: #28A745; /* Your main green */
    margin-bottom: 15px;
}

.service-entry .service-text ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 20px;
}

.service-entry .service-text li {
    margin-bottom: 10px;
}

/* This rule flips the order for the "reversed" class */
.service-entry.reversed {
    flex-direction: row-reverse;
}


/* --- Responsive for Services Page --- */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    /* Stack the image and text on top of each other */
    .service-entry,
    .service-entry.reversed {
        flex-direction: column;
        text-align: left; /* Keep text left-aligned */
    }
}


/* --- Dark Mode for Services Page --- */
.dark-mode .page-header {
    /* CHANGED: Lightened the dark mode overlay from 80% to 60% */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/services/services-img-hero-001.jpg');
    background-color: #111; /* Even darker fallback */
    background-size: cover;
    background-position: center center;
}
.dark-mode .page-header h1 {
    color: #fff;
}
.dark-mode .page-header p {
    color: #ccc;
}
.dark-mode .service-entry .service-image img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* *
 * THIS IS THE NEW RULE THAT FIXES THE ERROR
 *
 */
.dark-mode .services-content {
    background-color: #1E1E1E; /* Match other dark content sections */
}


/* ======== RESPONSIVE & MOBILE MENU STYLES ======== */

/* --- 1. Style the Hamburger Menu Icon --- */
#menu-toggle {
    display: none; /* Hide by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

#menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- 2. Tablet & Mobile Header (Breakpoint: 992px) --- */
@media (max-width: 992px) {
    .navbar {
        display: none; /* Hide the nav links */
        position: absolute;
        top: 95px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background-color: #28A745; /* Green background */
        flex-direction: column; /* Stack links vertically */
        padding: 20px 0;
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
    }

    .navbar.active {
        display: flex; /* Show the menu when JS adds 'active' class */
    }

    .navbar ul {
        flex-direction: column; /* Stack list items */
        width: 100%;
        align-items: center;
    }

    .navbar li {
        margin: 10px 0;
    }

    .navbar .btn-primary {
        /* Make the quote button more prominent in the mobile menu */
        margin: 20px auto 10px;
        text-align: center;
        width: 80%;
    }

    #menu-toggle {
        display: flex; /* Show the hamburger button */
    }
}

/* --- 3. Mobile Content Styling (Breakpoint: 768px) --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem; /* Make hero text smaller */
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    /* Stack the About Us section */
    .about-intro .container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text {
        margin-bottom: 30px;
    }

    /* Stack the Service Grid into 1 column */
    .service-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust CTA text */
    .cta h2 {
        font-size: 1.5rem;
    }
}

/* ======== THEME TOGGLE BUTTON ======== */
#theme-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    padding: 5px;
}

#theme-toggle:hover {
    color: #F6D981; /* Yellow accent on hover */
}

/* Adjust button position in mobile menu */
@media (max-width: 992px) {
    #theme-toggle {
        margin: 10px auto;
        font-size: 1.5rem;
    }
}

/* --- Style for social media icons with text --- */
.footer-col .fa-brands {
    margin-right: 10px; /* Adds space between icon and text */
    width: 15px; /* Ensures consistent alignment */
}


/* ======== DARK MODE STYLES ======== */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

/* --- Dark Header --- */
/* We keep the green header, but make the mobile menu dark */
.dark-mode .navbar.active {
    background-color: #222; /* Dark background for mobile menu */
}

/* --- Dark Hero --- */
.dark-mode .hero {
    background-color: #1e1e1e;
}
.dark-mode .hero h1 {
    color: #fff;
}
.dark-mode .hero p {
    color: #ccc;
}

/* --- Dark Content Sections --- */
.dark-mode .about-intro {
    background-color: #121212; /* Match body */
}
.dark-mode .about-intro h2 {
    color: #fff;
}

/* ADDED DARK MODE SHADOW FOR ABOUT IMAGE */
body.dark-mode .about-image img {
     box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.dark-mode .services {
    background-color: #1E1E1E; /* Darker grey */
}
.dark-mode .services h2 {
    color: #fff;
}
.dark-mode .service-item {
    background-color: #2c2c2c; /* Dark card */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* --- CTA (Dark Blue) --- */
.dark-mode .cta {
    background-color: #002B5C; /* Your new dark blue background */
    color: #fff; /* White text */
    padding: 40px 0; /* <-- REVISION: REDUCED FROM 60px */
    text-align: center;
}

.dark-mode .cta h2 {
    color: #fff; /* White heading */
    font-size: 2rem;
    margin-bottom: 15px; /* <-- REVISION: REDUCED FROM 30px */
}

.dark-mode .cta p {
    color: #fff; /* White paragraph */
    font-size: 1.1rem;
    margin-bottom: 30px; /* <-- REVISION: REDUCED FROM 50px */
}

/* Margin-top reset as bottom margin on p is smaller */
.dark-mode .cta .btn-secondary {
    margin-top: 0; /* <-- REVISION: REDUCED FROM 20px */
}


/* --- Dark Footer --- */
/* The footer is already dark, so no changes are needed */
/* We just ensure text and links are readable */
.dark-mode .footer-col a {
    color: #ccc;
}
.dark-mode .footer-col a:hover {
    color: #F6D981;
}
.dark-mode .footer-col h4 {
    color: #F6D981;
}

/* ======== PROJECT INTRO (Replaces Page Header) ======== */
.project-intro {
    padding: 60px 0;
    background-color: #fff; /* CHANGED: Was #f9f9f9 */
}

.project-intro .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.project-intro-text, .project-intro-image {
    flex: 1;
}

.project-intro-text h1 {
    font-size: 3rem;
    color: #28A745; /* Green to match theme */
    margin-bottom: 20px;
}

.project-intro-image img {
     border-radius: 8px; /* Add a slight radius like other images */
     box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Dark Mode for Project Intro */
body.dark-mode .project-intro {
    background-color: #1E1E1E; /* Dark background from screenshot */
}
body.dark-mode .project-intro-text h1 {
    color: #fff; /* White title in dark mode */
}
body.dark-mode .project-intro-text p {
    color: #ccc; /* Lighter text */
}
body.dark-mode .project-intro-image img {
     box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Responsive for Project Intro */
@media (max-width: 768px) {
    .project-intro .container {
        flex-direction: column;
        text-align: left;
    }
    .project-intro-text {
        margin-bottom: 30px;
    }
    .project-intro-text h1 {
         font-size: 2.5rem;
    }
}


/* ======== PROJECTS PAGE-SPECIFIC STYLES (v2 - With Text) ======== */

/* --- 2. Project Gallery Content --- */
.projects-content {
    padding: 60px 0;
    background-color: #f9f9f9; 
}
.dark-mode .projects-content {
    background-color: #1E1E1E;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.dark-mode .project-item {
    background-color: #2c2c2c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-item .project-image {
    position: relative;
}
.project-item img {
    width: 100%;
    height: 250px; 
    object-fit: cover;
    display: block;
}

/* --- 3. Hover Overlay --- */
.project-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.7);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}
.project-item:hover .overlay {
    opacity: 1;
}

/* --- 4. Project Info Text (CHANGED) --- */
.project-info {
    padding: 25px;
    text-align: left; /* CHANGED from center */
}

.project-info h3 {
    font-size: 1.25rem;
    color: #28A745; /* Green title */
    margin-bottom: 15px; /* ADDED more margin */
}

.project-info p {
    font-size: 0.9rem;
    color: #333; /* Darker text for readability */
    margin: 0;
    line-height: 1.6; /* ADDED for readability */
}

.dark-mode .project-info p {
    color: #ccc;
}

/* --- 5. Responsive Grid --- */
@media (max-width: 992px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* ======== CLIENT INTRO (Reuses Project Intro styles) ======== */

/* By grouping the selectors, .client-intro shares all styles with .project-intro */
.project-intro,
.client-intro {
    padding: 60px 0;
    background-color: #fff; 
}

.project-intro .container,
.client-intro .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Give the text columns more space (e.g., 60%) */
.project-intro-text,
.client-intro-text {
    flex: 1.5; 
}

/* Give the image columns less space (e.g., 40%) */
.project-intro-image,
.client-intro-image {
    flex: 1.5; 
}
.project-intro-text h1,
.client-intro-text h1 {
    font-size: 3rem;
    color: #28A745; 
    margin-bottom: 20px;
}

.project-intro-image img,
.client-intro-image img {
     border-radius: 8px; 
     box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Dark Mode for Intro Sections */
body.dark-mode .project-intro,
body.dark-mode .client-intro {
    background-color: #121212; /* Match main body background */
}
body.dark-mode .project-intro-text h1,
body.dark-mode .client-intro-text h1 {
    color: #fff; 
}
body.dark-mode .project-intro-text p,
body.dark-mode .client-intro-text p {
    color: #ccc; 
}
body.dark-mode .project-intro-image img,
body.dark-mode .client-intro-image img {
     box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Responsive for Intro Sections */
@media (max-width: 768px) {
    .project-intro .container,
    .client-intro .container {
        flex-direction: column;
        text-align: left;
    }
    .project-intro-text,
    .client-intro-text {
        margin-bottom: 30px;
    }
    .project-intro-text h1,
    .client-intro-text h1 {
         font-size: 2.5rem;
    }
}


/* ======== CLIENT GALLERY (New Styles) ======== */
.client-gallery {
    padding: 60px 0;
    background-color: #f9f9f9; /* Alternating light grey */
    text-align: center;
}

.client-gallery h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 30px;
    align-items: center;
}

.logo-item {
    background: #fff;
    padding: 15px; /* <-- CHANGED */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.logo-item img {
    max-width: 100%;
    width: 100%; /* ADDED: Ensures image scales correctly with object-fit */
    height: 80px; /* <-- CHANGED */
    object-fit: contain; /* ADDED: Ensures logo fits without distortion */
    filter: grayscale(100%); /* Desaturated by default in LIGHT MODE */
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
}
.logo-item:hover img {
    filter: grayscale(0%); /* Color on hover in LIGHT MODE */
    opacity: 1;
}

/* Dark Mode for Client Gallery */
.dark-mode .client-gallery {
    background-color: #1E1E1E;
}
.dark-mode .client-gallery h2 {
    color: #fff;
}
.dark-mode .logo-item {
    background-color: #fff; /* CHANGED: Set to white as requested */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.dark-mode .logo-item img {
    filter: none; /* Retain full color in dark mode */
    opacity: 1; /* Retain full opacity in dark mode */
}


/* Responsive for Client Gallery */
@media (max-width: 992px) {
    .client-logo-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet */
    }
}
@media (max-width: 768px) {
    .client-logo-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
}

/* ======== CONTACT PAGE STYLES ======== */

.contact-details {
    text-align: left;
}
.contact-details h2,
.contact-details h3 {
    color: #28A745;
    margin-bottom: 15px;
}
.contact-details p {
    margin-bottom: 20px;
    line-height: 1.7;
}
.contact-details p strong {
    color: #333;
}
.contact-details a {
    color: #28A745;
    text-decoration: none;
    font-weight: bold;
}
.contact-details a:hover {
    text-decoration: underline;
}

.dark-mode .contact-details h2,
.dark-mode .contact-details h3 {
    color: #fff;
}
.dark-mode .contact-details p strong {
    color: #F6D981;
}
.dark-mode .contact-details a {
    color: #F6D981;
}

.map-embed {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.dark-mode .map-embed {
    border-color: #444;
}
.map-embed iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

.contact-form-container {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.dark-mode .contact-form-container {
    background-color: #2c2c2c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.contact-form-container h2 {
    color: #28A745;
    margin-top: 0;
    margin-bottom: 20px;
}
.dark-mode .contact-form-container h2 {
    color: #fff;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}
.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background-color: #333;
    border-color: #555;
    color: #fff;
}
.form-group textarea {
    height: 140px;
    resize: vertical;
}
/* Match the main CTA button style */
.btn-submit {
    padding: 12px 20px;
}

/* ======== CONTACT PAGE HERO OVERRIDE ======== */
.contact-header {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('folder/images/contact/contact-img-hero.jpg');
    background-color: #222;
    background-size: cover;
    background-position: center center;
}

.dark-mode .contact-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('folder/images/contact/contact-img-hero.jpg');
    background-color: #111;
    background-size: cover;
    background-position: center center;
}




/* ======== ABOUT US PAGE-SPECIFIC HEADER (NEW) ======== */

/* This body class targets *only* the about.html page header */
.about-page .page-header {
    background: #1E1E1E; /* Dark background from screenshot */
    padding-bottom: 70px; /* Add extra padding for the buttons */
    padding-top: 70px; /* Balance the padding */
}

/* Change H1 color to blue to match screenshot */
.about-page .page-header h1 {
    color: #87CEFA; /* Light Sky Blue */
    text-shadow: none; /* Remove the default white text-shadow */
    font-size: 2.5rem; /* Match the old .commitment h2 */
}

/* Style subtitle to match screenshot */
.about-page .page-header p {
    color: #ccc; /* Light grey text */
    text-shadow: none; /* Remove the default white text-shadow */
    margin-bottom: 60px; /* <--- THIS IS THE LINE YOU WANTED CHANGED */
    font-size: 1.1rem; /* Match the old .commitment p */
    margin-top: 15px;
}

/* Grid for the new buttons */
.about-page .page-header .button-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 20px;
}

/* Style the buttons (they already have .btn .btn-secondary) */
.about-page .page-header .btn-secondary {
}


/* ================================= */
/* START: NEW STYLES (Matching Staging & New Request) 
/* ================================= */

/* ======== COMPANY MILESTONE (Text on top, Image below) ======== */
.milestone-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Light grey background */
}
/* UPDATED: Removed flex properties from container */
.milestone-section .container {
    max-width: 900px; /* Optional: constrain width for readability */
}
.milestone-content {
    /* No flex properties needed */
}
.milestone-content h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}
.milestone-content p {
    margin-bottom: 15px;
}
.milestone-image {
    margin-top: 30px; /* UPDATED: Add space between text and image */
}
.milestone-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Dark Mode Milestones --- */
body.dark-mode .milestone-section {
    background-color: #1E1E1E; /* Dark background */
}
body.dark-mode .milestone-content h2 {
    color: #fff;
}
body.dark-mode .milestone-image img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}


/* ======== SUBSIDIARIES (Confirmed Correct) ======== */
.subsidiaries-section {
    padding: 60px 0;
    background-color: #fff; /* White background */
    text-align: center;
}
.subsidiaries-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}
.subsidiary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}
.subsidiary-item {
    background: #f9f9f9; /* Light grey card */
    padding: 30px;
    border-radius: 8px;
}
.subsidiary-item h3 {
    color: #28A745; /* Green title */
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Dark Mode Subsidiaries --- */
body.dark-mode .subsidiaries-section {
    background-color: #121212; /* Dark background */
}
body.dark-mode .subsidiaries-section h2 {
    color: #fff;
}
body.dark-mode .subsidiary-item {
    background-color: #1E1E1E; /* Dark card */
}

/* --- Responsive for new sections --- */
@media (max-width: 992px) {
    .subsidiary-grid {
        grid-template-columns: 1fr; /* Stack to 1 column on tablet */
    }
}

/* Mobile styles for milestones (768px) are no longer needed 
   as it stacks naturally */


/* =============================================== */
/* --- Styles ONLY for project-jml-bh.html --- */
/* =============================================== */

/* 1. Hero Section Image (Singapore Chemical...) Wider */
@media (min-width: 992px) { 
    body.project-detail-page .project-intro .container {
        /* Makes image 60% and text 40% */
        grid-template-columns: 2fr 3fr; 
    }
}

/* 2, 3, & 4. Body Section Layouts */
@media (min-width: 768px) {
    /* (Body 1 & 3) Image 60%, Text 40% */
    body.project-detail-page .services-content .service-entry:not(.reversed) { 
        grid-template-columns: 3fr 2fr;
    }
    
    /* (Body 2) Text 40%, Image 60% */
    body.project-detail-page .services-content .service-entry.reversed {
        grid-template-columns: 2fr 3fr;
    }
}

/* 2 & 4. (Body 1 & 3) Image Style */
body.project-detail-page .services-content .service-entry:not(.reversed) .service-image img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    min-height: 300px; /* Base height for standard images */
}

/* 3. (Body 2 - Foundation) Image Style - Taller & Wider */
body.project-detail-page .services-content .service-entry.reversed .service-image img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    min-height: 400px; /* Taller height for this specific image */
}

/* --- Styles for Project Card Links --- */
.project-image a.overlay-link-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

/* Style for the "View Project Details" text link */
.project-info .project-cta-link {
    color: #F6D981; /* CHANGED: Set color to orange/yellow */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 15px;
    transition: color 0.3s;
}

.project-info .project-cta-link:hover {
    color: #e9c86a; /* CHANGED: Darker orange on hover */
    text-decoration: none; /* ADDED: Explicitly remove underline on hover */
}

.dark-mode .project-info .project-cta-link {
    color: #F6D981; /* Yellow in dark mode (matches new base color) */
}

.dark-mode .project-info .project-cta-link:hover {
    color: #fff; /* White on hover in dark mode */
    text-decoration: none; /* ADDED: Explicitly remove underline on hover */
}

/* --- Add this to the end of style.css --- */

/* This targets the top introduction section on client pages 
  and changes the grid from 50/50 to roughly 35/65,
  making the image column (the second column) 30% larger 
  than its original 50% share.
*/
.client-intro .container {
    grid-template-columns: 0.7fr 1.3fr;
}