/* ==========================================================================
   Theme: Integrated Progress: Heavy Industry Meets Tangible Results
   Visual Style: Modern Industrial Realism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;700&family=Roboto:wght@300;400;700&display=swap');

:root {
    /* Color Palette */
    --primary-orange: #ff6600; /* Bright safety-orange */
    --primary-orange-dark: #cc5200;
    --charcoal-black: #1a1a1a; /* Deep black/charcoal */
    --charcoal-gray: #333333;
    --light-gray: #f4f5f7; /* Clean light gray background */
    --white: #ffffff;
    
    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal-gray);
    background-color: var(--light-gray);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--charcoal-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 10px;
}

/* Industrial underline for section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-orange);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-orange);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* Sharp edges to fit the industrial theme */
    border-radius: 0; 
}

.btn:hover {
    background-color: var(--charcoal-black);
    color: var(--primary-orange);
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background-image: linear-gradient(rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.8)), url('images/jeriden-villegas-VLPUm5wP5Z0-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary-orange);
}

.hero p {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Two Column Layouts (About & Approach)
   ========================================================================== */
.split-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.split-content, .split-image {
    flex: 1 1 400px;
}

.split-image img {
    /* Industrial shadow and border */
    box-shadow: 15px 15px 0px var(--primary-orange);
    border: 2px solid var(--charcoal-black);
}

/* Alternating layout for Approach section */
.approach-section .split-section {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-bg {
    background-color: var(--white);
    border-top: 5px solid var(--charcoal-black);
    border-bottom: 5px solid var(--charcoal-black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--light-gray);
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--primary-orange);
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-orange);
}

.service-card-content {
    padding: 1.5rem;
}

.service-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Portfolio / Projects Section
   ========================================================================== */
.portfolio-header {
    position: relative;
    height: 300px;
    background-image: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('images/images (3).jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.portfolio-header h2 {
    color: var(--white);
    font-size: 3rem;
    margin: 0;
}

.table-responsive {
    overflow-x: auto;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.project-table th, .project-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.project-table th {
    background-color: var(--charcoal-black);
    color: var(--white);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-table th:first-child {
    border-left: 4px solid var(--primary-orange);
}

.project-table tbody tr:hover {
    background-color: var(--light-gray);
}

/* ==========================================================================
   Navigation & Footer
   ========================================================================== */
.site-header {
    background-color: var(--white);
    border-bottom: 4px solid var(--primary-orange);
    padding: 1.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: baseline;
}

.main-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: var(--charcoal-black);
    text-decoration: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-orange);
}

.site-footer {
    background-color: var(--charcoal-black);
    color: var(--white);
    padding: 4rem 0 2rem 0;
    border-top: 4px solid var(--primary-orange);
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}

.footer-col h3 {
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
}

/* ==========================================================================
   Sub-Page Headers & Forms
   ========================================================================== */
.page-header {
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 5px solid var(--primary-orange);
    margin-bottom: 4rem;
}

.page-header h1 {
    color: var(--white);
    font-size: 4rem;
    margin: 0;
    background: rgba(26, 26, 26, 0.85);
    padding: 15px 40px;
    border: 3px solid var(--primary-orange);
    text-shadow: 2px 2px 0px var(--charcoal-black);
}

/* Reusable Lists */
.industrial-list li {
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--primary-orange);
    padding-left: 10px;
    list-style: none;
}

/* Forms */
.form-control {
    width: 100%;
    padding: 15px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--charcoal-black);
    background-color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 5px 5px 0px var(--primary-orange);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--charcoal-black);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Responsive & Mobile Styles
   ========================================================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-orange);
    cursor: pointer;
    padding: 2px 10px;
    border: 2px solid var(--primary-orange);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        width: 100%;
        flex-basis: 100%;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--light-gray);
        margin-top: 1rem;
        padding: 0;
        text-align: center;
        border: 2px solid var(--charcoal-black);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #ddd;
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .hero h1, .page-header h1 {
        font-size: 2.2rem;
        padding: 10px 20px;
    }

    .section {
        padding: 3rem 0;
    }

    .split-content, .split-image {
        flex: 1 1 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .project-table th, .project-table td {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}