/* Color Palette & Base Reset */
:root {
    --primary-green: #1B5E20; /* Deep corporate green */
    --accent-red: #D32F2F;    /* Professional red */
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding: 15px 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.logo {
    color: var(--primary-green);
    font-size: 28px;
}
.logo-container{
	margin-right:530px;
}
.picture-logo{
	margin-right: -40px;
	margin-left:-20px;
    border-radius: 50%;
}

.logo span {
    color: var(--accent-red);
}
.logo-area {
    display: flex;
    align-items: center;
}
.motto {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-red);
}
.illustrate{
	border-color:green;
	border-radius:10px;
	border-style:solid;
	margin-top:25px;
	margin-left:240px;
	margin-right:50px;
	background-color:green;
}
.illustrate:hover{
	transform: scale(1.05);
	transition: transform 1.2s ease;
}
.illustrate1{
	border-color:green;
	border-radius:5px;
	border-style:solid;	
}
.illustrate1:hover{
	transform: scale(1.05);
	transition: transform 1.2s ease;
}
/* Slideshow */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 70vh; /* Takes up 70% of viewport height */
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Default state: invisible and shifted slightly right for the slide-in effect */
    opacity: 0;
    transform: translateX(50px); 
    transition: transform 1.5s ease-out, opacity 1.5s ease-out;
}

/* Active state: Visible and centered */
.slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* Fade out state: Fades to black without sliding */
.slide.fade-out {
    opacity: 0;
    transform: translateX(0);
    transition: opacity 1.5s ease-in; 
}

.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    text-align: center;
    z-index: 10;
}

.slide-text h2 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Core Services */
.services-section {
    padding: 60px 50px;
    text-align: center;
    background-color: var(--white);
}

.section-header h2 {
    color: var(--primary-green);
    font-size: 32px;
	text-align:center;
}
.section-header:hover h2{
	color: var(--accent-red);

}
.section-header h3{
	text-align:center;
	padding-top:-50px;
}
.divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent-red);
    margin: 15px auto 40px auto;
}
.divider:hover{
	background-color: var(--primary-green);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    background-color: var(--light-bg);
    padding: 40px 20px;
    border-radius: 5px;
    border-bottom: 4px solid var(--primary-green);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--accent-red);
}

.service-card h3 {
    color: var(--primary-green);
}

footer {
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 20px;
    font-size: 14px;
}
/* Page Header for non-homepage pages */
.page-header {
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
}

.page-header h2 { font-size: 36px; margin-bottom: 10px; }
.page-header p { font-size: 18px; opacity: 0.9; }

/* Company Overview & VMV Grid */
.company-overview {
    padding: 60px 50px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.intro-box { margin-bottom: 50px; font-size: 18px; line-height: 1.6;}

.vmv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.vmv-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.vmv-card h3 { margin-bottom: 15px; color: var(--text-dark); }
.border-green { border-top: 4px solid var(--primary-green); }
.border-red { border-top: 4px solid var(--accent-red); }
.realign p {text-align:justify; padding-left:70px; font-size:18px;align-items:;}

/* Management Team Grid */
.team-section { padding: 60px 50px; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-green);
}

