:root {
    --primary-blue: #003366;      /* Deep Professional Blue */
    --light-blue: #007bff;        /* Accent Light Blue */
    --soft-blue-bg: #f4f8fc;     /* Soft Background Blue */
    --white: #ffffff;
    --dark-text: #222222;
    --muted-text: #555555;
    --border-color: #e1e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--dark-text);
    line-height: 1.6;
}

/* --- NAVIGATION BAR --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    display: block;
}

/* Nav Links styling with custom dropdown menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--light-blue);
}

/* Dropdown Structure */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-top: 3px solid var(--light-blue);
    list-style: none;
    padding: 10px 0;
    width: 320px;
    display: none;
    border-radius: 0 0 4px 4px;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background-color: var(--soft-blue-bg);
    color: var(--light-blue);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile Menu Toggle button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #001f42 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.hero h1 {
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-weight: 800;
}

.hero h2 {
    font-size: 2rem;
    color: var(--light-blue);
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 35px auto;
    color: #d0e1f9;
    font-weight: 300;
    line-height: 1.8;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.tag {
    background-color: rgba(0, 123, 255, 0.2);
    border: 1px solid var(--light-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* --- MAIN CONTENT SECTIONS --- */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    color: var(--light-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

.overview-text p {
    margin-bottom: 20px;
    color: var(--muted-text);
    font-size: 1.05rem;
    text-align: justify;
}

/* At a Glance Card Grid */
.glance-card {
    background-color: var(--soft-blue-bg);
    border-left: 5px solid var(--light-blue);
    padding: 30px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.glance-card h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
}

.glance-item {
    margin-bottom: 15px;
}

.glance-item strong {
    display: block;
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.glance-item p {
    color: var(--muted-text);
    font-size: 0.95rem;
}

/* --- HOW WE DELIVER SECTION --- */
.bg-alt {
    background-color: var(--soft-blue-bg);
    max-width: 100%;
}
.bg-alt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.delivery-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.pipeline-step {
    background-color: var(--white);
    padding: 25px;
    border-radius: 6px;
    border-top: 4px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
}

.step-num {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(0, 51, 102, 0.1);
}

.pipeline-step h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-right: 30px;
}

.pipeline-step p {
    color: var(--muted-text);
    font-size: 0.95rem;
}

/* QHSE Split Layout */
.qhse-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.qhse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.qhse-card h5 {
    color: var(--light-blue);
    font-size: 1.05rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qhse-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
}

/* --- CLIENTS SECTION --- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.client-box {
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Keeps image on top, label on bottom */
    align-items: center;
    min-height: 130px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.client-box:hover {
    background-color: var(--white);
    border-style: solid;
    border-color: var(--light-blue);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
}

/* Direct branding image target rules */
.client-logo {
    max-width: 80%;
    max-height: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: auto; /* Pushes text evenly down to the bottom */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-box:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.client-box span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 10px;
    display: block;
}
/* --- MODERNIZED FOOTER --- */
footer {
    background: linear-gradient(135deg, #001f42 0%, #000f21 100%);
    color: var(--white);
    padding: 70px 20px 30px 20px;
    position: relative;
    border-top: 4px solid var(--primary-blue);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr 1.1fr;
    gap: 40px;
}

.footer-block h4 {
    color: var(--white);
    margin-bottom: 22px;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    position: relative;
}

/* Subtle line indicator under titles */
.footer-block h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 35px;
    height: 2px;
    background-color: var(--light-blue);
}

.footer-block p {
    font-size: 0.92rem;
    color: #b0cbe8;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Brand Column Adjustments */
.brand-desc {
    font-size: 0.88rem !important;
    color: #9cbce2 !important;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0cbe8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.footer-socials a:hover {
    background-color: var(--light-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Navigation Lists Column */
.footer-block ul {
    list-style: none;
    padding: 0;
}

.footer-block ul li {
    margin-bottom: 10px;
}

.footer-block ul li a {
    color: #b0cbe8;
    text-decoration: none;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.footer-block ul li a i {
    font-size: 0.65rem;
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.footer-block ul li a:hover {
    color: var(--light-blue);
}

.footer-block ul li a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Interactive Anchor Links */
.footer-block a {
    color: #b0cbe8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-block a:hover {
    color: var(--light-blue);
}

/* Footer Bottom Baseboard */
.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0 auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #8aaecf;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-credit {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

/* --- RESPONSIVE BREAKPOINTS OVERRIDES --- */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none; /* Controlled by JS toggle */
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li a {
        padding: 15px 20px;
        display: block;
        width: 100%;
    }

    .dropdown:hover .dropdown-menu {
        display: none; /* Disable hover rule on mobile */
    }

    .dropdown.active .dropdown-menu {
        display: block; /* Controlled toggled state via mobile click */
        position: relative;
        top: 0;
        width: 100%;
        box-shadow: none;
        border-top: none;
        background-color: var(--soft-blue-bg);
        padding-left: 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
}