/* GLOBAL RESET & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-orange: #ff5e14;
    --text-dark: #1a1a1a;
    --text-grey: #666;
    --bg-light: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal scroll */
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-orange);
    color: white;
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.btn:hover { background-color: #e04e0b; }

.section-padding { padding: 80px 0; }

.section-title {
    color: var(--primary-orange);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

/* HEADER / HERO SECTION */
header {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    /* Note: background-attachment is NOT fixed here, handled by JS */
}

nav {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo { font-size: 24px; font-weight: bold; font-family: 'Oswald'; }
.nav-links a { margin-left: 20px; color: white; font-size: 14px; text-transform: uppercase; }
.nav-btn { background: var(--primary-orange); padding: 8px 20px; }

.hero-content {
    margin-left: 10%;
    max-width: 600px;
}

.hero-content h1 { font-size: 64px; line-height: 1.1; margin-bottom: 20px; }
.hero-content p { font-size: 18px; margin-bottom: 30px; }

/* PARALLAX IMAGE COLUMNS (For split sections) */
.parallax-img-col {
    flex: 1;
    min-height: 500px; /* Gives the div height */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Specific Background Images */
.bg-who-we-are {
    background-image: url('https://images.unsplash.com/photo-1590059390239-44023192453c?auto=format&fit=crop&w=1920&q=80');
}

.bg-infrastructure {
    /* background-image: url('https://images.unsplash.com/photo-1545558014-8692077e9b5c?auto=format&fit=crop&w=1920&q=80'); */
    background-image: url('include/images/building1.webp');
}

/* GENERIC SPLIT SECTION */
.split-section {
    display: flex;
    align-items: stretch; /* Ensures both sides are equal height */
    justify-content: space-between;
    gap: 50px;
}
.split-section:nth-child(even) { flex-direction: row-reverse; }

.text-col { flex: 1; display: flex; flex-direction: column; justify-content: center;}

.split-section h2 { font-size: 36px; margin-bottom: 20px; line-height: 1.2; }
.split-section p { color: var(--text-grey); margin-bottom: 20px; }

/* RESIDENTIAL SECTION */
.residential-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.residential-img-col img { width: 100%; display: block; }
.res-text { padding-top: 40px; }

/* STATS SECTION */
.stats-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    position: relative;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stats-intro { flex: 1; padding-right: 50px; }
.stats-intro h2 { font-size: 36px; margin-bottom: 20px; color: var(--primary-orange); }
.stats-grid { flex: 1; display: flex; justify-content: space-between; gap: 20px; }

.stat-item h3 { font-size: 48px; margin-bottom: 5px; }
.stat-item p { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

/* SERVICES GRID */
.services-grid-section { background-color: #fff; }
.grid-header { margin-bottom: 50px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.service-card {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #eee;
    transition: 0.3s;
}
.service-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: transparent; }
.icon-box { font-size: 40px; color: var(--primary-orange); margin-bottom: 20px; }
.service-card h4 { font-size: 18px; margin-bottom: 15px; }
.service-card a { font-size: 12px; font-weight: bold; text-decoration: underline; color: var(--text-grey); }

/* PROJECTS GALLERY */
.projects-section { padding-bottom: 0; }
.project-row { display: flex; width: 100%; }
.project-item {
    flex: 1;
    height: 300px;
    overflow: hidden;
    position: relative;
}
.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.project-item:hover img { transform: scale(1.1); }

/* FOOTER */
footer {
    background-color: #f9f9f9;
    padding: 80px 0 40px;
    text-align: center;
}
.footer-quote {
    font-family: 'Oswald';
    font-size: 24px;
    color: var(--primary-orange);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.client-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    opacity: 0.6;
    margin-bottom: 50px;
}
.client-logos span { font-size: 24px; font-weight: bold; font-family: 'Oswald'; }
.copyright { font-size: 12px; color: #999; border-top: 1px solid #ddd; padding-top: 20px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .split-section, .residential-layout, .stats-container, .services-grid, .project-row {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
    .parallax-img-col { min-height: 300px; width: 100%; }
    .hero-content h1 { font-size: 42px; }
    nav { padding: 20px; }
    .nav-links { display: none; } /* Simplified for demo */
}

/* --- NEW STYLES FOR SERVICES PAGE --- */

/* 1. Solid Navigation (for pages without the big hero image) */
.solid-nav {
    position: relative; /* Not absolute */
    background-color: white;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.solid-nav .logo { color: var(--text-dark); }
.solid-nav .nav-links a { color: var(--text-dark); }
.solid-nav .nav-links a:hover { color: var(--primary-orange); }

/* 2. Services Intro Section */
.services-intro {
    padding: 60px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.services-intro .section-title { font-size: 14px; margin-bottom: 15px; }
.services-intro h1 { 
    font-size: 48px; 
    color: var(--primary-orange); 
    line-height: 1.2; 
    max-width: 600px;
}

/* 3. Zig-Zag Service Rows */
.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px; /* Bigger gap for clean look */
    margin-bottom: 80px; /* Space between rows */
}

/* Alternate direction for every even row (2, 4, 6...) */
.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1;
    height: 400px; /* Fixed height for consistency */
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-text {
    flex: 1;
    padding: 0 20px;
}

/* Service Icons */
.service-icon {
    font-size: 40px;
    color: var(--primary-orange); /* The specific orange color */
    margin-bottom: 20px;
    display: inline-block;
    border: 2px solid var(--primary-orange); /* Optional: based on some icon styles */
    border: none; /* Reset if just the icon */
}

.service-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-text p {
    color: var(--text-grey);
    font-size: 16px;
    line-height: 1.8;
}

/* Responsive adjustments for Services */
@media (max-width: 768px) {
    .solid-nav { padding: 20px; }
    .service-row, .service-row:nth-child(even) {
        flex-direction: column; /* Stack them on mobile */
        gap: 30px;
        margin-bottom: 60px;
    }
    .service-img { width: 100%; height: 250px; }
    .services-intro h1 { font-size: 36px; }
}


/* --- NEW STYLES FOR PROJECTS PAGE --- */

/* 1. Projects Intro (reuses existing styles mostly, but specific tweaks) */
.projects-intro {
    padding: 60px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.projects-intro h1 {
    font-size: 48px;
    color: var(--primary-orange);
    margin-bottom: 10px;
}
.projects-intro p {
    color: var(--text-grey);
    max-width: 600px;
}

/* 2. The Project Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns exactly */
    gap: 30px; /* Space between items */
    margin-bottom: 100px;
}

/* 3. Individual Project Card */
.project-card-clean {
    cursor: pointer;
}

.project-img-wrapper {
    width: 100%;
    height: 250px; /* Fixed height for uniformity */
    overflow: hidden; /* Hides image zoom overflow */
    margin-bottom: 15px;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills box without stretching */
    transition: transform 0.5s ease;
}

/* Hover Effect: Zoom image slightly */
.project-card-clean:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-card-clean h4 {
    font-size: 16px;
    font-family: 'Roboto', sans-serif; /* Clean font for titles as per design */
    font-weight: 500;
    color: #333;
}

/* Responsive: 3 cols -> 2 cols -> 1 col */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
}

/* --- NEW STYLES FOR ABOUT PAGE --- */

/* 1. About Hero Image */
.about-hero-img {
    width: 100%;
    height: 500px; /* Large banner height */
    object-fit: cover;
    margin-bottom: 80px;
}

/* 2. The "Text + Sidebar" Grid */
.about-content-grid {
    display: grid;
    grid-template-columns: 3fr 2fr; /* Left side (3 parts) wider than Right side (2 parts) */
    gap: 80px;
    margin-bottom: 100px;
    align-items: start;
}

/* Left Column Styling */
.about-main-text h2 {
    font-size: 36px;
    margin-bottom: 30px;
    line-height: 1.3;
}
.about-main-text p {
    margin-bottom: 20px;
    color: var(--text-grey);
    font-size: 16px;
}

/* Right Column (Values List) Styling */
.values-list {
    padding-top: 10px;
}

.value-item {
    margin-bottom: 40px;
}

/* The little line above the value titles */
.value-item h4 {
    border-top: 2px solid #eee; 
    padding-top: 20px;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-dark);
}

.value-item p {
    font-size: 14px;
    color: var(--text-grey);
    line-height: 1.6;
}

/* 3. Mission Section (Specific tweak for this page) */
.mission-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-bottom: 100px;
}
.mission-img {
    flex: 1;
    height: 500px;
}
.mission-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .about-content-grid {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 50px;
    }
    .mission-layout {
        flex-direction: column-reverse; /* Text on top, image on bottom for mobile */
    }
    .mission-img { width: 100%; height: 300px; }
}

/* --- CONTACT PAGE STYLES --- */

.contact-layout {
    max-width: 800px; /* Narrower width for the form focus */
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-intro { margin-bottom: 40px; }
.contact-intro h1 { font-size: 36px; color: var(--primary-orange); margin-bottom: 10px; }
.contact-intro p { color: var(--text-dark); font-size: 16px; }

/* The Form Styling */
.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-dark);
}

/* Matching the "Line" style inputs from the image */
.form-input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #000;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.form-input:focus {
    border-bottom-color: var(--primary-orange);
}

.contact-btn {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 15px 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%; /* Full width button */
    transition: 0.3s;
}
.contact-btn:hover { background-color: #e04e0b; }

/* The Helmet Image Banner */
.contact-banner-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-top: 60px;
}

/* Success/Error Message */
.status-msg {
    padding: 15px;
    margin-bottom: 20px;
    display: none; /* Hidden by default */
}
.status-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }