/* ======== GLOBAL & VARIABLES (Updated for new LIGHT theme) ======== */
:root {
    --primary-color: #007bff; /* Light Blue/Navy Primary Accent */
    --secondary-color: #f8f9fa; /* Very Light Gray Background */
    --dark-color: #212529; /* Dark Text */
    --light-dark-color: #6c757d; /* Lighter Text/Subheading */
    --text-color: #343a40;
    --light-text-color: #6c757d;
    --bg-light-gray: #f8f9fa;
    --border-light: #e9ecef;
    --icon-bg: #fff6e6; /* Light Yellow Background for Icons */
    --icon-color: #ffc107; /* Yellow/Gold Icon Color */
    --card-border-color: #e9ecef;
    --card-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05); /* Light shadow */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff; /* White main background */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
}

section {
    padding: 5rem 0; /* Standard section padding */
}

/* Headings within sections */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 20px;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--light-dark-color);
    margin-bottom: 2rem;
}
.section-header h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 1rem;
    margin-bottom: 1rem;
}


/* ======== HEADER & NAVIGATION (Light Style) ======== */
header {
    background: #fff; /* White header background */
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo-img {
    height: 30px;
}

header nav ul {
    display: flex;
    gap: 2rem;
}

header nav a {
    font-weight: 500;
    color: var(--dark-color);
    padding: 0.5rem 0;
}

header nav a:hover,
header nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}


/* ======== BUTTONS ======== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background: #0056b3;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--dark-color);
    border: 1px solid var(--light-dark-color);
}
.btn-secondary:hover {
    background: var(--bg-light-gray);
    border-color: var(--dark-color);
}

.btn-dark {
    background: var(--dark-color);
    color: #fff;
}
.btn-dark:hover {
    background: #343a40;
}

/* Specific style for the "View All Services" button in the services grid */
.service-grid-section .btn-dark {
    margin-top: 3rem;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}


/* ======== HERO SECTION (Homepage - Light-on-Dark Banner) ======== */
.hero {
    background-image: url('images/Hero-Image.png');
    background-size: cover;
    background-position: center;
    min-height: 70vh; /* Reduced height */
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    text-align: left;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Lighter overlay for contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center; /* Center the content */
}

.hero-content h1 {
    font-size: 4rem; /* Slightly smaller, bold text */
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* New button styles for Hero (yellow primary, white secondary) */
.hero-buttons .btn-primary {
    background: var(--icon-color); /* Yellow/Gold */
    color: var(--dark-color);
    border-color: var(--icon-color);
}
.hero-buttons .btn-primary:hover {
    background: #e6b200;
    border-color: #e6b200;
}

.hero-buttons .btn-secondary {
    background: #fff;
    color: var(--dark-color);
    border: 1px solid #fff;
}
.hero-buttons .btn-secondary:hover {
    background: var(--bg-light-gray);
    border-color: var(--bg-light-gray);
}


/* ======== WHO WE ARE SECTION (Homepage) ======== */
.who-we-are {
    background: #fff;
    padding: 3rem 0 5rem 0; /* Less padding above */
}
.who-we-are .container {
    text-align: center;
}
.who-we-are h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.who-we-are p {
    font-size: 1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: var(--light-dark-color);
}


/* ======== SERVICES GRID (Common style for both sections on homepage) ======== */
.service-grid-section {
    padding: 4rem 0;
    background: #fff; /* White background */
}

.services-homepage .section-header p {
    margin-bottom: 3rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for engineering services */
    gap: 1.5rem;
}

.service-grid.professional {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for professional engineering */
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 4rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--card-border-color);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: left;
    box-shadow: none; /* No shadow */
    transition: border-color 0.3s ease;
}
.service-card:hover {
    border-color: var(--primary-color);
}

.service-card .icon-box {
    background-color: var(--icon-bg); /* Light yellow background */
    width: 45px;
    height: 45px;
    border-radius: 4px; /* Square icon box */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* SVG icon color */
.service-card .icon-box svg {
    stroke: var(--icon-color);
    width: 20px;
    height: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--light-text-color);
    line-height: 1.6;
}


/* ======== SERVICES DETAIL PAGE (Header) ======== */
.page-header {
    background-color: #fff; /* White header for services page */
    color: var(--dark-color);
    padding: 3rem 0 0 0;
    text-align: center;
}
.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}
.page-header p {
    font-size: 1.1rem;
    color: var(--light-dark-color);
}


/* ======== SERVICES DETAIL PAGE (Alternating Image/Text) ======== */
.service-detail {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.service-detail-item {
    display: flex;
    align-items: flex-start; /* Align content to the top */
    gap: 4rem;
    padding: 3rem 0; /* Padding around each item */
}
/* ADD THIS NEW RULE TO YOUR style.css FILE */
.service-detail-item.reversed {
    /* This rule swaps the order of the image and text blocks on desktop */
    flex-direction: row-reverse;
}
.service-detail-item:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

.service-detail-item img {
    border-radius: 8px; /* Rounded corners */
    box-shadow: var(--card-shadow);
    max-height: 450px;
    object-fit: cover;
}
.service-detail-item .service-detail-image {
    flex: 1;
    min-width: 45%;
    max-width: 45%;
}
.service-detail-item .service-detail-text {
    flex: 1;
    min-width: 55%;
    max-width: 55%;
}

.service-detail-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}
.service-detail-text p {
    margin-bottom: 1rem;
    color: var(--light-text-color);
}

.service-detail-text ul {
    margin-top: 1rem;
    list-style: none;
    padding-left: 0;
}

.service-detail-text ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
}