.team-info h4 { color: var(--primary-green); margin-bottom: 5px; }
.team-info p { font-size: 14px; color: #666; }
.push {padding-top:3px;}

/* Clickable Arrow inside Team Card */
.arrow {
    font-size: 24px;
    color: var(--accent-red);
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.arrow:hover {
    transform: translateX(5px);
    color: var(--primary-green);
}
/* Feature Grids */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.grid-item {
    background: var(--white);
    padding: 35px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-weight: 700;
    color: var(--primary-green);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
	text-align: center;
}

.grid-item:hover {
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
ol li{
	list-style:bullet;
}

/* Modal Styling */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000; /* Stays on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fades the rest of the page */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    width: 50%; /* Covers 50% of the window */
    min-width: 320px;
    border-radius: 4px;
    position: relative;
    border-left: 10px solid var(--primary-green);
    animation: fadeInModal 0.4s ease;
}
.show-arrow{
	cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--accent-red);
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Contact Section Layout */
.contact-section {
    padding: 60px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Make it stack on smaller screens */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.contact-card h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Address Styling */
.address-block h4 { color: var(--text-dark); margin-bottom: 5px; }
.address-block p { color: #666; line-height: 1.6; margin-bottom: 10px; }
.map-link { color: var(--accent-red); text-decoration: none; font-weight: bold; font-size: 14px;}
.map-link:hover { text-decoration: underline; }

/* Direct Contact Buttons (Email & WhatsApp) */
.email-btn, .whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.email-btn { background-color: var(--accent-red); }
.whatsapp-btn { background-color: #25D366; /* Official WhatsApp Green */ }

.email-btn:hover, .whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Linktree Style Social Buttons */
.linktree-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.linktree-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: var(--light-bg);
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 50px; /* Gives it that rounded Linktree pill look */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.linktree-btn i { font-size: 18px; }

.linktree-btn:hover {
    background-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(27, 94, 32, 0.3);
}

/* Contact Page Staff Slideshow */
.contact-slideshow-column {
    height: 100%;
}

.staff-slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background-color: #000;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    text-align: center;
    z-index: 10;
}

.slide-caption h3 { color: var(--white); margin-bottom: 5px; font-size: 24px; }

/* Newsletter Section */
.newsletter-section {
    padding: 80px 50px;
    background-color: var(--primary-green);
    color: var(--white);
    display: flex;
    justify-content: center;
}

.newsletter-container {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 40px;
}

.newsletter-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.newsletter-content p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Form Styling */
.newsletter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.newsletter-form input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 4px;
    border: 2px solid transparent;
    outline: none;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

/* Validation Styling */
.newsletter-form input:focus {
    border-color: var(--accent-red);
}

.newsletter-form input:invalid:not(:placeholder-shown) {
    border-color: #ff4d4d;
}

/* The "Subscribe" Button */
.subscribe-btn {
    background-color: var(--accent-red);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.subscribe-btn:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
}
/* Featured Clients Section */
.clients-section {
    padding: 60px 50px;
    background-color: var(--white);
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* Exactly 7 columns in one line */
    gap: 30px;
    align-items: center;
    max-width: 1200px;
    margin: 40px auto 0;
}

.client-logo img {
    width: 100%;
    max-width: 140px; /* Adjust based on your actual logo sizes */
    height: auto;
    filter: grayscale(100%); /* Makes them look uniform and professional */
    opacity: 0.6;
    transition: all 0.4s ease;
    cursor: pointer;
}

.client-logo img:hover {
    filter: grayscale(0%); /* Pops into color on hover */
    opacity: 1;
    transform: scale(1.1);
}
/* Responsive adjustments */
@media (max-width: 850px) {
    .newsletter-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .newsletter-form {
        justify-content: center;
    }
}
/* Container for the 5th centered member */
.team-center-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px; /* Space between the top row and this member */
    width: 100%;
}

/* Ensure the card maintains the same width as the ones in the grid */
.team-center-wrapper .team-card {
    width: 100%;
    max-width: 280px; /* Adjust this to match your grid card width */
}

/* Responsive adjustment for mobile */
@media (max-width: 600px) {
    .team-center-wrapper {
        margin-top: 0;
    }
    .team-center-wrapper .team-card {
        max-width: 100%; /* Let it take full width on small phones like the others */
    }
}
/* --- MOBILE RESPONSIVITY PATCH --- */

@media (max-width: 768px) {
    /* 1. Navbar: Stack the logo and links */
    .navbar {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .logo-container {
        margin-right: 0 !important; /* Removes the 530px desktop gap */
        margin-bottom: 15px;
    }

    .picture-logo {
        margin: 0 auto 10px auto;
    }

    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    /* 2. Grids: Make all multi-column layouts single-column */
    .services-grid, 
    .vmv-grid, 
    .team-grid, 
    .feature-grid, 
    .contact-grid, 
    .newsletter-container {
        grid-template-columns: 1fr !important;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* 3. About Page Images: Center and resize images */
    .grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .illustrate, .illustrate1 {
        margin: 0 !important;
        width: 90% !important;
        height: auto !important;
    }

    /* 4. Sections & Spacing */
    .services-section, 
    .company-overview, 
    .team-section, 
    .interactive-section, 
    .contact-section,
    .newsletter-section {
        padding: 40px 20px !important;
    }

    /* 5. Slideshows */
    .slideshow-container {
        height: 50vh; /* Shorter header on mobile */
    }

    .slide-text h2 {
        font-size: 24px;
    }

    /* 6. Modal: Make it wider for small screens */
    .modal-content {
        width: 90% !important;
        padding: 25px;
    }

    /* 7. Newsletter Form: Stack inputs */
    .newsletter-form {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }

    /* 8. Contact Page: Fix height of side slideshow */
    .staff-slideshow-container {
        min-height: 400px;
    }
}

/* Extra small screens (Phones) */
@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* --- Fix for Jude Okafor's Image Crop --- */

/* This targets only images that have the [data-align="top"] attribute */
.team-card img[data-align="top"] {
    object-position: center top !important; /* Forces the browser to anchor the crop to the top of the photo */
}