/* ========================================= */
/* METCO SYSTEMS - COMPLETE, FINAL STYLE.CSS */
/* ========================================= */

/* 0. Global Variables & Resets */
/* ----------------------------------------- */
:root {
    --primary-blue: #003366; /* Deep Blue, Navy */
    --accent-cyan: #00BFFF; /* Deep Sky Blue for Accents */
    --secondary-gray: #6c757d;
    --text-dark: #333;
    --text-light: #ffffff;
    --bg-light-gray: #f8f9fa;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--text-light); /* Ensures body background isn't blocking content */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-blue);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Added for z-indexing reliability */
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.text-center {
    text-align: center;
}

.bg-light-gray {
    background-color: var(--bg-light-gray);
}

/* --- Global Button Styles --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #001f3f;
    border-color: #001f3f;
}

.btn-secondary {
    background-color: var(--accent-cyan);
    color: var(--primary-blue);
    border-color: var(--accent-cyan);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.btn-small { 
    display: inline-block;
    padding: 8px 15px;
    background: var(--accent-cyan);
    color: var(--primary-blue) !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 10px;
    border: 1px solid var(--accent-cyan);
    transition: all 0.3s;
}
.btn-small:hover {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue) !important;
}

/* 1. Header & Navigation (Includes Footer) */
/* ----------------------------------------- */
header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo Styling (Image and Visible Text) --- */
.logo a.logo-link {
    display: flex; 
    align-items: center; 
    height: 40px; 
    text-decoration: none;
    gap: 0px; /* Use margin on site-logo for precise control */
}

.site-logo {
    /* The Image Logo - VISIBLE */
    max-height: 40px; 
    width: auto;
    display: block;
    /* CONTROLS THE SPACE BETWEEN IMAGE AND TEXT */
    margin-right: 10px; /* Adjust this value (e.g., 5px to 25px) */
}

.site-title {
    /* The Text Logo - VISIBLE */
    font-size: 1.5rem; 
    font-weight: 800;
    color: var(--text-light); 
    line-height: 1;
    text-transform: uppercase;
}

/* --- Navigation Links --- */
.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    padding: 5px 0;
    position: relative;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s;
    position: absolute;
    bottom: 0;
    left: 0;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn.btn-secondary {
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-left: 10px; 
}

/* --- Footer --- */
footer {
    background-color: #003366;
    color: #ffffff;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-column {
    flex-basis: 25%;
}

.footer-column h4 {
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-light);
}

.footer-bottom {
   
    border-top: 1px solid #333;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}


/* 2. Global Page Headers & Content */
/* ----------------------------------------- */
.page-header {
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: #666;
}

/* 3. Home Page (index.php) - KEN BURNS EFFECT */
/* ----------------------------------------- */
.hero {
    background-color: #001f3f; /* Fallback dark blue */
    color: var(--text-light);
    padding: 120px 0;
    text-align: center;
    position: relative; /* CRITICAL for ::before */
    overflow: hidden; 
}

/* Pseudo-element to hold the animated background image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* BACKGROUND IMAGE AND STYLING */
    background-image: url('../images/hero-background.jpg'); /* **ENSURE THIS PATH IS CORRECT** */
    background-size: cover;
    background-position: center center;
    
    /* ANIMATION APPLICATION */
    animation: kenburns 30s ease-in-out infinite alternate;
    
    /* Overlay for text readability */
    background-color: rgba(0, 0, 0, 0.4); 
    background-blend-mode: multiply;
    
    transform: scale(1);
    z-index: 1; /* CRITICAL: Sets the background layer */
}

/* Ensures all text/buttons are layered above the background */
.hero .container, 
.hero h1, .hero p, .hero .btn {
    position: relative;
    z-index: 2; 
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Features and Trust Sections (Home Page) --- */
.features-section, .trust-section {
    padding: 80px 0;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}


/* --- Services Snapshot --- */
.services-snapshot {
    padding: 60px 0;
    text-align: center;
}

.services-snapshot h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.service-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.card {
    flex: 1;
    padding: 30px;
    background: var(--text-light);
    border-top: 5px solid var(--accent-cyan);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 10px;
}


/* 4. Services Page (services.php) */
/* ----------------------------------------- */
.service-detail {
    padding: 80px 0;
}

.detail-row {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.service-detail:nth-child(even) .detail-row {
    flex-direction: row-reverse;
}

.detail-text {
    flex: 1.5;
}

.detail-image {
    flex: 1;
}

.detail-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.service-category {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.service-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
}

.service-list li::before {
    content: "\2022"; 
    font-size: 1.5rem;
    color: var(--accent-cyan);
    position: absolute;
    left: 0;
    top: -3px;
    line-height: 1;
}

/* 5. Industries Page (industries.php) */
/* ----------------------------------------- */
.industries-grid-section {
    padding: 80px 0;
}

.industry-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.industry-card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.05);
    transition: box-shadow 0.3s, transform 0.3s;
}

/* 6. Case Studies Page (case-studies.php) */
/* ----------------------------------------- */
.case-studies-grid-section {
    padding: 80px 0;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.case-study-card {
    background: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.card-image-placeholder {
    height: 150px;
    background-color: var(--primary-blue);
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 25px;
}

.industry-tag {
    display: inline-block;
    background-color: var(--bg-light-gray);
    color: var(--secondary-gray);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* 7. About Us Page (about-us.php) */
/* ----------------------------------------- */
.mission-vision-section {
    padding: 80px 0;
}

.mission-vision-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    text-align: center;
}

.mission-card, .vision-card {
    flex: 1;
    padding: 30px;
    border-radius: 8px;
    background-color: var(--bg-light-gray);
    border: 1px solid #eee;
}

/* --- Styles for Statistics Bar Section --- */

.statistics-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 60px 0; /* Generous vertical padding */
    background-color: var(--primary-blue); /* Strong brand background */
    color: #ffffff; /* White text for contrast */
    text-align: center;
    border-radius: 5px; /* Slight rounding for modern feel */
}

.stat-item {
    flex-basis: 22%; /* Ensures items take up a similar amount of space */
    padding: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* Subtle separator line */
}

.stat-item:last-child {
    border-right: none; /* Remove the separator on the last item */
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-cyan); /* Highlight color for icons */
    margin-bottom: 10px;
    display: block;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: #ffffff;
}

.stat-item p {
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8); /* Slightly muted label color */
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .statistics-bar {
        flex-wrap: wrap;
        padding: 40px 0;
    }
    .stat-item {
        flex-basis: 45%; /* Two items per row on mobile */
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 20px;
    }
    .stat-item:nth-child(even) {
        border-right: none; /* Fix border issue when wrapping */
    }
    .stat-item:last-child {
        border-bottom: none;
    }
}




.leadership-section {
    padding: 100px 0;
}

/* --- New/Revised Styles for Leadership Section --- */

.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.team-member {
    flex-basis: 30%;
    max-width: 300px;
    text-align: center;
    /* Added Styling for Visual Appeal */
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0, 51, 102, 0.05); /* Subtle depth */
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
}

/* Style the image placeholder */
.team-member [class*="Image of"] {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover;
    background-color: var(--accent-cyan); /* Placeholder background */
    border: 3px solid var(--primary-blue);
    overflow: hidden;
}

.team-member h4 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.team-member .service-category {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.team-member p {
    font-size: 0.95rem;
    color: #555;
}

@media (max-width: 768px) {
    .team-member {
        flex-basis: 100%; /* Ensure stacking on mobile */
        max-width: 100%;
    }
}


/* --- New Styles for Value Grid Section --- */

.value-grid-section {
    padding: 80px 0;
    background-color: #f7f9fc; /* Light background for contrast */
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.08);
}

.value-card:hover {
    border-bottom-color: var(--primary-blue); /* Highlight on hover */
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.15);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    display: block;
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.95rem;
    color: #666;
}

/* --- New Styles for Core Values Section --- */

.core-values-section {
    padding: 80px 0;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.core-value-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.core-value-card:hover {
    background-color: var(--primary-blue); /* Subtle background change on hover */
    color: #ffffff;
}

.core-value-card:hover i {
    color: var(--accent-cyan); /* Icon pop on hover */
}

.core-value-card:hover h4,
.core-value-card:hover p {
    color: #ffffff; /* Text turns white on hover */
}

.core-value-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: block;
    transition: color 0.3s;
}

.core-value-card h4 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.core-value-card p {
    font-size: 0.95rem;
    color: #666;
    transition: color 0.3s;
}


/* 8. Contact Page (contact.php) */
/* ----------------------------------------- */
.contact-form-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    padding-right: 20px;
    border-right: 1px solid #ddd;
}

.contact-form {
    padding: 0 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 700;
    border-left: 5px solid;
}

/* Update form-message style in Section 8 of css/style.css */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 700;
    border-left: 5px solid;
    /* Base style */
}

.form-message.success {
    background-color: #d4edda; /* Light Green */
    color: #155724; /* Dark Green */
    border-color: #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da; /* Light Red */
    color: #721c24; /* Dark Red */
    border-color: #f5c6cb;
}


/* 9. Animations */
/* ----------------------------------------- */
@keyframes kenburns {
    0% {
        transform: scale(1) translateX(0);
    }
    100% {
        transform: scale(1.15) translateX(2%); 
    }
}


/* 10. Responsive Layout Adjustments */
/* ----------------------------------------- */
@media (max-width: 992px) {
    /* General Grid Stacking */
    .detail-row {
        flex-direction: column;
    }
    .service-detail:nth-child(even) .detail-row {
        flex-direction: column; 
    }
    .detail-image {
        margin-top: 30px;
        order: 1; 
    }
    .detail-text {
        order: 2;
    }

    /* Contact Page Stacking */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        padding-right: 0;
        border-right: none;
        padding-bottom: 30px;
        border-bottom: 1px solid #ddd;
    }
    .contact-form {
        padding: 0;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .navbar {
        flex-wrap: wrap; 
        justify-content: center;
    }
    .nav-links {
        display: none; 
    }
    .logo {
        margin-bottom: 10px;
    }
    .footer-content {
        flex-direction: column;
    }
    .footer-column {
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    /* About Us */
    .mission-vision-grid {
        flex-direction: column;
    }
    .statistics-bar {
        flex-wrap: wrap;
    }
    .stat-item {
        flex-basis: 50%;
        margin-bottom: 20px;
        border-right: none;
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
    .team-member {
        flex-basis: 100%;
    }
}


/* --- Trust/Logos Section Styling (New Addition) --- */

.trust-logo-grid {
    display: flex; /* Use Flexbox for easy horizontal alignment */
    flex-wrap: wrap; /* Allows logos to wrap on smaller screens */
    justify-content: center; /* Horizontally center the entire row of logos */
    align-items: center; /* Vertically align logos if they are different heights */
    gap: 40px; /* Space between each logo */
    margin-top: 50px; /* Add some space below the heading */
}

/* Style for the placeholder image tags (adjust as needed for actual images) */
.trust-logo-grid img,
.trust-logo-grid [class*="Image of"] { /* Target actual images or the placeholder text */
    /* If using placeholder text, the height will be zero. */
    /* If using real images, set a max height for uniformity: */
    max-height: 40px; 
    width: auto;
    /* Optional: Add a slight gray filter to unify colors */
    filter: grayscale(80%); 
    opacity: 0.7;
    transition: opacity 0.3s;
}

.trust-logo-grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