.service-detail-text ul li::before {
    content: '•'; /* Simple round bullet */
    color: var(--icon-color); /* Yellow bullet */
    font-size: 1.5rem;
    line-height: 1;
    position: absolute;
    left: 0;
    top: 0;
}

/* Special styling for the text blocks below the alternating sections (Screenshot 2025-11-21 091339.png) */
.engineering-services-block {
    background: #fff; /* White background */
    padding: 5rem 0;
}
.engineering-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.engineering-card {
    border: 1px solid var(--card-border-color);
    border-radius: 6px;
    padding: 1.5rem;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}
.engineering-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}
.engineering-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--light-text-color);
}
/* Highlighted text for Structural Engineering card */
.highlight-text {
    background-color: #e0f7fa; /* Light cyan background */
    color: var(--dark-color);
    padding: 0 0.25rem;
    border-radius: 3px;
    font-style: italic;
    font-weight: 500;
}
/* ======== [NEW] CONTACT PAGE ======== */
.contact-content {
    padding-top: 3rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.contact-form-container h3,
.contact-info-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info-container p {
    color: var(--light-text-color);
    margin-bottom: 2rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.contact-icon-circle {
    background-color: var(--icon-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon-circle img {
    width: 24px;
    height: 24px;
    filter: invert(79%) sepia(54%) saturate(735%) hue-rotate(345deg) brightness(98%) contrast(93%);
}

.contact-info-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}
.contact-info-text span {
    display: block;
    color: var(--light-text-color);
}


/* ======== CTA SECTION ======== */
.cta-section {
    background: #364a5f;
    color: #fff;
    text-align: center;
}
.cta-section h2 {
    color: #fff;
}
.cta-section p {
    font-size: 1.1rem;
    color: #eee;
    margin-bottom: 2rem;
}
.cta-section .btn-primary {
    color: #333; /* Make text dark on yellow button */
}

/* ======== FOOTER ======== */
footer {
    background: #203448;
    color: #ccc;
    padding: 4rem 0 0 0;
}

footer .logo {
    color: #fff;
    height: 60px; /* Adjust as needed */
    width: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-col p {
    margin-top: 1rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-col ul a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--primary-color);
}

.footer-icon {
    width: 18px;
    height: 18px;
    filter: invert(79%) sepia(54%) saturate(735%) hue-rotate(345deg) brightness(98%) contrast(93%);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 1.5rem 0;
    margin-top: 3rem;
    color: #999;
}
.footer-bottom p {
    text-align: center;
}


/* ======== RESPONSIVE (for mobile) ======== */
@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Our Services Layout - Professional Fix ===== */
.service-detail .service-detail-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-detail .service-detail-item .service-detail-image,
.service-detail .service-detail-item .service-detail-text {
    flex: 1 1 48%; /* desktop width */
    min-width: 300px;
}

.service-detail .service-detail-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.service-detail .service-detail-item.reversed {
    flex-direction: row-reverse;
}

/* ===== Responsive - stack on mobile ===== */
@media (max-width: 768px) {
    .service-detail .service-detail-item,
    .service-detail .service-detail-item.reversed {
        flex-direction: column;
    }
    .service-detail .service-detail-item .service-detail-image,
    .service-detail .service-detail-item .service-detail-text {
        flex: 1 1 100%;
    }
}


/* ====== Responsive stacking for mobile ====== */
@media (max-width: 768px) {
    .service-detail-item,
    .service-detail-item.reversed {
        flex-direction: column; /* stack text under image */
    }
    .service-detail-item .service-detail-image,
    .service-detail-item .service-detail-text {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    header {
        padding-top: 1rem;
    }
    header nav {
        flex-direction: column;
        gap: 1rem;
    }
    header nav ul {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }
    .hero {
        height: auto;
        padding: 6rem 20px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .service-detail-item,
    .service-detail-item.reversed {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    section h2 {
        font-size: 2rem;
    }
    section {
        padding: 3rem 0;
    }
    /* ======== MOBILE RESPONSIVE FIXES ======== */
@media (max-width: 900px) {
    /* Service grid 2 columns for small desktop / large tablet */
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer 2 columns */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Contact grid single column */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header and navigation for mobile */
    header {
        padding-top: 1rem;
    }
    header nav {
        flex-direction: column;
        gap: 1rem;
    }
    header nav ul {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }

    /* Logo resize for header and footer */
    header .logo img,
    footer .logo img {
        max-width: 120px; /* smaller logo on mobile */
        height: auto;      /* maintain aspect ratio */
    }
    header .logo,
    footer .logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Hero section adjustments */
    .hero {
        height: auto;
        padding: 6rem 20px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Service grids */
    .service-grid,
    .service-grid.professional {
        grid-template-columns: 1fr;
    }

    /* Service detail items stacked vertically */
    .service-detail-item,
    .service-detail-item.reversed {
        flex-direction: column;
    }

    /* Engineering grid single column */
    .engineering-grid {
        grid-template-columns: 1fr;
    }

    /* Contact form and info full width */
    .contact-form-container,
    .contact-info-container {
        width: 100%;
    }

    /* Footer single column */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Section headings and padding adjustments */
    section h2 {
        font-s
    }
    
    /* ======== OUR SERVICES RESPONSIVE FIX ======== */
@media (max-width: 1024px) {
    /* Grid adapts to tablet and mobile large */
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    /* Make service cards flexible */
    .service-card {
        display: flex;
        flex-direction: column; /* image on top, text below */
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    /* Limit image size */
    .service-card img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 6px;
        margin-bottom: 1rem;
    }

    /* Text adjustments */
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    .service-card p {
        font-size: 1rem;
        color: var(--light-text-color);
    }

}